/* =========================================================================
   PROFITURA CONSULTANCY SL — Design System
   All-sans editorial luxury. Warm-white dominant, dark feature sections,
   restrained gold hairline accents. Mobile-first.
   ========================================================================= */

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
img, svg { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---- Tokens ---- */
:root {
  /* Warm neutral ramp */
  --paper:    oklch(0.985 0.004 85);   /* page background, warm white */
  --paper-2:  oklch(0.965 0.006 83);   /* soft beige panel */
  --paper-3:  oklch(0.935 0.008 82);   /* light graphite panel */
  --ink:      oklch(0.205 0.010 70);   /* near-black warm */
  --ink-soft: oklch(0.205 0.010 70 / 0.62);
  --graphite: oklch(0.455 0.008 72);   /* secondary text */
  --line:     oklch(0.205 0.010 70 / 0.14); /* hairlines */
  --line-2:   oklch(0.205 0.010 70 / 0.08);

  /* Dark feature sections */
  --noir:     oklch(0.205 0.008 65);   /* matte black / charcoal */
  --noir-2:   oklch(0.255 0.008 64);
  --noir-line:oklch(0.97 0 0 / 0.14);
  --on-noir:  oklch(0.965 0.004 85);
  --on-noir-soft: oklch(0.965 0.004 85 / 0.62);

  /* Subtle gold accent (restrained ~25%) */
  --gold:     oklch(0.74 0.066 78);
  --gold-deep:oklch(0.66 0.072 70);

  /* Type */
  --sans: "Helvetica Neue", Helvetica, "Inter", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "SFMono-Regular", Menlo, Consolas, monospace;

  /* Rhythm */
  --gut: clamp(1.25rem, 5vw, 2rem);          /* page side padding */
  --section-y: clamp(4.5rem, 11vw, 9.5rem);  /* vertical section rhythm */
  --maxw: 1320px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---- Base ---- */
html { font-size: 16px; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  font-weight: 400;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ---- Layout ---- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.wrap-wide { max-width: 1560px; }
section { position: relative; }
.section { padding-block: var(--section-y); }
.divider { height: 1px; background: var(--line); border: 0; }

/* ---- Typography ---- */
.display {
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 0.98;
  font-size: clamp(2.55rem, 9.2vw, 6.4rem);
  text-wrap: balance;
}
.h1 { font-weight: 300; letter-spacing: -0.03em; line-height: 1.02; font-size: clamp(2.1rem, 6.6vw, 4.25rem); text-wrap: balance; }
.h2 { font-weight: 300; letter-spacing: -0.025em; line-height: 1.06; font-size: clamp(1.75rem, 5vw, 3rem); text-wrap: balance; }
.h3 { font-weight: 400; letter-spacing: -0.02em; line-height: 1.12; font-size: clamp(1.3rem, 3vw, 1.85rem); }
.h4 { font-weight: 500; letter-spacing: -0.01em; line-height: 1.2; font-size: clamp(1.05rem, 2vw, 1.25rem); }

.lead {
  font-weight: 300;
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  line-height: 1.4;
  letter-spacing: -0.018em;
  color: var(--ink);
  text-wrap: pretty;
}
.body { font-size: 1.0625rem; line-height: 1.62; color: var(--graphite); text-wrap: pretty; }
.body-lg { font-size: clamp(1.05rem, 1.6vw, 1.22rem); line-height: 1.55; color: var(--graphite); text-wrap: pretty; }
p + p { margin-top: 1em; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--graphite);
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
}
.eyebrow::before {
  content: "";
  width: 1.7em; height: 1px;
  background: var(--gold-deep);
  display: inline-block;
}
.eyebrow.no-rule::before { display: none; }
.eyebrow.on-noir { color: var(--on-noir-soft); }

.idx { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.18em; color: var(--graphite); }
.gold { color: var(--gold-deep); }
.muted { color: var(--graphite); }

/* ---- Buttons / links ---- */
.btn {
  display: inline-flex; align-items: center; gap: 0.7em;
  font-size: 0.92rem; font-weight: 500; letter-spacing: -0.005em;
  padding: 0.95em 1.5em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease);
  white-space: nowrap;
}
.btn .arr { transition: transform .4s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--gold-deep); }
.btn-outline { border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.btn-on-noir { background: var(--on-noir); color: var(--noir); }
.btn-on-noir:hover { background: var(--gold); color: var(--noir); }
.btn-ghost-noir { border-color: var(--noir-line); color: var(--on-noir); }
.btn-ghost-noir:hover { background: var(--on-noir); color: var(--noir); }

/* Animated underline link */
.link {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-size: 0.95rem; font-weight: 500;
  position: relative; padding-bottom: 2px;
}
.link::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--ease);
}
.link:hover::after { transform: scaleX(1); }
.link .arr { transition: transform .4s var(--ease); }
.link:hover .arr { transform: translateX(3px); }

