/* ============================================================
   Germán Olivera — Portfolio (Montovera visual system)
   Dark mode, Montovera palette, Raleway throughout
   ============================================================ */

/* ---------- Design tokens ----------------------------------- */
:root {
  /* Montovera palette (subset used) */
  --dark:        #22252b;
  --light-100:   #fff3f0;
  --light-200:   #ffede8;
  --red-900:     #381514;
  --red-700:     #722020;
  --red-500:     #b44c46;
  --red-400:     #d65b58;
  --red-200:     #f48e8e;
  --teal-900:    #0d2d28;
  --teal-700:    #298077;
  --teal-600:    #2da495;
  --teal-400:    #52c0ae;
  --teal-100:    #c3e6e5;

  /* Semantic */
  --bg:          var(--dark);
  --bg-elev:     #2a2d34;
  --bg-elev-2:   #32363e;
  --fg:          var(--light-100);
  --fg-muted:    rgba(255, 243, 240, 0.62);
  --fg-faint:    rgba(255, 243, 240, 0.38);
  --accent:      var(--red-400);     /* primary accent — CTAs, hero highlight */
  --accent-2:    var(--teal-400);    /* secondary accent — bullets, dot, focus cue */
  --accent-dim:  rgba(214, 91, 88, 0.18);
  --rule:        rgba(255, 243, 240, 0.10);
  --rule-strong: rgba(255, 243, 240, 0.18);

  /* Type */
  --font-sans:    "Raleway", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Raleway", system-ui, sans-serif;

  /* Spacing scale (8-16-24-40-64-96-160) */
  --s-1: 8px;
  --s-2: 16px;
  --s-3: 24px;
  --s-4: 40px;
  --s-5: 64px;
  --s-6: 96px;
  --s-7: 160px;

  /* Layout */
  --max:    1280px;
  --read:   720px;
  --gutter: 32px;

  /* Radii */
  --r-sm: 2px;
  --r-md: 4px;
  --r-lg: 8px;

  /* Nav */
  --nav-h: 54px; /* height of sticky nav pill + top offset */
}

@media (max-width: 720px) {
  :root { --gutter: 20px; }
}

/* ---------- Base reset -------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, video { max-width: 100%; display: block; }

a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 3px;
  transition: color 180ms ease;
}

a:hover { color: var(--accent); }

::selection { background: var(--accent); color: var(--light-100); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 2px;
}

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }

/* ---------- Layout primitives ------------------------------- */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.read { max-width: var(--read); }

.section { padding-block: var(--s-6); }
@media (max-width: 720px) { .section { padding-block: var(--s-5); } }
.section-lg { padding-block: var(--s-7); }
@media (max-width: 720px) { .section-lg { padding-block: var(--s-6); } }

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--s-3);
}

/* ---------- Typography -------------------------------------- */
/* Raleway is geometric and slightly wide — pulls in a touch on display sizes */
.h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin: 0;
  text-wrap: balance;
}

.h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0;
  text-wrap: balance;
}

.h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-weight: 600;
  margin: 0;
}

.body-lg { font-size: 1.125rem; line-height: 1.55; }
.body    { font-size: 1rem;     line-height: 1.6; }
.small   { font-size: 0.875rem; line-height: 1.5; }

.muted   { color: var(--fg-muted); }
.faint   { color: var(--fg-faint); }

/* Letterspaced caps for meta / labels — Montovera signature */
.eyebrow,
.label-caps {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.eyebrow-muted {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

/* Long-form prose */
.prose p { margin: 0 0 1.25em; }
.prose p:last-child { margin-bottom: 0; }
.prose h2 { margin: 3em 0 1em; }
.prose h3 { margin: 2.5em 0 0.75em; }
.prose a { border-bottom: 1px solid var(--rule-strong); padding-bottom: 1px; }
.prose a:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Header / Nav — floating pill, sticky top ---------- */

/* Wrapper: full-width transparent, just handles sticky + vertical margin */
.site-header {
  position: sticky;
  top: 12px;
  z-index: 999;
  padding-inline: var(--gutter);
  pointer-events: none; /* Let clicks pass through the wrapper gap */
}

/* Pill: the actual visible element, centered, not full-width */
.site-header .nav {
  pointer-events: all;
  /* Override .container centering */
  max-width: 900px;
  margin: 0 auto;
  /* Inner layout */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: 8px 8px 8px 16px;
  /* Pill shape */
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28);
  /* Glass — transparent background, blur only */
  background: transparent;
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
}

/* Logo: small circle around the mark + brand name */
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 0.9375rem;
  color: var(--fg);
  text-decoration: none;
}


.nav-brand .mark {
  width: 20px;
  height: 20px;
  display: block;
  padding: 9px;
  background: var(--surface);
  box-sizing: content-box;
  flex-shrink: 0;
}

.nav-brand:hover { opacity: 0.85; }

.nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-links a {
  color: var(--fg-muted);
  position: relative;
  padding: 7px 14px;
  border-radius: 100px;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
  color: var(--fg);
  background: rgba(255, 255, 255, 0.06);
}

.nav-links a[aria-current="page"] {
  color: var(--fg);
}

.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 3px;
  height: 1.5px;
  background: var(--accent-2);
  border-radius: 2px;
}

