/* ================================================================
   AILINE ANGELES MARTINEZ — design system
   Dark-first · OKLCH colors · Syne + Instrument Sans + Cormorant
   ================================================================ */

/* ── 1. GOOGLE FONTS ─────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400..800&family=Instrument+Sans:ital,wght@0,300..600;1,300..600&family=Cormorant+Garamond:ital,wght@1,300;1,400&display=swap');

/* ── 2. TOKENS ────────────────────────────────────────────────────── */
:root {
  /* Hero gradient */
  --hero-gradient:
    linear-gradient(to right, var(--bg) 0%, oklch(9% 0.012 220 / 0.65) 55%, transparent 100%),
    linear-gradient(to top, var(--bg) 0%, oklch(9% 0.012 220 / 0.3) 25%, transparent 60%);

  /* Surfaces */
  --bg:               oklch(9%   0.012 220);
  --surface:          oklch(13%  0.013 215);
  --surface-raised:   oklch(17.5% 0.014 215);
  --surface-high:     oklch(22%  0.015 215);
  --border:           oklch(28%  0.016 215);
  --border-subtle:    oklch(22%  0.013 215);

  /* Teal — primary brand */
  --teal:             oklch(76%  0.148 195);
  --teal-hover:       oklch(70%  0.135 195);
  --teal-muted:       oklch(60%  0.110 195);
  --teal-dim:         oklch(40%  0.090 195);
  --teal-glow:        oklch(76%  0.148 195 / 0.15);
  --teal-glow-strong: oklch(76%  0.148 195 / 0.30);

  /* Purple — creative / projects */
  --purple:           oklch(68%  0.180 285);
  --purple-hover:     oklch(62%  0.160 285);
  --purple-dim:       oklch(45%  0.120 285);
  --purple-glow:      oklch(68%  0.180 285 / 0.15);

  /* Yellow — energy / warmth */
  --yellow:           oklch(83%  0.170  85);
  --yellow-hover:     oklch(76%  0.150  85);
  --yellow-dim:       oklch(55%  0.100  85);
  --yellow-glow:      oklch(83%  0.170  85 / 0.15);

  /* Text */
  --text:             oklch(94%  0.008 215);
  --text-2:           oklch(72%  0.010 215);
  --text-3:           oklch(52%  0.010 215);
  --text-inverse:     oklch(12%  0.012 215);

  /* Semantic */
  --success:  oklch(70% 0.150 145);
  --warning:  oklch(80% 0.160  85);
  --error:    oklch(62% 0.190  25);

  /* Fonts */
  --font-display:   'Syne', system-ui, sans-serif;
  --font-body:      'Instrument Sans', system-ui, sans-serif;
  --font-editorial: 'Cormorant Garamond', Georgia, serif;

  /* Fluid type scale */
  --text-xs:   clamp(0.72rem,  0.68rem + 0.20vw, 0.800rem);
  --text-sm:   clamp(0.85rem,  0.82rem + 0.15vw, 0.9375rem);
  --text-base: clamp(1.000rem, 0.96rem + 0.20vw, 1.125rem);
  --text-md:   clamp(1.125rem, 1.05rem + 0.35vw, 1.375rem);
  --text-lg:   clamp(1.375rem, 1.20rem + 0.85vw, 1.875rem);
  --text-xl:   clamp(1.750rem, 1.40rem + 1.75vw, 2.750rem);
  --text-2xl:  clamp(2.250rem, 1.60rem + 3.25vw, 4.500rem);
  --text-3xl:  clamp(3.000rem, 1.80rem + 6.00vw, 7.500rem);

  /* Spacing (4pt base) */
  --sp-1: 4px;   --sp-2: 8px;   --sp-3: 12px;  --sp-4: 16px;
  --sp-5: 24px;  --sp-6: 32px;  --sp-7: 48px;  --sp-8: 64px;
  --sp-9: 96px;  --sp-10: 128px; --sp-11: 192px;

  /* Layout */
  --max-w:        1280px;
  --max-w-narrow: 760px;
  --max-w-text:   65ch;
  --gutter:       clamp(20px, 5vw, 80px);
  --nav-h:        64px;

  /* Easing */
  --ease-out-expo:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-in-quart:  cubic-bezier(0.5, 0, 0.75, 0);
  --ease-in-out:    cubic-bezier(0.45, 0, 0.55, 1);

  /* Duration */
  --dur-fast:   100ms;
  --dur-base:   200ms;
  --dur-slow:   350ms;
  --dur-slower: 500ms;

  /* Elevation */
  --shadow-sm: 0 1px 3px oklch(0% 0 0 / 0.35), 0 1px 2px oklch(0% 0 0 / 0.20);
  --shadow-md: 0 4px 12px oklch(0% 0 0 / 0.40), 0 2px 6px oklch(0% 0 0 / 0.25);
  --shadow-lg: 0 12px 32px oklch(0% 0 0 / 0.50), 0 4px 12px oklch(0% 0 0 / 0.30);
  --shadow-teal: 0 4px 24px var(--teal-glow), 0 2px 8px var(--teal-glow);
  --shadow-teal-strong: 0 8px 40px var(--teal-glow-strong);

  /* Radius */
  --r-sm:   4px;
  --r-md:   8px;
  --r-lg:   16px;
  --r-xl:   24px;
  --r-full: 9999px;
}

