/* ============================================
   ROY CAPITAL LTD. — DESIGN SYSTEM
   ============================================ */

:root {
  /* Colors */
  --color-primary: #2C3E50;
  --color-secondary: #16A085;
  --color-accent: #E67E22;
  --color-bg: #F4F6F7;
  --color-surface: #FFFFFF;
  --color-text: #1A252F;
  --color-text-light: #5D6D7E;

  /* Typography */
  --font-heading: Copperplate, 'Copperplate Gothic', fantasy;
  --font-body: Optima, 'Lucida Grande', sans-serif;

  /* Type Scale — Airy Modern */
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.05rem);
  --text-sm: clamp(0.8rem, 0.78rem + 0.1vw, 0.85rem);
  --text-lg: clamp(1.1rem, 1rem + 0.3vw, 1.25rem);
  --text-xl: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.25rem + 0.8vw, 2rem);
  --text-3xl: clamp(1.75rem, 1.5rem + 1vw, 2.25rem);
  --text-4xl: clamp(2.25rem, 1.75rem + 2vw, 3.5rem);

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Shadows — Subtle */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 4px 24px rgba(0, 0, 0, 0.1);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  /* Layout */
  --max-width: 1000px;
  --max-width-wide: 1200px;

  /* Border radius — Sharp */
  --radius: 0px;
}

/* ============================================
   RESET & BASE
   ============================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.85;
  letter-spacing: 0.015em;
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

body.page-enter main {
  animation: pageEnter 0.4s ease forwards;
}

body.page-exit main {
  animation: pageExit 0.35s ease forwards;
}

@keyframes pageEnter {
  from {
    transform: scale(1.03);
    opacity: 0;
    filter: blur(4px);
  }
  to {
    transform: scale(1);
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes pageExit {
  from {
    transform: scale(1);
    opacity: 1;
    filter: blur(0);
  }
  to {
    transform: scale(0.95);
    opacity: 0;
    filter: blur(4px);
  }
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--color-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

ul, ol {
  list-style: none;
}

/* ============================================
   SKIP LINK
   ============================================ */

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  padding: var(--space-sm) var(--space-lg);
  background: var(--color-accent);
  color: var(--color-surface);
  font-weight: 700;
  font-size: var(--text-sm);
  z-index: 99999;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--space-md);
}

/* ============================================
   HEADER
   ============================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10001;
  padding: var(--space-lg) var(--space-xl);
  background: transparent;
  transition: background var(--transition-base);
}

.site-header.scrolled {
  background: rgba(244, 246, 247, 0.97);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-width-wide);
  margin: 0 auto;
}

.logo {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  color: var(--color-primary);
  letter-spacing: 0.05em;
  text-decoration: none;
  font-weight: 700;
  z-index: 10002;
  position: relative;
}

.logo span {
  font-weight: 300;
  color: var(--color-text-light);
}

.logo:hover {
  color: var(--color-secondary);
}

/* Hamburger */
.hamburger {
  position: relative;
  z-index: 10002;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 0;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-primary);
  transition: transform var(--transition-base), opacity var(--transition-fast);
  transform-origin: center;
}

.hamburger.active .hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
  background-color: var(--color-surface);
}

.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
  background-color: var(--color-surface);
}

/* Nav overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: var(--color-primary);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-slow);
}

.nav-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.nav-links {
  text-align: center;
}

.nav-links li {
  margin-block-end: var(--space-sm);
}

.nav-links a {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--color-surface);
  line-height: 1.8;
  text-decoration: none;
  position: relative;
  transition: color var(--transition-base);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--color-accent);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0.15em;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition-base), left var(--transition-base);
}

.nav-links a:hover::after {
  width: 100%;
  left: 0;
}

.nav-footer-info {
  text-align: center;
  margin-block-start: var(--space-3xl);
  color: rgba(255, 255, 255, 0.5);
  font-size: var(--text-sm);
}

.nav-footer-info p {
  margin-block-end: var(--space-xs);
}

/* ============================================
   HERO
   ============================================ */

