/* ============================================================
   NUVÓ EXPERIENCIA · Renew — Premium Editorial Tech System
   Tokens, primitives, components
   ============================================================ */

:root {
  /* ---- Color: warm paper + deep ink + single accent ---- */
  --paper:        #F6F4EE;
  --paper-2:      #EDEAE0;
  --surface:      #FFFFFF;
  --ink:          #131418;
  --ink-2:        #2E2F33;
  --ink-3:        #535359;
  --ink-4:        #8A8B90;
  --rule:         #DEDACE;
  --rule-strong:  #C7C2B3;

  /* Semantic tokens that DO NOT flip with theme — used for footer / endcta
     so dark sections stay dark in light AND dark themes. */
  --bg-deep:      #0E0E10;
  --fg-on-deep:   #F4F1E8;
  --rule-on-deep: rgba(244, 241, 232, 0.10);

  /* Accent — clay terracotta (default) */
  --accent:       oklch(0.56 0.13 35);
  --accent-soft:  oklch(0.94 0.025 60);
  --accent-ink:   oklch(0.32 0.09 35);

  /* Type */
  --font-sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Sizes */
  --fs-mono:   11px;
  --fs-body:   16px;
  --fs-lead:   18px;
  --leading-tight:  1.05;
  --leading-snug:   1.18;
  --leading-body:   1.55;

  /* Layout */
  --max:       1320px;
  --gutter:    clamp(20px, 4vw, 56px);
  --section-y: clamp(72px, 9vw, 132px);

  /* Radius */
  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 10px;

  /* Motion */
  --t: 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

[data-accent="cobalt"]  { --accent: oklch(0.46 0.16 255); --accent-soft: oklch(0.94 0.03 250); --accent-ink: oklch(0.32 0.12 255); }
[data-accent="forest"]  { --accent: oklch(0.45 0.08 155); --accent-soft: oklch(0.94 0.025 150); --accent-ink: oklch(0.30 0.06 155); }
[data-accent="ink"]     { --accent: var(--ink); --accent-soft: var(--paper-2); --accent-ink: var(--ink); }
[data-accent="clay"]    { --accent: oklch(0.56 0.13 35); --accent-soft: oklch(0.94 0.025 60); --accent-ink: oklch(0.32 0.09 35); }

[data-density="compact"] { --section-y: clamp(56px, 7vw, 100px); }
[data-density="airy"]    { --section-y: clamp(88px, 11vw, 160px); }

/* Auto-detect system preference when no explicit override */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:   #0D0D0F;
    --paper-2: #16161A;
    --surface: #1A1A1E;
    --ink:     #F4F1E8;
    --ink-2:   #D6D4CD;
    --ink-3:   #A5A39C;
    --ink-4:   #6E6C66;
    --rule:    #26262A;
    --rule-strong: #3A3A3E;
  }
}

/* Explicit user override via Tweaks */
[data-theme="dark"] {
  --paper:   #0D0D0F;
  --paper-2: #16161A;
  --surface: #1A1A1E;
  --ink:     #F4F1E8;
  --ink-2:   #D6D4CD;
  --ink-3:   #A5A39C;
  --ink-4:   #6E6C66;
  --rule:    #26262A;
  --rule-strong: #3A3A3E;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Stop iOS/Android elastic overscroll at both edges */
  overscroll-behavior: none;
  /* If any bounce still shows, match the footer color */
  background: var(--bg-deep);
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--leading-body);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overscroll-behavior: none;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
h1, h2, h3, h4, h5, h6, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--ink); color: var(--paper); }

/* Accessibility: keyboard focus ring */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
.btn:focus-visible { outline-offset: 4px; }
input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 0;
}

/* Skip-to-content link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 20px;
  z-index: 1000;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 0 0 6px 0;
}
.skip-link:focus {
  left: 0;
  top: 0;
}

/* Visually hidden but accessible */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   PRIMITIVES
   ============================================================ */

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--surface { background: var(--surface); }
.section--paper2  { background: var(--paper-2); }
.section--ink     { background: var(--bg-deep); color: var(--fg-on-deep); }
.section--ink .muted { color: rgba(244, 241, 232, 0.55); }
.section--ink .rule { background: rgba(244, 241, 232, 0.12); }