/* ── 3. RESET ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  color-scheme: dark;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
p { text-wrap: pretty; }
p:not([class]) { max-width: var(--max-w-text); }

/* ── 4. TYPOGRAPHY ────────────────────────────────────────────────── */
.t-display {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
}
.t-h1 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.025em;
}
.t-h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.t-h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.t-h4 {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.t-body-lg  { font-size: var(--text-md);   line-height: 1.75; }
.t-body     { font-size: var(--text-base); line-height: 1.70; }
.t-body-sm  { font-size: var(--text-sm);   line-height: 1.65; }
.t-caption  { font-size: var(--text-xs);   line-height: 1.50; color: var(--text-3); }
.t-editorial {
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 300;
  font-size: var(--text-lg);
  line-height: 1.50;
}
.t-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* ── 5. LAYOUT ────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.container--narrow {
  max-width: var(--max-w-narrow);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.section         { padding-block: clamp(52px, 6vw, 80px); }
.section--sm     { padding-block: clamp(32px, 4vw, 52px); }
.section--lg     { padding-block: clamp(64px, 8vw, 104px); }
.section--first  { padding-top: calc(var(--nav-h) + var(--sp-7)); }

/* Tighter top padding on sections directly after a hero/page-header */
.hero + section,
.hero + main > section:first-child,
header.page-header + section {
  padding-top: clamp(40px, 5vw, 64px);
}

/* Grid */
.grid-2  { display: grid; grid-template-columns: repeat(2, 1fr);          gap: var(--sp-6); }
.grid-3  { display: grid; grid-template-columns: repeat(3, 1fr);          gap: var(--sp-6); }
.grid-4  { display: grid; grid-template-columns: repeat(4, 1fr);          gap: var(--sp-5); }
.grid-auto-fit { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--sp-6); }

/* Flex */
.flex         { display: flex; }
.flex-col     { display: flex; flex-direction: column; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.items-start  { align-items: flex-start; }
.items-center { align-items: center; }
.gap-sm  { gap: var(--sp-3); }
.gap-md  { gap: var(--sp-5); }
.gap-lg  { gap: var(--sp-7); }
.gap-xl  { gap: var(--sp-9); }

/* ── 6. NAV ───────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition:
    background-color var(--dur-slow) var(--ease-out-quart),
    border-color      var(--dur-slow) var(--ease-out-quart),
    backdrop-filter   var(--dur-slow) var(--ease-out-quart);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background-color: oklch(9% 0.012 220 / 0.88);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-color: var(--border-subtle);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  color: var(--text);
  transition: opacity var(--dur-base);
}
.nav__logo:hover { opacity: 0.75; }
.nav__logo-mark {
  width: 32px;
  height: 32px;
  border-radius: var(--r-sm);
  background: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--text-inverse);
  flex-shrink: 0;
  letter-spacing: -0.04em;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  min-width: 0;
  flex: 1 1 auto;
  justify-content: center;
}
.nav__actions {
  display: inline-flex;
  align-items: center;
  gap: 30px;
  flex-shrink: 0;
}
.nav__lang {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.nav__link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-2);
  position: relative;
  transition: color var(--dur-base);
  padding-bottom: 2px;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--teal);
  transition: width var(--dur-slow) var(--ease-out-quart);
}
.nav__link:hover,
.nav__link[aria-current="page"] { color: var(--text); }
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { width: 100%; }

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 9px 20px;
  background: var(--teal);
  color: var(--text-inverse);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--r-full);
  transition:
    background-color var(--dur-base),
    transform        var(--dur-base) var(--ease-out-quart),
    box-shadow       var(--dur-base);
}
.lang-toggle,
.footer-lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-full);
  background: oklch(13% 0.013 215 / 0.82);
}
.lang-sep {
  color: var(--text-3);
  font-size: var(--text-xs);
}
.lang-btn,
.footer-lang-btn {
  min-width: 74px;
  padding: 7px 11px;
  border: 0;
  border-radius: var(--r-full);
  background: transparent;
  color: var(--text-2);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition:
    background-color var(--dur-base),
    color var(--dur-base),
    box-shadow var(--dur-base),
    transform var(--dur-base) var(--ease-out-quart);
}
.lang-flag {
  font-size: 0.95rem;
  line-height: 1;
}
.lang-label {
  line-height: 1;
}
.lang-btn:hover,
.footer-lang-btn:hover {
  color: var(--text);
}
.lang-btn.active,
.footer-lang-btn.active {
  background: var(--teal);
  color: var(--text-inverse);
  box-shadow: var(--shadow-teal);
}
.lang-btn:focus-visible,
.footer-lang-btn:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}
.nav__cta:hover {
  background: var(--teal-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-teal);
}
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: var(--sp-2);
  background: none;
  border: none;
  z-index: 102;
}
.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-2);
  border-radius: 1px;
  transition: transform var(--dur-slow) var(--ease-out-quart), opacity var(--dur-base), background-color var(--dur-base);
}
.nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); background: var(--text); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: var(--text); }

/* Mobile drawer */
.nav__mobile {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 101;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-5);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-slow) var(--ease-out-quart);
}
.nav__mobile.open {
  opacity: 1;
  pointer-events: all;
}
.nav__mobile-link {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-2);
  transition: color var(--dur-base);
}
.nav__mobile-link:hover { color: var(--teal); }
.nav__mobile-cta {
  margin-top: var(--sp-4);
}