.hero {
  min-height: 85vh;
  background-color: var(--color-primary);
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: var(--space-4xl) var(--space-xl) 8rem;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 30%, rgba(22, 160, 133, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 30% 70%, rgba(230, 126, 34, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

/* Paper texture overlay */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.02) 25%, transparent 25%),
    linear-gradient(225deg, rgba(255,255,255,0.02) 25%, transparent 25%),
    linear-gradient(315deg, rgba(255,255,255,0.02) 25%, transparent 25%),
    linear-gradient(45deg, rgba(255,255,255,0.02) 25%, transparent 25%);
  background-size: 4px 4px;
  pointer-events: none;
  opacity: 0.5;
}

.hero-bg-motif {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.motif-rect {
  position: absolute;
  border: 2px solid rgba(255, 255, 255, 0.08);
}

.motif-rect-1 {
  width: 300px;
  height: 200px;
  top: 15%;
  right: 8%;
  transform: translate(10px, -10px);
}

.motif-rect-2 {
  width: 200px;
  height: 300px;
  bottom: 20%;
  right: 15%;
  transform: translate(-15px, 20px);
}

.motif-rect-3 {
  width: 150px;
  height: 150px;
  top: 40%;
  left: 5%;
  transform: translate(20px, -5px);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-width-wide);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-text {
  margin-left: 8vw;
  max-width: 55%;
  padding-top: 8vh;
}

.hero-headline {
  font-family: var(--font-heading);
  color: var(--color-surface);
  margin-block-end: var(--space-xl);
}

.hw-light {
  display: block;
  font-weight: 300;
  font-size: var(--text-4xl);
  line-height: 1.2;
}

.hw-bold {
  display: block;
  font-weight: 700;
  font-size: var(--text-4xl);
  line-height: 1.2;
}

.hw-accent-rule {
  display: block;
  width: 60px;
  height: 3px;
  background: var(--color-accent);
  margin: var(--space-md) 0;
}

.hero-sub {
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--text-lg);
  line-height: 1.85;
  margin-block-end: var(--space-2xl);
  max-width: 540px;
}

.hero-vertical-text {
  writing-mode: vertical-rl;
  text-transform: uppercase;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.15);
  position: absolute;
  right: 4vw;
  top: 50%;
  transform: translateY(-50%);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: var(--space-sm) var(--space-xl);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-base);
  border-radius: var(--radius);
}

.btn-hero {
  background: var(--color-surface);
  color: var(--color-primary);
  padding: var(--space-md) var(--space-2xl);
  font-size: var(--text-base);
}

.btn-hero:hover {
  background: var(--color-accent);
  color: var(--color-surface);
}

.btn-subtle {
  background: transparent;
  color: var(--color-text-light);
  border: 1px solid var(--color-text-light);
  font-size: var(--text-sm);
  padding: var(--space-sm) var(--space-lg);
}

.btn-subtle:hover {
  border-color: var(--color-secondary);
  color: var(--color-secondary);
}