/* "Let's Talk" pill CTA in nav */
.nav-cta {
  background: var(--accent);
  color: var(--fg) !important;
  padding: 0.38em 1.1em;
  border-radius: 100px;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.025em;
  text-decoration: none !important;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.15s ease;
}
.nav-cta:hover { background: #c14c49; transform: translateY(-1px); }
.site-header--on-light .nav-cta { color: var(--fg) !important; }

/* Nav on light sections — flip text to dark */
.nav-brand,
.nav-links a {
  transition: color 0.3s ease, background 0.2s ease, opacity 0.2s ease;
}
.nav-brand .mark {
  filter: brightness(1);
  transition: filter 0.3s ease;
}

.site-header .nav {
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header--on-light .nav {
  border-color: rgba(34, 37, 43, 0.14);
  box-shadow: 0 4px 24px rgba(34, 37, 43, 0.12);
}

.site-header--on-light .nav-brand {
  color: var(--dark, #22252b);
}

.site-header--on-light .nav-brand .mark {
  filter: brightness(0);
}

.site-header--on-light .nav-links a {
  color: rgba(34, 37, 43, 0.6);
}

.site-header--on-light .nav-links a:hover {
  color: var(--dark, #22252b);
  background: rgba(34, 37, 43, 0.06);
}

.site-header--on-light .nav-links a[aria-current="page"] {
  color: var(--dark, #22252b);
}

/* Language switcher */
.lang-switch {
  position: absolute;
  top: 50%;
  right: var(--gutter);
  transform: translateY(-50%);
  pointer-events: all;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.lang-switch a {
  color: rgba(255, 243, 240, 0.35);
  text-decoration: none;
  padding: 3px 5px;
  border-radius: 4px;
  transition: color 0.2s ease;
}
.lang-switch a.is-active { color: var(--fg); }
.lang-switch a:hover { color: var(--fg); }
.lang-switch span { color: rgba(255, 243, 240, 0.18); }

.site-header--on-light .lang-switch {
}
.site-header--on-light .lang-switch a { color: rgba(34, 37, 43, 0.35); }
.site-header--on-light .lang-switch a.is-active { color: var(--dark, #22252b); }
.site-header--on-light .lang-switch a:hover { color: var(--dark, #22252b); }
.site-header--on-light .lang-switch span { color: rgba(34, 37, 43, 0.18); }

@media (max-width: 720px) {
  .site-header { top: 8px; padding-inline: 8px; }
  .site-header .nav { padding: 5px 5px 5px 12px; border-radius: 100px; gap: 8px; }
  .nav-links { gap: 0; font-size: 0.78rem; }
  .nav-links a { padding: 7px 9px; }
  .nav-links .nav-secondary { display: none; }
  /* Force the wrap back to two lines ("Let's" / "Chat") instead of
     stretching the pill wide enough to fit on one. */
  .nav-cta { padding: 0.5em 1.1em; font-size: 0.78rem; max-width: 3.4em; white-space: normal; }
  /* Drop the wordmark text on mobile, keep the icon (bigger) —
     name stays available to AT via the link's aria-label. */
  .nav-brand { font-size: 0; gap: 0; white-space: nowrap; }
  .nav-brand .mark { width: 26px; height: 26px; padding: 10px; }

  /* Lang switch collided with the nav-cta pill on narrow screens —
     drop it below the pill instead of overlaying it. */
  .lang-switch {
    position: static;
    transform: none;
    width: 100%;
    justify-content: center;
    margin-top: 10px;
  }
}

/* ---------- Hero -------------------------------------------- */
/* Spacing per 02_COPY.md hero spec — generous, intentional. */
.hero {
  padding-top: clamp(80px, 12vh, 160px);
  padding-bottom: clamp(80px, 14vh, 180px);
  position: relative;
  overflow: hidden;
}
/* Keep inner container above the background layer */
.hero > .container,
.page-header > .container { position: relative; z-index: 1; }

.hero-name {
  display: block;
  color: var(--accent-2);
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--s-3);
}

/* Sub-tagline directly under the headline ("I help you decide…" line is in
   the headline itself; this is the scope corrective "Web, digital, print…") */
.hero-subline {
  margin-top: 20px;
  max-width: 42ch;
  color: var(--fg-muted);
  font-size: 1.125rem;
  line-height: 1.5;
}
@media (max-width: 720px) {
  .hero-subline { margin-top: 18px; font-size: 1.0625rem; line-height: 1.65; max-width: 34ch; }
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5.5vw, 4.75rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 700;
  max-width: 18ch;
  margin: 0;
  text-wrap: balance;
}
@media (max-width: 720px) {
  /* 5.5vw under-shoots on phones — give the headline real weight */
  .hero-headline { font-size: clamp(3.6rem, 12vw, 4.75rem); max-width: 13ch; }
}

.hero-headline .accent { color: var(--accent); }
.hero-headline .dim { color: var(--fg-muted); }

.hero-meta {
  margin-top: var(--s-5);
  display: flex;
  gap: var(--s-4);
  flex-wrap: wrap;
  align-items: baseline;
}

.hero-status {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--fg-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-status .pulse {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid var(--accent-2);
  background: transparent;
  margin-right: 10px;
  vertical-align: middle;
  transform: translateY(-1px);
  box-shadow: 0 0 0 4px rgba(82, 192, 174, 0.10);
}

.hero-ctas {
  margin-top: 48px;
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
}
@media (max-width: 720px) { .hero-ctas { margin-top: 32px; } }

/* Tz-clock specific spacing — sits in its own visual zone */
.hero .tz-clock {
  margin-top: 64px;
  position: relative;
  padding-top: 24px;
}
@media (max-width: 720px) {
  .hero .tz-clock { margin-top: 40px; padding-top: 20px; }
}
/* Optional thin divider above the clock — 1px line, accent color at 30%, ~120px */
.hero .tz-clock::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 120px;
  height: 1px;
  background: color-mix(in oklab, var(--accent) 50%, transparent);
}

/* ---------- Buttons / inline link cues ---------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-md);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--fg);
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.btn:hover {
  color: var(--light-100);
  background: var(--accent);
  border-color: var(--accent);
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--light-100);
}

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

.btn .arrow { transition: transform 200ms ease; }
.btn:hover .arrow { transform: translateX(3px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--fg);
  border-bottom: 1px solid var(--rule-strong);
  padding-bottom: 2px;
  font-weight: 500;
  transition: color 180ms ease, border-color 180ms ease;
}

.link-arrow:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.link-arrow .arrow { transition: transform 200ms ease; }
.link-arrow:hover .arrow { transform: translate(3px, -3px); }

/* ---------- Section heading block --------------------------- */
.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
  align-items: end;
  margin-bottom: var(--s-5);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--rule);
}

.section-head .index {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.section-head .title { grid-column: 1 / -1; }
/* Without this, .meta lands in the leftover half-width column on
   mobile (1fr 1fr grid) and wraps far too narrow. */
.section-head .meta { grid-column: 1 / -1; max-width: none; }

@media (min-width: 800px) {
  .section-head { grid-template-columns: auto 1fr; }
  .section-head .title { grid-column: auto; }
  .section-head .meta { grid-column: auto; justify-self: end; text-align: right; max-width: 38ch; }
}

/* ---------- Work list (project grid) ------------------------ */
.work-list {
  display: flex;
  flex-direction: column;
}

.work-row {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: var(--s-3);
  align-items: center;
  padding: 28px 0;
  border-top: 1px solid var(--rule);
  position: relative;
  transition: padding 240ms ease;
}

.work-row:last-child { border-bottom: 1px solid var(--rule); }

.work-row .num {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--fg-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.work-row .title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--fg);
  transition: color 240ms ease, transform 240ms ease;
}

.work-row .tags {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--fg-muted);
  letter-spacing: 0.02em;
  text-align: right;
}

.work-row .arrow-cell {
  font-family: var(--font-sans);
  color: var(--fg-faint);
  font-size: 1.125rem;
  transition: color 240ms ease, transform 240ms ease;
  margin-left: var(--s-3);
}

.work-row:hover .title { color: var(--accent); transform: translateX(6px); }
.work-row:hover .arrow-cell { color: var(--accent); transform: translateX(6px); }

@media (max-width: 720px) {
  .work-row { grid-template-columns: 40px 1fr; }
  .work-row .tags { grid-column: 2; text-align: left; }
  .work-row .arrow-cell { display: none; }
}

/* ---------- Project placeholder image block ----------------- */
.placeholder {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  display: flex;
  align-items: flex-end;
  padding: var(--s-3);
}

.placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(214, 91, 88, 0.10), transparent 60%);
  pointer-events: none;
}

.placeholder-16x10 { aspect-ratio: 16 / 10; }
.placeholder-4x3   { aspect-ratio: 4 / 3; }
.placeholder-1x1   { aspect-ratio: 1 / 1; }

.placeholder-label {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent-2);
  text-transform: uppercase;
}

.placeholder-label .title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--accent);
  line-height: 1.05;
}

.placeholder-corner {
  position: absolute;
  top: var(--s-3);
  right: var(--s-3);
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-faint);
}

/* ---------- About teaser ------------------------------------ */
.about-teaser {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
}

@media (min-width: 900px) {
  .about-teaser {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: var(--s-6);
  }
}

.about-teaser .label { color: var(--fg-muted); }

.about-teaser .lede {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.2vw, 1.625rem);
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--fg);
  margin: 0 0 var(--s-3);
  text-wrap: pretty;
}

/* ---------- Contact CTA block ------------------------------- */
.contact-cta {
  border-top: 1px solid var(--rule);
  padding-top: var(--s-4);
}

.contact-cta .h2 {
  max-width: 22ch;
  margin-bottom: var(--s-4);
}

/* ---------- Footer ------------------------------------------ */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: var(--s-5) 0 var(--s-4);
  margin-top: var(--s-6);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
  align-items: start;
}

@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.footer-grid h4 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin: 0 0 14px;
}

.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin: 0 0 8px; }
.footer-grid a { color: var(--fg); }
.footer-grid a:hover { color: var(--accent); }

.footer-bottom {
  margin-top: var(--s-5);
  padding-top: var(--s-3);
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-3);
  flex-wrap: wrap;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.footer-brand-line {
  font-family: var(--font-display);
  font-size: clamp(2rem, 9vw, 7rem);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 700;
  -webkit-text-stroke: 1px rgba(255, 243, 240, 0.45);
  color: transparent;
  margin: 0 0 var(--s-4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- About / Process pages --------------------------- */
.page-header {
  padding-top: var(--s-6);
  padding-bottom: var(--s-5);
  border-bottom: 1px solid var(--rule);
}

.page-header .label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent-2);
  text-transform: uppercase;
  margin-bottom: var(--s-3);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6);
  padding-top: var(--s-6);
}

@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  }
}

.about-aside {
  position: sticky;
  top: 100px;
  align-self: start;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--fg-muted);
  line-height: 1.6;
}

.about-aside dt {
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.6875rem;
  font-weight: 600;
  margin-top: 18px;
}

.about-aside dt:first-of-type { margin-top: 0; }
.about-aside dd { margin: 4px 0 0; color: var(--fg); font-weight: 500; }

/* ---------- Process page ------------------------------------ */
.process-step {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-3);
  padding: var(--s-5) 0;
  border-top: 1px solid var(--rule);
}

.process-step:last-child { border-bottom: 1px solid var(--rule); }

@media (min-width: 800px) {
  .process-step {
    grid-template-columns: 110px 1fr;
    gap: var(--s-5);
    padding: var(--s-5) 0;
  }
}

.process-step .step-num {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.process-step h3 { margin: 0 0 12px; }
.process-step p { margin: 0; max-width: 56ch; }

/* ---------- Contact page ------------------------------------ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
  padding-top: var(--s-6);
}

@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1fr 1fr; gap: var(--s-6); }
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: var(--s-3) 0 0;
}

.contact-list li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: var(--s-3);
  padding: 14px 0;
  border-top: 1px solid var(--rule);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
}

.contact-list li:last-child { border-bottom: 1px solid var(--rule); }
.contact-list .label {
  color: var(--accent-2);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.6875rem;
  font-weight: 600;
  align-self: center;
}
.contact-list .value { color: var(--fg); font-weight: 500; }
.contact-list a:hover { color: var(--accent); }

/* Signature teal bullet ◦ — Montovera */
.brand-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.brand-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--s-2);
  padding: 6px 0;
}
.brand-list li::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border: 2px solid var(--teal-400);
  border-radius: 50%;
  margin-top: 7px;
  flex-shrink: 0;
}