.rule { display: block; height: 1px; background: var(--rule); border: 0; }
.rule--strong { background: var(--rule-strong); }

/* Eyebrow — mono small caps with bullet */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex: 0 0 auto;
}
.eyebrow--plain::before { display: none; }
.eyebrow--num::before { content: counter(s, decimal-leading-zero); background: none; color: var(--accent); width: auto; height: auto; border-radius: 0; font-weight: 500; }

/* Display type */
.display {
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: var(--leading-tight);
  text-wrap: balance;
}
.display--xl { font-size: clamp(48px, 7.6vw, 120px); letter-spacing: -0.035em; }
.display--lg { font-size: clamp(40px, 5.2vw, 80px); letter-spacing: -0.03em; }
.display--md { font-size: clamp(30px, 3.6vw, 52px); letter-spacing: -0.025em; }
.display--sm { font-size: clamp(22px, 2.2vw, 32px); letter-spacing: -0.018em; line-height: 1.18; }

.italic-accent { font-style: italic; color: var(--ink-3); font-weight: 400; }

.lead {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 56ch;
  text-wrap: pretty;
}

.muted { color: var(--ink-3); }
.tabnum { font-variant-numeric: tabular-nums; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: background var(--t), color var(--t), border-color var(--t), transform var(--t);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--ink);
  color: var(--paper);
}
.btn--primary:hover { background: var(--accent); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--rule-strong);
}
.btn--ghost:hover { border-color: var(--ink); }

.btn--accent {
  background: var(--accent);
  color: #fff;
}
.btn--accent:hover { background: var(--accent-ink); }

.btn .arrow {
  width: 16px; height: 16px;
  transition: transform var(--t);
}
.btn:hover .arrow { transform: translateX(3px); }

/* Link with underline-on-hover that animates */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  transition: color var(--t), border-color var(--t), gap var(--t);
}
.link-arrow:hover { color: var(--accent); border-color: var(--accent); gap: 12px; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--paper) 88%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t), background var(--t);
}
.nav.is-scrolled { border-bottom-color: var(--rule); }

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.nav__logo {
  height: 32px;
  width: auto;
  display: block;
}
@media (max-width: 520px) {
  .nav__logo { height: 26px; }
}

/* Toggle light/dark variants of the wordmark — !important beats any cached/conflicting rule */
.nav__brand .nav__logo--dark { display: none !important; }
[data-theme="dark"] .nav__brand .nav__logo--light { display: none !important; }
[data-theme="dark"] .nav__brand .nav__logo--dark  { display: block !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .nav__brand .nav__logo--light { display: none !important; }
  :root:not([data-theme="light"]) .nav__brand .nav__logo--dark  { display: block !important; }
}

/* Footer logo — always on dark backdrop */
.footer__logo {
  height: auto;
  width: 220px;
  max-width: 100%;
  display: block;
  margin-bottom: 8px;
}
@media (max-width: 720px) {
  .footer__logo { width: 180px; }
}

.nav__links {
  display: flex;
  gap: 4px;
  align-items: center;
}
.nav__links a {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--ink-2);
  transition: color var(--t), background var(--t);
}
.nav__links a:hover { color: var(--ink); background: color-mix(in oklab, var(--ink) 5%, transparent); }
.nav__links a.is-active { color: var(--ink); background: color-mix(in oklab, var(--ink) 6%, transparent); }

.nav__cta { display: flex; gap: 8px; align-items: center; }
.nav__menu-btn { display: none; }

@media (max-width: 880px) {
  .nav__links { display: none; }
  .nav__menu-btn {
    display: inline-grid;
    place-items: center;
    width: 44px; height: 44px;
    border: 1px solid var(--rule-strong);
    border-radius: 999px;
  }
  .nav__cta .btn--text { display: none; }
}