.btn-accent {
  background: linear-gradient(135deg, var(--color-accent), #d35400);
  color: var(--color-surface);
  padding: var(--space-md) var(--space-2xl);
}

.btn-accent:hover {
  background: linear-gradient(315deg, var(--color-accent), #d35400);
}

.btn-submit {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: var(--color-surface);
  padding: var(--space-md) var(--space-2xl);
  font-size: var(--text-base);
}

.btn-submit:hover {
  background: linear-gradient(315deg, var(--color-primary), var(--color-secondary));
}

/* ============================================
   SECTIONS — DIAGONAL LAYOUT
   ============================================ */

.section {
  position: relative;
  padding: 60px var(--space-xl) 80px;
  background-color: var(--color-surface);
}

.section::after {
  content: '';
  position: absolute;
  bottom: -50px;
  left: 0;
  width: 100%;
  height: 100px;
  background: inherit;
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
  z-index: 1;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.section + .section {
  margin-top: -50px;
  z-index: auto;
}

/* Dot grid backgrounds */
.section-services {
  background-color: var(--color-bg);
  background-image: radial-gradient(circle, rgba(44, 62, 80, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
}

.section-services::after {
  background-color: var(--color-bg);
}

.section-why {
  background-color: var(--color-surface);
}

.section-testimonials {
  background-color: var(--color-bg);
}

.section-testimonials::after {
  background-color: var(--color-bg);
}

.section-cta-banner {
  background-color: var(--color-primary);
  color: var(--color-surface);
}

.section-cta-banner::after {
  background-color: var(--color-primary);
}

.section-stats {
  background-color: var(--color-surface);
  background-image: radial-gradient(circle, rgba(44, 62, 80, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
}

.section-stats::after {
  background-color: var(--color-surface);
}

.section-contact-teaser {
  background-color: var(--color-bg);
}

.section-contact-teaser::after {
  display: none;
}

/* ============================================
   SECTION HEADINGS — Left Vertical Bar
   ============================================ */

.section-heading {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 400;
  color: var(--color-primary);
  padding-left: 1.2rem;
  border-left: 4px solid var(--color-accent);
  margin-block-end: var(--space-xl);
  line-height: 1.3;
  position: relative;
}

.section-intro {
  font-size: var(--text-lg);
  color: var(--color-text-light);
  max-width: 700px;
  margin-block-end: var(--space-2xl);
  line-height: 1.85;
}

/* ============================================
   CARDS — Outline Dashed
   ============================================ */

.card {
  border: 2px dashed var(--color-primary);
  background: transparent;
  padding: var(--space-2xl);
  position: relative;
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

.card:hover {
  background: var(--color-surface);
  box-shadow: var(--shadow-md);
}

.card-stripe {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-secondary));
}

.card-icon {
  margin-block-end: var(--space-lg);
  display: flex;
  justify-content: center;
}

.icon-placeholder {
  width: 48px;
  height: 48px;
  border: 2px solid var(--color-secondary);
  position: relative;
}

.icon-deposit::before {
  content: '';
  position: absolute;
  inset: 8px;
  background: linear-gradient(135deg, var(--color-secondary) 40%, var(--color-accent) 100%);
  opacity: 0.3;
}

.icon-credit::before {
  content: '';
  position: absolute;
  inset: 8px;
  background: linear-gradient(135deg, var(--color-primary) 40%, var(--color-secondary) 100%);
  opacity: 0.3;
}

.icon-cash::before {
  content: '';
  position: absolute;
  inset: 8px;
  background: linear-gradient(135deg, var(--color-accent) 40%, var(--color-primary) 100%);
  opacity: 0.3;
}

.icon-sba::before {
  content: '';
  position: absolute;
  inset: 8px;
  background: linear-gradient(135deg, var(--color-secondary) 40%, var(--color-primary) 100%);
  opacity: 0.3;
}

.card h3 {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--color-primary);
  text-align: center;
  margin-block-end: var(--space-md);
}

.card p {
  text-align: center;
  color: var(--color-text-light);
  font-size: var(--text-sm);
  line-height: 1.8;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

/* ============================================
   WHY US SECTION
   ============================================ */

.why-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
}

.why-text p {
  margin-block-end: var(--space-lg);
  color: var(--color-text);
  line-height: 1.85;
}

.why-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

.why-card {
  border: 2px dashed var(--color-primary);
  padding: var(--space-xl);
  position: relative;
  transition: background var(--transition-base);
}

.why-card:hover {
  background: var(--color-surface);
}

.why-card-motif {
  position: absolute;
  top: -6px;
  left: -6px;
  width: 40px;
  height: 40px;
  border-top: 2px solid var(--color-accent);
  border-left: 2px solid var(--color-accent);
  opacity: 0.5;
}

.why-card h3 {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--color-primary);
  margin-block-end: var(--space-md);
}

.why-card p {
  color: var(--color-text-light);
  font-size: var(--text-base);
  line-height: 1.85;
}

/* ============================================
   TESTIMONIALS — Minimal with Border
   ============================================ */

.testimonials-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
}

.testimonial {
  border-left: 3px solid var(--color-accent);
  padding-left: var(--space-xl);
}

.testimonial p {
  font-size: var(--text-base);
  color: var(--color-text);
  line-height: 1.85;
  margin-block-end: var(--space-md);
  font-style: italic;
}

.testimonial cite {
  font-style: normal;
  font-size: var(--text-sm);
  color: var(--color-text-light);
  font-weight: 600;
}

.section-cta {
  margin-block-start: var(--space-2xl);
  text-align: center;
}

/* ============================================
   CTA BANNER
   ============================================ */

.cta-banner-content {
  text-align: center;
  max-width: 650px;
  margin: 0 auto;
  position: relative;
}

.cta-banner-content::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--color-accent);
}

.cta-banner-content h2 {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 300;
  color: var(--color-surface);
  margin-block-end: var(--space-lg);
}

.cta-banner-content p {
  color: rgba(255, 255, 255, 0.8);
  margin-block-end: var(--space-xl);
  font-size: var(--text-base);
  line-height: 1.85;
}

/* ============================================
   STATS — Big Number Cards
   ============================================ */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.stat-card {
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
  border: 2px dashed var(--color-primary);
  position: relative;
  transition: background var(--transition-base);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 8px;
  right: -8px;
  bottom: -8px;
  border: 1px solid rgba(44, 62, 80, 0.08);
  pointer-events: none;
}

.stat-card:hover {
  background: var(--color-surface);
}

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
  margin-block-end: var(--space-md);
}