/* ---- Sections: dark feature ---- */
.noir { background: var(--noir); color: var(--on-noir); }
.noir .body, .noir .body-lg, .noir .muted { color: var(--on-noir-soft); }
.noir .h1, .noir .h2, .noir .h3, .noir .h4, .noir .display, .noir .lead { color: var(--on-noir); }
.noir .divider { background: var(--noir-line); }
.noir .idx { color: var(--on-noir-soft); }

/* ---- Image placeholders / media ---- */
.media { position: relative; overflow: hidden; background: var(--paper-3); }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.media-zoom:hover img { transform: scale(1.04); }
.ph {
  position: relative; overflow: hidden;
  background:
    repeating-linear-gradient(135deg, oklch(0.205 0.01 70 / 0.045) 0 10px, transparent 10px 20px),
    var(--paper-3);
  display: grid; place-items: center;
  color: var(--graphite);
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
}

/* ---- Cards / grid utilities ---- */
.grid { display: grid; gap: clamp(1.25rem, 3vw, 2rem); }
@media (min-width: 720px)  { .g2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 720px)  { .g3-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px)  { .g3 { grid-template-columns: repeat(3, 1fr); } .g3-2 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .g4 { grid-template-columns: repeat(4, 1fr); } }

/* =========================================================================
   NAVBAR
   ========================================================================= */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 200;
  transition: background .5s var(--ease), border-color .5s var(--ease), color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav-inner {
  max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut);
  height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.brand { display: inline-flex; align-items: baseline; gap: 0.5em; font-weight: 500; letter-spacing: -0.02em; font-size: 1.15rem; }
.brand .mark { font-family: var(--mono); font-weight: 600; letter-spacing: -0.02em; }
.brand .sl { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.18em; color: var(--graphite); align-self: center; transform: translateY(-1px); }

.nav-links { display: none; align-items: center; gap: clamp(1.1rem, 2vw, 2rem); }
@media (min-width: 1024px) { .nav-links { display: flex; } }
.nav-link { font-size: 0.92rem; font-weight: 500; letter-spacing: -0.005em; position: relative; padding: 0.4em 0; display: inline-flex; align-items: center; gap: 0.4em; }
.nav-link::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 100%; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.nav-link:hover::after, .nav-link[aria-current="page"]::after { transform: scaleX(1); }
.nav-link .chev { width: 9px; height: 9px; transition: transform .35s var(--ease); }

.nav-right { display: flex; align-items: center; gap: clamp(0.6rem, 1.5vw, 1.1rem); }

/* nav color modes */
.nav.on-dark { color: var(--on-noir); }
.nav.on-dark .brand .sl, .nav.on-dark .nav-link { color: var(--on-noir); }
.nav.on-dark .brand .sl { color: var(--on-noir-soft); }
.nav.solid { background: oklch(0.985 0.004 85 / 0.82); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border-bottom-color: var(--line); color: var(--ink); }
.nav.solid .brand .sl { color: var(--graphite); }
.nav.solid .nav-link { color: var(--ink); }

/* Language switcher */
.lang { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  background: transparent; border: 1px solid currentColor; border-radius: 999px;
  padding: 0.5em 0.85em; cursor: pointer; opacity: 0.85;
  transition: opacity .3s var(--ease), background .3s var(--ease);
}
.lang-btn:hover { opacity: 1; }
.lang-menu {
  position: absolute; top: calc(100% + 10px); right: 0; min-width: 160px;
  background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 14px;
  padding: 6px; box-shadow: 0 24px 60px -28px oklch(0.205 0.01 70 / 0.45);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: all .3s var(--ease); z-index: 10;
}
.lang.open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-opt { display: flex; align-items: center; justify-content: space-between; gap: 1em; width: 100%; text-align: left; background: transparent; border: 0; cursor: pointer; padding: 0.7em 0.85em; border-radius: 9px; font-size: 0.9rem; font-weight: 500; transition: background .25s var(--ease); }
.lang-opt:hover { background: var(--paper-2); }
.lang-opt .code { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em; color: var(--graphite); }
.lang-opt[aria-selected="true"] { color: var(--gold-deep); }
.lang-opt[aria-selected="true"] .code { color: var(--gold-deep); }