.nav__mobile {
  display: none;
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  z-index: 49;
  border-top: 1px solid var(--rule);
  padding: 12px var(--gutter) 24px;
  background: var(--paper);
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.12);
}
.nav__mobile.is-open { display: block; }
.nav__mobile a {
  display: block;
  padding: 14px 0;
  font-size: 22px;
  letter-spacing: -0.02em;
  border-bottom: 1px solid var(--rule);
}
.nav__mobile a:last-child { border-bottom: 0; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg-deep);
  color: var(--fg-on-deep);
  padding-block: clamp(56px, 7vw, 96px) 28px;
}
.footer .wrap { display: grid; gap: 48px; }
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
}
@media (max-width: 880px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer__top { grid-template-columns: 1fr; }
}
.footer h3 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(244, 241, 232, 0.45);
  margin-bottom: 18px;
}
.footer__col a {
  display: block;
  padding: 6px 0;
  color: rgba(244, 241, 232, 0.72);
  transition: color var(--t);
}
.footer__col a:hover { color: var(--paper); }
.footer .muted { color: rgba(244, 241, 232, 0.55); }
.footer__col span:not(.status) { color: rgba(244, 241, 232, 0.55) !important; }
.footer .footer__brand-display {
  font-size: clamp(40px, 5vw, 76px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1;
}
.footer .footer__brand-display em {
  font-style: italic;
  color: rgba(244, 241, 232, 0.55);
  font-weight: 400;
}
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--rule-on-deep);
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(244, 241, 232, 0.5);
  letter-spacing: 0.05em;
  flex-wrap: wrap;
}
.footer__bottom .status {
  display: inline-flex; align-items: center; gap: 8px;
}
.footer__bottom .status::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: oklch(0.7 0.15 145); box-shadow: 0 0 0 3px oklch(0.7 0.15 145 / 0.18);
}

/* ============================================================
   IMAGE PLACEHOLDER FRAME
   ============================================================ */
.imgph {
  position: relative;
  background: var(--paper-2);
  overflow: hidden;
  display: grid;
  place-items: center;
  isolation: isolate;
  border-radius: var(--r-md);
}
.imgph::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(135deg, transparent 0 18px, color-mix(in oklab, var(--ink) 4%, transparent) 18px 19px);
  z-index: 0;
}
.imgph__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
}
.imgph__tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--surface);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--rule);
}
.imgph__desc {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.55;
  color: var(--ink-3);
  max-width: 32ch;
}
.imgph__corner {
  position: absolute;
  width: 16px; height: 16px;
  border-color: var(--accent);
  opacity: 0.5;
  z-index: 2;
}
.imgph__corner.tl { top: 12px; left: 12px; border-top: 1px solid; border-left: 1px solid; }
.imgph__corner.tr { top: 12px; right: 12px; border-top: 1px solid; border-right: 1px solid; }
.imgph__corner.bl { bottom: 12px; left: 12px; border-bottom: 1px solid; border-left: 1px solid; }
.imgph__corner.br { bottom: 12px; right: 12px; border-bottom: 1px solid; border-right: 1px solid; }

.imgph--ratio-43 { aspect-ratio: 4 / 3; }
.imgph--ratio-32 { aspect-ratio: 3 / 2; }
.imgph--ratio-11 { aspect-ratio: 1 / 1; }
.imgph--ratio-169 { aspect-ratio: 16 / 9; }
.imgph--ratio-port { aspect-ratio: 3 / 4; }

/* ============================================================
   HERO MARQUEE / TICKER
   ============================================================ */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--rule);
  padding-block: 18px;
  background: var(--paper);
}
.marquee__track {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--ink-2);
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee__item::after {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  opacity: 0.6;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
}

/* ============================================================
   SERVICE CARDS / LIST
   ============================================================ */
.services {
  border-top: 1px solid var(--rule);
}
.service {
  display: grid;
  grid-template-columns: 80px 1fr 1.4fr 220px;
  gap: 32px;
  padding-block: 28px;
  border-bottom: 1px solid var(--rule);
  align-items: start;
  position: relative;
  transition: padding var(--t);
}
.service__num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--ink-3);
  padding-top: 6px;
}
.service__name {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  padding-top: 6px;
}
.service__name strong {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.05em;
  font-size: 12px;
  color: var(--accent);
  display: block;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.service__copy {
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
  font-weight: 400;
}
.service__copy em {
  font-style: italic;
  color: var(--ink-3);
  font-weight: 400;
}
.service__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-2);
  padding-top: 8px;
  justify-self: end;
  transition: color var(--t), gap var(--t);
}
.service__link:hover { color: var(--accent); gap: 12px; }
.service:hover .service__copy { color: var(--ink); }