.stat-label {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-text-light);
  line-height: 1.5;
}

/* ============================================
   CONTACT TEASER
   ============================================ */

.contact-teaser-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
}

.contact-teaser-text p {
  margin-block-end: var(--space-lg);
  line-height: 1.85;
}

.contact-teaser-card {
  border: 2px dashed var(--color-primary);
  padding: var(--space-2xl);
  position: relative;
}

.contact-teaser-card::before {
  content: '';
  position: absolute;
  top: -8px;
  right: -8px;
  width: 50px;
  height: 50px;
  border-top: 2px solid var(--color-accent);
  border-right: 2px solid var(--color-accent);
  opacity: 0.4;
}

.contact-teaser-card h3 {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  color: var(--color-primary);
  margin-block-end: var(--space-lg);
}

.contact-teaser-email,
.contact-teaser-phone,
.contact-teaser-addr {
  font-size: var(--text-base);
  color: var(--color-text);
  margin-block-end: var(--space-md);
  line-height: 1.6;
}

.contact-teaser-card .btn {
  margin-block-start: var(--space-lg);
}

/* ============================================
   PAGE HERO
   ============================================ */

.page-hero {
  background-color: var(--color-primary);
  padding: clamp(8rem, 12vh, 12rem) var(--space-xl) clamp(4rem, 8vh, 6rem);
  position: relative;
  clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 40%, rgba(22, 160, 133, 0.1) 0%, transparent 50%),
    linear-gradient(135deg, rgba(255,255,255,0.01) 25%, transparent 25%),
    linear-gradient(225deg, rgba(255,255,255,0.01) 25%, transparent 25%);
  background-size: 100%, 4px 4px, 4px 4px;
  pointer-events: none;
}

.page-hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.page-hero-title {
  font-family: var(--font-heading);
  color: var(--color-surface);
  margin-block-end: var(--space-xl);
}

.page-hero p {
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--text-lg);
  max-width: 600px;
  line-height: 1.85;
}

/* About hero - testimonial */
.page-hero-about {
  padding-bottom: clamp(6rem, 10vh, 10rem);
}