/* Contact form */
.form {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}

.form-row { display: flex; flex-direction: column; gap: 8px; }
.form label {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.form input,
.form textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule-strong);
  padding: 12px 0;
  color: var(--fg);
  font-size: 1rem;
  font-family: inherit;
  font-weight: 500;
  width: 100%;
  resize: vertical;
}

.form input:focus,
.form textarea:focus {
  border-color: var(--accent);
  outline: none;
}

.form textarea { min-height: 140px; }

.form button {
  align-self: flex-start;
  margin-top: var(--s-3);
}

/* ---------- Case study layout ------------------------------- */
.case-hero {
  padding-top: var(--s-6);
  padding-bottom: var(--s-5);
}

.case-summary {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: -0.015em;
  max-width: 28ch;
  margin: 0 0 var(--s-5);
  color: var(--fg);
  text-wrap: balance;
}

.case-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3) var(--s-4);
  padding: var(--s-4) 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-bottom: var(--s-6);
}

@media (min-width: 800px) {
  .case-meta { grid-template-columns: repeat(4, 1fr); }
}

.case-meta dt {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 6px;
}

.case-meta dd {
  font-size: 0.9375rem;
  color: var(--fg);
  margin: 0;
  line-height: 1.4;
  font-weight: 500;
}

.case-section {
  padding-block: var(--s-6);
  border-top: 1px solid var(--rule);
}

.case-section:first-of-type { border-top: 0; }

.case-section .eyebrow {
  display: block;
  margin-bottom: var(--s-3);
}

.case-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 var(--s-4);
  max-width: 22ch;
}

.case-section p {
  max-width: var(--read);
  margin: 0 0 1.25em;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--fg);
}

.case-section p:last-child { margin-bottom: 0; }

.case-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-3);
}

@media (min-width: 800px) {
  .case-grid-2 { grid-template-columns: 1fr 1fr; gap: var(--s-3); }
}

.case-quote {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: var(--s-5) 0;
}

.case-quote blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  line-height: 1.4;
  letter-spacing: -0.01em;
  font-weight: 500;
  max-width: 36ch;
  text-wrap: balance;
}

.case-quote cite {
  display: block;
  margin-top: var(--s-3);
  font-style: normal;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.case-next {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-3);
  padding: var(--s-5) 0;
  border-top: 1px solid var(--rule);
  align-items: end;
}

@media (min-width: 800px) {
  .case-next { grid-template-columns: auto 1fr auto; gap: var(--s-5); }
}

.case-next .label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
}
.case-next .next-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.case-next a:hover .next-title { color: var(--accent); }
.case-next .arrow { color: var(--fg-faint); }
.case-next a:hover .arrow { color: var(--accent); }

.fill-in {
  display: inline-block;
  background: var(--accent-dim);
  color: var(--red-200);
  padding: 2px 8px;
  border-radius: var(--r-sm);
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px dashed rgba(244, 142, 142, 0.4);
}

/* ---------- 404 -------------------------------------------- */
.notfound {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.notfound .code {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-2);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--s-3);
}

.notfound h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 var(--s-3);
  max-width: 20ch;
}

.notfound .actions {
  margin-top: var(--s-4);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.notfound .actions a { display: inline-flex; align-items: center; gap: 10px; }

/* ---------- A11y -------------------------------------------- */
.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;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  background: var(--accent);
  color: var(--light-100);
  padding: 10px 14px;
  border-radius: var(--r-md);
  font-weight: 600;
  z-index: 100;
  transition: top 200ms ease;
}
.skip:focus { top: 12px; }

/* ============================================================
   Theme variants — Montovera color rotation
   Wrap a section (or page area) in .theme-* to flip palette.
   Tokens cascade so all child components adapt automatically.
   ============================================================ */

.theme-warm {
  --bg:           var(--light-100);
  --fg:           var(--dark);
  --fg-muted:     rgba(34, 37, 43, 0.65);
  --fg-faint:     rgba(34, 37, 43, 0.42);
  --rule:         rgba(34, 37, 43, 0.12);
  --rule-strong:  rgba(34, 37, 43, 0.24);
  --accent:       var(--red-700);
  --accent-2:     var(--teal-700);
  --accent-dim:   rgba(214, 91, 88, 0.14);
  --bg-elev:      rgba(34, 37, 43, 0.04);
  --bg-elev-2:    rgba(34, 37, 43, 0.08);
  background: var(--bg);
  color: var(--fg);
}

.theme-red {
  --bg:           var(--red-700);
  --fg:           var(--light-100);
  --fg-muted:     rgba(255, 243, 240, 0.78);
  --fg-faint:     rgba(255, 243, 240, 0.5);
  --rule:         rgba(255, 243, 240, 0.20);
  --rule-strong:  rgba(255, 243, 240, 0.34);
  --accent:       var(--light-100);
  --accent-2:     var(--teal-100);
  --accent-dim:   rgba(255, 243, 240, 0.12);
  --bg-elev:      rgba(255, 243, 240, 0.06);
  --bg-elev-2:    rgba(255, 243, 240, 0.10);
  background: var(--bg);
  color: var(--fg);
}

.theme-teal {
  --bg:           var(--teal-700);
  --fg:           var(--light-100);
  --fg-muted:     rgba(255, 243, 240, 0.78);
  --fg-faint:     rgba(255, 243, 240, 0.5);
  --rule:         rgba(255, 243, 240, 0.20);
  --rule-strong:  rgba(255, 243, 240, 0.34);
  --accent:       var(--red-200);
  --accent-2:     var(--light-100);
  --accent-dim:   rgba(244, 142, 142, 0.20);
  --bg-elev:      rgba(255, 243, 240, 0.06);
  --bg-elev-2:    rgba(255, 243, 240, 0.10);
  background: var(--bg);
  color: var(--fg);
}

/* Full-bleed colored bands break out of any container */
.bleed {
  margin-left: calc(-1 * var(--gutter));
  margin-right: calc(-1 * var(--gutter));
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* Within a themed block, placeholder uses themed elev + dashed border */
.theme-warm .placeholder,
.theme-red .placeholder,
.theme-teal .placeholder {
  background: var(--bg-elev);
  border: 1px dashed var(--rule-strong);
}
.theme-warm .placeholder::before,
.theme-red .placeholder::before,
.theme-teal .placeholder::before { display: none; }

.theme-warm .placeholder-label,
.theme-red .placeholder-label,
.theme-teal .placeholder-label { color: var(--accent-2); }

.theme-warm .placeholder-label .title,
.theme-red .placeholder-label .title,
.theme-teal .placeholder-label .title { color: var(--accent); }

/* Primary button on red/teal themes inverts (light fill, dark text) */
.theme-red .btn-primary,
.theme-teal .btn-primary {
  background: var(--light-100);
  border-color: var(--light-100);
  color: var(--dark);
}
.theme-red .btn-primary:hover,
.theme-teal .btn-primary:hover {
  background: transparent;
  color: var(--light-100);
  border-color: var(--light-100);
}
.theme-red .btn:hover,
.theme-teal .btn:hover {
  background: var(--light-100);
  color: var(--dark);
  border-color: var(--light-100);
}

/* ============================================================
   Ways to work together — three cards
   ============================================================ */
.ways {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-3);
  margin-top: var(--s-5);
}

@media (min-width: 800px) {
  .ways { grid-template-columns: repeat(3, 1fr); gap: var(--s-3); }
}

.way-card {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  padding: var(--s-4);
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-lg);
  background: var(--bg-elev);
  position: relative;
  min-height: 320px;
  transition: transform 240ms ease, border-color 240ms ease;
}

@media (min-width: 800px) {
  .way-card { padding: var(--s-4) var(--s-4) var(--s-5); }
}

.way-card .way-num {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: var(--s-2);
}

.way-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 0 0 var(--s-2);
  color: var(--fg);
}

.way-card p {
  margin: 0 0 var(--s-2);
  color: var(--fg);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.way-card .best-for {
  margin-top: auto;
  padding-top: var(--s-3);
  border-top: 1px solid var(--rule);
  font-size: 0.875rem;
  color: var(--fg-muted);
  font-weight: 500;
}

.way-card .best-for strong {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 4px;
}

.way-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.ways-footnote {
  margin-top: var(--s-4);
  font-size: 0.9375rem;
  color: var(--fg-muted);
  font-weight: 500;
}

.ways-footnote a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
}

/* ============================================================
   How I help teams decide — four decision cards on About page
   ============================================================ */