@media (max-width: 820px) {
  .service {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-block: 24px;
  }
  .service__name { padding-top: 0; }
  .service__link { justify-self: start; padding-top: 8px; }
}

/* ============================================================
   STAT BLOCKS
   ============================================================ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.stat {
  background: var(--paper);
  padding: 28px 24px;
  display: grid;
  gap: 8px;
}
.stat__val {
  font-size: clamp(40px, 4.4vw, 64px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat__val .unit { color: var(--accent); }
.stat__label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
@media (max-width: 820px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* Editorial principles grid — text-only alternative to .stats when no numbers belong */
.principles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.principle {
  background: var(--paper);
  padding: 28px 24px;
  display: grid;
  gap: 14px;
  align-content: start;
}
.principle__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--accent);
  text-transform: uppercase;
}
.principle h3 {
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 500;
  letter-spacing: -0.018em;
  line-height: 1.3;
  text-wrap: balance;
}
@media (max-width: 820px) { .principles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .principles { grid-template-columns: 1fr; } }

/* ============================================================
   PILLARS
   ============================================================ */
.pillar {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 28px;
  padding-block: 36px;
  border-top: 1px solid var(--rule);
}
.pillar:last-child { border-bottom: 1px solid var(--rule); }
.pillar__num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.06em;
  padding-top: 6px;
}
.pillar__body { display: grid; gap: 12px; max-width: 64ch; }
.pillar__title {
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.18;
}
.pillar__copy { color: var(--ink-2); font-size: 16px; line-height: 1.55; max-width: 60ch; }

/* ============================================================
   PORTFOLIO / WORK CARDS
   ============================================================ */
.work-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}
.work {
  display: grid;
  gap: 14px;
  text-decoration: none;
}
.work__media { background: var(--paper-2); border-radius: var(--r-md); }
.work__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.work__title {
  font-size: 20px;
  letter-spacing: -0.02em;
  font-weight: 500;
  line-height: 1.2;
}
.work__client {
  font-size: 13px;
  color: var(--ink-2);
}
.work .imgph { border-radius: var(--r-md); }

.work--w8 { grid-column: span 8; }
.work--w7 { grid-column: span 7; }
.work--w6 { grid-column: span 6; }
.work--w5 { grid-column: span 5; }
.work--w4 { grid-column: span 4; }
.work--w12 { grid-column: span 12; }
@media (max-width: 880px) {
  .work-grid { grid-template-columns: 1fr; }
  .work--w8, .work--w7, .work--w6, .work--w5, .work--w4, .work--w12 { grid-column: span 1; }
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.tcard {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: 32px 28px;
  display: grid;
  gap: 28px;
  height: 100%;
}
.tcard__quote {
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.4;
  letter-spacing: -0.015em;
  font-weight: 400;
  color: var(--ink);
  text-wrap: pretty;
}
.tcard__quote::before {
  content: "“";
  display: block;
  font-size: 56px;
  font-weight: 400;
  line-height: 0.6;
  color: var(--accent);
  margin-bottom: 14px;
  font-family: var(--font-sans);
}
.tcard__who {
  display: grid;
  gap: 4px;
  border-top: 1px solid var(--rule);
  padding-top: 20px;
}
.tcard__who .name { font-size: 14px; font-weight: 500; }
.tcard__who .role { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); letter-spacing: 0.04em; text-transform: uppercase; }

/* ============================================================
   FORM
   ============================================================ */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.field input, .field textarea, .field select {
  font: inherit;
  font-size: 16px;
  padding: 14px 16px;
  border: 1px solid var(--rule-strong);
  background: var(--surface);
  border-radius: var(--r-md);
  color: var(--ink);
  transition: border-color var(--t), background var(--t);
}
.field textarea { min-height: 132px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 0;
  border-color: var(--ink);
}
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--rule-strong);
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
  transition: border-color var(--t), background var(--t), color var(--t);
  background: var(--surface);
}
.chip:hover { border-color: var(--ink-2); }
.chip.is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
@media (max-width: 720px) { .form-grid { grid-template-columns: 1fr; } }