@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__hamburger { display: flex; }
  .nav__actions {
    margin-left: auto;
    gap: 14px;
  }
  .lang-toggle { padding: 3px; }
  .lang-btn {
    min-width: 64px;
    padding: 6px 10px;
    gap: 6px;
  }
  .lang-label {
    font-size: 0.72rem;
  }
}

/* Nav dropdown */
.nav__has-dropdown { position: relative; }
.nav__dropdown {
  position: absolute;
  top: 100%;           /* flush to the link — no gap so hover path stays connected */
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 10px 0 var(--sp-2);  /* top padding bridges the visual gap inside the element */
  min-width: 210px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-base), transform var(--dur-base) var(--ease-out-quart);
  z-index: 200;
  box-shadow: 0 8px 32px oklch(0% 0 0 / 0.45);
  list-style: none;
  white-space: nowrap;
}
.nav__has-dropdown:hover .nav__dropdown,
.nav__has-dropdown:focus-within .nav__dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}
.nav__dropdown-link {
  display: block;
  padding: 10px 20px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-2);
  transition: color var(--dur-base), background-color var(--dur-base);
}
.nav__dropdown-link:hover { color: var(--teal); background: oklch(76% 0.148 195 / 0.06); }
.nav__chevron {
  font-size: 0.65em;
  opacity: 0.55;
  display: inline-block;
  transition: transform var(--dur-base);
  margin-left: 3px;
}
.nav__has-dropdown:hover .nav__chevron { transform: rotate(180deg); }

/* Mobile sub-nav */
.nav__mobile-sub {
  list-style: none;
  padding: var(--sp-2) 0 var(--sp-3) var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}
.nav__mobile-sub-link {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--text-3);
  transition: color var(--dur-base);
}
.nav__mobile-sub-link:hover { color: var(--teal); }

/* ── 7. HERO ──────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center right 15%;
  background-repeat: no-repeat;
}
/* Cinematic gradient mask: dark left for text, fades right to reveal image */
.hero__mask {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, var(--bg) 0%, var(--bg) 28%, oklch(9% 0.012 220 / 0.82) 50%, oklch(9% 0.012 220 / 0.30) 75%, transparent 100%),
    linear-gradient(to top,   var(--bg) 0%, oklch(9% 0.012 220 / 0.60) 20%, transparent 55%);
}
.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-inline: var(--gutter);
  padding-bottom: clamp(56px, 7vw, 96px);
  padding-top: calc(var(--nav-h) + 80px);
}
.hero__content-inner {
  max-width: 600px;
}
/* Decorative teal glow orb behind text */
.hero__content::before {
  content: '';
  position: absolute;
  left: calc(var(--gutter) - 60px);
  bottom: 80px;
  width: 500px;
  height: 500px;
  background: radial-gradient(ellipse, oklch(76% 0.148 195 / 0.12) 0%, transparent 65%);
  pointer-events: none;
  z-index: -1;
}
/* Eyebrow line decoration */
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-6);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-2);
}
.hero__eyebrow-line {
  width: 32px;
  height: 1px;
  background: var(--teal);
}
.hero__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 8px var(--teal);
  animation: pulse-dot 2.5s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.7); }
}
.hero__title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.04em;
  margin-bottom: var(--sp-6);
}
.hero__title-accent {
  color: var(--teal);
  display: block;
  text-shadow: 0 0 60px oklch(76% 0.148 195 / 0.35);
}
.hero__sub {
  font-size: var(--text-md);
  line-height: 1.65;
  color: var(--text-2);
  max-width: 44ch;
  margin-bottom: var(--sp-8);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  align-items: center;
}
/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: var(--sp-7);
  left: var(--gutter);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  color: var(--text-3);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  z-index: 3;
}
.hero__scroll-bar {
  width: 32px;
  height: 1px;
  background: var(--text-3);
  transform-origin: left;
  animation: scroll-bar 2s var(--ease-out-expo) infinite;
}
@keyframes scroll-bar {
  0%   { transform: scaleX(0); opacity: 0; }
  30%  { opacity: 1; }
  80%  { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(1); opacity: 0; }
}

@media (max-width: 768px) {
  .hero__mask {
    background:
      linear-gradient(to top, var(--bg) 0%, oklch(9% 0.012 220 / 0.85) 40%, oklch(9% 0.012 220 / 0.55) 75%, oklch(9% 0.012 220 / 0.40) 100%);
  }
  .hero__content { padding-bottom: 80px; padding-top: calc(var(--nav-h) + 50px); }
  .hero__content-inner { max-width: 100%; }
}