.hero-quote {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero-quote p {
  font-family: var(--font-body);
  font-size: var(--text-2xl);
  font-weight: 300;
  color: var(--color-surface);
  line-height: 1.6;
  margin-block-end: var(--space-xl);
  font-style: italic;
}

.hero-quote cite {
  font-style: normal;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
}

/* ============================================
   ABOUT PAGE
   ============================================ */

.about-overview {
  max-width: 750px;
}

.about-overview p {
  margin-block-end: var(--space-lg);
  line-height: 1.85;
}

/* Story */
.story-content p {
  margin-block-end: var(--space-lg);
  line-height: 1.85;
  max-width: 750px;
}

.story-content p:first-child {
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--color-text-light);
}

/* Process */
.process-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
}

.process-step {
  position: relative;
  padding-left: var(--space-3xl);
}

.step-number {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-accent);
  opacity: 0.4;
  position: absolute;
  left: 0;
  top: 0;
}

.process-step h3 {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--color-primary);
  margin-block-end: var(--space-md);
}

.process-step p {
  color: var(--color-text-light);
  line-height: 1.85;
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.team-member {
  border: 2px dashed var(--color-primary);
  padding: var(--space-xl);
  position: relative;
  transition: background var(--transition-base);
}

.team-member:hover {
  background: var(--color-surface);
}

.team-avatar {
  width: 64px;
  height: 64px;
  background-color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-block-end: var(--space-lg);
  position: relative;
}

.team-avatar::before {
  content: attr(data-initials);
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-surface);
}

.team-member h3 {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--color-primary);
  margin-block-end: var(--space-xs);
}

.team-tag {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-secondary);
  font-weight: 600;
  margin-block-end: var(--space-xs);
}

.team-exp {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-text-light);
  margin-block-end: var(--space-md);
}

.team-member p {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  line-height: 1.7;
}

/* Values */
.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

.value-item {
  padding-left: var(--space-xl);
  border-left: 3px solid var(--color-secondary);
}

.value-item h3 {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--color-primary);
  margin-block-end: var(--space-md);
}

.value-item p {
  color: var(--color-text-light);
  line-height: 1.85;
}

/* ============================================
   SERVICES PAGE
   ============================================ */

.section-service-detail {
  background-color: var(--color-surface);
  padding: 80px var(--space-xl) 100px;
}

.section-service-detail.alt-bg {
  background-color: var(--color-bg);
  background-image: radial-gradient(circle, rgba(44, 62, 80, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
}

.section-service-detail.alt-bg::after {
  background-color: var(--color-bg);
}

.service-detail-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
}

.service-detail-text h3 {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--color-primary);
  margin-block-start: var(--space-2xl);
  margin-block-end: var(--space-md);
}

.service-detail-text p {
  line-height: 1.85;
  color: var(--color-text);
  margin-block-end: var(--space-lg);
}

.service-who {
  font-size: var(--text-base);
  color: var(--color-text-light);
  padding: var(--space-lg);
  border-left: 3px solid var(--color-secondary);
  background: rgba(22, 160, 133, 0.04);
}

.service-deliverables {
  margin-block-start: var(--space-md);
  margin-block-end: var(--space-xl);
  padding-left: var(--space-lg);
}

.service-deliverables li {
  position: relative;
  padding-left: var(--space-lg);
  margin-block-end: var(--space-sm);
  color: var(--color-text);
  font-size: var(--text-base);
}

.service-deliverables li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 700;
}

.service-outcome {
  border: 2px dashed var(--color-secondary);
  padding: var(--space-xl);
  margin-block-start: var(--space-xl);
}

.service-outcome h3 {
  margin-block-start: 0;
}

/* Gradient art blocks */
.gradient-art-block {
  aspect-ratio: 4 / 3;
  width: 100%;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.1);
}

.gradient-1 {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 45%, var(--color-accent) 80%, #f5c77e 100%);
}