/* ============================================================
   BIG CTA / END BLOCK
   ============================================================ */
.endcta {
  background: var(--bg-deep);
  color: var(--fg-on-deep);
  padding: clamp(64px, 8vw, 120px) 0;
  position: relative;
  overflow: hidden;
}
.endcta .lead         { color: rgba(244, 241, 232, 0.72); }
.endcta .muted        { color: rgba(244, 241, 232, 0.55); }
.endcta .eyebrow,
.endcta .eyebrow--plain { color: rgba(244, 241, 232, 0.55); }
.endcta__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: end;
}
.endcta h2 {
  font-size: clamp(40px, 6vw, 88px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1;
  text-wrap: balance;
}
.endcta h2 em { color: rgba(244, 241, 232, 0.55); font-style: italic; font-weight: 400; }
.endcta .italic-accent { color: rgba(244, 241, 232, 0.55); }
.endcta__side { display: grid; gap: 18px; }
@media (max-width: 880px) { .endcta__grid { grid-template-columns: 1fr; } }

/* ============================================================
   PAGE HEADER
   ============================================================ */
.page-head { padding-block: clamp(64px, 9vw, 132px) clamp(40px, 5vw, 72px); }
.page-head .display { max-width: 18ch; }
.page-head__meta {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* Split layout: left = title, right = contextual aside */
.page-head__split {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(32px, 5vw, 96px);
  align-items: end;
}
.page-head__main { display: grid; gap: 24px; }
.page-head__aside { display: grid; gap: 16px; align-self: end; }
@media (max-width: 980px) {
  .page-head__split { grid-template-columns: 1fr; gap: 40px; }
}

/* Quick-pick decision card — used on Servicios page-head aside */
.quickpick {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: 24px 26px;
}
.quickpick__title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.quickpick__list { display: grid; gap: 0; }
.quickpick__list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--rule);
  font-size: 14px;
  align-items: baseline;
  line-height: 1.4;
}
.quickpick__list li:first-child { border-top: 0; padding-top: 4px; }
.quickpick__list li:last-child { padding-bottom: 4px; }
.quickpick__list strong {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--accent);
  font-weight: 500;
  white-space: nowrap;
}

/* Vertical stat list — used on Portfolio page-head aside */
.stat-list {
  border-top: 1px solid var(--rule);
}
.stat-list__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
}
.stat-list__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.stat-list__val {
  font-size: clamp(28px, 2.4vw, 40px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-list__val .unit { color: var(--accent); }

/* Smaller mono-tag variant — used when right side is a label, not a number */
.stat-list__val--tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 500;
  white-space: nowrap;
}

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--t), transform 0.7s var(--t);
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   TWEAKS PANEL
   ============================================================ */
.tweaks {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 80;
  width: 280px;
  background: var(--surface);
  border: 1px solid var(--rule-strong);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 16px 40px -16px rgba(0,0,0,0.18);
  font-size: 13px;
  display: none;
}
.tweaks.is-open { display: block; }
.tweaks h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; font-weight: 500; }
.tweaks__row { display: grid; gap: 8px; margin-bottom: 16px; }
.tweaks__swatches { display: flex; gap: 8px; }
.tweaks__sw {
  width: 32px; height: 32px;
  border-radius: 999px;
  border: 1px solid var(--rule-strong);
  cursor: pointer;
  position: relative;
}
.tweaks__sw[aria-pressed="true"]::after {
  content: ""; position: absolute; inset: -4px;
  border: 1px solid var(--ink); border-radius: 999px;
}
.tweaks__seg { display: inline-flex; background: var(--paper-2); padding: 3px; border-radius: 999px; gap: 2px; }
.tweaks__seg button {
  padding: 6px 12px; border-radius: 999px; font-size: 12px; color: var(--ink-2);
}
.tweaks__seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,0.06); }