/* ── 8. BUTTONS ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 13px 26px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--r-full);
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background-color var(--dur-base),
    color            var(--dur-base),
    border-color     var(--dur-base),
    transform        var(--dur-base) var(--ease-out-quart),
    box-shadow       var(--dur-base);
  letter-spacing: 0.01em;
  white-space: nowrap;
  line-height: 1;
}
.btn:active { transform: translateY(1px) !important; }

.btn--primary {
  background: var(--teal);
  color: var(--text-inverse);
}
.btn--primary:hover {
  background: var(--teal-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-teal-strong);
}
.btn--secondary {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal);
}
.btn--secondary:hover {
  background: var(--teal-glow);
  transform: translateY(-2px);
}
.btn--ghost {
  background: transparent;
  color: var(--text-2);
  border-color: var(--border);
}
.btn--ghost:hover {
  color: var(--text);
  border-color: var(--teal);
  background: var(--teal-glow);
}
.btn--purple {
  background: var(--purple);
  color: var(--text);
}
.btn--purple:hover {
  background: var(--purple-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--purple-glow);
}
.btn--yellow {
  background: var(--yellow);
  color: var(--text-inverse);
}
.btn--yellow:hover {
  background: var(--yellow-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--yellow-glow);
}
.btn--sm  { padding: 8px 18px;  font-size: var(--text-xs); }
.btn--lg  { padding: 17px 38px; font-size: var(--text-base); }
.btn--xl  { padding: 20px 48px; font-size: var(--text-md); }
.btn--icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--r-md);
}

/* ── 9. SECTION HEADER ────────────────────────────────────────────── */
.sh { margin-bottom: var(--sp-7); }
.sh--center {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: var(--sp-7);
}
.sh__eye {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}
.sh__eye-bar {
  width: 28px;
  height: 2px;
  background: linear-gradient(to right, var(--teal), var(--purple));
  border-radius: 1px;
}
.sh__title { margin-bottom: var(--sp-4); }
.sh__lead {
  font-size: var(--text-md);
  color: var(--text-2);
  line-height: 1.7;
  max-width: 52ch;
}
.sh--center .sh__lead { max-width: none; }

/* ── 10. SERVICE LIST ─────────────────────────────────────────────── */
.svc-list { border-top: 1px solid var(--border); }
.svc-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
  padding-block: var(--sp-7);
  border-bottom: 1px solid var(--border);
  color: inherit;
  transition:
    padding-left var(--dur-slow) var(--ease-out-quart),
    background-color var(--dur-slow);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.svc-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--teal);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform var(--dur-slow) var(--ease-out-expo);
}
.svc-item:hover::before { transform: scaleY(1); }
.svc-item:hover { padding-left: var(--sp-5); background-color: oklch(13% 0.013 215 / 0.5); }
.svc-item__left { display: flex; gap: var(--sp-5); align-items: flex-start; flex: 1; }
.svc-item__num {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-3);
  letter-spacing: 0.08em;
  min-width: 28px;
  padding-top: 3px;
  transition: color var(--dur-base);
  flex-shrink: 0;
}
.svc-item:hover .svc-item__num { color: var(--teal); }
.svc-item__name {
  font-size: var(--text-lg);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: var(--sp-3);
}
.svc-item__desc {
  font-size: var(--text-sm);
  color: var(--text-2);
  line-height: 1.65;
  max-width: 60ch;
}
.svc-item__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-3);
}
.svc-item__arrow {
  color: var(--text-3);
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform var(--dur-slow) var(--ease-out-quart),
    color var(--dur-base),
    background-color var(--dur-base),
    border-color var(--dur-base);
}
.svc-item:hover .svc-item__arrow {
  transform: translateX(4px);
  color: var(--teal);
  background: var(--teal-glow);
  border-color: var(--teal-dim);
}

/* ── 11. TAGS / CHIPS ─────────────────────────────────────────────── */
.chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: filter var(--dur-base), transform var(--dur-base);
}
.chip:hover { filter: brightness(1.12); transform: translateY(-1px); }
.chip--teal    { background: var(--teal-glow);   color: var(--teal);   border: 1px solid var(--teal-dim); }
.chip--purple  { background: var(--purple-glow); color: var(--purple); border: 1px solid var(--purple-dim); }
.chip--yellow  { background: var(--yellow-glow); color: var(--yellow); border: 1px solid var(--yellow-dim); }
.chip--neutral { background: var(--surface-raised); color: var(--text-2); border: 1px solid var(--border-subtle); }

/* ── 12. PROJECT CARDS ────────────────────────────────────────────── */
.proj-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition:
    border-color var(--dur-slow) var(--ease-out-quart),
    transform    var(--dur-slow) var(--ease-out-quart),
    box-shadow   var(--dur-slow);
}
.proj-card:hover {
  border-color: var(--teal-dim);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg), 0 12px 60px var(--teal-glow-strong);
}
.proj-card__img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--surface-raised);
  position: relative;
}
.proj-card__img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--surface) 0%, transparent 40%);
}
.proj-card__img img,
.proj-card__img > div { width: 100%; height: 100%; }
.proj-card__img-bg {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform var(--dur-slower) var(--ease-out-quart);
}
.proj-card:hover .proj-card__img-bg { transform: scale(1.05); }
.proj-card__body {
  padding: var(--sp-7) var(--sp-7) var(--sp-6);
  flex: 1;
  display: flex;
  flex-direction: column;
}
.proj-card__status {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
}
.proj-card__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.proj-card__dot--live   { background: var(--teal);   animation: pulse-dot 2.5s ease-in-out infinite; }
.proj-card__dot--build  { background: var(--yellow); }
.proj-card__dot--partner { background: var(--purple); }
.proj-card__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--sp-4);
  line-height: 1.1;
}
.proj-card__desc {
  font-size: var(--text-sm);
  color: var(--text-2);
  line-height: 1.7;
  flex: 1;
  margin-bottom: var(--sp-6);
}
.proj-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border-subtle);
}