.decide-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-3);
  margin: var(--s-4) 0;
  list-style: none;
  padding: 0;
}

@media (min-width: 700px) {
  .decide-list { grid-template-columns: 1fr 1fr; gap: var(--s-3); }
}

.decide-item {
  padding: var(--s-3) 0;
  border-top: 1px solid var(--rule);
}

.decide-item .label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: var(--s-1);
}

.decide-item .what {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.005em;
  margin: 0 0 var(--s-2);
  color: var(--fg);
}

.decide-item .detail {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--fg-muted);
}

/* ============================================================
   Case study hero — themed full-bleed band
   ============================================================ */
.case-band {
  margin-top: calc(-1 * var(--nav-h));
  padding-top: calc(var(--s-6) + var(--nav-h));
  padding-bottom: var(--s-6);
  background: var(--bg);
  color: var(--fg);
}

@media (max-width: 720px) {
  .case-band {
    padding-top: calc(var(--s-5) + var(--nav-h));
    padding-bottom: var(--s-5);
  }
}

.case-band .case-meta {
  border-top-color: var(--rule);
  border-bottom-color: var(--rule);
}

.case-band .case-meta dt { color: var(--accent-2); }
.case-band .case-meta dd { color: var(--fg); }

/* ============================================================
   Live time-zone clock — hero
   ============================================================ */
.tz-clock {
  margin-top: var(--s-5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  align-items: center;
}

.tz-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.tz-status.is-offline { color: var(--fg-muted); }

.tz-status .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-2);
  display: inline-block;
  box-shadow: 0 0 0 4px rgba(82, 192, 174, 0.14);
}

@keyframes tz-breath {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.35; }
}

.tz-status.is-online .dot {
  animation: tz-breath 2.4s ease-in-out infinite;
}

.tz-status.is-offline .dot {
  background: var(--fg-faint);
  box-shadow: none;
}

.tz-cities {
  display: inline-flex;
  gap: var(--s-3);
  flex-wrap: wrap;
}

.tz-city {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  font-family: var(--font-sans);
  line-height: 1.2;
}

.tz-city .label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-faint);
}

.tz-city .time {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   Proof bridge — homepage citation strip
   ============================================================ */
.proof {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding-block: var(--s-5);
}

.proof-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
}

@media (min-width: 900px) {
  .proof-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: var(--s-6);
    align-items: start;
  }
}

.proof-logos {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}

.proof-logos .label {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.proof-logos .names {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--fg);
  line-height: 1.5;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-1) var(--s-3);
}

.proof-logos .names span { display: inline-flex; align-items: center; gap: var(--s-3); }
.proof-logos .names span::after {
  content: "·";
  color: var(--fg-faint);
}
.proof-logos .names span:last-child::after { content: ""; }

.proof-quote {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}

.proof-quote blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 2.2vw, 1.5rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
  font-weight: 500;
  max-width: 42ch;
  text-wrap: balance;
  color: var(--fg);
}

.proof-quote cite {
  font-style: normal;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
}

/* ============================================================
   What I make — disciplines block (About)
   Icon + name + bulleted list inside a card on themed backgrounds
   ============================================================ */
.disciplines {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-3);
  margin: var(--s-5) 0 0;
  list-style: none;
  padding: 0;
}

@media (min-width: 700px) {
  .disciplines { grid-template-columns: 1fr 1fr; gap: var(--s-3); }
}

.discipline {
  padding: var(--s-4);
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-lg);
  background: var(--bg-elev);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  transition: border-color 240ms ease, transform 240ms ease;
}

.discipline:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.discipline-head {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  padding-bottom: var(--s-2);
  border-bottom: 1px solid var(--rule);
}

.discipline-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  color: var(--accent-2);
}

.discipline-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.discipline .name {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--fg);
  text-transform: none;
}

.discipline .brand-list {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--fg);
}

.discipline .brand-list li {
  padding: 4px 0;
  font-weight: 500;
}

/* ============================================================
   Tools list (About) — card layout with icons
   ============================================================ */
.tools {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-3);
  margin: var(--s-4) 0 0;
}

@media (min-width: 700px) {
  .tools { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
}

.tool-card {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding: var(--s-4);
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-lg);
  background: var(--bg-elev);
  transition: border-color 240ms ease, transform 240ms ease;
}

.tool-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.tool-head {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  padding-bottom: var(--s-2);
  border-bottom: 1px solid var(--rule);
}

.tool-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  color: var(--accent-2);
}

.tool-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.tool-card .tk {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  text-transform: none;
  color: var(--fg);
}

.tool-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tool-list li {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--fg);
  padding: 6px 12px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-full, 9999px);
  transition: color 200ms ease, border-color 200ms ease;
}

.tool-list li:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.tool-note {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--fg-muted);
  margin: 4px 0 0;
  font-style: italic;
}

/* ============================================================
   Notes index + article
   ============================================================ */
.notes-list {
  display: flex;
  flex-direction: column;
  margin-top: var(--s-4);
}

.note-row {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: var(--s-3);
  align-items: baseline;
  padding: var(--s-3) 0;
  border-top: 1px solid var(--rule);
  transition: padding 240ms ease;
}

.note-row:last-child { border-bottom: 1px solid var(--rule); }

.note-row .date {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.note-row .title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.625rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--fg);
  transition: color 240ms ease, transform 240ms ease;
}

.note-row .read {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.note-row:hover .title { color: var(--accent); transform: translateX(4px); }

@media (max-width: 720px) {
  .note-row { grid-template-columns: 1fr; gap: 6px; }
  .note-row .read { display: none; }
}

.article {
  padding-top: var(--s-6);
  padding-bottom: var(--s-6);
}

.article header.head {
  margin-bottom: var(--s-5);
  max-width: var(--read);
}

.article .meta-line {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: var(--s-3);
}

.article h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin: 0;
  text-wrap: balance;
}

.article .body {
  max-width: var(--read);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--fg);
}

.article .body h2 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.625rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
  font-weight: 600;
  margin: 2.5em 0 0.75em;
  color: var(--fg);
  max-width: 32ch;
}

.article .body p { margin: 0 0 1.4em; text-wrap: pretty; }
.article .body p:last-child { margin-bottom: 0; }
.article .body em { color: var(--fg); font-style: italic; }
.article .body strong { color: var(--fg); font-weight: 600; }

.article .body a {
  color: var(--accent);
  border-bottom: 1px solid var(--rule-strong);
  padding-bottom: 1px;
  transition: border-color 200ms ease;
}
.article .body a:hover { border-color: var(--accent); }

.article footer.foot {
  margin-top: var(--s-6);
  padding-top: var(--s-4);
  border-top: 1px solid var(--rule);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--fg-muted);
  max-width: var(--read);
  font-style: italic;
}

/* ============================================================
   Animated inline link underline (Phase 4 — left-to-right draw)
   Build on top of .link-underline class. Already-themed links
   keep their existing border-bottom; this is for prose links.
   ============================================================ */
.link-underline {
  position: relative;
  display: inline;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0% 100%;
  background-size: 0% 1px;
  background-repeat: no-repeat;
  padding-bottom: 2px;
  transition: background-size 320ms cubic-bezier(0.22, 1, 0.36, 1),
              background-position 320ms cubic-bezier(0.22, 1, 0.36, 1),
              color 200ms ease;
}

.link-underline:hover,
.link-underline:focus-visible {
  background-size: 100% 1px;
}

/* When mouse leaves, retract right-to-left:
   set background-position to 100% so reverse looks symmetric. */
.link-underline.is-leaving {
  background-position: 100% 100%;
}

/* ============================================================
   Reveal-on-scroll classes (Phase 4)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* SplitText words */
.split-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.6em);
  will-change: transform, opacity;
}
.split-word.is-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================================
   Cursor follower (Phase 4 — desktop only)
   ============================================================ */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  pointer-events: none;
  z-index: 999;
  opacity: 0;
  transform: translate(-50%, -50%) scale(1);
  transition: opacity 200ms ease, transform 220ms cubic-bezier(0.22, 1, 0.36, 1), background 200ms ease;
  mix-blend-mode: difference;
}
.cursor.is-visible { opacity: 0.55; }
.cursor.is-hover  { transform: translate(-50%, -50%) scale(2.6); opacity: 0.35; }

@media (hover: none), (pointer: coarse) {
  .cursor { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .cursor { display: none; }
}

/* ============================================================
   Form focus glow (Phase 4)
   ============================================================ */
.form input:focus,
.form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 8px 24px -16px rgba(214, 91, 88, 0.4);
  outline: none;
}

/* ============================================================
   Project card hover refinement (Phase 4) — underline reveal
   ============================================================ */