/* WhatsApp floating */
.fab-wa {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 52px; height: 52px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  z-index: 60;
  transition: background var(--t), transform var(--t);
  box-shadow: 0 12px 28px -12px rgba(0,0,0,0.2);
}
.fab-wa:hover { background: var(--accent); transform: translateY(-1px); }

/* Utilities */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 80px); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 40px); }
@media (max-width: 880px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
.flex-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mt-64 { margin-top: 64px; }

.tag-row { display: flex; gap: 6px; flex-wrap: wrap; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--ink-3);
  background: var(--paper-2);
  text-transform: uppercase;
}
.tag--accent { background: var(--accent-soft); color: var(--accent-ink); }

/* Hero specific composition */
.hero {
  padding-top: clamp(40px, 5vw, 80px);
  padding-bottom: clamp(40px, 5vw, 80px);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
}
.hero__title { max-width: 18ch; }
.hero__title em { color: var(--ink-3); font-style: italic; font-weight: 400; }
.hero__title .underline {
  display: inline-block;
  position: relative;
  padding-bottom: 4px;
}
.hero__title .underline::after {
  content: "";
  position: absolute;
  left: 0; right: 8%;
  bottom: 6px;
  height: 6px;
  background: var(--accent);
  opacity: 0.85;
  z-index: -1;
}
.hero__bullets {
  display: grid; gap: 12px;
  margin-top: 28px;
}
.hero__bullets li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 15px;
  color: var(--ink-2);
}
.hero__bullets li::before {
  content: "";
  width: 16px; height: 1px; background: var(--accent);
  flex: 0 0 auto;
  transform: translateY(-4px);
}
.hero__meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 24px;
  margin-top: 32px;
  border-top: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.hero__meta span strong { color: var(--ink); font-weight: 500; }