.gradient-2 {
  background: linear-gradient(225deg, var(--color-primary) 0%, #34495E 30%, var(--color-secondary) 65%, var(--color-bg) 100%);
}

.gradient-3 {
  background: linear-gradient(135deg, var(--color-accent) 0%, #d35400 35%, var(--color-primary) 70%, var(--color-secondary) 100%);
}

.gradient-4 {
  background: linear-gradient(315deg, var(--color-secondary) 0%, var(--color-primary) 40%, #34495E 70%, var(--color-accent) 100%);
}

/* ============================================
   TESTIMONIALS PAGE
   ============================================ */

.testimonials-full-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-3xl);
}

.testimonial-full {
  border-left: 3px solid var(--color-accent);
  padding-left: var(--space-xl);
  position: relative;
}

.testimonial-full::before {
  content: '';
  position: absolute;
  top: -8px;
  left: -8px;
  width: 30px;
  height: 30px;
  border-top: 2px solid rgba(44, 62, 80, 0.1);
  border-left: 2px solid rgba(44, 62, 80, 0.1);
}

.testimonial-context {
  display: flex;
  gap: var(--space-lg);
  margin-block-end: var(--space-lg);
  flex-wrap: wrap;
}

.testimonial-type {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  color: var(--color-secondary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.testimonial-duration {
  font-size: var(--text-sm);
  color: var(--color-text-light);
}

.testimonial-full p {
  font-size: var(--text-base);
  color: var(--color-text);
  line-height: 1.85;
  margin-block-end: var(--space-lg);
  font-style: italic;
}

.testimonial-full cite {
  font-style: normal;
  font-size: var(--text-sm);
  color: var(--color-text-light);
  font-weight: 600;
}

.section-testimonials-full {
  background-color: var(--color-surface);
  padding: 80px var(--space-xl);
}

/* ============================================
   CONTACT PAGE
   ============================================ */

.section-contact-main {
  background-color: var(--color-surface);
  padding: 80px var(--space-xl);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3xl);
}

/* Form — Minimal Underline */
.contact-form {
  max-width: 600px;
}

.form-group {
  margin-block-end: var(--space-xl);
}

.form-group label {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-text-light);
  margin-block-end: var(--space-sm);
  letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(44, 62, 80, 0.2);
  padding: var(--space-sm) 0;
  transition: border-color var(--transition-base);
  border-radius: 0;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-bottom-color: var(--color-accent);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group select {
  cursor: pointer;
}

.form-reassurance {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  margin-block-end: var(--space-xl);
  line-height: 1.7;
}

.form-reassurance a {
  color: var(--color-secondary);
}

/* Contact sidebar */
.contact-info-sidebar {
  padding: var(--space-2xl);
  border: 2px dashed var(--color-primary);
  position: relative;
  align-self: start;
}

.contact-info-sidebar::before {
  content: '';
  position: absolute;
  top: -8px;
  right: -8px;
  width: 40px;
  height: 40px;
  border-top: 2px solid var(--color-accent);
  border-right: 2px solid var(--color-accent);
  opacity: 0.4;
}

.contact-info-block {
  margin-block-end: var(--space-xl);
}

.contact-info-block:last-child {
  margin-block-end: 0;
}

.contact-info-block h3 {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-light);
  margin-block-end: var(--space-sm);
}

.contact-info-block p {
  font-size: var(--text-base);
  color: var(--color-text);
  line-height: 1.7;
}

.contact-info-block a {
  color: var(--color-text);
}

.contact-info-block a:hover {
  color: var(--color-secondary);
}

/* ============================================
   LEGAL PAGES
   ============================================ */

.section-legal {
  padding: clamp(8rem, 12vh, 12rem) var(--space-xl) var(--space-4xl);
  background-color: var(--color-surface);
}

.section-legal::after {
  display: none;
}

.legal-content {
  max-width: 750px;
  margin: 0 auto;
}

.legal-updated {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  margin-block-end: var(--space-2xl);
}

.legal-summary {
  background: var(--color-bg);
  padding: var(--space-2xl);
  margin-block-end: var(--space-3xl);
  border-left: 3px solid var(--color-secondary);
}

.legal-summary h2 {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  color: var(--color-primary);
  margin-block-end: var(--space-md);
}

.legal-summary p {
  line-height: 1.85;
  color: var(--color-text);
}

.legal-full section {
  margin-block-end: var(--space-2xl);
}

.legal-full h2 {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--color-primary);
  margin-block-end: var(--space-lg);
  padding-left: 1.2rem;
  border-left: 4px solid var(--color-accent);
}