.work-row .title {
  background-image: linear-gradient(var(--accent), var(--accent));
  background-position: 0% 100%;
  background-size: 0% 2px;
  background-repeat: no-repeat;
  padding-bottom: 2px;
  transition: color 280ms ease, transform 280ms ease, background-size 340ms cubic-bezier(0.22, 1, 0.36, 1);
}
.work-row:hover .title {
  background-size: 100% 2px;
}

/* ============================================================
   Tools marquee — single row, ~30s loop, pause on hover, mask fade
   ============================================================ */
.marquee {
  position: relative;
  overflow: hidden;
  padding: var(--s-4) 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 12%, #000 88%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 12%, #000 88%, transparent 100%);
}

.marquee-label {
  position: absolute;
  top: 8px;
  left: var(--gutter);
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
  z-index: 1;
  pointer-events: none;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 30s linear infinite;
  will-change: transform;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-row {
  display: flex;
  gap: 48px;
  padding-right: 48px;
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 2.4vw, 1.625rem);
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--fg);
  white-space: nowrap;
  align-items: center;
}

.marquee-row .sep {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
  flex-shrink: 0;
}

@keyframes marquee-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* Reduced-motion: static grid instead */
@media (prefers-reduced-motion: reduce) {
  .marquee {
    -webkit-mask-image: none;
            mask-image: none;
  }
  .marquee-track {
    animation: none;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
    gap: var(--s-2);
  }
  .marquee-row {
    flex-wrap: wrap;
    justify-content: center;
    padding-right: 0;
    gap: 16px;
  }
}

/* ============================================================
   Process Plan phase — tabbed switcher
   ============================================================ */
.plan-tabs {
  display: flex;
  gap: var(--s-3);
  border-bottom: 1px solid var(--rule);
  margin-bottom: var(--s-4);
  flex-wrap: wrap;
}

.plan-tab {
  position: relative;
  padding: 12px 4px 14px;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--fg);
  background: transparent;
  border: 0;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 200ms ease, color 200ms ease;
}

.plan-tab:hover { opacity: 0.85; }

.plan-tab[aria-selected="true"] {
  opacity: 1;
  color: var(--accent);
}

.plan-tab[aria-selected="true"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--accent);
}

@media (max-width: 720px) {
  .plan-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    border-bottom: 0;
  }
  .plan-tab { padding: 10px 4px; }
  .plan-tab[aria-selected="true"]::after { bottom: -2px; }
}

.plan-panel-wrap {
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: var(--s-4);
  min-height: 280px;
  position: relative;
}

@media (min-width: 800px) {
  .plan-panel-wrap { padding: var(--s-5); min-height: 240px; }
}

.plan-panel {
  opacity: 0;
  transition: opacity 250ms cubic-bezier(0.16, 1, 0.3, 1);
}

.plan-panel[data-active="true"] {
  opacity: 1;
  transition-delay: 50ms;
}

.plan-panel[data-active="false"] {
  position: absolute;
  inset: var(--s-4);
  pointer-events: none;
}

@media (min-width: 800px) {
  .plan-panel[data-active="false"] { inset: var(--s-5); }
}

.plan-panel h4 {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin: 0 0 var(--s-2);
  color: var(--fg);
}

/* ============================================================
   Depth pass — ambient gradient, texture, richer components
   ============================================================ */

/* Subtle dual radial gradient replaces flat dark mono-tone */
body {
  background:
    radial-gradient(ellipse 70% 50% at 95% 0%,   rgba(82, 192, 174, 0.055) 0%, transparent 55%),
    radial-gradient(ellipse 55% 40% at 5%  95%,  rgba(214, 91, 88, 0.07)   0%, transparent 55%),
    var(--dark);
}

/* Page-header: context for decorative back-text */
.page-header { position: relative; overflow: hidden; }

.page-header-deco {
  position: absolute;
  right: -0.04em;
  top: 50%;
  transform: translateY(-52%);
  font-family: var(--font-display);
  font-size: clamp(7rem, 22vw, 20rem);
  font-weight: 800;
  letter-spacing: -0.07em;
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 243, 240, 0.07);
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
  z-index: 0;
}
.page-header .label,
.page-header [data-reveal-words],
.page-header .body-lg { position: relative; z-index: 1; }

/* ============================================================
   Page-header + Hero — diagonal line drift background
   Pure CSS, no library. Lines are barely visible (opacity ~2-3%),
   creating a technical-drawing / blueprint texture that drifts
   slowly. Full-width because the section is no longer a container.
   ============================================================ */
.hdr-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent 0,
    transparent 27px,
    rgba(82, 192, 174, 0.028) 27px,
    rgba(82, 192, 174, 0.028) 28px
  );
  animation: hdr-drift 36s linear infinite;
}

@keyframes hdr-drift {
  from { background-position: 0 0; }
  to   { background-position: 56px -56px; }
}

@media (prefers-reduced-motion: reduce) {
  .hdr-bg { animation: none; }
}

/* Discipline icon — was missing from shared styles */
.discipline-head {
  display: flex;
  align-items: center;
  gap: var(--s-2);
}
.discipline-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--accent-2);
  display: block;
}
.discipline-icon svg { width: 100%; height: 100%; display: block; }

/* Stats strip — four large numbers */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--rule);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-bottom: var(--s-6);
}
@media (min-width: 700px) {
  .stats-strip { grid-template-columns: repeat(4, 1fr); }
}
.stat {
  padding: var(--s-4) var(--s-3);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat-n {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--fg);
  line-height: 1;
}
.stat-l {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
}

/* Pull quote in prose */
.inline-quote {
  border-left: 2px solid var(--accent);
  margin: var(--s-4) 0;
  padding: var(--s-2) 0 var(--s-2) var(--s-4);
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--fg);
  max-width: 42ch;
}

/* Richer card hover — shadow depth */
.discipline:hover,
.tool-card:hover,
.way-card:hover {
  box-shadow: 0 16px 48px -16px rgba(214, 91, 88, 0.28);
}

/* Decide items — left accent bar on hover */
.decide-item {
  border-left: 2px solid transparent;
  padding-left: var(--s-2);
  transition: border-color 280ms ease, padding-left 280ms ease;
}
.decide-item:hover { border-left-color: var(--accent-2); }

.plan-panel p {
  margin: 0 0 var(--s-3);
  color: var(--fg);
  font-size: 1rem;
  line-height: 1.55;
  max-width: 56ch;
}

.plan-panel p:last-child { margin-bottom: 0; }

.plan-panel .deliverable {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--fg-muted);
  border-top: 1px solid var(--rule);
  padding-top: var(--s-2);
  margin-top: var(--s-2);
}

.plan-panel .deliverable::before {
  content: "→";
  color: var(--accent);
  font-weight: 600;
  flex-shrink: 0;
}

.plan-panel .deliverable strong {
  color: var(--accent-2);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.6875rem;
  margin-right: 6px;
}

/* ============================================================
   Scroll-triggered text highlight
   Words start dim (30%) and brighten to 100% as paragraph scrolls
   through the upper half of the viewport. Applied SPARINGLY —
   About intro + Process phase openers only.
   ============================================================ */
.scroll-highlight .sh-word {
  display: inline-block;
  opacity: 0.3;
  transition: opacity 80ms linear;
  will-change: opacity;
}

@media (prefers-reduced-motion: reduce) {
  .scroll-highlight .sh-word { opacity: 1 !important; transition: none; }
}

/* ============================================================
   Page transitions — Barba-style fade-down out / fade-up in
   Entry runs as a CSS animation on first paint (no JS delay).
   Leave is JS-triggered (adds .is-leaving before navigation).
   ============================================================ */
/* ---------- Reduced motion ---------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0ms !important;
    animation-duration: 0ms !important;
  }
  .reveal, .split-word { opacity: 1 !important; transform: none !important; }
  .tz-status.is-online .dot { animation: none !important; }
}

/* ============================================================
   Case study — real images
   ============================================================ */

/* Hero image fills the parallax container */
.placeholder.has-image {
  padding: 0;
  background: var(--dark);
  overflow: hidden;
}
.placeholder.has-image .placeholder-corner,
.placeholder.has-image .placeholder-label { display: none; }

.case-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Work grid figures */
.case-fig {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}

.case-img {
  width: 100%;
  display: block;
  object-fit: cover;
  border-radius: 4px;
}
.case-img-4x3  { aspect-ratio: 4 / 3; }
.case-img-16x10 { aspect-ratio: 16 / 10; }