/* Mega menu */
.nav-item-mega { position: relative; }
.mega {
  position: fixed; left: 0; right: 0; top: 74px;
  background: oklch(0.985 0.004 85 / 0.96); backdrop-filter: blur(22px) saturate(1.4); -webkit-backdrop-filter: blur(22px) saturate(1.4);
  color: var(--ink);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .4s var(--ease), transform .4s var(--ease), visibility .4s var(--ease);
  z-index: 1;
}
.nav-item-mega:hover .mega, .nav-item-mega:focus-within .mega { opacity: 1; visibility: visible; transform: translateY(0); }
.mega-inner { max-width: var(--maxw); margin-inline: auto; padding: clamp(1.8rem, 3vw, 2.6rem) var(--gut) clamp(2rem, 3vw, 2.8rem); }
.mega-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 1.4rem; margin-bottom: 1.6rem; border-bottom: 1px solid var(--line-2); }
.mega-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line-2); }
.mega-col { display: flex; flex-direction: column; gap: 0.55rem; padding: 0.4rem 1.4rem 0.4rem 0; background: transparent; position: relative; transition: transform .35s var(--ease); }
.mega-col:hover { transform: translateY(-2px); }
.mega-n { color: var(--gold-deep); }
.mega-t { font-size: 1.02rem; font-weight: 500; letter-spacing: -0.015em; line-height: 1.2; }
.mega-col:hover .mega-t { color: var(--gold-deep); }
.mega-d { font-size: 0.86rem; color: var(--graphite); line-height: 1.45; }

/* Mobile menu toggle */
.burger { display: inline-flex; flex-direction: column; gap: 5px; width: 42px; height: 42px; align-items: center; justify-content: center; background: transparent; border: 0; cursor: pointer; }
@media (min-width: 1024px) { .burger { display: none; } }
.burger span { width: 22px; height: 1.5px; background: currentColor; transition: transform .4s var(--ease), opacity .3s var(--ease); }
body.menu-open .burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 190; background: var(--paper); color: var(--ink);
  transform: translateY(-100%); transition: transform .6s var(--ease);
  display: flex; flex-direction: column; padding: 100px var(--gut) 2rem;
  overflow-y: auto;
}
body.menu-open .drawer { transform: translateY(0); }
.drawer a.d-link { font-size: clamp(1.8rem, 8vw, 2.6rem); font-weight: 300; letter-spacing: -0.03em; padding: 0.42em 0; border-bottom: 1px solid var(--line-2); display: flex; align-items: center; justify-content: space-between; }
.drawer a.d-link .n { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.14em; color: var(--graphite); }
.drawer .d-foot { margin-top: auto; padding-top: 2rem; display: flex; flex-direction: column; gap: 1rem; }

/* =========================================================================
   FOOTER
   ========================================================================= */