.legal-full h3 {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  color: var(--color-primary);
  margin-block-end: var(--space-md);
  margin-block-start: var(--space-xl);
}

.legal-full p {
  line-height: 1.85;
  margin-block-end: var(--space-lg);
  color: var(--color-text);
}

.legal-full ul {
  padding-left: var(--space-xl);
  margin-block-end: var(--space-lg);
}

.legal-full li {
  margin-block-end: var(--space-md);
  position: relative;
  padding-left: var(--space-md);
  line-height: 1.85;
}

.legal-full li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--color-accent);
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  background: #f8f8f8;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding: var(--space-2xl);
}

.footer-inner {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  color: var(--color-primary);
  font-weight: 700;
  text-decoration: none;
}

.footer-logo:hover {
  color: var(--color-secondary);
}

.footer-desc {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  line-height: 1.6;
  max-width: 320px;
}

.footer-copy {
  font-size: var(--text-sm);
  color: var(--color-text-light);
}

.footer-right {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: flex-end;
}

.footer-links {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--color-text-light);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-secondary);
}

.footer-legal {
  display: flex;
  gap: var(--space-lg);
}

.footer-legal a {
  font-size: 0.8rem;
  color: var(--color-text-light);
}

.footer-legal a:hover {
  color: var(--color-accent);
}

.footer-contact-email {
  font-size: 0.8rem;
  color: var(--color-text-light);
}

/* ============================================
   COOKIE BANNER
   ============================================ */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-primary);
  color: var(--color-surface);
  z-index: 99999;
  padding: var(--space-lg) var(--space-xl);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
  display: none;
}

.cookie-banner.visible {
  display: block;
}