.case-fig-cap {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

/* ============================================================
   Accent word highlight — applied by JS via data-accent-words
   Works on any heading using data-reveal-words
   ============================================================ */
.word-accent {
  color: var(--accent);
  font-style: italic;
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Hero gets a slight size bump on top of the base rule */
.hero-headline .word-accent {
  font-size: 1.05em;
}

/* ============================================================
   Client logos — bidirectional marquee
   ============================================================ */
.clients-marquee {
  overflow: hidden;
  padding: var(--s-4) 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  position: relative;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 10%, #000 90%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 10%, #000 90%, transparent 100%);
}

.cm-label {
  position: absolute;
  top: 8px;
  left: var(--gutter);
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
  z-index: 1;
  pointer-events: none;
}

.cm-row-wrap { overflow: visible; }

.cm-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 42s linear infinite;
  will-change: transform;
}

.cm-track--r { animation-direction: reverse; }

.clients-marquee:hover .cm-track { animation-play-state: paused; }

.cm-row {
  display: flex;
  gap: clamp(28px, 4vw, 64px);
  padding-right: clamp(28px, 4vw, 64px);
  align-items: center;
  white-space: nowrap;
}

/* ---- Client wordmark base ---- */
.cl {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  font-family: var(--font-display);
  line-height: 1;
  color: var(--fg);
  opacity: 0.45;
  transition: opacity 0.3s ease;
  user-select: none;
  gap: 3px;
  cursor: default;
}

.clients-marquee:hover .cl { opacity: 0.7; }

.cl-main {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  line-height: 1;
}

.cl-sub {
  font-size: 0.52rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-faint);
  line-height: 1;
}

/* Geometric separator between logos */
.cl-sep {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--fg-faint);
  flex-shrink: 0;
  align-self: center;
}

/* ---- Per-brand treatments ---- */

/* IFA: institutional, wide tracking */
.cl--ifa .cl-main {
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  font-weight: 800;
}
.cl--ifa .cl-accent { color: var(--accent); }

/* ExcelCredit: weight contrast inline */
.cl--excel .cl-main { font-size: 1rem; }
.cl--excel .cl-light {
  font-weight: 400;
  opacity: 0.7;
}

/* AMD: bold, wide, red tint */
.cl--amd .cl-main {
  font-size: 1.35rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-weight: 800;
}

/* SGS: name in a ruled badge */
.cl--sgs .cl-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid currentColor;
  padding: 3px 8px;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
}

/* In-Ads: dot separator inside the name */
.cl--inads .cl-main { font-size: 0.95rem; letter-spacing: 0.01em; }
.cl--inads .cl-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-2);
  vertical-align: middle;
  margin: 0 3px 1px;
}

/* Equal Travel: light tracking, no heavy weight */
.cl--equal .cl-main {
  font-size: 1rem;
  letter-spacing: 0.06em;
  font-weight: 600;
}

/* Sánchez Gaitán: monogram box + tracking name */
.cl--sanchez .cl-mono {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: var(--fg);
  color: var(--bg);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  margin-bottom: 2px;
}

/* Reduced motion — no scroll */
@media (prefers-reduced-motion: reduce) {
  .cm-track { animation: none; }
  .clients-marquee {
    -webkit-mask-image: none;
            mask-image: none;
  }
  .cm-row { flex-wrap: wrap; gap: var(--s-3); }
}

/* ============================================================
   Proof quote — standalone (below marquee)
   ============================================================ */
.proof-quote-wrap {
  padding-block: var(--s-5);
  border-bottom: 1px solid var(--rule);
}

/* ============================================================
   LinkedIn icon — inline SVG in footer links
   ============================================================ */
.link-li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.link-li svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  fill: currentColor;
  opacity: 0.8;
}
/* ============================================================
   Tools — static chip list (replaces animated marquee)
   ============================================================ */
.tools-static-section {
  padding-block: var(--s-5);
  border-bottom: 1px solid var(--rule);
}

.tools-static {
  display: flex;
  align-items: flex-start;
  gap: var(--s-4);
  flex-wrap: wrap;
}

.tools-static .label {
  flex-shrink: 0;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
  padding-top: 0.35em;
  min-width: 3.5rem;
}

.tools-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tools-chips span {
  display: inline-block;
  padding: 0.35em 0.8em;
  border: 1px solid var(--rule);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--fg-muted);
  letter-spacing: 0.02em;
  line-height: 1.4;
  transition: border-color 0.2s, color 0.2s;
}

.tools-chips span:hover {
  border-color: var(--accent-2);
  color: var(--accent-2);
}

/* ============================================================
   Portfolio strip — bidirectional scrolling rows
   ============================================================ */
.pf-strip {
  padding-block: var(--s-5);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
}

.pf-track {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 6%, #000 94%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0%, #000 6%, #000 94%, transparent 100%);
}

.pf-track + .pf-track {
  margin-top: var(--s-3);
}

.pf-row {
  display: flex;
  gap: var(--s-3);
  width: max-content;
  animation: pf-scroll 60s linear infinite;
}

.pf-track--r .pf-row {
  animation-direction: reverse;
}

@keyframes pf-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.pf-card {
  position: relative;
  display: block;
  flex-shrink: 0;
  width: 320px;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  background: var(--surface);
  transform: translateZ(0);
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.pf-card:hover {
  transform: scale(1.03) translateZ(0);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

/* Pause the row animation when hovering any card */
.pf-row:has(.pf-card:hover) {
  animation-play-state: paused;
}

.pf-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              filter 0.6s ease;
  filter: brightness(0.92);
}

.pf-card:hover .pf-img {
  transform: scale(1.06);
  filter: brightness(1);
}

.pf-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.65) 0%,
    rgba(0, 0, 0, 0.1) 45%,
    rgba(0, 0, 0, 0) 70%
  );
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: var(--s-2) var(--s-3);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.pf-card:hover .pf-overlay,
.pf-card:focus-visible .pf-overlay {
  opacity: 1;
}

.pf-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.01em;
}

.pf-arrow {
  font-size: 1.1rem;
  color: var(--accent-2);
  line-height: 1;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .pf-row { animation: none; }
  .pf-track {
    -webkit-mask-image: none;
            mask-image: none;
    overflow-x: auto;
  }
  .pf-row { width: auto; flex-wrap: wrap; }
}

/* ============================================================
   Testimonials — Isadora-style flush 2-col tile grid
   ============================================================ */

/* Shared label — reused across sections */
.testimonial-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin: 0;
}

.tq-section {
  border-top: 1px solid var(--rule);
  padding-top: var(--s-5);
  padding-bottom: 0;
}

.tq-header {
  padding-bottom: var(--s-4);
}

/* Grid: 80% width, centered. Each card draws its own 4 edges
   via b-* spans — no CSS borders on cards or grid. */
.tq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 80%;
  margin: 0 auto;
}

.tq-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--s-4) var(--s-4);
  box-sizing: border-box;
  transition: background 0.35s ease;
}

.tq-card:hover {
  background: rgba(82, 192, 174, 0.04);
}

/* Full-edge lines: each span is one complete 1px side of the card.
   Base color = rule. ::after overlay animates to teal on hover. */
.tq-card .b-1,
.tq-card .b-2,
.tq-card .b-3,
.tq-card .b-4 {
  position: absolute;
  background: var(--rule);
  pointer-events: none;
  z-index: 1;
}

.tq-card .b-1::after,
.tq-card .b-2::after,
.tq-card .b-3::after,
.tq-card .b-4::after {
  content: "";
  position: absolute;
  background: var(--accent-2);
  transition: width 0.35s ease, height 0.35s ease;
}

/* b-1: top edge — overlay grows left → right */
.tq-card .b-1           { top: 0; left: 0; width: 100%; height: 1px; }
.tq-card .b-1::after    { top: 0; left: 0; height: 1px; width: 0; }

/* b-2: right edge — overlay grows top → bottom */
.tq-card .b-2           { top: 0; right: 0; width: 1px; height: 100%; }
.tq-card .b-2::after    { top: 0; right: 0; width: 1px; height: 0; }

/* b-3: bottom edge — overlay grows right → left */
.tq-card .b-3           { bottom: 0; right: 0; width: 100%; height: 1px; }
.tq-card .b-3::after    { bottom: 0; right: 0; height: 1px; width: 0; }

/* b-4: left edge — overlay grows bottom → top */
.tq-card .b-4           { bottom: 0; left: 0; width: 1px; height: 100%; }
.tq-card .b-4::after    { bottom: 0; left: 0; width: 1px; height: 0; }

/* Hover: all four overlays sweep to full coverage simultaneously */
.tq-card:hover .b-1::after { width: 100%; }
.tq-card:hover .b-2::after { height: 100%; }
.tq-card:hover .b-3::after { width: 100%; }
.tq-card:hover .b-4::after { height: 100%; }

.tq-quote {
  margin: 0 0 var(--s-4);
  font-family: var(--font-sans);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 500;
  font-style: normal;
  line-height: 1.65;
  color: var(--fg);
  letter-spacing: -0.01em;
}

.tq-foot {
  border-top: 1px solid var(--rule);
  padding-top: var(--s-3);
}