.foot { background: var(--noir); color: var(--on-noir); padding-top: clamp(4rem, 9vw, 7rem); padding-bottom: 2.5rem; }
.foot a { color: var(--on-noir-soft); transition: color .3s var(--ease); }
.foot a:hover { color: var(--on-noir); }
/* CTA pills sit on a light fill — keep dark label text (override .foot a). */
.foot a.btn-on-noir, .foot a.btn-on-noir:hover { color: var(--noir); }
.foot-top { display: grid; gap: clamp(2.5rem, 6vw, 4rem); grid-template-columns: 1fr; }
@media (min-width: 860px) { .foot-top { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.foot-cta { font-weight: 300; letter-spacing: -0.03em; line-height: 1.04; font-size: clamp(2rem, 5.5vw, 3.4rem); }
.foot-col h5 { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--on-noir-soft); margin-bottom: 1.3em; font-weight: 500; }
.foot-col ul { display: flex; flex-direction: column; gap: 0.8em; font-size: 0.96rem; }
.foot-bottom { margin-top: clamp(3rem, 7vw, 5rem); padding-top: 2rem; border-top: 1px solid var(--noir-line); display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; font-size: 0.82rem; color: var(--on-noir-soft); }
.foot-legal { display: flex; flex-wrap: wrap; gap: 0.4em 1.4em; }
.foot-id { font-family: var(--mono); letter-spacing: 0.08em; }

/* =========================================================================
   COOKIE BANNER
   ========================================================================= */
.cookie {
  position: fixed; left: 50%; transform: translateX(-50%) translateY(140%);
  bottom: clamp(0.75rem, 2vw, 1.5rem); z-index: 300;
  width: min(640px, calc(100% - 1.5rem));
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--line); border-radius: 20px;
  padding: clamp(1.4rem, 3vw, 1.9rem);
  box-shadow: 0 40px 90px -40px oklch(0.205 0.01 70 / 0.6);
  transition: transform .7s var(--ease);
}
.cookie.show { transform: translateX(-50%) translateY(0); }
.cookie h4 { font-size: 1.05rem; font-weight: 500; letter-spacing: -0.01em; margin-bottom: 0.5em; }
.cookie p { font-size: 0.9rem; color: var(--graphite); line-height: 1.55; }
.cookie p a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.3rem; }
.cookie-actions .btn { padding: 0.8em 1.3em; font-size: 0.85rem; }
.cookie-prefs { margin-top: 1.2rem; display: none; flex-direction: column; gap: 0.85rem; border-top: 1px solid var(--line); padding-top: 1.2rem; }
.cookie.config .cookie-prefs { display: flex; }
.pref-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.pref-row .pref-txt h5 { font-size: 0.92rem; font-weight: 500; }
.pref-row .pref-txt p { font-size: 0.82rem; margin-top: 0.2em; }
.switch { position: relative; width: 42px; height: 24px; flex: none; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch .track { position: absolute; inset: 0; background: var(--paper-3); border-radius: 999px; transition: background .3s var(--ease); }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; background: #fff; border-radius: 50%; transition: transform .3s var(--ease); box-shadow: 0 1px 3px oklch(0 0 0 / 0.25); }
.switch input:checked + .track { background: var(--gold-deep); }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch input:disabled + .track { background: var(--ink); opacity: 0.5; }

/* =========================================================================
   SCROLL REVEALS
   ========================================================================= */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* clip-reveal for media */
.clip { clip-path: inset(0 0 100% 0); transition: clip-path 1.1s var(--ease); }
.clip.in { clip-path: inset(0 0 0 0); }
@media (prefers-reduced-motion: reduce) { .clip { clip-path: none; } }

/* =========================================================================
   i18n visibility
   ========================================================================= */
.i18n { display: none; }
html[data-locale="es"] .i18n[data-l="es"],
html[data-locale="en"] .i18n[data-l="en"],
html[data-locale="nl"] .i18n[data-l="nl"] { display: inline; }
/* block variants */
html[data-locale="es"] .i18n.blk[data-l="es"],
html[data-locale="en"] .i18n.blk[data-l="en"],
html[data-locale="nl"] .i18n.blk[data-l="nl"] { display: block; }

/* Prevent FOUC: hide body until locale is set */
html:not([data-locale]) body { opacity: 0; }
body { transition: opacity .3s var(--ease); }

/* =========================================================================
   PAGE HERO (interior pages)
   ========================================================================= */
.phero { padding-top: clamp(8rem, 16vw, 12rem); padding-bottom: clamp(3rem, 7vw, 5rem); }
.phero .display { max-width: 16ch; }

/* utility */
.maxw-prose { max-width: 62ch; }
.maxw-sm { max-width: 46ch; }
.stack-sm > * + * { margin-top: 0.8rem; }
.stack > * + * { margin-top: 1.4rem; }
.stack-lg > * + * { margin-top: 2.4rem; }
.flex { display: flex; }
.center { align-items: center; }
.between { justify-content: space-between; }
.wrapf { flex-wrap: wrap; }
.gap-sm { gap: 0.75rem; } .gap { gap: 1.2rem; } .gap-lg { gap: 2rem; }
.mt-sm { margin-top: 1rem; } .mt { margin-top: 2rem; } .mt-lg { margin-top: 3.5rem; }

/* =========================================================================
   PAGE COMPONENTS
   ========================================================================= */

/* ---- Home hero ---- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; color: var(--on-noir); }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.05); animation: heroDrift 22s var(--ease) forwards; filter: saturate(0.5) brightness(0.66) contrast(1.0); }
@keyframes heroDrift { to { transform: scale(1); } }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, oklch(0.13 0.008 65 / 0.86) 0%, oklch(0.14 0.008 65 / 0.42) 18%, oklch(0.14 0.008 65 / 0.32) 50%, oklch(0.13 0.008 65 / 0.62) 78%, oklch(0.12 0.008 65 / 0.95) 100%); }
.hero-inner { position: relative; z-index: 1; width: 100%; padding-bottom: clamp(3rem, 7vw, 6rem); padding-top: 120px; }
.hero .display { max-width: 18ch; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; margin-top: clamp(2rem, 4vw, 3rem); padding-top: 2rem; border-top: 1px solid var(--noir-line); }
.hero-meta .item { max-width: 30ch; }
.hero-meta .k { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--on-noir-soft); margin-bottom: 0.5em; }
.scroll-cue { position: absolute; right: var(--gut); bottom: clamp(3rem, 7vw, 6rem); z-index: 1; display: none; }
@media (min-width: 760px) { .scroll-cue { display: flex; align-items: center; gap: 0.7em; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--on-noir-soft); writing-mode: vertical-rl; } }

/* ---- Section header ---- */
.sec-head { display: grid; gap: 1.4rem; grid-template-columns: 1fr; align-items: end; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
@media (min-width: 880px) { .sec-head.split { grid-template-columns: 1.4fr 1fr; } }
.sec-head .lead-col { max-width: 40ch; }

/* ---- Stat ---- */
.stat .num { font-weight: 300; letter-spacing: -0.04em; line-height: 1; font-size: clamp(2.8rem, 7vw, 4.6rem); }
.stat .lab { color: var(--graphite); font-size: 0.96rem; margin-top: 0.6em; max-width: 26ch; }
.noir .stat .lab { color: var(--on-noir-soft); }
.stat-row { display: grid; gap: clamp(2rem, 4vw, 3rem); grid-template-columns: 1fr 1fr; }
@media (min-width: 880px) { .stat-row { grid-template-columns: repeat(4, 1fr); } }
.stat-row.div .stat { padding-left: clamp(1rem, 2vw, 1.6rem); border-left: 1px solid var(--line); }
.noir .stat-row.div .stat { border-left-color: var(--noir-line); }

/* ---- Feature row (alternating text / media) ---- */
.feature { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 920px) { .feature { grid-template-columns: 1fr 1fr; } .feature.rev .feature-media { order: -1; } }
.feature-media { aspect-ratio: 4/3.2; border-radius: 4px; }
.feature-body { max-width: 48ch; }

/* ---- Editorial service / capability list ---- */
.rowlist { border-top: 1px solid var(--line); }
.row {
  display: grid; grid-template-columns: auto 1fr auto; gap: 1rem 1.4rem; align-items: baseline;
  padding: clamp(1.5rem, 3vw, 2.4rem) 0; border-bottom: 1px solid var(--line);
  transition: padding-left .5s var(--ease);
}
.row:hover { padding-left: clamp(0.6rem, 1.5vw, 1.2rem); }
.row .r-n { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.16em; color: var(--graphite); padding-top: 0.5em; }
.row:hover .r-n { color: var(--gold-deep); }
.row .r-t { font-weight: 400; letter-spacing: -0.02em; line-height: 1.08; font-size: clamp(1.5rem, 3.4vw, 2.3rem); }
.row .r-d { color: var(--graphite); font-size: 0.98rem; max-width: 46ch; margin-top: 0.6em; }
.row .r-arr { align-self: center; opacity: 0; transform: translateX(-8px); transition: all .45s var(--ease); color: var(--gold-deep); }
.row:hover .r-arr { opacity: 1; transform: none; }
@media (max-width: 700px) { .row { grid-template-columns: auto 1fr; } .row .r-arr { display: none; } }

/* tag list inside rows */
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.1rem; }
.tag { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.06em; color: var(--graphite); border: 1px solid var(--line); border-radius: 999px; padding: 0.42em 0.9em; }
.noir .tag { border-color: var(--noir-line); color: var(--on-noir-soft); }

/* ---- Card ---- */
.card { border: 1px solid var(--line); border-radius: 6px; padding: clamp(1.6rem, 3vw, 2.2rem); background: var(--paper); transition: transform .5s var(--ease), border-color .5s var(--ease); display: flex; flex-direction: column; gap: 1rem; }
.card:hover { transform: translateY(-4px); border-color: var(--ink); }
.card .c-n { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.16em; color: var(--gold-deep); }
.card .c-t { font-size: 1.2rem; font-weight: 500; letter-spacing: -0.015em; }
.card .c-d { color: var(--graphite); font-size: 0.96rem; }
.card.on-noir { background: var(--noir-2); border-color: var(--noir-line); }
.card.on-noir .c-t { color: var(--on-noir); }
.card.on-noir .c-d { color: var(--on-noir-soft); }

/* ---- Methodology / process steps ---- */
.steps { counter-reset: step; border-top: 1px solid var(--line); }
.step { display: grid; grid-template-columns: 1fr; gap: 0.6rem 2.4rem; padding: clamp(1.8rem, 3.5vw, 2.6rem) 0; border-bottom: 1px solid var(--line); }
@media (min-width: 820px) { .step { grid-template-columns: 0.5fr 1.5fr; } }
.step .s-k { display: flex; align-items: baseline; gap: 1rem; }
.step .s-k .s-num { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.14em; color: var(--gold-deep); }
.step .s-k .s-name { font-size: 1.15rem; font-weight: 500; letter-spacing: -0.015em; }
.step .s-d { color: var(--graphite); max-width: 56ch; }
.noir .steps { border-top-color: var(--noir-line); }
.noir .step { border-bottom-color: var(--noir-line); }

/* ---- Testimonial / quote ---- */
.quote { font-weight: 300; letter-spacing: -0.025em; line-height: 1.18; font-size: clamp(1.6rem, 4.2vw, 2.9rem); text-wrap: balance; }
.quote-by { display: flex; align-items: center; gap: 1rem; margin-top: clamp(1.8rem, 3vw, 2.6rem); font-size: 0.92rem; }
.quote-by .ava { width: 46px; height: 46px; border-radius: 50%; overflow: hidden; flex: none; background: var(--paper-3); }
.quote-by .by-n { font-weight: 500; }
.quote-by .by-r { color: var(--graphite); }
.noir .quote-by .by-r { color: var(--on-noir-soft); }

/* ---- Case study card ---- */
.case { display: flex; flex-direction: column; gap: 1.2rem; }
.case .case-media { aspect-ratio: 16/10; border-radius: 4px; }
.case .case-tag { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-deep); }
.case .case-t { font-size: clamp(1.3rem, 2.4vw, 1.7rem); font-weight: 400; letter-spacing: -0.02em; line-height: 1.12; }
.case .case-metrics { display: flex; gap: 2rem; margin-top: 0.4rem; }
.case .case-metrics .m .mv { font-size: 1.6rem; font-weight: 300; letter-spacing: -0.03em; }
.case .case-metrics .m .ml { font-size: 0.8rem; color: var(--graphite); }