/* ── 13. TESTIMONIALS ─────────────────────────────────────────────── */
.testi {
  position: relative;
  padding: var(--sp-8) var(--sp-7) var(--sp-6);
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: border-color var(--dur-slow), transform var(--dur-slow) var(--ease-out-quart), box-shadow var(--dur-slow);
}
.testi:hover {
  border-color: var(--teal-dim);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md), 0 4px 30px var(--teal-glow);
}
/* Gradient top accent bar */
.testi::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, var(--teal), var(--purple));
  opacity: 0;
  transition: opacity var(--dur-slow);
}
.testi:hover::after { opacity: 1; }
.testi::before {
  content: '\201C';
  position: absolute;
  top: 12px;
  left: 28px;
  font-family: var(--font-editorial);
  font-size: 6rem;
  line-height: 1;
  color: var(--teal-dim);
  pointer-events: none;
}
.testi__text {
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 300;
  font-size: var(--text-md);
  line-height: 1.6;
  color: var(--text);
  margin-bottom: var(--sp-6);
  position: relative;
}
.testi__author {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}
.testi__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface-raised);
  border: 2px solid var(--teal-dim);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--teal);
}
.testi__avatar img { width: 100%; height: 100%; object-fit: cover; }
.testi__name {
  font-weight: 600;
  font-size: var(--text-sm);
  line-height: 1.3;
}
.testi__role { font-size: var(--text-xs); color: var(--text-3); }

/* ── 14. SPARKS (BLOG) CARDS ─────────────────────────────────────── */
.spark-row {
  border-top: 1px solid var(--border-subtle);
}
.spark-item {
  display: flex;
  gap: var(--sp-6);
  align-items: flex-start;
  padding: var(--sp-6) 0;
  border-bottom: 1px solid var(--border-subtle);
  text-decoration: none;
  color: inherit;
  transition: padding-left var(--dur-slow) var(--ease-out-quart);
}
.spark-item:hover { padding-left: var(--sp-3); }
.spark-item:hover .spark-item__title { color: var(--teal); }
.spark-item__meta {
  flex-shrink: 0;
  width: 100px;
  padding-top: 4px;
}
.spark-item__type {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: var(--sp-1);
}
.spark-item__date { font-size: var(--text-xs); color: var(--text-3); }
.spark-item__title {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: var(--sp-2);
  transition: color var(--dur-base);
}
.spark-item__excerpt {
  font-size: var(--text-sm);
  color: var(--text-2);
  line-height: 1.65;
  max-width: 60ch;
}

.spark-item--featured {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  border: 1px solid var(--border-subtle);
}
.spark-item--featured .spark-item__title { font-size: var(--text-lg); }

@media (max-width: 640px) {
  .spark-item { flex-direction: column; gap: var(--sp-2); }
  .spark-item__meta { width: auto; }
}

/* ── 15. STORE ITEMS ──────────────────────────────────────────────── */
.store-item {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  text-decoration: none;
  color: inherit;
  transition:
    border-color var(--dur-slow) var(--ease-out-quart),
    transform    var(--dur-slow) var(--ease-out-quart),
    box-shadow   var(--dur-slow);
}
.store-item:hover {
  border-color: oklch(40% 0.090 195 / 0.6);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md), 0 0 32px var(--teal-glow-strong);
}
.store-item__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  background: var(--teal-glow);
  border: 1px solid var(--teal-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.store-item__title {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 700;
  line-height: 1.2;
}
.store-item__desc {
  font-size: var(--text-sm);
  color: var(--text-2);
  line-height: 1.65;
  flex: 1;
}
.store-item__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border-subtle);
  gap: var(--sp-3);
}
.store-item__price {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--teal);
}
.store-item__price--mxn::after { content: ' MXN'; font-size: 0.7em; font-weight: 500; color: var(--text-3); }
.store-item__price--free  { color: var(--purple); }
.store-item__price--soon  { color: var(--text-3); font-size: var(--text-sm); font-family: var(--font-body); font-weight: 400; }

/* ── 16. TIMELINE ─────────────────────────────────────────────────── */
.timeline {
  position: relative;
  padding-left: var(--sp-8);
}
.timeline::before {
  content: '';
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 16px;
  width: 1px;
  background: var(--border-subtle);
}
.tl-item {
  position: relative;
  padding-bottom: var(--sp-7);
  transition: opacity var(--dur-base);
}
.tl-item.hidden { display: none; }
.tl-item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--sp-8) + 13px);
  top: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg);
  transition: border-color var(--dur-base), background-color var(--dur-base);
  z-index: 1;
}
.tl-item:hover::before { border-color: var(--teal); background: var(--teal); }
.tl-item__icon {
  position: absolute;
  left: calc(-1 * var(--sp-8) + 8px);
  top: 2px;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  z-index: 2;
}
.tl-item__year {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--teal);
  text-transform: uppercase;
  margin-bottom: var(--sp-1);
}
.tl-item__title {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 700;
  margin-bottom: var(--sp-2);
  line-height: 1.25;
}
.tl-item__org {
  font-size: var(--text-sm);
  color: var(--teal-muted);
  margin-bottom: var(--sp-2);
}
.tl-item__desc {
  font-size: var(--text-sm);
  color: var(--text-2);
  line-height: 1.65;
  max-width: 52ch;
}