.tq-cite {
  font-style: normal;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.tq-cite span {
  font-weight: 400;
  color: var(--fg-faint);
  letter-spacing: 0.06em;
}

@media (max-width: 720px) {
  .tq-grid {
    width: 100%;
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Portfolio strip — cursor-following circle label
   ============================================================ */
.pf-cursor {
  position: fixed;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  background: rgba(34, 37, 43, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
  z-index: 9990;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity 0.25s ease;
}

.pf-cursor.is-active {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.pf-cursor span {
  display: block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.3;
  max-width: 90px;
}

/* ============================================================
   Pain Points — horizontal expanding accordion panels
   ============================================================ */
.pain-section {
  border-top: 1px solid var(--rule);
  padding-top: var(--s-5);
  overflow: hidden;
}

.pain-intro {
  max-width: 64ch;
  margin: 0 auto var(--s-5);
  text-align: center;
}

.pain-heading {
  margin: var(--s-2) 0 var(--s-3);
}

.pain-desc {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--fg-muted);
  margin: 0 auto;
  max-width: 52ch;
}

/* --- Panels --- */
.pain-grid {
  display: flex;
  height: 500px;
  border-top: 1px solid var(--rule);
}

.pain-panel {
  position: relative;
  flex: 1;
  overflow: hidden;
  border-right: 1px solid var(--rule);
  cursor: pointer;
  transition: flex 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.pain-panel:first-child {
  border-left: 1px solid var(--rule);
}

.pain-panel.is-active {
  flex: 4;
}

/* Teal top line sweeps left → right on activation */
.pain-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-2);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
}

.pain-panel.is-active::before {
  transform: scaleX(1);
}

/* --- Collapsed view: number + horizontal title --- */
.pain-collapsed {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--s-3);
  gap: var(--s-2);
  text-align: center;
  opacity: 1;
  transition: opacity 0.15s ease;
  pointer-events: none;
}

.pain-panel.is-active .pain-collapsed {
  opacity: 0;
}

.pain-vtitle {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* --- Expanded view: full content --- */
.pain-expanded {
  position: absolute;
  inset: 0;
  padding: var(--s-4);
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease 0.22s;
  min-width: 300px;
}

.pain-panel.is-active .pain-expanded {
  opacity: 1;
  pointer-events: auto;
}

.pain-num {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: var(--s-3);
}

.pain-icon {
  width: 44px;
  height: 44px;
  color: var(--accent-2);
  opacity: 0.9;
  flex-shrink: 0;
  margin-bottom: var(--s-3);
}

.pain-title {
  font-family: var(--font-sans);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--fg);
  margin: 0 0 var(--s-2);
}

.pain-sub {
  font-size: 1rem;
  font-style: italic;
  color: var(--accent-2);
  opacity: 0.85;
  margin: 0 0 var(--s-3);
  line-height: 1.5;
}

.pain-body {
  font-size: 0.95rem;
  line-height: 1.78;
  color: var(--fg-muted);
  max-width: 52ch;
}

/* Mobile: vertical click-to-expand */
@media (max-width: 768px) {
  .pain-grid {
    flex-direction: column;
    height: auto;
  }
  .pain-panel {
    flex: none !important;
    height: 64px;
    border-right: none;
    border-left: none;
    border-bottom: 1px solid var(--rule);
    transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .pain-panel.is-active { height: 460px; }
  .pain-panel:first-child { border-left: none; border-top: 1px solid var(--rule); }
  .pain-collapsed {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    padding: 0 var(--s-3);
    gap: var(--s-2);
  }
  .pain-vtitle {
    font-size: 0.75rem;
  }
  .pain-expanded {
    min-width: unset;
    padding-top: 72px;
    justify-content: flex-start;
  }
}

/* ============================================================
   Clients logo strip
   ============================================================ */
.clients-strip {
  padding-block: var(--s-4);
  border-bottom: 1px solid var(--rule);
}
.clients-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  flex-wrap: wrap;
}
.clients-strip .clients-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-faint);
  white-space: nowrap;
  flex-shrink: 0;
}
.clients-strip img {
  height: 80px;
  width: auto;
  opacity: 0.8;
  filter: brightness(1);
  transition: opacity 0.25s ease;
  flex-shrink: 0;
}
.clients-strip img:hover { opacity: 1; }

@media (max-width: 960px) {
  .clients-strip-inner { justify-content: flex-start; gap: var(--s-3); }
}
@media (max-width: 720px) {
  .clients-strip-inner {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    justify-content: stretch;
    gap: var(--s-4) var(--s-3);
  }
  .clients-strip .clients-label {
    grid-column: 1 / -1;
    margin-bottom: 4px;
  }
  .clients-strip img { height: 80px; width: auto; justify-self: center; opacity: 0.92; }
}

/* ============================================================
   Case study — stats strip
   ============================================================ */
.case-stats {
  border-bottom: 1px solid var(--rule);
}
.case-stats-inner {
  display: grid;
  grid-template-columns: repeat(var(--stat-cols, 4), 1fr);
  padding-block: var(--s-4);
}
.case-stat {
  padding-inline: var(--s-3);
  padding-block: var(--s-3);
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.case-stat:first-child { padding-left: 0; }
.case-stat:last-child  { border-right: none; }

.case-stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--accent-2);
}
.case-stat-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
  max-width: 20ch;
  line-height: 1.5;
}

/* Warm / teal / red theme overrides */
.case-band.theme-warm ~ .case-stats .case-stat-value { color: var(--red-500); }
.case-band.theme-teal ~ .case-stats .case-stat-value { color: var(--teal-600); }
.case-band.theme-red  ~ .case-stats .case-stat-value { color: var(--accent);   }

@media (max-width: 720px) {
  .case-stats-inner {
    grid-template-columns: 1fr 1fr;
    padding-block: var(--s-3);
  }
  .case-stat {
    border-right: none;
    border-bottom: 1px solid var(--rule);
    padding-inline: 0 var(--s-2);
  }
  .case-stat:nth-child(odd)  { border-right: 1px solid var(--rule); }
  .case-stat:last-child,
  .case-stat:nth-last-child(2):nth-child(odd) { border-bottom: none; }
}

/* ============================================================
   Home — visual work showcase (Bradley-style)
   ============================================================ */

.work-visual {
  display: flex;
  flex-direction: column;
  gap: var(--s-6);
  margin-top: var(--s-5);
}

/* Asymmetric feature: small (left, staggered) + large (right) */
.wv-feature {
  display: block;
  text-decoration: none;
  color: inherit;
}
.wv-feature-images {
  display: grid;
  grid-template-columns: 1fr 1.9fr;
  gap: var(--s-3);
  align-items: start;
}
.wv-feature--flip .wv-feature-images {
  grid-template-columns: 1.9fr 1fr;
}
.wv-small { padding-top: 72px; }
.wv-small .img-fig img { height: 310px; }
.wv-large .img-fig img { height: 440px; }

/* Full-width single */
.wv-full {
  display: block;
  text-decoration: none;
  color: inherit;
}
.wv-full .img-fig img { height: clamp(260px, 36vw, 480px); }

/* 2-col equal pair */
.wv-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3);
}
.wv-pair-item {
  display: block;
  text-decoration: none;
  color: inherit;
}
.wv-pair-item .img-fig img { height: 340px; }

/* Meta row below each image block */
.wv-meta {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}
.wv-num {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
  flex-shrink: 0;
}
.wv-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--fg);
}
.wv-tags {
  font-size: 0.73rem;
  color: var(--fg-muted);
  letter-spacing: 0.02em;
}
.wv-arrow {
  margin-left: auto;
  font-size: 1rem;
  color: var(--fg-faint);
  transition: transform 0.25s ease, color 0.25s ease;
  flex-shrink: 0;
}
.wv-feature:hover .wv-arrow,
.wv-full:hover    .wv-arrow,
.wv-pair-item:hover .wv-arrow {
  transform: translate(4px, -4px);
  color: var(--accent-2);
}

@media (max-width: 900px) {
  .wv-feature-images,
  .wv-feature--flip .wv-feature-images { grid-template-columns: 1fr; }
  .wv-small { padding-top: 0; }
  .wv-small .img-fig img,
  .wv-large .img-fig img { height: 260px; }
  .wv-pair { grid-template-columns: 1fr; }
  .wv-pair-item .img-fig img { height: 240px; }
  .wv-full .img-fig img { height: 240px; }
}

/* ============================================================
   Case study — expanded work gallery
   ============================================================ */

.case-work-gallery {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  margin-top: var(--s-4);
}
.case-work-gallery .cw-full .cw-img {
  width: 100%;
  height: clamp(260px, 42vw, 540px);
  object-fit: cover;
  border-radius: 10px;
  display: block;
}
.case-work-gallery .cw-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3);
}
.case-work-gallery .cw-pair .cw-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}
.case-work-gallery figcaption {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--fg-faint);
  margin-top: 8px;
}