/* ---- Marquee (clients / sectors) ---- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding-block: clamp(1.4rem, 3vw, 2.2rem); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: clamp(2.5rem, 5vw, 4.5rem); width: max-content; animation: marq 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-weight: 300; letter-spacing: -0.02em; font-size: clamp(1.1rem, 2.4vw, 1.7rem); color: var(--graphite); white-space: nowrap; }
@keyframes marq { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---- CTA band ---- */
.cta-band { text-align: left; }
.cta-band .display { max-width: 16ch; }

/* ---- Big index/number watermark ---- */
.watermark { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.2em; color: var(--graphite); }

/* ---- Form ---- */
.field { display: flex; flex-direction: column; gap: 0.55rem; }
.field label { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--graphite); }
.field input, .field textarea, .field select {
  background: transparent; border: 0; border-bottom: 1px solid var(--line);
  padding: 0.8em 0; font-size: 1.05rem; color: var(--ink); outline: none;
  transition: border-color .35s var(--ease); border-radius: 0;
}
.field input:focus, .field textarea:focus, .field select:focus { border-bottom-color: var(--gold-deep); }
.field input::placeholder, .field textarea::placeholder { color: oklch(0.205 0.01 70 / 0.32); }
.field textarea { resize: vertical; min-height: 110px; }
.form-grid { display: grid; gap: clamp(1.6rem, 3vw, 2.2rem); grid-template-columns: 1fr; }
@media (min-width: 700px) { .form-grid { grid-template-columns: 1fr 1fr; } .field.full { grid-column: 1 / -1; } }
.consent { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.85rem; color: var(--graphite); }
.consent input { margin-top: 0.25em; accent-color: var(--gold-deep); }
.form-ok { display: none; padding: 1.2rem 1.4rem; border: 1px solid var(--line); border-radius: 8px; font-size: 0.95rem; }
.form-ok.show { display: block; }
.contact-layout { display: grid; gap: clamp(2.5rem,5vw,4.5rem); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 920px) { .contact-layout { grid-template-columns: 0.8fr 1.2fr; } }