/* Timeline filter */
.tl-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-7);
}
.tl-filter {
  padding: 6px 16px;
  border-radius: var(--r-full);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-2);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color var(--dur-base), color var(--dur-base), border-color var(--dur-base);
}
.tl-filter:hover  { border-color: var(--teal); color: var(--teal); background: var(--teal-glow); }
.tl-filter.active { background: var(--teal); color: var(--text-inverse); border-color: var(--teal); }

/* ── 17. FORMS ────────────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: var(--sp-2); }
.form-label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-2);
}
.form-label--req::after { content: ' *'; color: var(--teal); }
.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text);
  font-size: var(--text-base);
  font-family: var(--font-body);
  outline: none;
  transition: border-color var(--dur-base), box-shadow var(--dur-base);
}
.form-input:hover,
.form-textarea:hover { border-color: var(--border); }
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-glow);
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-3); }
.form-textarea { resize: vertical; min-height: 120px; }
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='%2352657a' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
}
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); }
.form-hint  { font-size: var(--text-xs); color: var(--text-3); }
.form-error { font-size: var(--text-xs); color: var(--error); }

@media (max-width: 600px) {
  .form-grid-2 { grid-template-columns: 1fr; }
}

/* ── 18. NEWSLETTER BAND ──────────────────────────────────────────── */
.nl-band {
  background: linear-gradient(135deg, var(--surface) 0%, oklch(15% 0.020 220) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-xl);
  padding: clamp(40px, 5vw, 64px) clamp(32px, 5vw, 64px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.nl-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.05;
  pointer-events: none;
}
.nl-band__glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 400px;
  background: radial-gradient(ellipse, oklch(76% 0.148 195 / 0.18) 0%, transparent 70%);
  pointer-events: none;
}
.nl-form {
  display: flex;
  gap: var(--sp-3);
  max-width: 480px;
  margin: var(--sp-6) auto 0;
}
.nl-form input {
  flex: 1;
  padding: 14px 20px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  color: var(--text);
  font-size: var(--text-sm);
  outline: none;
  transition: border-color var(--dur-base), box-shadow var(--dur-base);
  font-family: var(--font-body);
}
.nl-form input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-glow);
}
.nl-form input::placeholder { color: var(--text-3); }
.nl-form .form-input { flex: 1; }
@media (max-width: 580px) { .nl-form { flex-direction: column; } }

/* ── 19. CTA SECTION ──────────────────────────────────────────────── */
.cta-sect {
  text-align: center;
  padding: clamp(80px, 10vw, 140px) var(--gutter);
  position: relative;
  overflow: hidden;
}
/* Dark image bg with overlay */
.cta-sect--img {
  background-size: cover;
  background-position: center;
}
.cta-sect--img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: oklch(9% 0.012 220 / 0.88);
}
.cta-sect__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 50% 50%, oklch(76% 0.148 195 / 0.12) 0%, transparent 65%),
    radial-gradient(ellipse 40% 50% at 80% 20%, oklch(68% 0.180 285 / 0.08) 0%, transparent 60%);
  pointer-events: none;
}
.cta-sect__title {
  position: relative;
  margin-bottom: var(--sp-5);
  font-size: var(--text-2xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.cta-sect__sub {
  font-size: var(--text-md);
  color: var(--text-2);
  margin-bottom: var(--sp-8);
  max-width: 48ch;
  margin-inline: auto;
  position: relative;
  line-height: 1.7;
}
.cta-sect__actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  justify-content: center;
}

/* ── 20. FOOTER ───────────────────────────────────────────────────── */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border-subtle);
  padding-block: clamp(64px, 8vw, 96px);
  position: relative;
  overflow: hidden;
}
/* Subtle purple accent glow */
.footer::before {
  content: '';
  position: absolute;
  bottom: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(ellipse, oklch(68% 0.180 285 / 0.06) 0%, transparent 65%);
  pointer-events: none;
}
.footer__inner {
  display: grid;
  grid-template-columns: 2.5fr 1fr 1fr 1fr;
  gap: var(--sp-9);
  margin-bottom: var(--sp-9);
  position: relative;
}
.footer__brand {}
.footer__name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: var(--sp-3);
  background: linear-gradient(135deg, var(--teal) 0%, var(--text) 60%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.footer__tagline {
  font-size: var(--text-sm);
  color: var(--text-2);
  line-height: 1.65;
  max-width: 28ch;
  margin-bottom: var(--sp-6);
}
.footer__social {
  display: flex;
  gap: var(--sp-3);
}
.footer__soc-link {
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  background: var(--surface-raised);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  font-size: var(--text-xs);
  font-weight: 700;
  transition: background-color var(--dur-base), color var(--dur-base), border-color var(--dur-base), transform var(--dur-base);
}
.footer__soc-link:hover {
  background: var(--teal-glow);
  color: var(--teal);
  border-color: var(--teal-dim);
  transform: translateY(-2px);
}
.footer__col-title {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: var(--sp-4);
}
.footer__nav-list { display: flex; flex-direction: column; gap: var(--sp-3); }
.footer__nav-link {
  font-size: var(--text-sm);
  color: var(--text-2);
  transition: color var(--dur-base);
}
.footer__nav-link:hover { color: var(--teal); }
.footer__bottom {
  padding-top: var(--sp-6);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-4);
}
.footer__copy { font-size: var(--text-xs); color: var(--text-3); }
.footer__legal-links { display: flex; gap: var(--sp-5); }
.footer__legal-link {
  font-size: var(--text-xs);
  color: var(--text-3);
  transition: color var(--dur-base);
}
.footer__legal-link:hover { color: var(--text-2); }