@media (max-width: 720px) {
  .case-work-gallery .cw-pair { grid-template-columns: 1fr; }
  .case-work-gallery .cw-pair .cw-img { height: 220px; }
  .case-work-gallery .cw-full .cw-img  { height: 220px; }
}

/* ============================================================
   Editorial image blocks
   ============================================================ */

/* Base figure */
.img-fig {
  margin: 0;
  overflow: hidden;
  border-radius: 10px;
}
.img-fig img {
  width: 100%;
  display: block;
  object-fit: cover;
  filter: brightness(0.9);
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              filter 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.img-fig:hover img { transform: scale(1.04); filter: brightness(1); }

/* Figure caption */
figcaption.img-cap {
  margin-top: 10px;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--fg-faint);
}

/* 2-column equal grid */
.img-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3);
  margin-block: var(--s-5);
}
.img-grid-2 .img-fig img { height: 300px; }

/* Asymmetric grid: wide left + narrow right (3:2 split) */
.img-grid-asym {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: var(--s-3);
  margin-block: var(--s-5);
}
.img-grid-asym .img-fig img { height: 360px; }

/* Full-bleed: breaks out of a .container to fill 100vw */
.img-bleed {
  margin-inline: calc(50% - 50vw);
  width: 100vw;
  overflow: hidden;
  margin-block: var(--s-5);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.img-bleed img {
  width: 100%;
  height: clamp(280px, 40vw, 560px);
  object-fit: cover;
  display: block;
  filter: brightness(0.85);
}

/* Full-width band — direct child of <main>, no container needed */
.img-band {
  overflow: hidden;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.img-band img {
  width: 100%;
  height: clamp(260px, 42vw, 580px);
  object-fit: cover;
  display: block;
  filter: brightness(0.85);
}

@media (max-width: 720px) {
  .img-grid-2,
  .img-grid-asym { grid-template-columns: 1fr; }
  .img-grid-2 .img-fig img,
  .img-grid-asym .img-fig img { height: 220px; }
  .img-bleed { margin-inline: 0; width: 100%; }
}

/* ============================================================
   Page transition — full-screen curtain wipe
   Replicates the by-kin.com style: panel slides up from bottom
   on exit, new page reveals by panel sliding up and away.
   JS injects the overlay and coordinates via sessionStorage.
   ============================================================ */
#pt-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999999;
  pointer-events: none;
  overflow: hidden;
}

.pt-panel {
  position: absolute;
  inset: 0;
  background: var(--fg);        /* warm off-white #fff3f0 */
  transform: translateY(100%);  /* default: hidden below */
  will-change: transform;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

/* ── Direction A: bottom → up ─────────────────────────── */
.pt-panel.pt-in {
  animation: pt-slide-in 1.0s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}
.pt-panel.pt-out {
  transform: translateY(0);
  animation: pt-slide-out 0.9s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}
@keyframes pt-slide-in {
  from { transform: translateY(100%); }
  to   { transform: translateY(0);    }
}
@keyframes pt-slide-out {
  from { transform: translateY(0);     }
  to   { transform: translateY(-100%); }
}

/* ── Direction B: top → down ──────────────────────────── */
.pt-panel.pt-in-rev {
  transform: translateY(-100%);  /* starts above */
  animation: pt-slide-in-rev 1.0s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}
.pt-panel.pt-out-rev {
  transform: translateY(0);
  animation: pt-slide-out-rev 0.9s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}
@keyframes pt-slide-in-rev {
  from { transform: translateY(-100%); }
  to   { transform: translateY(0);     }
}
@keyframes pt-slide-out-rev {
  from { transform: translateY(0);    }
  to   { transform: translateY(100%); }
}

/* ── Logo container ───────────────────────────────────── */
.pt-logo {
  width: 96px;
  height: auto;
  display: block;
}
.pt-logo svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

/* ── SVG shapes — hidden by default, animated when panel enters */
.pt-logo #pt-g,
.pt-logo #pt-d,
.pt-logo #pt-o,
.pt-logo #pt-s {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: 50% 50%;
}

/* Staggered pop-in — same for both directions */
.pt-panel.pt-in .pt-logo #pt-g,
.pt-panel.pt-in-rev .pt-logo #pt-g {
  animation: pt-shape-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards 0.45s;
}
.pt-panel.pt-in .pt-logo #pt-o,
.pt-panel.pt-in-rev .pt-logo #pt-o {
  animation: pt-shape-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards 0.62s;
}
.pt-panel.pt-in .pt-logo #pt-s,
.pt-panel.pt-in-rev .pt-logo #pt-s {
  animation: pt-shape-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards 0.79s;
}
.pt-panel.pt-in .pt-logo #pt-d,
.pt-panel.pt-in-rev .pt-logo #pt-d {
  animation: pt-shape-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards 0.93s;
}

@keyframes pt-shape-in {
  from { opacity: 0; transform: translateY(10px) scale(0.88); }
  to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

/* Shapes visible when panel is exiting (came fully assembled) */
.pt-panel.pt-out    .pt-logo #pt-g,
.pt-panel.pt-out    .pt-logo #pt-d,
.pt-panel.pt-out    .pt-logo #pt-o,
.pt-panel.pt-out    .pt-logo #pt-s,
.pt-panel.pt-out-rev .pt-logo #pt-g,
.pt-panel.pt-out-rev .pt-logo #pt-d,
.pt-panel.pt-out-rev .pt-logo #pt-o,
.pt-panel.pt-out-rev .pt-logo #pt-s { opacity: 1; }

/* ── Intro state — first open of session ─────────────────────────────── */
.pt-panel.pt-intro {
  transform: translateY(0);
  background: #111;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.pt-panel.pt-intro .pt-logo { display: none; }

/* Content wrapper — hidden by default, only visible during intro */
.pt-intro-content {
  display: none;
}

.pt-panel.pt-intro .pt-intro-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  opacity: 0;
  transform: translateY(18px);
  animation: pt-intro-content-in 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.15s;
}

@keyframes pt-intro-content-in {
  to { opacity: 1; transform: translateY(0); }
}

/* "// This is me" label */
.pt-intro-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #d65b58;
  margin-bottom: 1rem;
}

/* Name lines */
.pt-intro-names {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}

.pt-intro-name {
  display: block;
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 800;
  font-size: clamp(3.4rem, 8.5vw, 6.5rem);
  color: #fff3f0;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

/* Red dot after "Olivera" */
.pt-intro-dot {
  color: #d65b58;
}

/* Loading bar */
.pt-bar-wrap {
  margin-top: 2rem;
  width: clamp(180px, 24vw, 300px);
  height: 1.5px;
  background: rgba(255, 243, 240, 0.15);
  border-radius: 2px;
  overflow: hidden;
}

.pt-bar-fill {
  height: 100%;
  width: 0%;
  background: #d65b58;
  border-radius: 2px;
  transition: width 1.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.pt-bar-fill.pt-bar-running { width: 100%; }

/* ── Reduced motion ───────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  #pt-overlay { display: none !important; }
}

/* ── Cookie consent banner ───────────────────────────────────── */
.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 999;
  max-width: 640px;
  margin: 0 auto;
  background: var(--dark);
  color: var(--light-100);
  border: 1px solid rgba(255, 243, 240, 0.14);
  border-radius: 14px;
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}
.cookie-banner.is-visible { opacity: 1; transform: translateY(0); pointer-events: all; }
.cookie-banner p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.55;
  color: rgba(255, 243, 240, 0.72);
  max-width: 46ch;
}
.cookie-banner p a { color: var(--light-100); border-bottom: 1px solid rgba(255, 243, 240, 0.4); text-decoration: none; }
.cookie-banner p a:hover { border-color: var(--light-100); }
.cookie-banner-actions { display: flex; gap: 0.6rem; flex-shrink: 0; }
.cookie-banner-actions button {
  display: inline-flex;
  align-items: center;
  padding: 0.55em 1.15em;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}
.cookie-banner [data-cookie-decline] {
  background: transparent;
  border: 1px solid rgba(255, 243, 240, 0.25);
  color: rgba(255, 243, 240, 0.72);
}
.cookie-banner [data-cookie-decline]:hover { border-color: var(--light-100); color: var(--light-100); }
.cookie-banner [data-cookie-accept] {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: var(--light-100);
}
.cookie-banner [data-cookie-accept]:hover { background: transparent; color: var(--accent); }
@media (max-width: 560px) {
  .cookie-banner { flex-direction: column; align-items: stretch; }
  .cookie-banner-actions { justify-content: flex-end; }
}