.cookie-inner {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.cookie-inner p {
  font-size: var(--text-sm);
  line-height: 1.6;
  max-width: 600px;
  flex: 1;
}

.cookie-buttons {
  display: flex;
  gap: var(--space-md);
}

.btn-cookie-accept {
  background: var(--color-surface);
  color: var(--color-primary);
  padding: var(--space-sm) var(--space-xl);
  font-weight: 700;
  font-size: var(--text-sm);
  border: none;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.btn-cookie-accept:hover {
  background: var(--color-accent);
  color: var(--color-surface);
}

.btn-cookie-decline {
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: var(--space-sm) var(--space-xl);
  font-size: var(--text-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-cookie-decline:hover {
  border-color: var(--color-surface);
  color: var(--color-surface);
}

/* ============================================
   BACK TO TOP
   ============================================ */

.back-to-top {
  position: fixed;
  bottom: var(--space-2xl);
  right: var(--space-xl);
  width: 44px;
  height: 44px;
  background: var(--color-primary);
  color: var(--color-surface);
  border: none;
  cursor: pointer;
  font-size: var(--text-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base), background var(--transition-fast);
  z-index: 9990;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: all;
}

.back-to-top:hover {
  background: var(--color-secondary);
}

/* ============================================
   STAGGER ANIMATION
   ============================================ */

.stagger-child {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.stagger-container.revealed .stagger-child:nth-child(1) { transition-delay: 0s; }
.stagger-container.revealed .stagger-child:nth-child(2) { transition-delay: 0.08s; }
.stagger-container.revealed .stagger-child:nth-child(3) { transition-delay: 0.16s; }
.stagger-container.revealed .stagger-child:nth-child(4) { transition-delay: 0.24s; }
.stagger-container.revealed .stagger-child:nth-child(5) { transition-delay: 0.32s; }
.stagger-container.revealed .stagger-child:nth-child(6) { transition-delay: 0.4s; }
.stagger-container.revealed .stagger-child:nth-child(7) { transition-delay: 0.48s; }
.stagger-container.revealed .stagger-child:nth-child(8) { transition-delay: 0.56s; }

.stagger-container.revealed .stagger-child {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE — 640px
   ============================================ */

@media (min-width: 640px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .values-grid {
    grid-template-columns: 1fr 1fr;
  }

  .process-steps {
    grid-template-columns: 1fr 1fr;
  }

  .contact-layout {
    grid-template-columns: 1.5fr 1fr;
  }

  .contact-teaser-layout {
    grid-template-columns: 1.5fr 1fr;
    align-items: start;
  }
}

/* ============================================
   RESPONSIVE — 1024px
   ============================================ */

@media (min-width: 1024px) {
  .hero-text {
    padding-top: 15vh;
  }

  .why-layout {
    grid-template-columns: 1fr 1fr;
  }

  .why-cards {
    grid-template-columns: 1fr;
  }

  .service-detail-layout {
    grid-template-columns: 2fr 1fr;
    gap: var(--space-3xl);
  }

  .service-detail-layout.reverse {
    grid-template-columns: 1fr 2fr;
  }

  .service-detail-layout.reverse .service-detail-text {
    order: 2;
  }

  .service-detail-layout.reverse .service-detail-image {
    order: 1;
  }

  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================
   RESPONSIVE — 1280px
   ============================================ */

@media (min-width: 1280px) {
  .hero-text {
    max-width: 50%;
    padding-top: 20vh;
  }

  .section-inner {
    max-width: var(--max-width);
  }

  .process-steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ============================================
   MOBILE OVERRIDES — Below 640px
   ============================================ */

@media (max-width: 639px) {
  .hero {
    min-height: 70vh;
    clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
    padding: 7rem var(--space-lg) 6rem;
  }

  .hero-text {
    margin-left: 0;
    max-width: 100%;
    padding-top: 2rem;
  }

  .hero-vertical-text {
    display: none;
  }

  .page-hero {
    clip-path: polygon(0 0, 100% 0, 100% 94%, 0 100%);
    padding: 7rem var(--space-lg) 4rem;
  }

  .hero-quote p {
    font-size: var(--text-xl);
  }

  .motif-rect {
    display: none;
  }

  .section {
    padding: 40px var(--space-lg) 60px;
  }

  .section::after {
    bottom: -30px;
    height: 60px;
  }

  .section + .section {
    margin-top: -30px;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-left {
    align-items: center;
  }

  .footer-right {
    text-align: center;
    align-items: center;
  }

  .footer-links {
    justify-content: center;
  }

  .footer-legal {
    justify-content: center;
  }

  .cookie-inner {
    flex-direction: column;
    text-align: center;
  }

  .cookie-buttons {
    justify-content: center;
  }

  .nav-links a {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
  }

  .service-detail-layout.reverse .service-detail-text {
    order: 0;
  }

  .service-detail-layout.reverse .service-detail-image {
    order: 0;
  }
}

/* ============================================
   REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .stagger-child {
    opacity: 1;
    transform: none;
  }
}

/* ============================================
   SECTION ALT BACKGROUNDS
   ============================================ */

.section-who {
  background-color: var(--color-surface);
}

.section-story {
  background-color: var(--color-bg);
  background-image: radial-gradient(circle, rgba(44, 62, 80, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
}

.section-story::after {
  background-color: var(--color-bg);
}

.section-process {
  background-color: var(--color-surface);
}

.section-team {
  background-color: var(--color-bg);
}

.section-team::after {
  background-color: var(--color-bg);
}

.section-values {
  background-color: var(--color-surface);
}

.section-values::after {
  display: none;
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
  .site-header,
  .nav-overlay,
  .cookie-banner,
  .back-to-top {
    display: none !important;
  }

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }
}