/* ---- Legal page ---- */
.legal-doc { max-width: 70ch; }
.legal-doc h2 { scroll-margin-top: 100px; margin-top: clamp(3rem, 6vw, 4.5rem); padding-top: clamp(2rem,4vw,3rem); border-top: 1px solid var(--line); }
.legal-doc h3 { margin-top: 2rem; margin-bottom: 0.5rem; }
.legal-doc p, .legal-doc li { color: var(--graphite); font-size: 1rem; line-height: 1.7; }
.legal-doc ul { margin: 0.6rem 0 0; padding-left: 1.2rem; list-style: disc; }
.legal-doc ul li { margin-bottom: 0.4rem; }
.legal-doc dl { display: grid; grid-template-columns: 1fr; gap: 0.2rem 1.5rem; margin-top: 1rem; }
@media (min-width: 620px) { .legal-doc dl { grid-template-columns: auto 1fr; } }
.legal-doc dt { font-weight: 500; color: var(--ink); }
.legal-toc { position: sticky; top: 100px; align-self: start; }
.legal-toc ul { display: flex; flex-direction: column; gap: 0.6rem; }
.legal-toc a { font-size: 0.92rem; color: var(--graphite); }
.legal-toc a:hover { color: var(--ink); }
.legal-layout { display: grid; gap: clamp(2.5rem,5vw,4rem); grid-template-columns: 1fr; }
@media (min-width: 960px) { .legal-layout { grid-template-columns: 220px 1fr; } }