/* Section eyebrow + title block */
.sec-head { display: grid; gap: 14px; max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.sec-head .title { font-size: clamp(30px, 3.4vw, 52px); font-weight: 500; letter-spacing: -0.025em; line-height: 1.08; text-wrap: balance; }
.sec-head .title em { color: var(--ink-3); font-style: italic; font-weight: 400; }
.sec-head .lead { margin-top: 8px; }
.sec-head--right { margin-left: auto; }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head--center .eyebrow { justify-self: center; }

/* Side-by-side feature */
.feat {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(28px, 4vw, 72px);
  align-items: center;
  padding-block: clamp(40px, 5vw, 72px);
  border-top: 1px solid var(--rule);
}
.feat:last-child { border-bottom: 1px solid var(--rule); }
.feat--reverse > :first-child { order: 2; }
@media (max-width: 880px) {
  .feat { grid-template-columns: 1fr; }
  .feat--reverse > :first-child { order: 0; }
}
.feat__body { display: grid; gap: 14px; max-width: 56ch; }
.feat__title { font-size: clamp(24px, 2.4vw, 36px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; text-wrap: balance; }
.feat__copy  { color: var(--ink-2); }
.feat__list { display: grid; gap: 8px; margin-top: 16px; }
.feat__list li {
  display: flex; gap: 12px; align-items: baseline;
  font-size: 14px; color: var(--ink-2);
  padding: 10px 0;
  border-top: 1px solid var(--rule);
}
.feat__list li::before {
  content: counter(li, decimal-leading-zero);
  counter-increment: li;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  flex: 0 0 32px;
}
.feat__list { counter-reset: li; }

/* dark hero variant */
.hero--dark { background: var(--bg-deep); color: var(--fg-on-deep); }
.hero--dark .lead { color: rgba(244, 241, 232, 0.72); }
.hero--dark .eyebrow { color: rgba(244, 241, 232, 0.55); }
.hero--dark .hero__meta { color: rgba(244, 241, 232, 0.55); border-top-color: rgba(244, 241, 232, 0.1); }
.hero--dark .hero__meta span strong { color: var(--fg-on-deep); }
.hero--dark .btn--primary { background: var(--fg-on-deep); color: var(--bg-deep); }
.hero--dark .btn--primary:hover { background: var(--accent); color: #fff; }
.hero--dark .btn--ghost { border-color: rgba(244, 241, 232, 0.22); color: var(--fg-on-deep); background: transparent; }
.hero--dark .btn--ghost:hover { border-color: var(--fg-on-deep); }

/* Buttons inside the dark end-CTA section need to flip too */
.endcta .btn--primary { background: var(--fg-on-deep); color: var(--bg-deep); }
.endcta .btn--primary:hover { background: var(--accent); color: #fff; }
.endcta .btn--ghost { border-color: rgba(244, 241, 232, 0.22); color: var(--fg-on-deep); background: transparent; }
.endcta .btn--ghost:hover { border-color: var(--fg-on-deep); background: rgba(244, 241, 232, 0.05); }
.endcta .link-arrow { color: var(--fg-on-deep); border-color: rgba(244, 241, 232, 0.4); }
.endcta .link-arrow:hover { color: var(--accent); border-color: var(--accent); }

/* Same rule for any section using surface=dark via .section--ink */
.section--ink .btn--primary { background: var(--fg-on-deep); color: var(--bg-deep); }
.section--ink .btn--primary:hover { background: var(--accent); color: #fff; }
.section--ink .btn--ghost { border-color: rgba(244, 241, 232, 0.22); color: var(--fg-on-deep); background: transparent; }
.section--ink .btn--ghost:hover { border-color: var(--fg-on-deep); }

/* ============================================================
   CLIENT LOGOS
   ============================================================ */
.logos {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  overflow: hidden;
}
.logo-cell {
  background: var(--surface);
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  padding: 18px;
  position: relative;
  transition: background var(--t);
}
.logo-cell:hover { background: var(--paper-2); }
.logo-cell__inner {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-align: center;
  line-height: 1.5;
}
.logo-cell__inner strong {
  display: block;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.015em;
  text-transform: none;
  color: var(--ink);
  margin-bottom: 2px;
}
@media (max-width: 980px) { .logos { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .logos { grid-template-columns: repeat(2, 1fr); } }

/* ============================================================
   REVIEW · Refinamientos UI/UX + accesibilidad (2026-06)
   Solo pulido — no altera contenido ni estructura del sitio.
   ============================================================ */

/* (1) Respetar prefers-reduced-motion también en el scroll suave */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* (2) Failsafe: si el JS está deshabilitado, el contenido con [data-reveal]
   debe verse igual (evita que secciones queden invisibles). */
@media (scripting: none) {
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* (3) Foco visible y accesible en los campos de formulario
   (antes el outline se eliminaba por completo). */
.field input:focus-visible,
.field textarea:focus-visible,
.field select:focus-visible {
  outline: 0;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 22%, transparent);
}

/* (4) Feedback de hover en las tarjetas de portafolio (antes sin estado) */
.work .imgph { transition: transform var(--t); }
.work:hover .imgph,
.work:focus-visible .imgph { transform: scale(1.012); }
.work__title { transition: color var(--t); }
.work:hover .work__title,
.work:focus-visible .work__title { color: var(--accent); }

/* (5) Indicador de acento al pasar por la lista de servicios */
.service::before {
  content: "";
  position: absolute;
  left: -1px; top: 50%;
  width: 2px; height: 0;
  background: var(--accent);
  transform: translateY(-50%);
  transition: height var(--t);
}
.service:hover::before,
.service:focus-within::before { height: 62%; }

/* (6) Profundidad sutil en el CTA primario al hover */
.btn--primary {
  transition: background var(--t), color var(--t), border-color var(--t),
              transform var(--t), box-shadow var(--t);
}
.btn--primary:hover {
  box-shadow: 0 10px 24px -12px color-mix(in oklab, var(--accent) 70%, transparent);
}

/* (7) Feedback de hover en las preguntas frecuentes */
.faq summary { transition: color var(--t); }
.faq summary:hover { color: var(--accent); }

/* (8) Sin transform/elevación de hover para quienes piden menos movimiento */
@media (prefers-reduced-motion: reduce) {
  .work:hover .imgph,
  .work:focus-visible .imgph { transform: none; }
  .btn--primary:hover { box-shadow: none; }
}