@media (max-width: 1024px) {
  .footer__inner { grid-template-columns: 1fr 1fr; gap: var(--sp-7); }
}
@media (max-width: 600px) {
  .footer__inner { grid-template-columns: 1fr; gap: var(--sp-6); }
  .footer__legal-links { flex-wrap: wrap; gap: var(--sp-4); }
  .footer-lang-toggle {
    width: 100%;
    justify-content: center;
  }
}

html[data-site-lang="es"] .nav__links {
  gap: var(--sp-5);
}
html[data-site-lang="es"] .nav__link,
html[data-site-lang="es"] .nav__cta {
  font-size: var(--text-xs);
}
html[data-site-lang="es"] .hero__title {
  font-size: clamp(2.7rem, 1.7rem + 5vw, 6rem);
  line-height: 0.98;
}
html[data-site-lang="es"] .page-header__title,
html[data-site-lang="es"] .sh__title {
  line-height: 1.04;
}
html[data-site-lang="es"] .hero__sub,
html[data-site-lang="es"] .page-header__lead,
html[data-site-lang="es"] .sh__lead {
  max-width: 58ch;
}
html[data-site-lang="es"] .svc-item__name {
  font-size: clamp(1.2rem, 1rem + 0.8vw, 1.6rem);
}
html[data-site-lang="es"] .svc-item__desc,
html[data-site-lang="es"] .proj-card__desc,
html[data-site-lang="es"] .footer__tagline {
  overflow-wrap: anywhere;
}

/* ── 21. SCROLL REVEAL ────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity   var(--dur-slower) var(--ease-out-expo),
    transform var(--dur-slower) var(--ease-out-expo);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay:  80ms; }
.reveal-d2 { transition-delay: 160ms; }
.reveal-d3 { transition-delay: 240ms; }
.reveal-d4 { transition-delay: 320ms; }
.reveal-d5 { transition-delay: 400ms; }
.reveal-d6 { transition-delay: 480ms; }

/* ── 22. STATS ROW ────────────────────────────────────────────────── */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  background: var(--border-subtle);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-block: var(--sp-9);
}
.stat-item {
  background: var(--surface);
  padding: var(--sp-7) var(--sp-6);
  text-align: center;
}
.stat-item__num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  color: var(--teal);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: var(--sp-2);
}
.stat-item__label {
  font-size: var(--text-sm);
  color: var(--text-2);
  line-height: 1.4;
}

/* ── 23. NOTICE BAND ──────────────────────────────────────────────── */
.notice-band {
  background: oklch(76% 0.148 195 / 0.04);
  border-left: 3px solid var(--teal);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: var(--sp-4) var(--sp-5);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--text-sm);
  color: var(--text-2);
}
.notice-band--purple {
  background: oklch(68% 0.180 285 / 0.04);
  border-left-color: var(--purple);
}
.notice-band__icon { font-size: 1.1rem; flex-shrink: 0; }

/* ── 24. PAGE HEADER ──────────────────────────────────────────────── */
.page-header {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(32px, 4vw, 56px));
  padding-bottom: clamp(32px, 4vw, 56px);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: var(--sp-7);
  overflow: hidden;
}
/* Teal glow accent */
.page-header::after {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(ellipse, oklch(76% 0.148 195 / 0.07) 0%, transparent 65%);
  pointer-events: none;
}
/* Optional: page header with image background */
.page-header--img {
  background-size: cover;
  background-position: center;
}
.page-header--img::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, var(--bg) 0%, var(--bg) 50%, oklch(9% 0.012 220 / 0.7) 75%, oklch(9% 0.012 220 / 0.5) 100%),
    linear-gradient(to top, var(--bg) 0%, transparent 40%);
}
.page-header--img .container { position: relative; z-index: 1; }
.page-header__eye {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: var(--sp-4);
}
.page-header__title {
  font-size: var(--text-2xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.0;
  margin-bottom: var(--sp-5);
}
.page-header__lead {
  font-size: var(--text-md);
  color: var(--text-2);
  line-height: 1.7;
  max-width: 52ch;
}

/* ── 24b. SERVICE ICON ────────────────────────────────────────────── */
.svc-icon {
  width: 48px;
  height: 48px;
  color: var(--teal);
  margin-bottom: var(--sp-4);
  flex-shrink: 0;
}
.svc-icon--teal   { color: oklch(76% 0.148 195); }
.svc-icon--purple { color: oklch(70% 0.18 300); }
.svc-icon--yellow { color: oklch(83% 0.17 85); }
.svc-icon--green  { color: oklch(78% 0.16 150); }

/* ── 24c. IMAGE ACCENT UTILITIES ──────────────────────────────────── */

/* Section with a background image at very low opacity as texture */
.section--textured {
  position: relative;
}
.section--textured::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--bg-img, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.04;
  pointer-events: none;
  z-index: 0;
}
.section--textured > .container { position: relative; z-index: 1; }