/* ---- Capabilities list (services) ---- */
.svc-group { padding-block: clamp(3.5rem, 7vw, 6rem); scroll-margin-top: 90px; border-top: 1px solid var(--line); }
.svc-group:first-of-type { border-top: 0; }
.svc-head { display: grid; gap: 1.4rem; grid-template-columns: 1fr; margin-bottom: clamp(2rem,4vw,3rem); }
@media (min-width: 900px) { .svc-head { grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem,5vw,4rem); } }
.caps { display: grid; grid-template-columns: 1fr; gap: 0; }
@media (min-width: 640px) { .caps { grid-template-columns: 1fr 1fr; column-gap: clamp(1.5rem,4vw,3.5rem); } }
.cap { display: flex; align-items: baseline; gap: 0.9rem; padding: 1.05rem 0; border-top: 1px solid var(--line); transition: padding-left .45s var(--ease), color .3s var(--ease); }
.cap:hover { padding-left: 0.5rem; }
.cap .cap-d { width: 5px; height: 5px; border-radius: 50%; background: var(--gold-deep); flex: none; transform: translateY(-3px); opacity: 0; transition: opacity .3s var(--ease); }
.cap:hover .cap-d { opacity: 1; }
.cap .cap-n { font-size: clamp(1.02rem, 1.6vw, 1.16rem); font-weight: 400; letter-spacing: -0.012em; }
.cap:hover .cap-n { color: var(--gold-deep); }
.svc-out { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; margin-top: clamp(2rem,4vw,3rem); padding-top: 1.6rem; border-top: 1px solid var(--line); }
.svc-out .o { max-width: 30ch; }
.svc-out .o .ov { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 0.45em; }
.svc-out .o .od { font-size: 0.96rem; color: var(--graphite); }