/* Portrait image composited on gradient bg */
.portrait-composite {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--bg);
  border: 1px solid var(--border-subtle);
  /* Fade all edges to transparent so the image dissolves into the section bg */
  -webkit-mask-image: radial-gradient(ellipse 82% 88% at 50% 48%, black 45%, transparent 100%);
  mask-image:         radial-gradient(ellipse 82% 88% at 50% 48%, black 45%, transparent 100%);
  transition: border-color var(--dur-slow) var(--ease-out-quart),
              box-shadow    var(--dur-slow) var(--ease-out-quart);
}
.portrait-composite:hover {
  border-color: oklch(76% 0.148 195 / 0.55);
  box-shadow: 0 0 0 3px oklch(76% 0.148 195 / 0.12),
              0 0 40px oklch(76% 0.148 195 / 0.18);
}
.portrait-composite__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  mix-blend-mode: normal;
  opacity: 1;
  transition: transform var(--dur-slow) var(--ease-out-quart);
}
.portrait-composite:hover .portrait-composite__img { transform: scale(1.025); }
.portrait-composite__glow {
  position: absolute;
  inset: 0;
  /* Subtle teal warmth at bottom — keeps brand feel without fighting the mask */
  background: radial-gradient(ellipse 90% 50% at 50% 95%, oklch(76% 0.148 195 / 0.14) 0%, transparent 70%);
  pointer-events: none;
  transition: opacity var(--dur-slow);
}
.portrait-composite:hover .portrait-composite__glow { opacity: 0.7; }

/* Values grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--sp-5);
  margin-top: var(--sp-9);
}
.value-card {
  padding: var(--sp-7) var(--sp-6);
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-xl);
  transition: border-color var(--dur-slow), transform var(--dur-slow) var(--ease-out-quart);
}
.value-card:hover {
  border-color: var(--teal-dim);
  transform: translateY(-3px);
}
.value-card__icon {
  font-size: 1.8rem;
  margin-bottom: var(--sp-4);
  display: block;
}
.value-card__title {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 700;
  margin-bottom: var(--sp-3);
}
.value-card__desc {
  font-size: var(--text-sm);
  color: var(--text-2);
  line-height: 1.65;
}

/* About bio layout */
.about-bio {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--sp-9);
  align-items: start;
}
@media (max-width: 768px) {
  .about-bio { grid-template-columns: 1fr; }
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--sp-4);
  z-index: 9999;
  background: var(--teal);
  color: var(--text-inverse);
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--r-md);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  transition: top var(--dur-base);
}
.skip-link:focus { top: var(--sp-4); }

/* ── 25. UTILS ────────────────────────────────────────────────────── */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.text-teal   { color: var(--teal); }
.text-purple { color: var(--purple); }
.text-yellow { color: var(--yellow); }
.text-muted  { color: var(--text-2); }
.text-subtle { color: var(--text-3); }
.text-center { text-align: center; }
.bg-surface  { background: var(--surface); }
.bg-raised   { background: var(--surface-raised); }
.divider     { height: 1px; background: var(--border-subtle); margin-block: var(--sp-7); }

/* ── 26. RESPONSIVE ───────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .grid-2, .grid-3    { grid-template-columns: 1fr; }
  .section            { padding-block: var(--sp-9); }
  .testi              { padding: var(--sp-5) var(--sp-5) var(--sp-5); }
  .testi::before      { font-size: 3.5rem; }
  .nl-band            { padding: var(--sp-7) var(--sp-5); border-radius: var(--r-lg); }
  .svc-item           { flex-direction: column; gap: var(--sp-3); }
  .svc-item__arrow    { display: none; }
  .timeline           { padding-left: var(--sp-6); }
  .timeline::before   { left: 10px; }
  .tl-item::before    { left: calc(-1 * var(--sp-6) + 7px); }
  .tl-item__icon      { left: calc(-1 * var(--sp-6) + 2px); }
}
@media (max-width: 480px) {
  .hero__actions      { flex-direction: column; align-items: flex-start; }
}

/* ── 27. REDUCED MOTION ───────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ── 28. FOCUS & SELECTION ────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}
::selection { background: var(--teal-glow); color: var(--text); }

/* ── 29. SCROLLBAR ────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--teal-dim); }

/* ── 30. PRINT ────────────────────────────────────────────────────── */
@media print {
  .nav, .footer, .nav__mobile { display: none; }
  body { background: white; color: black; }
}

/* ── 31. SERVICE ITEM BACKGROUND ─────────────────────────────────── */
.svc-item__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  z-index: 0;
  transition: transform var(--dur-slow) var(--ease-out-quart);
}
.svc-item__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
    var(--bg) 0%,
    var(--bg) 32%,
    oklch(9% 0.012 220 / 0.90) 52%,
    oklch(9% 0.012 220 / 0.55) 72%,
    transparent 100%
  );
}
.svc-item:hover .svc-item__bg { transform: scale(1.04); }
.svc-item__left  { position: relative; z-index: 1; }
.svc-item__arrow { position: relative; z-index: 1; }

/* ── 32. SERVICE SECTION ACCENT STRIP ────────────────────────────── */
/* Thin image-derived border at the top of each service section */
.svc-accent-strip {
  width: 100%;
  height: 5px;
  border-radius: 3px;
  background-size: cover;
  opacity: 0.55;
  margin-bottom: var(--sp-9);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .svc-item__bg      { display: none; }
  .svc-accent-strip  { height: 4px; margin-bottom: var(--sp-7); opacity: 0.45; }
}
