/* ── tokens ─────────────────────────────────────────────────────────── */
:root {
  /* Palette: Warm Editorial (default) */
  --bg: #F4EFE8;
  --bg-2: #E8DDD0;
  --ink: #1F1A17;
  --ink-2: #4A3F38;
  --muted: #8B7B6E;
  --accent: #C8956D;
  --accent-deep: #8B5A3C;
  --line: rgba(31, 26, 23, 0.14);
  --line-strong: rgba(31, 26, 23, 0.32);

  /* Fonts — confirmed type system */
  --font-display: "Instrument Serif", "Cormorant Garamond", Georgia, serif;
  --font-sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --font-label: "Outfit", "DM Sans", -apple-system, sans-serif;
  --font-script: "Caveat", "Segoe Script", cursive;
  --font-mono: ui-monospace, "Cascadia Code", monospace;

  /* Stat accent (warm gold) */
  --gold: #C4965A;

  /* Scale */
  --max: 1440px;
  --gutter: clamp(24px, 4vw, 64px);
  --topbar-h: 40px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  padding-top: var(--topbar-h);
}
@media (min-width: 900px) {
  body.has-custom-cursor, body.has-custom-cursor * { cursor: none !important; }
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

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

/* ── accessibility: keyboard focus + skip link ──────────────────── */
:focus-visible {
  outline: 2px solid var(--accent-deep);
  outline-offset: 3px;
  border-radius: 2px;
}
.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 999;
  background: var(--ink); color: var(--bg);
  font-family: var(--font-label); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 12px 20px; border-radius: 999px;
  transform: translateY(-300%);
  transition: transform 0.2s;
}
.skip-link:focus { transform: translateY(0); }

/* Off-screen pause: perf.js adds .io-anim-off to looping elements when they
   scroll out of view so their infinite animations stop compositing every frame.
   Covers pseudo-elements too. Looks identical while the element is on-screen. */
.io-anim-off,
.io-anim-off::before,
.io-anim-off::after { animation-play-state: paused !important; }

/* ── reduced motion: stop infinite decorative loops ───────────────── */
@media (prefers-reduced-motion: reduce) {
  .bc-track,
  .marquee-track,
  .tstm3-track,
  .tstm-col-track,
  .scroll-strip .track,
  .nav-logo::before,
  .avb-letter,
  .avb-spark,
  .hero-tag .dot { animation: none !important; }
}

/* ── type ───────────────────────────────────────────────────────────── */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.02em;
}
.italic { font-style: italic; }
.eyebrow {
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
}
/* handwritten scroll-stop accent — use sparingly (1–2 per section) */
.script {
  font-family: var(--font-script);
  font-weight: 500;
  font-style: normal;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1;
  color: var(--accent-deep);
}
.eyebrow.script {
  font-size: clamp(22px, 2vw, 30px);
  color: var(--accent-deep);
}
.lede {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.1vw, 32px);
  line-height: 1.25;
  font-style: italic;
  color: var(--ink);
}

/* ── layout ─────────────────────────────────────────────────────────── */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.divider {
  border-top: 1px solid var(--line);
  width: 100%;
}

/* ── nav ────────────────────────────────────────────────────────────── */
/* ── top announcement bar ───────────────────────────────────────────── */
.topbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 60;
  height: var(--topbar-h);
  background: var(--ink);
  color: var(--bg);
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding: 0 var(--gutter);
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.topbar .tb-side { opacity: 0.55; white-space: nowrap; }
.topbar .tb-email {
  color: var(--gold);
  letter-spacing: 0.06em;
  text-transform: none;
  font-size: 12px;
  font-family: var(--font-sans);
  transition: opacity 0.25s;
}
.topbar .tb-email:hover { opacity: 0.75; }
@media (max-width: 760px) {
  .topbar { justify-content: center; }
  .topbar .tb-side { display: none; }
}

.nav {
  position: fixed; top: var(--topbar-h); left: 0; right: 0;
  z-index: 50;
  padding: 22px var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  color: var(--ink);
  transition: color 0.4s;
}
.nav--light { color: #F4EFE8; }
/* shiny-logo: composited transform sweep — no background-position repaint */
@keyframes shiny-logo {
  0%   { transform: translateX(-220%); }
  100% { transform: translateX(420%); }
}
.nav-logo {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 24px;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: var(--ink);
  position: relative;
  display: inline-block;
  overflow: visible;
  clip-path: inset(-8px -2px);
}
/* shimmer stripe — animated via transform (compositor layer, zero repaint) */
.nav-logo::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 55%;
  background: linear-gradient(
    105deg,
    transparent 15%,
    rgba(200,149,109,0.55) 38%,
    rgba(245,223,200,0.90) 50%,
    rgba(200,149,109,0.55) 62%,
    transparent 85%
  );
  mix-blend-mode: overlay;
  transform: translateX(-220%);
  animation: shiny-logo 4s linear infinite;
  will-change: transform;
  pointer-events: none;
}
.nav--light .nav-logo {
  color: #F4EFE8;
}
.nav--light .nav-logo::before {
  background: linear-gradient(
    105deg,
    transparent 15%,
    rgba(200,149,109,0.45) 38%,
    rgba(255,255,255,0.80) 50%,
    rgba(200,149,109,0.45) 62%,
    transparent 85%
  );
  mix-blend-mode: soft-light;
}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-link {
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  opacity: 0.7;
  position: relative;
  transition: opacity 0.3s;
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active { opacity: 1; }

/* ── Liquid glass WORK button ─────────────────────────────────────────── */
.nav-link--work {
  opacity: 1;
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.15em;
  position: relative;
  transition: transform 0.25s cubic-bezier(0.1,0.4,0.2,1), opacity 0.3s;
}
.nav-link--work:hover { transform: scale(1.06); }
.nav-link--work.active { opacity: 1; }

/* glass ring — carries the 3-D inner-shadow halo */
.nwg-ring {
  position: absolute; inset: 0; border-radius: 999px;
  pointer-events: none; z-index: 0;
  box-shadow:
    0 0 6px rgba(0,0,0,0.04),
    0 2px 6px rgba(0,0,0,0.10),
    inset 3px 3px 0.5px -3px rgba(0,0,0,0.9),
    inset -3px -3px 0.5px -3px rgba(0,0,0,0.85),
    inset 1px 1px 1px -0.5px rgba(0,0,0,0.55),
    inset -1px -1px 1px -0.5px rgba(0,0,0,0.55),
    inset 0 0 6px 6px rgba(0,0,0,0.10),
    inset 0 0 2px 2px rgba(0,0,0,0.06),
    0 0 14px rgba(255,255,255,0.18);
  transition: box-shadow 0.3s;
}
.nav--light .nwg-ring {
  box-shadow:
    0 0 8px rgba(0,0,0,0.05),
    0 2px 8px rgba(0,0,0,0.10),
    inset 3px 3px 0.5px -3.5px rgba(255,255,255,0.10),
    inset -3px -3px 0.5px -3.5px rgba(255,255,255,0.85),
    inset 1px 1px 1px -0.5px rgba(255,255,255,0.6),
    inset -1px -1px 1px -0.5px rgba(255,255,255,0.6),
    inset 0 0 6px 6px rgba(255,255,255,0.12),
    inset 0 0 2px 2px rgba(255,255,255,0.06),
    0 0 12px rgba(0,0,0,0.18);
}
/* frosted glass fill — solid translucent tint (no backdrop-filter: avoids a
   per-element GPU compositor layer that caused scroll jank) */
.nwg-blur {
  position: absolute; inset: 0; border-radius: 999px;
  background: rgba(255,255,255,0.10);
  z-index: -1; pointer-events: none;
}
/* text sits above both layers */
.nav-link--work .nwg-label { position: relative; z-index: 1; }
.nav-link.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 1px; background: currentColor;
}
.nav-email {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.02em;
  opacity: 0.85;
  transition: opacity 0.3s;
  display: flex; align-items: center; gap: 6px;
}
.nav-email:hover { opacity: 1; }
.nav-email-icon { font-size: 13px; }
.nav-cta {
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 10px 18px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-weight: 500;
  white-space: nowrap;
}
@media (max-width: 1120px) {
  .nav-email { display: none; }
}
@media (max-width: 900px) {
  .nav-links { gap: 12px; }
  .nav-link { display: none; }
  /* keep the WORK pill on the bar at phone width (per request) */
  .nav-link--work { display: inline-flex; align-items: center; }
  /* the WORK pill + burger cover navigation; the burger menu still has "Work With Me" */
  .nav-cta { display: none; }
}

/* ── mobile menu ───────────────────────────────────────────── */
.nav-burger {
  display: none;
  position: relative; z-index: 49;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px;
  padding: 10px;
  margin-left: 4px;
  border-radius: 999px;
  border: 1px solid currentColor;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-burger span {
  display: block; height: 1.5px; width: 100%;
  background: currentColor; border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.2,0.7,0.2,1), opacity 0.2s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
@media (max-width: 900px) {
  .nav-burger { display: flex; }
}
.mnav {
  position: fixed; inset: 0; z-index: 48;
  background: var(--bg);
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px var(--gutter) 60px;
  gap: 8px;
}
.mnav a {
  font-family: var(--font-display);
  font-size: clamp(36px, 9vw, 56px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  display: flex; align-items: baseline; gap: 14px;
  padding: 6px 0;
}
.mnav a em { font-style: italic; }
.mnav a .mnav-n {
  font-family: var(--font-label); font-size: 11px;
  letter-spacing: 0.18em; color: var(--accent-deep);
}
.mnav a.active { color: var(--accent-deep); }
.mnav .mnav-foot {
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 10px;
}
.mnav .mnav-foot a {
  font-family: var(--font-sans); font-size: 15px;
  letter-spacing: 0.02em; padding: 4px 0;
  display: inline-block;
}

/* ── page transition ────────────────────────────────────────────────── */
/* Base state is fully visible. Motion is an enhancement only — content is
   never hidden behind a time-based animation (safe for print / capture). */
.page-enter { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .page-enter { animation: pageIn 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .reveal { animation: revealUp 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
}
@keyframes pageIn {
  from { transform: translateY(12px); }
  to   { transform: translateY(0); }
}
@keyframes revealUp {
  from { transform: translateY(18px); }
  to   { transform: translateY(0); }
}
/* cycling word — vertical slide (past ↑, current, future ↓) */
.cw-wrap {
  display: inline-grid;
  vertical-align: bottom;
  overflow: hidden;
  padding-bottom: 0.18em; /* accommodate descenders (y, g, j) */
  margin-bottom: -0.18em; /* cancel the extra space below the baseline */
}
.cw-item {
  grid-area: 1 / 1;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .cw-item { transition: none !important; }
}
.page-mask {
  position: fixed; inset: 0; z-index: 100; pointer-events: none;
  background: var(--ink);
  transform-origin: bottom;
  transform: scaleY(0);
}
@media (prefers-reduced-motion: no-preference) {
  .page-mask.in  { animation: maskIn  0.5s cubic-bezier(0.7, 0, 0.3, 1) forwards; }
  .page-mask.out { animation: maskOut 0.5s cubic-bezier(0.7, 0, 0.3, 1) forwards; }
}
@keyframes maskIn  { from { transform: scaleY(0); transform-origin: bottom; }
                     to   { transform: scaleY(1); transform-origin: bottom; } }
@keyframes maskOut { from { transform: scaleY(1); transform-origin: top; }
                     to   { transform: scaleY(0); transform-origin: top; } }

/* ── magnetic button ────────────────────────────────────────────────── */
.mbtn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 18px 32px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  position: relative;
  transition: background 0.4s, color 0.4s, transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: transform;
}
.mbtn:hover { background: var(--accent-deep); color: var(--bg); }
.mbtn .arr { display: inline-block; transition: transform 0.4s; }
.mbtn:hover .arr { transform: translateX(4px); }
.mbtn.ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--ink);
}
.mbtn.ghost:hover { background: var(--ink); color: var(--bg); }

/* ── Animated liquid-glass View button ─────────────────────────────── */
@keyframes avb-letter-pulse {
  0%, 100% { opacity: 0.6; }
  50%       { opacity: 1; text-shadow: 0 0 6px rgba(255,255,255,0.35); }
}
@keyframes avb-spark-flicker {
  0%, 100% { opacity: 0.75; transform: scale(1)   rotate(0deg); }
  50%       { opacity: 0.3;  transform: scale(0.88) rotate(18deg); }
}

.avb {
  --avb-r: 999px;
  --avb-t: 0.4s;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 18px 32px;
  border-radius: var(--avb-r);
  font-size: 13px; letter-spacing: 0.14em;
  text-transform: uppercase; font-weight: 500;
  font-family: var(--font-sans);
  position: relative; overflow: hidden; cursor: pointer;
  /* dark-hero default: bright glass on dark */
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.82);
  box-shadow:
    inset 0  1px 1px rgba(255,255,255,0.22),
    inset 0  3px 6px rgba(255,255,255,0.08),
    inset 0 -2px 4px rgba(0,0,0,0.08),
    0 2px 10px rgba(0,0,0,0.14);
  /* (backdrop-filter blur removed — too many GPU layers; the translucent
     background + inset highlights keep the glassy look without the jank) */
  transition: background var(--avb-t), border-color var(--avb-t),
              box-shadow var(--avb-t), color var(--avb-t),
              transform 0.5s cubic-bezier(0.2,0.7,0.2,1);
  will-change: transform;
}

/* bottom-up shine sweep */
.avb::after {
  content: "";
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(0deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.06) 40%, transparent 100%);
  -webkit-mask-image: linear-gradient(0deg, #fff, transparent);
  mask-image: linear-gradient(0deg, #fff, transparent);
  opacity: 0.5;
  transition: opacity var(--avb-t);
}

/* depth shell behind button */
.avb::before {
  content: "";
  position: absolute;
  top: -4px; left: -4px;
  width: calc(100% + 8px); height: calc(100% + 8px);
  border-radius: calc(var(--avb-r) + 4px);
  z-index: -1; pointer-events: none;
  background: linear-gradient(0deg, rgba(0,0,0,0.05), rgba(0,0,0,0.12));
  box-shadow:
    0 -4px 8px -4px rgba(0,0,0,0) inset,
    1px 1px 1px rgba(255,255,255,0.1),
    -1px -1px 1px rgba(0,0,0,0.04);
  transition: box-shadow var(--avb-t);
}

.avb:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.36);
  color: #fff;
  box-shadow:
    inset 0  1px 2px rgba(255,255,255,0.3),
    inset 0  4px 10px rgba(255,255,255,0.12),
    inset 0 -4px 6px rgba(0,0,0,0.06),
    0 4px 20px rgba(0,0,0,0.2);
}
.avb:hover::after { opacity: 1; }
.avb:hover::before {
  box-shadow:
    0 -10px 14px -4px rgba(255,255,255,0.22) inset,
    1px 1px 1px rgba(255,255,255,0.16),
    -1px -1px 1px rgba(0,0,0,0.04);
}
.avb:active {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.5);
}
.avb:active::after { opacity: 1; filter: brightness(1.3); }

/* sparkle icon */
.avb-spark {
  width: 17px; height: 17px;
  fill: rgba(255,255,255,0.75);
  flex-shrink: 0;
  animation: avb-spark-flicker 2.2s ease-in-out infinite;
  transition: fill var(--avb-t), filter var(--avb-t);
}
.avb:hover .avb-spark {
  fill: #fff;
  filter: drop-shadow(0 0 5px rgba(255,255,255,0.55));
  animation: none;
}

/* letters */
.avb-txt { display: inline-flex; }
.avb-letter {
  display: inline-block;
  animation: avb-letter-pulse 2.6s ease-in-out infinite;
}
.avb:hover .avb-letter  { opacity: 1; animation: none; }
.avb:active .avb-letter { opacity: 1; animation: none; }

/* arrow */
.avb-arr {
  display: inline-block;
  opacity: 0.65;
  transition: transform 0.4s, opacity 0.4s;
}
.avb:hover .avb-arr { transform: translateX(4px); opacity: 1; }

/* ── Light-background override (editorial + split hero) ──────────────── */
.hero:not(.v-bleed) .avb {
  background: rgba(31,26,23,0.055);
  border-color: rgba(31,26,23,0.16);
  color: rgba(31,26,23,0.78);
  box-shadow:
    inset 0  1px 1px rgba(255,255,255,0.6),
    inset 0  2px 5px rgba(255,255,255,0.25),
    inset 0 -2px 4px rgba(0,0,0,0.04),
    0 2px 8px rgba(0,0,0,0.07);
}
.hero:not(.v-bleed) .avb::after {
  background: linear-gradient(0deg, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0.12) 40%, transparent 100%);
}
.hero:not(.v-bleed) .avb-spark { fill: rgba(31,26,23,0.55); }
.hero:not(.v-bleed) .avb-letter { animation: none; opacity: 0.72; }
.hero:not(.v-bleed) .avb:hover {
  background: rgba(31,26,23,0.1);
  border-color: rgba(31,26,23,0.28);
  color: var(--ink);
}
.hero:not(.v-bleed) .avb:hover .avb-spark { fill: var(--ink); filter: none; }
.hero:not(.v-bleed) .avb:hover .avb-letter { opacity: 1; }

/* ── Liquid MBtn (glass-ring variant) ──────────────────────────────── */
.mbtn.mbtn-liquid {
  background: transparent;
  border: none;
  color: inherit;
  overflow: hidden;
}
.mbtn.mbtn-liquid:hover { background: transparent; color: inherit; }
.mbtn.mbtn-liquid .nwg-label {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 12px;
}
.mbtn.mbtn-liquid:hover .arr { transform: translateX(4px); }

/* ── cursor ─────────────────────────────────────────────────────────── */
.cursor {
  position: fixed; top: 0; left: 0; width: 10px; height: 10px;
  border-radius: 50%; background: var(--ink);
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  will-change: transform;
  transition: width 0.15s, height 0.15s, background 0.15s;
}
.cursor-ring {
  position: fixed; top: 0; left: 0; width: 40px; height: 40px;
  border: 1px solid var(--ink);
  border-radius: 50%; pointer-events: none; z-index: 9998;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  will-change: transform;
  transition: width 0.2s cubic-bezier(0.2,0.7,0.2,1),
              height 0.2s cubic-bezier(0.2,0.7,0.2,1),
              opacity 0.2s;
}
.cursor.expand { width: 4px; height: 4px; }
.cursor-ring.expand { width: 64px; height: 64px; opacity: 0.6; }
.cursor-label {
  position: fixed; top: 0; left: 0;
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--bg); background: var(--ink); padding: 6px 10px; border-radius: 999px;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, calc(-50% + 36px));
  opacity: 0; transition: opacity 0.25s;
  white-space: nowrap;
}
.cursor-label.show { opacity: 1; }

/* ── hero ───────────────────────────────────────────────────────────── */
.hero {
  padding-top: 120px;
  padding-bottom: 60px;
  position: relative;
}
.hero-tag {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 28px;
}
.hero-tag .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-deep);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.4); }
}

.hero-title {
  font-size: clamp(56px, 11vw, 168px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
  margin-top: 40px;
}
@media (max-width: 800px) { .hero-grid { grid-template-columns: 1fr; gap: 24px; } }

.hero-photo {
  aspect-ratio: 4/5;
  max-height: 560px;
  background: url("images/rose-hero.jpg") center 46% / cover no-repeat, #b07a52;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

/* ── hero portrait: white-outline cutout + flower bloom ─────────────── */
.hero-portrait {
  position: relative;
  aspect-ratio: 4/5;
  max-height: 580px;
  display: flex; align-items: flex-end; justify-content: center;
  background: var(--bg-2);
  border-radius: 6px;
  overflow: hidden;
}
.hero-bloom {
  position: absolute;
  width: 62%; height: auto;
  left: -8%; top: 8%;
  opacity: 0.9;
  z-index: 1;
  animation: bloomspin 60s linear infinite;
  transform-origin: 50% 50%;
}
@media (prefers-reduced-motion: reduce) { .hero-bloom { animation: none; } }
@keyframes bloomspin { to { transform: rotate(360deg); } }
.hero-cutout {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  /* thick white "sticker" outline that follows the PNG's alpha */
  filter:
    drop-shadow(0 -5px 0 #fff) drop-shadow(0 5px 0 #fff)
    drop-shadow(-5px 0 0 #fff) drop-shadow(5px 0 0 #fff)
    drop-shadow(4px 4px 0 #fff) drop-shadow(-4px 4px 0 #fff)
    drop-shadow(4px -4px 0 #fff) drop-shadow(-4px -4px 0 #fff)
    drop-shadow(0 14px 22px rgba(31,26,23,0.22));
}
.hero-photo::after {
  content: "ROSE"; position: absolute; right: 16px; bottom: 16px;
  font-family: var(--font-display); font-style: italic;
  font-size: 32px; color: rgba(255,255,255,0.95);
  text-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.hero-photo .ph-mark { display: none; }

.hero-meta {
  display: flex; flex-direction: column; gap: 24px;
}
.hero-meta .lede { max-width: 440px; }
.hero-sub {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 460px;
  text-wrap: pretty;
}
.hero-fine {
  font-family: var(--font-label);
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted);
  padding-top: 20px; border-top: 1px solid var(--line);
  margin: 0;
}
.hero.v-split .hero-sub { color: var(--ink-2); }
.hero-meta-row {
  display: flex; gap: 32px; padding-top: 24px; border-top: 1px solid var(--line);
}
.hero-meta-row .k { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.hero-meta-row .v { font-family: var(--font-display); font-size: 22px; font-style: italic; margin-top: 6px; }

/* hero variant: full-bleed */
.hero.v-bleed { padding-top: 0; height: 100vh; min-height: 720px; display: flex; flex-direction: column; }
.hero.v-bleed .bleed-photo {
  position: absolute; inset: 0;
  background: url("images/rose-hero.jpg") center 20% / cover no-repeat, #6e4a35;
}
.hero.v-bleed .bleed-overlay {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; justify-content: flex-end; flex: 1;
  padding: 120px var(--gutter) 60px;
  color: #F4EFE8;
}
.hero.v-bleed .bleed-overlay .hero-title { font-size: clamp(64px, 12vw, 200px); }
.hero.v-bleed::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,.1) 0%, rgba(0,0,0,.55) 100%);
}

/* hero variant: split */
.hero.v-split { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; padding: 0; gap: 0; }
.hero.v-split .left {
  padding: 140px var(--gutter) 60px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.hero.v-split .right {
  background: url("images/rose-hero.jpg") center 18% / cover no-repeat, #6e4a35;
  position: relative;
}
.hero.v-split .right::after {
  content: "ROSE"; position: absolute; right: 24px; bottom: 24px;
  font-family: var(--font-display); font-style: italic;
  font-size: 48px; color: rgba(255,255,255,0.85);
}
.hero.v-split .hero-title { font-size: clamp(48px, 7vw, 112px); }
@media (max-width: 800px) { .hero.v-split { grid-template-columns: 1fr; } .hero.v-split .right { min-height: 60vh; } }

/* ── stats ──────────────────────────────────────────────────────────── */
.stats {
  padding: 80px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
@media (max-width: 800px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

/* metrics band: dark with gold numbers (default) */
.stats.v-dark {
  background: var(--ink);
  border-top: 0; border-bottom: 0;
  padding: 64px 0;
}
.stats.v-dark .stat .num { color: var(--gold); font-style: italic; }
.stats.v-dark .stat .lbl { color: rgba(245,240,232,0.5); }
.stat .num {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.2vw, 76px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.stat .num.italic { font-style: italic; }
.stat .lbl {
  margin-top: 12px;
  font-family: var(--font-label);
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted);
}

/* Stat cards that link out to the live post (all ship href: null for now) */
a.stat-link { display: block; text-decoration: none; transition: opacity 0.2s; }
a.stat-link .lbl::after { content: " ↗"; opacity: 0; transition: opacity 0.2s; }
a.stat-link:hover { opacity: 0.85; }
a.stat-link:hover .lbl { text-decoration: underline; text-underline-offset: 3px; }
a.stat-link:hover .lbl::after { opacity: 0.7; }

/* stats variant: marquee ticker */
.stats.v-marquee { padding: 40px 0; overflow: hidden; }
.stats.v-marquee .marquee-track {
  display: flex; gap: 80px; white-space: nowrap;
  animation: marquee 30s linear infinite;
}
.stats.v-marquee .m-item {
  display: inline-flex; gap: 16px; align-items: baseline; flex-shrink: 0;
}
.stats.v-marquee .m-item .num {
  font-family: var(--font-display); font-size: 48px; font-style: italic;
}
.stats.v-marquee .m-item .lbl {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
}
.stats.v-marquee .m-sep {
  font-size: 24px; color: var(--accent-deep); flex-shrink: 0; align-self: center;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* stats variant: minimal */
.stats.v-minimal .stats-grid { gap: 8px; }
.stats.v-minimal .stat .num { font-size: 28px; font-family: var(--font-sans); font-weight: 500; letter-spacing: -0.01em; }
.stats.v-minimal .stat .lbl { font-size: 10px; margin-top: 4px; }

/* ── brands ─────────────────────────────────────────────────────────── */
.brands { padding: 80px 0; }
.brands-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 48px;
}
.brands-head h2 { font-family: var(--font-display); font-size: clamp(36px, 5vw, 64px); margin: 0; letter-spacing: -0.02em; line-height: 1; }
.brands-head h2 em { font-style: italic; }
.brands-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
@media (max-width: 800px) { .brands-grid { grid-template-columns: repeat(2, 1fr); } }
.brand-cell {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  aspect-ratio: 16/9;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 28px; letter-spacing: -0.01em;
  color: var(--ink-2);
  position: relative;
  transition: background 0.4s, color 0.4s;
  overflow: hidden;
}
.brand-cell:hover { background: var(--ink); color: var(--bg); }
.brand-cell .b-meta {
  position: absolute; left: 16px; bottom: 12px;
  font-family: var(--font-sans); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  opacity: 0; transition: opacity 0.3s;
}
.brand-cell:hover .b-meta { opacity: 0.7; }

/* ── category strip ─────────────────────────────────────────────────── */
.cats { padding: 96px 0 110px; }
.cats-head { position: relative; margin-bottom: 48px; }
.cats-head .eyebrow { display: block; margin-bottom: 18px; }
.cats-head h2 { font-family: var(--font-display); font-size: clamp(36px, 5.4vw, 76px); margin: 0; letter-spacing: -0.02em; line-height: 0.98; }
.cats-head h2 em { font-style: italic; }
.cats-all { position: absolute; right: 0; bottom: 6px; font-family: var(--font-label); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; border-bottom: 1px solid currentColor; padding-bottom: 4px; }
@media (max-width: 700px) { .cats-all { position: static; display: inline-block; margin-top: 18px; } }
.cats-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
@media (max-width: 900px) { .cats-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 540px) { .cats-grid { grid-template-columns: repeat(2, 1fr); } }
.cat-card {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: 2px;
  cursor: pointer;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.cat-card:hover { transform: translateY(-6px); }
.cat-card img.cat-photo-slot {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center center;
}
.cat-card[data-cat="fnb"] img.cat-photo-slot { object-position: center 70%; }
.cat-card .ph,
.cat-card .cat-photo-slot {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.cat-card:hover .ph { transform: scale(1.06); }
.cat-card .label {
  position: absolute; left: 24px; right: 24px; bottom: 24px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  color: #F4EFE8; z-index: 2;
}
.cat-card .label .name { font-family: var(--font-display); font-size: clamp(24px, 1.8vw, 30px); font-style: italic; line-height: 1.05; }
.cat-card .label .count { font-family: var(--font-label); font-size: 11px; letter-spacing: 0.04em; text-transform: none; opacity: 0.82; }
.cat-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.65) 100%);
  z-index: 1;
}
.cat-card .num-mark {
  position: absolute; top: 20px; left: 20px;
  color: #F4EFE8; font-size: 10px; letter-spacing: 0.18em; z-index: 2;
}

/* ── Gallery4 carousel (replaces category grid) ─────────────────────── */
.cats-g4-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 44px; gap: 24px; flex-wrap: wrap;
}
.cats-g4-head .eyebrow { display: block; margin-bottom: 16px; }
.cats-g4-head h2 {
  font-family: var(--font-display); font-size: clamp(36px, 5.4vw, 76px);
  margin: 0; letter-spacing: -0.02em; line-height: 0.98;
}
.cats-g4-head h2 em { font-style: italic; }
.cats-g4-head-right { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }
.cats-g4-head .cats-all {
  position: static;
  font-family: var(--font-label); font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase; border-bottom: 1px solid currentColor; padding-bottom: 2px;
}
.cat-g4-carousel {
  display: flex; gap: clamp(10px, 1.2vw, 20px);
  overflow-x: auto; overflow-y: visible;
  padding: 0 var(--gutter) 8px;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
  -webkit-overflow-scrolling: touch;
}
.cat-g4-carousel:active { cursor: grabbing; }
.cat-g4-carousel::-webkit-scrollbar { display: none; }
.cat-g4-card {
  flex: 0 0 min(300px, 75vw);
  min-height: 432px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  scroll-snap-align: start;
  cursor: pointer;
  transition: transform 0.45s cubic-bezier(0.2,0.7,0.2,1);
}
@media (min-width: 900px) { .cat-g4-card { flex: 1 0 0; min-width: 0; } }
.cat-g4-card:hover { transform: scale(1.025); }
.cat-g4-card:hover .cat-g4-media img { transform: scale(1.06); }
.cat-g4-media { position: absolute; inset: 0; background: var(--ink-2); }
.cat-g4-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  display: block;
  transition: transform 0.6s cubic-bezier(0.2,0,0,1);
}
.cat-g4-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 25%, rgba(15,10,8,0.45) 58%, rgba(15,10,8,0.90) 100%);
}
.cat-g4-content {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 28px 28px 32px; color: #F4EFE8;
}
.cat-g4-n {
  font-family: var(--font-label); font-size: 10px; letter-spacing: 0.2em;
  text-transform: uppercase; opacity: 0.5; margin-bottom: 10px;
}
.cat-g4-title {
  font-family: var(--font-display); font-size: 26px;
  font-weight: 400; line-height: 1.1; font-style: italic; margin-bottom: 8px;
}
.cat-g4-desc {
  font-size: 13px; opacity: 0.65; margin-bottom: 22px; line-height: 1.5;
}
.cat-g4-cta {
  font-family: var(--font-label); font-size: 11px;
  letter-spacing: 0.15em; text-transform: uppercase;
  display: flex; align-items: center; gap: 8px;
}
.cat-g4-arr { display: inline-block; transition: transform 0.35s cubic-bezier(0.2,0.7,0.2,1); }
.cat-g4-card:hover .cat-g4-arr { transform: translateX(7px); }
.cat-g4-arrows { display: flex; gap: 8px; }
.cat-g4-arrow {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: transparent;
  font-size: 16px; display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, opacity 0.2s;
}
.cat-g4-arrow:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.cat-g4-arrow:disabled { opacity: 0.2; pointer-events: none; }
.cat-g4-dots { display: flex; gap: 8px; margin-top: 20px; }
.cat-g4-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(31,26,23,0.2); border: none; padding: 0; cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}
.cat-g4-dot.active { background: var(--ink); transform: scale(1.3); }

/* placeholder gradient generator */
.ph-a { background: linear-gradient(160deg, #8B5A3C, #C8956D 55%, #d9b894); }
.ph-b { background: linear-gradient(160deg, #3a4d3f, #6b7e5e 55%, #a8b394); }
.ph-c { background: linear-gradient(160deg, #6e4a35, #a86b4a 50%, #d9a479); }
.ph-d { background: linear-gradient(160deg, #2a2520, #4a3f38 55%, #6e5e51); }
.ph-e { background: linear-gradient(160deg, #b07a52, #d9b894 50%, #efe2cf); }
.ph-f { background: linear-gradient(160deg, #4a3f38, #8b7361 55%, #c4a585); }

/* ── Testimonials v3 — 3-column infinite scroll ─────────────────────── */
.tstm3 { padding: 96px 0; }
.tstm3-head {
  text-align: center; max-width: 540px; margin: 0 auto 56px;
}
.tstm3-badge {
  display: inline-block; padding: 4px 16px;
  border: 1px solid var(--line-strong); border-radius: 8px;
  font-family: var(--font-label); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 20px; color: var(--ink-2);
}
.tstm3-head h2 {
  font-family: var(--font-display); font-size: clamp(32px, 4.5vw, 64px);
  margin: 0 0 14px; letter-spacing: -0.02em; line-height: 0.95;
}
.tstm3-head h2 em { font-style: italic; }
.tstm3-head p { opacity: 0.65; font-size: 15px; margin: 0; }
.tstm3-cols {
  display: flex; justify-content: center; gap: 24px;
  padding: 0 var(--gutter);
  max-height: 740px; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
  mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
}
.tstm3-col { flex: 1; max-width: 360px; overflow: hidden; }
.tstm3-hidden-md { display: none; }
@media (min-width: 768px) { .tstm3-hidden-md { display: block; } }
.tstm3-hidden-lg { display: none; }
@media (min-width: 1024px) { .tstm3-hidden-lg { display: block; } }
@keyframes tstm3-scroll {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}
.tstm3-track {
  animation: tstm3-scroll 15s linear infinite;
  display: flex; flex-direction: column; gap: 24px; padding-bottom: 24px;
  will-change: transform;
}
.tstm3-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: 24px;
  padding: 32px; box-shadow: 0 4px 24px rgba(31,26,23,0.07);
}
.tstm3-text {
  font-size: 14px; line-height: 1.65; color: var(--ink); margin: 0 0 20px;
}
.tstm3-author { display: flex; align-items: center; gap: 12px; }
.tstm3-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
/* brand logo avatars */
.tstm3-logo-wrap {
  flex-shrink: 0;
  width: 48px; height: 48px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; padding: 6px;
}
.tstm3-logo-wrap.is-dark {
  background: #1a1a1a;
}
.tstm3-brand-logo { width: 100%; height: 100%; object-fit: contain; }
/* initials fallback */
.tstm3-initials {
  flex-shrink: 0;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; letter-spacing: 0.04em;
  font-family: var(--font-sans);
}
.tstm3-stars { color: #C8956D; font-size: 13px; letter-spacing: 2px; margin-bottom: 10px; }
.tstm3-name { font-weight: 500; font-size: 14px; line-height: 1.3; }
.tstm3-role { font-size: 13px; opacity: 0.6; line-height: 1.3; }

/* Pause the marquee columns while the visitor is reading one — CSS only.
   (hover:none) devices never match :hover, so no extra override is needed. */
.tstm3-col:hover .tstm3-track { animation-play-state: paused; }

/* ── featured testimonials: 3 static readable cards, always visible ──── */
.tstm-feat {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin: 40px 0 56px;
}
@media (max-width: 900px) { .tstm-feat { grid-template-columns: 1fr; } }
.tstm-feat-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: 16px;
  padding: 32px; display: flex; flex-direction: column; gap: 20px;
  box-shadow: 0 4px 24px rgba(31,26,23,0.06);
}
.tstm-feat-text {
  font-family: var(--font-display); font-style: italic; color: var(--ink);
  font-size: 17px; line-height: 1.55; margin: 0; text-wrap: pretty;
}
.tstm-feat-pull {
  background: rgba(200,149,109,0.18); color: var(--accent-deep);
  border-radius: 3px; padding: 0 3px; font-style: normal;
}
.tstm-feat-author { display: flex; align-items: center; gap: 12px; }

/* ── footer ─────────────────────────────────────────────────────────── */
.foot { padding: 96px 0 40px; border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1.1fr 1fr; gap: 48px; }
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr; gap: 40px; } }
.foot-cta h3.script {
  font-family: var(--font-script);
  font-size: clamp(34px, 4vw, 52px);
  line-height: 0.98;
  color: var(--ink);
  margin: 0 0 28px;
  font-weight: 500;
}
.foot h3 { font-family: var(--font-display); font-size: 48px; margin: 0 0 16px; line-height: 0.95; letter-spacing: -0.02em; }
.foot h3 em { font-style: italic; }
.foot .col-title { font-family: var(--font-label); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.foot ul a { font-size: 14px; }
.foot ul a:hover { color: var(--accent-deep); }
.foot-contact li { display: flex; flex-direction: column; gap: 3px; }
.foot-contact .ct-k { font-family: var(--font-label); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.foot-contact a { font-size: 15px; font-family: var(--font-display); font-style: italic; }
.foot-bottom {
  margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  font-family: var(--font-label);
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}

/* ── portfolio ──────────────────────────────────────────────────────── */
.port-head { padding: 140px 0 40px; }
.port-head h1 { font-family: var(--font-display); font-size: clamp(64px, 10vw, 168px); margin: 0; line-height: 0.9; letter-spacing: -0.03em; }
.port-head h1 em { font-style: italic; }
.port-head .sub {
  margin-top: 24px;
  font-family: var(--font-display); font-style: italic; font-size: clamp(22px, 2vw, 28px);
  max-width: 720px; line-height: 1.3;
}
.port-filter {
  display: flex; gap: 8px; padding: 32px 0; flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
}
.port-filter button {
  padding: 10px 18px;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  border: 1px solid var(--line); border-radius: 999px;
  background: transparent; color: var(--ink-2);
  transition: all 0.3s;
}
.port-filter button:hover { color: var(--ink); border-color: var(--ink); }
.port-filter button.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.port-filter .count { opacity: 0.5; margin-left: 6px; font-feature-settings: "tnum"; }

.port-grid { padding: 48px 0 120px; }

/* ── category sections: horizontal scroll per row ── */
.port-sections { padding-bottom: 120px; }
.port-section { margin-bottom: 56px; }
.port-section-hd {
  display: flex; align-items: baseline; justify-content: space-between;
  padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 20px;
}
.port-section-count {
  font-family: var(--font-display); font-style: italic; font-size: 20px;
  opacity: 0.35; line-height: 1;
}
/* full-bleed scroll: aligns left edge with .wrap content */
.port-section-scroll {
  overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
  padding-bottom: 12px;
  padding-left: max(calc((100vw - var(--max)) / 2 + var(--gutter)), var(--gutter));
  padding-right: max(calc((100vw - var(--max)) / 2 + var(--gutter)), var(--gutter));
}
.port-section-scroll::-webkit-scrollbar { display: none; }
.port-section-row { display: flex; gap: 10px; }
/* 9:16 cards — flex: 1 fills available width; min-width triggers scroll if many cards */
.port-section-row .pc {
  flex: 1; min-width: 180px; aspect-ratio: 9/16;
  scroll-snap-align: start;
}
/* always-visible gradient + stats */
.port-section-row .pc::after {
  background: linear-gradient(180deg, transparent 38%, rgba(0,0,0,0.9) 100%);
  opacity: 1;
}
.port-section-row .pc .pc-meta { transform: translateY(0); opacity: 1; }
.port-section-row .pc .pc-brand { font-size: 15px; }
.port-section-row .pc .pc-result .r-num { font-size: 21px; }
/* play button top-right */
.port-section-row .pc .pc-playbtn {
  left: auto; top: 10px; right: 10px; transform: none;
  width: 32px; height: 32px; font-size: 10px; padding-left: 2px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.port-section-row .pc:hover .pc-playbtn { transform: scale(1.08); }
@media (max-width: 600px) {
  /* Vertical 9:16 cards with the description placed BELOW the thumbnail (not
     overlaid), swipeable side-by-side with a peek of the next card. */
  .port-section-row { gap: 16px; }
  .port-section-row .pc {
    flex: 0 0 auto; width: 74vw; max-width: 300px;
    height: auto; aspect-ratio: auto; background: transparent; overflow: visible; border-radius: 0;
  }
  .port-section-row .pc .pc-media {
    position: relative; inset: auto; width: 100%; aspect-ratio: 9 / 16;
    border-radius: 6px; overflow: hidden;
  }
  .port-section-row .pc::after { display: none; }
  .port-section-row .pc .pc-tag { left: 10px; top: 10px; }
  .port-section-row .pc .pc-playbtn {
    left: auto; top: 10px; right: 10px; transform: none;
    width: 38px; height: 38px; font-size: 12px;
  }
  .port-section-row .pc .pc-meta {
    position: static; transform: none; opacity: 1;
    left: auto; right: auto; bottom: auto; color: var(--ink); margin-top: 12px;
  }
  .port-section-row .pc .pc-brand { color: var(--ink); font-size: 17px; }
  .port-section-row .pc .pc-type { color: var(--muted); }
  .port-section-row .pc .pc-sep { border-top-color: var(--line); }
  .port-section-row .pc .pc-result .r-num { color: var(--accent-deep); }
  .port-section-row .pc .pc-result .r-lbl { color: var(--muted); opacity: 1; }
}

/* magazine layout: featured + smaller */
.port-grid.v-magazine {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px;
}
.port-grid.v-magazine .pc:nth-child(6n+1) { grid-column: span 4; aspect-ratio: 9/16; }
.port-grid.v-magazine .pc:nth-child(6n+2) { grid-column: span 8; aspect-ratio: 4/3; }
.port-grid.v-magazine .pc:nth-child(6n+3) { grid-column: span 4; aspect-ratio: 1/1; }
.port-grid.v-magazine .pc:nth-child(6n+4) { grid-column: span 4; aspect-ratio: 1/1; }
.port-grid.v-magazine .pc:nth-child(6n+5) { grid-column: span 4; aspect-ratio: 3/4; }
.port-grid.v-magazine .pc:nth-child(6n+0) { grid-column: span 8; aspect-ratio: 16/9; }
@media (max-width: 800px) {
  .port-grid.v-magazine .pc { grid-column: span 12 !important; aspect-ratio: 3/4 !important; }
}

/* ── 3-column reel wall (9:16, always-visible stats) ── */
.port-grid.v-reel {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.port-grid.v-reel .pc { aspect-ratio: 9/16; }
/* gradient + meta always on */
.port-grid.v-reel .pc::after {
  background: linear-gradient(180deg, transparent 38%, rgba(0,0,0,0.9) 100%);
  opacity: 1;
}
.port-grid.v-reel .pc .pc-meta { transform: translateY(0); opacity: 1; }
.port-grid.v-reel .pc .pc-brand { font-size: 18px; }
.port-grid.v-reel .pc .pc-result .r-num { font-size: 24px; }
/* move play btn to top-right corner */
.port-grid.v-reel .pc .pc-playbtn {
  left: auto; top: 12px; right: 12px;
  transform: none; width: 36px; height: 36px; font-size: 11px; padding-left: 2px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}
.port-grid.v-reel .pc:hover .pc-playbtn { transform: scale(1.08); }
@media (max-width: 900px) { .port-grid.v-reel { grid-template-columns: repeat(2,1fr); gap: 10px; } }
@media (max-width: 480px) { .port-grid.v-reel { grid-template-columns: 1fr 1fr; gap: 8px; } }

/* uniform grid */
.port-grid.v-uniform {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.port-grid.v-uniform .pc { aspect-ratio: 3/4; }
@media (max-width: 800px) { .port-grid.v-uniform { grid-template-columns: 1fr 1fr; } }

/* masonry */
.port-grid.v-masonry {
  columns: 3; column-gap: 16px;
}
.port-grid.v-masonry .pc {
  break-inside: avoid; margin-bottom: 16px; display: block;
}
.port-grid.v-masonry .pc.r1 { aspect-ratio: 3/4; }
.port-grid.v-masonry .pc.r2 { aspect-ratio: 1/1; }
.port-grid.v-masonry .pc.r3 { aspect-ratio: 4/5; }
.port-grid.v-masonry .pc.r4 { aspect-ratio: 9/16; }
@media (max-width: 800px) { .port-grid.v-masonry { columns: 2; } }

.pc {
  position: relative; overflow: hidden;
  background: var(--bg-2);
  cursor: pointer;
  border-radius: 2px;
}
.pc .pc-media { position: absolute; inset: 0; transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.pc:hover .pc-media { transform: scale(1.04); }
.pc::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,0.7) 100%);
  opacity: 0; transition: opacity 0.4s;
  z-index: 1;
}
.pc:hover::after { opacity: 1; }
.pc .pc-play {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  width: 32px; height: 32px; border-radius: 999px;
  background: rgba(255,255,255,0.9); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  opacity: 0.85;
}
.pc .pc-meta {
  position: absolute; left: 20px; right: 20px; bottom: 20px;
  color: #F4EFE8; z-index: 2;
  transform: translateY(8px); opacity: 0;
  transition: all 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.pc:hover .pc-meta { transform: translateY(0); opacity: 1; }
.pc .pc-brand { font-family: var(--font-display); font-style: italic; font-size: 24px; line-height: 1.05; }
.pc .pc-type { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 1; margin-top: 7px; font-family: var(--font-label); color: rgba(255,255,255,0.9); }
.pc .pc-sep { border-top: 1px solid rgba(255,255,255,0.25); margin-top: 10px; }
.pc .pc-result {
  margin-top: 10px; padding-top: 0; border-top: none;
  display: flex; gap: 16px; font-size: 11px;
}
.pc .pc-result .r-num { font-family: var(--font-display); font-size: 18px; font-style: italic; }
.pc .pc-result .r-lbl { font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.75; }
.pc .pc-tag {
  position: absolute; left: 16px; top: 16px; z-index: 2;
  font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase;
  color: #F4EFE8; background: rgba(0,0,0,0.55); padding: 5px 9px; border-radius: 999px;
}
.pc .pc-media.has-video { background-color: #1a1714; }
.pc .pc-playbtn {
  position: absolute; left: 50%; top: 50%; z-index: 2;
  transform: translate(-50%, -50%) scale(1);
  width: 64px; height: 64px; border-radius: 999px;
  background: rgba(244,239,232,0.92); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; padding-left: 4px;
  box-shadow: 0 10px 34px rgba(0,0,0,0.3);
  transition: transform 0.45s cubic-bezier(0.2,0.7,0.2,1), background 0.3s;
  pointer-events: none;
}
.pc:hover .pc-playbtn { transform: translate(-50%, -50%) scale(1.12); background: #fff; }

/* ── inline in-frame video ──────────────────────────────────────────── */
.pc .pc-media.is-video { position: absolute; inset: 0; background: #000; z-index: 3; }
.pc .pc-media.is-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pc.is-playing { cursor: default; }
.pc.is-playing::after { opacity: 0 !important; pointer-events: none; }
.pc.is-playing .pc-tag, .pc.is-playing .pc-meta { opacity: 0; pointer-events: none; }

/* loading spinner inside video card */
.pc-spinner {
  position: absolute; inset: 0; z-index: 4;
  display: flex; align-items: center; justify-content: center;
  background: #000;
  pointer-events: none;
}
.pc-spinner span {
  width: 36px; height: 36px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.15);
  border-top-color: rgba(255,255,255,0.8);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── video lightbox ─────────────────────────────────────────────────── */
.vlb {
  position: fixed; inset: 0; z-index: 9000;
  background: rgb(15,14,12); /* fully opaque scrim (was backdrop-filter blur, then rgba 0.96) — opaque is GPU-cheapest and avoids large-layer alpha-blend artifacts */
  display: flex; align-items: center; justify-content: center;
  padding: 32px 48px;
  animation: vlb-in 0.22s ease;
}
@keyframes vlb-in { from { opacity: 0; } to { opacity: 1; } }
/* side-by-side: tall 9:16 phone-style video + info panel on the right */
.vlb-inner {
  display: flex; flex-direction: row;
  align-items: center; justify-content: center; gap: 56px; max-height: 100%;
  animation: vlb-rise 0.28s cubic-bezier(0.2,0.7,0.2,1);
}
@keyframes vlb-rise { from { transform: translateY(16px) scale(0.98); opacity: 0; } to { transform: none; opacity: 1; } }
.vlb-frame {
  position: relative; height: min(84vh, 820px); aspect-ratio: 9/16;
  background: #000; border-radius: 16px; overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6); flex-shrink: 0;
}
.vlb-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* info panel — stacked vertically to the right of the phone frame */
.vlb-info { display: flex; flex-direction: column; align-items: flex-start; gap: 36px; color: #F4EFE8; max-width: 280px; }
.vlb-brand { font-family: var(--font-display); font-style: italic; font-size: 32px; line-height: 1.1; display: block; }
.vlb-type { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.6; margin-top: 10px; display: block; }
.vlb-stats { display: flex; flex-direction: column; gap: 28px; border-left: none; padding-left: 0; }
.vlb-stat-n { font-family: var(--font-display); font-style: italic; font-size: 52px; line-height: 1; }
.vlb-stat-l { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.7; margin-top: 6px; }
/* Mobile stats bar — shown below video on phones */
.vlb-stats-mobile { display: none; }
@media (max-width: 900px) {
  .vlb-stats-mobile {
    display: flex; flex-direction: column; gap: 6px;
    padding: 14px 20px 20px;
    background: rgba(0,0,0,0.85);
    color: #F4EFE8; flex-shrink: 0;
  }
  .vlb-sm-brand {
    font-family: var(--font-display); font-style: italic; font-size: 17px;
    opacity: 0.9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .vlb-sm-stats { display: flex; flex-direction: row; gap: 24px; margin-top: 4px; }
  .vlb-sm-stat { display: flex; flex-direction: column; gap: 2px; }
  .vlb-sm-stat strong { font-family: var(--font-display); font-style: italic; font-size: 24px; line-height: 1; }
  .vlb-sm-stat span { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.6; }
}
.vlb-postlink { display: inline-block; font-family: var(--font-label); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.vlb-esc { font-size: 10px; opacity: 0.35; letter-spacing: 0.06em; }
.vlb-close {
  position: absolute; top: 28px; right: 32px; z-index: 2;
  width: 46px; height: 46px; border-radius: 999px;
  border: 1px solid rgba(244,239,232,0.28); background: rgba(244,239,232,0.06);
  color: #F4EFE8; font-size: 15px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.25s, transform 0.35s;
}
.vlb-close:hover { background: rgba(244,239,232,0.16); transform: rotate(90deg); }
@media (max-width: 900px) {
  /* Phones: the video player goes full-screen so the vertical reel is large
     and clearly visible. The 9:16 letterbox + info panel made the video tiny
     and stacked Drive's controls on top of it. */
  .vlb { padding: 0; align-items: stretch; overflow: hidden; }
  .vlb-inner { flex-direction: column; gap: 0; width: 100%; height: 100%; max-height: none; justify-content: center; align-items: center; }
  /* Phones: show the reel at its true 9:16 shape, as large as fits, centered.
     A full-bleed (aspect:auto) frame let the Drive player letterbox the clip and
     spread its chrome — title bar, stacked play buttons, control bars — across the
     dead space. Matching the frame to the clip keeps the video edge-to-edge so
     Drive's controls sit on the video itself. ~120px is reserved for the stats bar,
     and flex-shrink lets the frame give up height instead of clipping if the bar wraps taller. */
  .vlb-frame {
    height: min(calc(100vh - 120px), calc(100vw * 16 / 9));
    height: min(calc(100dvh - 120px), calc(100vw * 16 / 9));
    aspect-ratio: 9 / 16;
    width: auto; max-width: 100vw; min-height: 0; flex-shrink: 1;
    border-radius: 0; background: #000; box-shadow: none;
  }
  .vlb-info { display: none; }
  .vlb-esc { display: none; }
  .vlb-close {
    top: max(14px, env(safe-area-inset-top)); right: 14px; z-index: 5;
    background: rgba(0,0,0,0.55); border-color: rgba(255,255,255,0.35);
  }
}

/* ── services ───────────────────────────────────────────────────────── */
.svc-head { padding: 140px 0 60px; }
.svc-head .eyebrow { margin-bottom: 24px; }
.svc-head h1 { font-family: var(--font-display); font-size: clamp(64px, 10vw, 168px); margin: 0; line-height: 0.9; letter-spacing: -0.03em; }
.svc-head h1 em { font-style: italic; }
.svc-head .sub { margin-top: 28px; max-width: 640px; font-family: var(--font-display); font-style: italic; font-size: clamp(22px, 2vw, 28px); line-height: 1.3; }

.tier {
  border-top: 1px solid var(--line);
  padding: 56px 0;
  display: grid; grid-template-columns: 1fr 2fr;
  gap: 48px;
}
.tier:last-child { border-bottom: 1px solid var(--line); }
@media (max-width: 800px) { .tier { grid-template-columns: 1fr; gap: 24px; } }
.tier-head .num { font-family: var(--font-display); font-style: italic; font-size: 64px; line-height: 1; color: var(--accent-deep); }
.tier-head h2 {
  font-family: var(--font-display); font-size: clamp(40px, 5vw, 64px);
  margin: 12px 0 8px; line-height: 1; letter-spacing: -0.02em;
}
.tier-head h2 em { font-style: italic; }
.tier-head p { color: var(--muted); font-size: 14px; max-width: 320px; }
.tier-list { display: flex; flex-direction: column; }
.tier-row {
  display: grid; grid-template-columns: 1fr auto;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px dotted var(--line);
  gap: 20px;
}
.tier-row:last-child { border-bottom: 0; }
.tier-row .item { font-family: var(--font-display); font-size: clamp(22px, 2.3vw, 32px); letter-spacing: -0.01em; line-height: 1.1; }
.tier-row .item em { font-style: italic; }
.tier-row .desc { display: block; font-family: var(--font-sans); font-size: 12px; letter-spacing: 0.04em; color: var(--muted); margin-top: 6px; }
.tier-row .price {
  font-family: var(--font-sans); font-weight: 500;
  font-size: 18px; letter-spacing: -0.01em; white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.tier-row .price small { display: block; font-weight: 400; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); text-align: right; margin-top: 4px; }
.tier-row:hover { background: rgba(200, 149, 109, 0.05); }

.usage {
  margin-top: 48px; padding: 32px;
  background: var(--bg-2);
  border-radius: 4px;
  display: grid; grid-template-columns: auto 1fr 1fr 1fr; gap: 32px; align-items: center;
}
@media (max-width: 800px) { .usage { grid-template-columns: 1fr; gap: 16px; } }
.usage .u-lbl { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.usage .u-row { display: flex; flex-direction: column; gap: 4px; }
.usage .u-row .k { font-family: var(--font-display); font-style: italic; font-size: 24px; }
.usage .u-row .v { font-size: 12px; color: var(--muted); }

.svc-note {
  margin-top: 32px; padding: 24px 0;
  font-size: 12px; line-height: 1.5; color: var(--muted); max-width: 720px;
}

/* ── about ──────────────────────────────────────────────────────────── */
.about-head { padding: 140px 0 80px; }
/* ── About CTA pulsing ring ──────────────────────────────────────────── */
.about-cta-pulse {
  position: relative;
  display: inline-block;
}
.about-cta-pulse::before,
.about-cta-pulse::after {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 999px;
  border: 1.5px solid var(--accent);
  opacity: 0;
  pointer-events: none;
  animation: cta-ring 2.8s ease-out infinite;
}
.about-cta-pulse::after {
  inset: -28px;
  border-width: 1px;
  animation-delay: 0.7s;
}
@keyframes cta-ring {
  0%   { opacity: 0;   transform: scale(0.9); }
  25%  { opacity: 0.55; }
  100% { opacity: 0;   transform: scale(1.12); }
}

.about-head h1 { font-family: var(--font-display); font-size: clamp(48px, 6.6vw, 112px); margin: 0; line-height: 0.96; letter-spacing: -0.02em; }
.about-head h1 em { font-style: italic; }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
  padding: 40px 0 80px;
}
@media (max-width: 800px) { .about-grid { grid-template-columns: 1fr; gap: 32px; } }
.about-photo {
  aspect-ratio: 3/4;
  background: url("images/rose-hero.jpg") center 42% / cover no-repeat, #6e4a35;
  border-radius: 2px;
  position: sticky; top: 80px;
}
.about-copy p {
  font-family: var(--font-display); font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.45; margin: 0 0 24px; color: var(--ink);
}
.about-copy p:first-child::first-letter {
  font-size: 5em; line-height: 0.9; float: left;
  margin: 6px 12px 0 0; font-style: italic; color: var(--accent-deep);
}
.about-copy p em { font-style: italic; }

.about-roles {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  border-top: 1px solid var(--line);
  padding: 48px 0;
}
@media (max-width: 800px) { .about-roles { grid-template-columns: 1fr 1fr; } }
.about-role .n { font-family: var(--font-display); font-size: 36px; font-style: italic; }
.about-role .y { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }

.press { padding: 80px 0; border-top: 1px solid var(--line); }
.press-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 32px; }
.press-head h2 { font-family: var(--font-display); font-size: 48px; margin: 0; letter-spacing: -0.02em; }
.press-head h2 em { font-style: italic; }
.press-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 800px) { .press-list { grid-template-columns: 1fr; } }
.press-item {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 2px;
  display: flex; flex-direction: column; gap: 12px;
  transition: background 0.3s, color 0.3s;
}
.press-item:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.press-item .source { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; }
.press-item .quote { font-family: var(--font-display); font-style: italic; font-size: 22px; line-height: 1.3; }
.press-item .date { font-size: 11px; letter-spacing: 0.14em; color: var(--muted); margin-top: auto; }
.press-item:hover .date { color: rgba(244,239,232,0.6); }

/* ── contact ────────────────────────────────────────────────────────── */
.cnt-head { padding: 140px 0 40px; }
.cnt-head h1 { font-family: var(--font-display); font-size: clamp(40px, 5.4vw, 88px); margin: 0; line-height: 0.98; letter-spacing: -0.02em; }
.cnt-head h1 em { font-style: italic; }
.cnt-head .sub { margin-top: 28px; max-width: 560px; font-family: var(--font-sans); font-style: normal; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.5; color: var(--ink-2); }

.cnt-grid {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 80px;
  padding: 48px 0 120px;
}
@media (max-width: 900px) { .cnt-grid { grid-template-columns: 1fr; gap: 40px; } }

.cnt-info { display: flex; flex-direction: column; gap: 32px; }
.cnt-info .block .k { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.cnt-info .block .v { font-family: var(--font-sans); font-style: normal; font-weight: 500; font-size: 21px; line-height: 1.35; letter-spacing: 0; }
.cnt-info .block .v a:hover { color: var(--accent-deep); }

.cnt-form { display: flex; flex-direction: column; gap: 28px; }
.cnt-form .field { display: flex; flex-direction: column; gap: 8px; }
.cnt-form label { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.cnt-form input, .cnt-form textarea, .cnt-form select {
  appearance: none; background: transparent;
  border: 0; border-bottom: 1px solid var(--line);
  padding: 12px 0; font-family: var(--font-sans);
  font-size: 18px; color: var(--ink);
  font-style: normal;
  outline: none;
  border-radius: 0;
  transition: border-color 0.3s;
}
.cnt-form input::placeholder, .cnt-form textarea::placeholder { color: rgba(31,26,23,0.25); }
.cnt-form input:focus, .cnt-form textarea:focus, .cnt-form select:focus { border-color: var(--ink); }
.cnt-form input:focus-visible, .cnt-form textarea:focus-visible, .cnt-form select:focus-visible {
  outline: 2px solid var(--accent-deep);
  outline-offset: 3px;
  border-radius: 2px;
}
.cnt-form textarea { resize: vertical; min-height: 80px; font-family: var(--font-sans); font-style: normal; font-size: 16px; }
.cnt-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 600px) { .cnt-form .row2 { grid-template-columns: 1fr; } .cnt-submit { flex-direction: column; align-items: flex-start; gap: 14px; } }

.cnt-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.cnt-chips button {
  padding: 8px 14px; font-size: 12px;
  border: 1px solid var(--line); border-radius: 999px;
  color: var(--ink-2); background: transparent;
  transition: all 0.3s;
}
.cnt-chips button:hover { border-color: var(--ink); color: var(--ink); }
.cnt-chips button.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.cnt-submit { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; }
.cnt-submit .note { font-size: 11px; letter-spacing: 0.14em; color: var(--muted); text-transform: uppercase; }

.cnt-success {
  padding: 64px 32px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 2px;
}
.cnt-success .check {
  font-family: var(--font-display); font-style: italic;
  font-size: 64px; color: var(--accent-deep); margin-bottom: 16px;
}
.cnt-success h3 { font-family: var(--font-display); font-size: 40px; margin: 0 0 16px; letter-spacing: -0.02em; }
.cnt-success h3 em { font-style: italic; }
.cnt-success p { color: var(--muted); max-width: 420px; margin: 0 auto; }

/* ── decorative scroll word ─────────────────────────────────────────── */
.scroll-word {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(120px, 22vw, 360px);
  line-height: 0.9;
  white-space: nowrap;
  color: var(--bg-2);
  user-select: none;
  pointer-events: none;
}
.scroll-strip {
  overflow: hidden; padding: 80px 0;
}
.scroll-strip .track { display: flex; gap: 80px; animation: marquee 40s linear infinite; }

/* ── brand logo carousel ────────────────────────────────────────────── */
.brand-carousel {
  overflow: hidden;
  padding: 64px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.bc-track {
  display: flex; align-items: center; gap: 64px;
  white-space: nowrap;
  width: max-content;
  animation: marquee 38s linear infinite;
  will-change: transform;
}
.brand-carousel:hover .bc-track { animation-play-state: paused; }
.bc-slot {
  mix-blend-mode: multiply;
  display: inline-block;
  width: 150px; height: 64px;
  flex-shrink: 0;
  opacity: 0.7;
  transition: opacity 0.3s;
}
.bc-slot:hover { opacity: 1; }
.bc-logo {
  width: auto; max-width: 200px; height: 56px;
  object-fit: contain;
  mix-blend-mode: multiply;
  vertical-align: middle;
}

/* ════════════════════════════════════════════════════════════════════
   NEW SECTIONS — social proof, case-study teaser, testimonials,
   case studies page, services grid, about, contact select
   ════════════════════════════════════════════════════════════════════ */

/* ── social proof strip ─────────────────────────────────────────────── */
.social-proof { padding-top: 64px; }
.sp-label { display: block; text-align: center; margin-bottom: 24px; }
.social-proof .brand-carousel { padding: 36px 0; }

/* ── case-study teaser (home) ───────────────────────────────────────── */
.cs-teaser { padding: 36px 0 100px; }
.cst-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
@media (max-width: 820px) { .cst-grid { grid-template-columns: 1fr; gap: 32px; } }
.cst-copy .eyebrow { display: block; margin-bottom: 16px; }
.cst-copy h2 { font-family: var(--font-display); font-size: clamp(40px, 5.4vw, 76px); line-height: 0.96; letter-spacing: -0.02em; margin: 0 0 22px; }
.cst-copy h2 em { font-style: italic; }
.cst-copy p { max-width: 460px; color: var(--ink-2); line-height: 1.65; margin: 0; }
.cst-link { display: inline-block; margin-top: 26px; font-family: var(--font-label); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; border-bottom: 1px solid currentColor; padding-bottom: 4px; }
.cst-stat { background: var(--ink); color: var(--bg); padding: 48px 44px; border-radius: 4px; }
.cst-tag { font-family: var(--font-label); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(245,240,232,0.55); }
.cst-num { font-family: var(--font-display); font-style: italic; font-size: clamp(76px, 11vw, 148px); line-height: 0.86; color: var(--gold); margin: 10px 0 4px; }
.cst-sub { font-family: var(--font-label); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(245,240,232,0.6); }
.cst-row { display: flex; gap: 44px; margin-top: 32px; padding-top: 24px; border-top: 1px solid rgba(245,240,232,0.15); }
.cst-row .n { font-family: var(--font-display); font-style: italic; font-size: 30px; line-height: 1; }
.cst-row .k { font-family: var(--font-label); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(245,240,232,0.5); margin-top: 6px; }

/* ── case-study teaser: dual proof cards (organic + commercial) ──────── */
.cst-proof-col { display: flex; flex-direction: column; gap: 20px; }
.cst-proof-col .cst-stat { padding: 40px 40px; }
.cst-num-text { font-size: clamp(40px, 6vw, 68px); }
.cst-commercial {
  cursor: pointer;
  border: 1px solid var(--accent-deep);
  background: linear-gradient(160deg, var(--ink) 60%, rgba(139,90,60,0.35));
  transition: transform 0.25s cubic-bezier(0.22,1,0.36,1), border-color 0.25s;
}
.cst-commercial:hover { transform: translateY(-4px); border-color: var(--accent); }
.cst-commercial-cta {
  margin-top: 20px; font-family: var(--font-label); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gold);
}
@media (max-width: 640px) {
  .cst-proof-col .cst-stat { padding: 32px 28px; }
}

/* ── process section (Home + Services, shared.jsx ProcessSection) ────── */
.process { padding: 96px 0; border-top: 1px solid var(--line); }
.process-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.process-head .eyebrow { display: block; margin-bottom: 16px; }
.process-head h2 {
  font-family: var(--font-display); font-size: clamp(34px, 4.6vw, 60px);
  line-height: 1; letter-spacing: -0.02em; margin: 0 0 16px;
}
.process-head h2 em { font-style: italic; }
.process-intro { color: var(--ink-2); font-size: 16px; line-height: 1.6; margin: 0; }
.pr-steps {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px;
  position: relative;
}
.pr-steps::before {
  content: ""; position: absolute; top: 22px; left: 6%; right: 6%; height: 1px;
  background: var(--line-strong); z-index: 0;
}
.pr-step { position: relative; z-index: 1; }
.pr-n {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.06em;
  color: var(--accent-deep); background: var(--bg); display: inline-block;
  padding-right: 10px; margin-bottom: 14px;
}
.pr-t { font-family: var(--font-label); font-size: 15px; font-weight: 500; margin-bottom: 8px; }
.pr-d { color: var(--ink-2); font-size: 14px; line-height: 1.55; }
.process-cta {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  justify-content: center; margin-top: 56px;
}
.process-link {
  font-family: var(--font-label); font-size: 12px; letter-spacing: 0.12em;
  text-transform: uppercase; border-bottom: 1px solid currentColor; padding-bottom: 4px;
}
@media (max-width: 860px) {
  .pr-steps { grid-template-columns: 1fr; gap: 28px; }
  .pr-steps::before { display: none; }
}
@media (max-width: 640px) {
  .process { padding: 56px 0; }
  .process-head { margin-bottom: 36px; }
}

/* ── testimonials ───────────────────────────────────────────────────── */
.tstm { padding: 100px 0 0; border-top: 1px solid var(--line); }
.tstm-head { margin-bottom: 56px; }
.tstm-head .eyebrow { display: block; margin-bottom: 14px; }
.tstm-head h2 { font-family: var(--font-display); font-size: clamp(36px, 5vw, 68px); margin: 0; letter-spacing: -0.02em; line-height: 1; }
.tstm-head h2 em { font-style: italic; }
/* scrolling columns */
.tstm-cols {
  display: flex; gap: 24px;
  max-height: 560px; overflow: hidden;
  padding: 0 var(--gutter);
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 16%, black 84%, transparent);
  mask-image: linear-gradient(to bottom, transparent, black 16%, black 84%, transparent);
}
.tstm-col { flex: 1; overflow: hidden; min-width: 0; }
@keyframes tstm-up   { from { transform: translateY(0);    } to { transform: translateY(-50%); } }
@keyframes tstm-down { from { transform: translateY(-50%); } to { transform: translateY(0);    } }
.tstm-col-track {
  display: flex; flex-direction: column; gap: 20px;
  animation: tstm-up var(--tcol-dur, 22s) linear infinite;
}
.tstm-col-track.rev { animation-name: tstm-down; }
.tstm-col-track:hover { animation-play-state: paused; }
.tstm-card { border: 1px solid var(--line); border-radius: 3px; padding: 28px 32px; background: var(--bg-2); display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.tstm-card blockquote { font-family: var(--font-display); font-style: italic; font-size: 19px; line-height: 1.45; margin: 0; color: var(--ink); text-wrap: pretty; }
.tstm-card figcaption { display: flex; flex-direction: column; gap: 4px; }
.tstm-card .tn { font-weight: 500; font-size: 14px; }
.tstm-card .to { font-family: var(--font-label); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 640px) { .tstm-cols { flex-direction: column; max-height: 480px; } }

/* ── case studies page ──────────────────────────────────────────────── */
.cs-head { padding: 130px 0 50px; }
.cs-head .eyebrow { display: block; margin-bottom: 20px; }
.cs-head h1 { font-family: var(--font-display); font-size: clamp(56px, 8.5vw, 144px); margin: 0; line-height: 0.92; letter-spacing: -0.03em; }
.cs-head h1 em { font-style: italic; }
.cs-head .sub { margin-top: 24px; max-width: 560px; font-family: var(--font-display); font-style: italic; font-size: clamp(20px, 2vw, 28px); line-height: 1.3; color: var(--ink-2); }
.cs { display: grid; grid-template-columns: auto 1fr; gap: 56px; align-items: start; padding: 72px 0; border-top: 1px solid var(--line); }
.cs.flip .cs-visual { order: 2; }
@media (max-width: 860px) { .cs { grid-template-columns: 1fr; gap: 32px; } .cs.flip .cs-visual { order: 0; } .cs-visual { width: min(320px, 74vw); } }
.cs-visual { position: relative; aspect-ratio: 9/16; width: min(300px, 44vw); border-radius: 4px; overflow: hidden; }
.cs-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 42%, rgba(0,0,0,0.62)); z-index: 1; pointer-events: none; }
.cs-has-video {
  background: #000;
}
.cs-has-video::after { display: none; }
.cs-has-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; z-index: 1; }
.cs-has-video .cs-hero-stat,
.cs-has-video .cs-index { display: none; }
.cs-hero-stat { position: absolute; left: 0; right: 0; bottom: 0; padding: 32px; color: #fff; z-index: 2; }
.cs-hero-num { font-family: var(--font-display); font-style: italic; font-size: clamp(56px, 7vw, 92px); line-height: 0.9; }
.cs-hero-lbl { font-family: var(--font-label); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.85; }
.cs-index { position: absolute; top: 22px; left: 22px; z-index: 2; color: #fff; font-family: var(--font-label); font-size: 11px; letter-spacing: 0.16em; }
.cs-tag { display: block; margin-bottom: 14px; }
.cs-title { font-family: var(--font-display); font-size: clamp(34px, 4.4vw, 60px); margin: 0 0 24px; letter-spacing: -0.02em; line-height: 1; }
.cs-statrow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 26px; }
@media (max-width: 520px) { .cs-statrow { grid-template-columns: repeat(2, 1fr); gap: 20px 16px; } }
.cs-stat .n { font-family: var(--font-display); font-style: italic; font-size: 28px; line-height: 1; color: var(--accent-deep); }
.cs-stat .k { font-family: var(--font-label); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 8px; line-height: 1.4; }
.cs-brief { color: var(--ink-2); line-height: 1.65; margin: 0 0 22px; max-width: 580px; text-wrap: pretty; }
.cs-means { background: var(--bg-2); border-left: 3px solid var(--accent); padding: 18px 22px; margin-bottom: 26px; border-radius: 0 3px 3px 0; }
.cs-means-k { font-family: var(--font-label); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-deep); display: block; margin-bottom: 8px; }
.cs-means p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
/* cs-link now uses .avb with ink-tinted glass override */
.cs-link-avb {
  font-size: 12px !important;
  padding: 14px 24px !important;
  background: rgba(31,26,23,0.06) !important;
  border-color: rgba(31,26,23,0.18) !important;
  color: rgba(31,26,23,0.8) !important;
  margin-top: 28px;
  text-decoration: none;
}
.cs-link-avb::after {
  background: linear-gradient(0deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.15) 40%, transparent 100%) !important;
}
.cs-link-avb .avb-spark { fill: rgba(31,26,23,0.5) !important; }
.cs-link-avb:hover {
  background: rgba(31,26,23,0.11) !important;
  border-color: rgba(31,26,23,0.3) !important;
  color: var(--ink) !important;
}
.cs-link-avb:hover .avb-spark { fill: var(--ink) !important; filter: none !important; }
.cs.is-ph .cs-visual::before { content: "Placeholder — replace"; position: absolute; top: 22px; right: 22px; z-index: 3; font-family: var(--font-label); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; background: rgba(0,0,0,0.45); padding: 5px 9px; border-radius: 999px; }
.cs-cta { text-align: center; padding: 110px 0 130px; border-top: 1px solid var(--line); margin-top: 40px; }
.cs-cta h2 { font-family: var(--font-display); font-size: clamp(44px, 6vw, 88px); line-height: 1; letter-spacing: -0.02em; margin: 0; }
.cs-cta h2 em { font-style: italic; }

/* ── services grid ──────────────────────────────────────────────────── */
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; padding-top: 24px; }
@media (max-width: 780px) { .svc-grid { grid-template-columns: 1fr; } }
.svc-card { border: 1px solid var(--line); border-radius: 4px; padding: 36px; display: flex; flex-direction: column; gap: 24px; background: var(--bg); transition: border-color 0.3s, transform 0.4s; }
.svc-card:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.svc-num { font-family: var(--font-label); font-size: 12px; letter-spacing: 0.18em; color: var(--accent-deep); }
.svc-card h2 { font-family: var(--font-display); font-size: clamp(28px, 2.6vw, 38px); margin: 10px 0 14px; letter-spacing: -0.01em; line-height: 1; }
.svc-desc { color: var(--ink-2); line-height: 1.55; font-size: 15px; margin: 0; }
.svc-incl { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; }
@media (max-width: 480px) { .svc-incl { grid-template-columns: 1fr; } }
.svc-incl li { font-size: 13px; color: var(--ink-2); padding-left: 16px; position: relative; line-height: 1.4; }
.svc-incl li::before { content: "✦"; position: absolute; left: 0; color: var(--accent); font-size: 9px; top: 3px; }
.svc-card-foot { margin-top: auto; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.svc-rate { font-family: var(--font-display); font-style: italic; font-size: 26px; color: var(--ink); display: flex; flex-direction: column; }
.svc-rate span { font-family: var(--font-label); font-style: normal; font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-top: 6px; max-width: 240px; line-height: 1.4; }
.svc-enq { font-family: var(--font-label); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; border-bottom: 1px solid currentColor; padding-bottom: 3px; white-space: nowrap; }
.svc-card.is-highlight { background: var(--bg-2); border-color: var(--accent); }
.svc-card.svc-agency { grid-column: 1 / -1; background: var(--ink); color: var(--bg); border-color: var(--ink); }
.svc-agency .svc-num { color: var(--gold); }
.svc-agency h2 { color: var(--bg); }
.svc-agency .svc-desc { color: rgba(245,240,232,0.75); max-width: 680px; }
.svc-agency .svc-card-foot { border-top-color: rgba(245,240,232,0.2); }
.svc-agency-note { font-family: var(--font-label); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(245,240,232,0.55); }
.svc-footer-line { text-align: center; padding: 64px 0; font-family: var(--font-display); font-style: italic; font-size: clamp(20px, 2.2vw, 28px); line-height: 1.45; color: var(--ink-2); }
.svc-footer-line a { color: var(--accent-deep); border-bottom: 1px solid currentColor; }
.svc-cta { text-align: center; padding: 90px 0 130px; border-top: 1px solid var(--line); margin-top: 8px; }
.svc-cta h2 { font-family: var(--font-display); font-size: clamp(44px, 7vw, 96px); line-height: 1; letter-spacing: -0.02em; margin: 0; }
.svc-cta h2 em { font-style: italic; }

/* ── about: credentials + ctas + bio body ───────────────────────────── */
.cred-list { list-style: none; padding: 0 0 28px; margin: 0 0 28px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.cred-list li { font-family: var(--font-label); font-size: 13px; letter-spacing: 0.02em; color: var(--ink); padding-left: 22px; position: relative; line-height: 1.4; }
.cred-list li::before { content: "★"; position: absolute; left: 0; color: var(--accent); font-size: 11px; top: 2px; }
.about-copy p { font-family: var(--font-sans); font-weight: 300; font-size: clamp(16px, 1.3vw, 18px); line-height: 1.7; color: var(--ink-2); margin: 0 0 18px; }
.about-copy p:first-child::first-letter { font-size: inherit; float: none; margin: 0; color: inherit; }
.about-copy p em { font-style: italic; color: var(--ink); }
.about-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }

/* ── contact: native select ─────────────────────────────────────────── */
.cnt-select { position: relative; }
.cnt-select select { width: 100%; appearance: none; -webkit-appearance: none; background: transparent; border: 0; border-bottom: 1px solid var(--line); padding: 12px 28px 12px 0; font-family: var(--font-display); font-style: italic; font-size: 22px; color: var(--ink); cursor: pointer; }
.cnt-select select:focus { outline: none; border-bottom-color: var(--ink); }
.cnt-select select:focus-visible {
  outline: 2px solid var(--accent-deep);
  outline-offset: 3px;
  border-radius: 2px;
}
.cnt-select-arr { position: absolute; right: 2px; top: 14px; pointer-events: none; color: var(--muted); font-size: 14px; }
.cnt-select option { font-family: var(--font-sans); font-style: normal; font-size: 15px; color: var(--ink); background: var(--bg); }

/* ══════════════════════════════════════════════════════════════════
   PORTFOLIO — STICKY SIDE INDEX LAYOUT (Option C)
   ══════════════════════════════════════════════════════════════════ */

.port-index-layout {
  display: flex;
  align-items: flex-start;
  border-top: 1px solid var(--line);
  padding-bottom: 100px;
}

/* ── Left sticky rail ── */
.port-rail {
  width: 220px;
  flex-shrink: 0;
  border-right: 1px solid var(--line);
  position: sticky;
  top: calc(var(--topbar-h) + 64px);
  max-height: calc(100vh - var(--topbar-h) - 64px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.port-rail-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 28px 0;
}
.port-rail-label {
  display: block;
  padding: 0 28px 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
}
.port-rail-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 28px;
  border: none;
  border-left: 3px solid transparent;
  text-align: left;
  background: none;
  cursor: pointer;
  transition: border-color 0.3s;
}
.port-rail-item .port-rail-n {
  font-family: var(--font-label);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.3s, opacity 0.3s;
}
.port-rail-item.pra-active .port-rail-n {
  max-height: 20px;
  opacity: 1;
}
.port-rail-item .port-rail-name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 19px;
  color: var(--ink);
  opacity: 0.3;
  line-height: 1.15;
  transition: opacity 0.3s, font-size 0.25s cubic-bezier(0.2,0.7,0.2,1);
  text-align: left;
}
.port-rail-item.pra-active {
  border-left-color: var(--accent);
}
.port-rail-item.pra-active .port-rail-name {
  opacity: 1;
  font-size: 24px;
}
.port-rail-item:hover .port-rail-name {
  opacity: 0.7;
}
.port-rail-foot {
  margin-top: auto;
  padding: 20px 28px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.port-rail-foot span {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}
.port-rail-foot a {
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  display: inline-block;
  transition: color 0.25s, border-color 0.25s;
}
.port-rail-foot a:hover { color: var(--accent-deep); border-color: var(--accent-deep); }

/* ── Right main content ── */
.port-main { flex: 1; min-width: 0; }

.port-section-c {
  border-top: 1px solid var(--line);
  padding-bottom: 52px;
}
.port-section-c:first-child { border-top: none; }

/* ── AI Chat Widget ────────────────────────────────────────────── */
/* Floating trigger button */
.cwb {
  position: fixed; bottom: 28px; right: 28px; z-index: 200;
  display: flex; align-items: center; gap: 8px;
  padding: 12px 20px;
  background: var(--ink); color: var(--bg);
  border-radius: 999px;
  font-family: var(--font-label); font-size: 12px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  box-shadow: 0 4px 24px rgba(31,26,23,0.18);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer; border: none;
}
.cwb:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(31,26,23,0.24); }
.cwb-open { padding: 14px; border-radius: 999px; }
/* Panel */
.cwp {
  position: fixed; bottom: 88px; right: 28px; z-index: 199;
  width: 360px; max-height: 520px;
  display: flex; flex-direction: column;
  background: var(--bg); border: 1px solid var(--line-strong);
  border-radius: 12px;
  box-shadow: 0 16px 64px rgba(31,26,23,0.16);
  overflow: hidden;
  animation: cwp-in 0.3s cubic-bezier(0.22,1,0.36,1) both;
}
@keyframes cwp-in {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.cwp-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.cwp-head-l { display: flex; align-items: center; gap: 12px; }
.cwp-av {
  width: 36px; height: 36px; border-radius: 999px;
  background: var(--ink); color: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-style: italic; font-size: 17px;
}
.cwp-av.sm { width: 28px; height: 28px; font-size: 13px; flex-shrink: 0; align-self: flex-end; margin-bottom: 2px; }
.cwp-hname { font-family: var(--font-sans); font-weight: 500; font-size: 14px; }
.cwp-hstatus { font-size: 11px; color: #4caf50; letter-spacing: 0.04em; margin-top: 1px; }
.cwp-x { background: none; border: none; cursor: pointer; color: var(--muted); font-size: 14px; padding: 4px; line-height: 1; transition: color 0.2s; }
.cwp-x:hover { color: var(--ink); }
/* Messages */
.cwp-body { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.cwp-intro p { font-family: var(--font-display); font-style: italic; font-size: 17px; line-height: 1.5; margin: 0 0 16px; color: var(--ink); }
.cwp-chips { display: flex; flex-direction: column; gap: 8px; }
.cwp-chip {
  text-align: left; background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 6px; padding: 10px 14px;
  font-size: 13px; color: var(--ink-2); cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.cwp-chip:hover { background: var(--bg); border-color: var(--ink); color: var(--ink); }
.cwp-row { display: flex; gap: 8px; align-items: flex-end; }
.cwp-u { flex-direction: row-reverse; }
.cwp-bubble {
  max-width: 82%; padding: 10px 14px;
  font-size: 14px; line-height: 1.55;
  border-radius: 14px;
  text-wrap: pretty;
}
.cwp-a .cwp-bubble { background: var(--bg-2); border: 1px solid var(--line); color: var(--ink); border-bottom-left-radius: 4px; }
.cwp-u .cwp-bubble { background: var(--ink); color: var(--bg); border-bottom-right-radius: 4px; }
/* Typing dots */
.cwp-dots { display: flex; gap: 4px; align-items: center; min-width: 42px; }
.cwp-dots span {
  width: 6px; height: 6px; border-radius: 999px; background: var(--muted);
  animation: cwp-dot 1.2s ease-in-out infinite;
}
.cwp-dots span:nth-child(2) { animation-delay: 0.2s; }
.cwp-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes cwp-dot {
  0%, 80%, 100% { opacity: 0.3; transform: scale(0.85); }
  40% { opacity: 1; transform: scale(1.1); }
}
/* Input row */
.cwp-foot {
  display: flex; align-items: flex-end; gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.cwp-input {
  flex: 1; resize: none; border: 1px solid var(--line);
  border-radius: 8px; padding: 10px 12px;
  font-family: var(--font-sans); font-size: 14px; color: var(--ink);
  background: var(--bg-2); outline: none;
  transition: border-color 0.2s;
  max-height: 100px; overflow-y: auto;
  line-height: 1.45;
}
.cwp-input:focus { border-color: var(--ink); }
.cwp-input::placeholder { color: var(--muted); }
.cwp-send {
  width: 36px; height: 36px; border-radius: 999px; flex-shrink: 0;
  background: var(--ink); color: var(--bg);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; border: none;
  transition: opacity 0.2s, transform 0.2s;
}
.cwp-send:disabled { opacity: 0.3; cursor: default; }
.cwp-send:not(:disabled):hover { transform: scale(1.08); }
@media (max-width: 480px) {
  .cwp { width: calc(100vw - 32px); right: 16px; bottom: 80px; }
  .cwb { right: 16px; bottom: 16px; }
}

.port-section-hd-c {
  padding: 44px var(--gutter) 22px;
}
.port-section-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(44px, 5.5vw, 78px);
  margin: 10px 0 12px;
  letter-spacing: -0.02em;
  line-height: 0.95;
  color: var(--ink);
}
.port-section-desc {
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

/* Override scroll padding inside side-index — no viewport-centering needed */
.port-index-layout .port-section-scroll {
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ── Mobile: rail collapses to sticky horizontal pill nav ── */
@media (max-width: 860px) {
  .port-index-layout { flex-direction: column; }

  .port-rail {
    width: 100%;
    position: sticky;
    top: calc(var(--topbar-h) + 60px);
    max-height: none;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--line);
    z-index: 10;
    background: var(--bg);
  }
  .port-rail-inner {
    flex-direction: row;
    overflow-x: auto;
    padding: 0 var(--gutter);
    scrollbar-width: none;
    height: auto;
    gap: 0;
    align-items: center;
  }
  .port-rail-inner::-webkit-scrollbar { display: none; }
  .port-rail-label,
  .port-rail-foot { display: none; }
  .port-rail-item {
    flex-direction: row;
    align-items: center;
    padding: 14px 14px;
    border-left: none;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    flex-shrink: 0;
    gap: 0;
  }
  .port-rail-item.pra-active {
    border-left-color: transparent;
    border-bottom-color: var(--accent);
  }
  .port-rail-item .port-rail-n { display: none; }
  .port-rail-item .port-rail-name,
  .port-rail-item.pra-active .port-rail-name {
    font-size: 15px;
    opacity: 0.45;
  }
  .port-rail-item.pra-active .port-rail-name { opacity: 1; }
  .port-index-layout .port-section-scroll {
    padding-left: var(--gutter);
    padding-right: var(--gutter);
  }
}

/* ════════════════════════════════════════════════════════════════════
   MOBILE REFINEMENTS — phone polish pass
   ════════════════════════════════════════════════════════════════════ */

/* Respect iOS notch / home-indicator safe areas on fixed chrome */
@supports (padding: max(0px)) {
  .topbar {
    padding-left: max(var(--gutter), env(safe-area-inset-left));
    padding-right: max(var(--gutter), env(safe-area-inset-right));
  }
}

@media (max-width: 600px) {
  /* comfortable hero rhythm + type that won't overflow a narrow column */
  .hero { padding-top: 96px; }
  .hero-title { font-size: clamp(40px, 12vw, 60px); }
  .hero-sub { font-size: 16px; line-height: 1.45; }

  /* tap-target floor (44px) on the controls that stay on the bar */
  .nav-link--work { padding: 10px 16px; min-height: 42px; }

  /* let big editorial section padding breathe down a notch */
  .foot { padding: 64px 0 40px; }
}

/* Small phones: keep the nav (logo + WORK pill + burger) from crowding */
@media (max-width: 380px) {
  .nav { padding-left: 16px; padding-right: 16px; }
  .nav-logo { font-size: 21px; }
  .nav-link--work { padding: 8px 13px; letter-spacing: 0.1em; }
}

/* ════════════════════════════════════════════════════════════════════
   MOBILE-FIRST PASS — compress desktop spacing & type so the phone view
   reads as designed-for-mobile, not a shrunk-down desktop layout.
   (Desktop heads use 140px top padding + up-to-168px headings; sections
   use 80–120px vertical padding — far too airy on a 6" screen.)
   ════════════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  /* Page heads — remove the giant top gap, keep clear of the fixed nav */
  .port-head, .svc-head, .cnt-head { padding: 80px 0 22px; }
  .about-head { padding: 80px 0 28px; }
  .cs-head { padding: 80px 0 8px; }
  .port-head h1, .svc-head h1 { font-size: clamp(42px, 13vw, 58px); line-height: 0.96; }
  .about-head h1 { font-size: clamp(40px, 12vw, 54px); }
  .cs-head h1 { font-size: clamp(34px, 11vw, 50px); }
  .port-head .sub, .svc-head .sub, .cs-head .sub { font-size: 16px; line-height: 1.5; margin-top: 16px; }

  /* Section vertical rhythm — tighten airy desktop spacing */
  .stats { padding: 44px 0; }
  .stats-grid { gap: 22px 16px; }
  .social-proof { padding-top: 40px; }
  .social-proof .brand-carousel { padding: 26px 0; }
  .cats { padding: 48px 0 52px; }
  .cats-head, .cats-g4-head { margin-bottom: 26px; }
  .tstm3 { padding: 50px 0; }
  .tstm3-head { margin-bottom: 28px; }
  .tstm { padding: 50px 0 0; }
  .tstm-head { margin-bottom: 24px; }
  .press { padding: 48px 0; }
  .press-head { margin-bottom: 20px; }
  .press-head h2 { font-size: 30px; }
  .port-grid { padding: 22px 0 52px; }
  .cnt-grid { padding: 26px 0 60px; gap: 28px; }
  .about-grid { padding: 26px 0 44px; gap: 28px; }
  .about-roles { padding: 30px 0; gap: 12px; }
  .cs { padding: 38px 0; gap: 22px; }

  /* Section headings — scale down for phone */
  .port-section-title { font-size: clamp(28px, 8vw, 40px); }
  .cs-title { font-size: clamp(30px, 9vw, 42px); }
  .cats-g4-head h2 { font-size: clamp(32px, 9vw, 46px); }

  /* Primary actions — full-width, thumb-friendly */
  .hero-meta > div { width: 100%; }
  .hero-meta .avb, .hero-meta .mbtn { width: 100%; justify-content: center; }

  /* Editorial lede / sub copy comfort */
  .lede { font-size: clamp(19px, 5vw, 24px); }
}

/* Work/Portfolio: constrain the flex column so the fixed-width 9:16 card
   row scrolls horizontally INSIDE the page instead of widening the page
   itself (port-main was sizing to max-content → sideways page scroll). */
@media (max-width: 860px) {
  .port-main { width: 100%; min-width: 0; }
  .port-section-c, .port-section-scroll { max-width: 100%; }
}

/* Case Studies: at ≤860 the grid collapses to 1 column, but grid items keep
   min-width:auto — a child's min-content (stat row / visual) blows the track
   wider than .wrap on the flip cards. Let items shrink to contain the page. */
@media (max-width: 860px) {
  .cs { max-width: 100%; min-width: 0; }
  .cs > * { min-width: 0; }
  .cs-visual { max-width: 100%; }
  .cs-statrow { min-width: 0; }
}

/* ── Inline in-frame video playback on portfolio cards ──────────────── */
.pc .pc-media .pc-inline {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border: 0; background: #000; z-index: 3; display: block;
}
.pc .pc-close {
  position: absolute; top: 10px; right: 10px; z-index: 5;
  width: 34px; height: 34px; border-radius: 999px;
  background: rgba(0,0,0,0.6); color: #fff; border: 1px solid rgba(255,255,255,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; cursor: pointer;
}
.pc .pc-close:hover { background: rgba(0,0,0,0.85); }
.pc.is-playing { cursor: default; }

/* ── Rose's Studio Assistant chat: send captured lead + transcript to Rose ─────────── */
.cwp-sendrose {
  display: block; width: 100%; text-align: center;
  padding: 11px 12px; border: 0; border-top: 1px solid var(--line);
  background: var(--bg-2); color: var(--accent-deep);
  font-family: var(--font-label); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  cursor: pointer; transition: background 0.2s, color 0.2s;
}
.cwp-sendrose:hover { background: var(--ink); color: var(--bg); }

/* ══════════════════════════════════════════════════════════════════════
   Phase 3 consumer classes — specced + styled here (Phase 2 owns
   styles.css) so the secondary-pages / chat-widget agent never has to
   touch this file. See the redesign blueprint §2.3/§2.6/§2.8/§3.4 for the
   markup each class expects; structural notes are inline below.
   ══════════════════════════════════════════════════════════════════════ */

/* ── Services: rate-card strip under the service grid ─────────────────
   Expected markup:
   <div class="svc-ratecard-line">
     <p>Want everything on one page? <a href="/rate-card" target="_blank" rel="noopener noreferrer">View the full rate card →</a></p>
     <span class="fine">All rates in AUD · GST not included · custom scopes on enquiry.</span>
   </div> */
.svc-ratecard-line {
  margin-top: 32px; padding: 20px 24px; border: 1px solid var(--line);
  border-radius: 4px; background: var(--bg-2);
}
.svc-ratecard-line p { margin: 0; font-family: var(--font-sans); font-size: 15px; }
.svc-ratecard-line a { color: var(--accent-deep); font-weight: 500; border-bottom: 1px solid currentColor; }
.svc-ratecard-line .fine {
  display: block; margin-top: 8px; font-family: var(--font-label); font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}

/* ── FAQ accordion (Services page) — zero-JS, <details>-based ─────────
   Expected markup:
   <div class="faq">
     <details class="faq-item">
       <summary class="faq-q">Question text</summary>
       <div class="faq-a">Answer text (may contain links)</div>
     </details>
     ...
   </div> */
.faq { border-top: 1px solid var(--line); margin-top: 8px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item .faq-q {
  list-style: none; cursor: pointer; display: flex; align-items: center;
  justify-content: space-between; gap: 16px; padding: 22px 2px;
  font-family: var(--font-label); font-size: 16px; font-weight: 500; color: var(--ink);
}
.faq-item .faq-q::-webkit-details-marker { display: none; }
.faq-item .faq-q::after {
  content: "⌄"; flex-shrink: 0; font-size: 18px; color: var(--accent-deep);
  transition: transform 0.25s ease;
}
.faq-item[open] .faq-q::after { transform: rotate(180deg); }
.faq-a { padding: 0 2px 24px; max-width: 640px; color: var(--ink-2); line-height: 1.65; }
.faq-a a { color: var(--accent-deep); border-bottom: 1px solid currentColor; }

/* ── Contact: post-submit "while you wait" next-step cards ────────────
   Expected markup:
   <div class="cnt-next">
     <div class="cnt-next-label">While you wait —</div>
     <div class="cnt-next-cards">
       <a class="cnt-next-card" href="/rate-card" target="_blank" rel="noopener noreferrer">View the rate card →</a>
       <a class="cnt-next-card" href="/mediakit" target="_blank" rel="noopener noreferrer">Download the media kit →</a>
       <button class="cnt-next-card" onClick={...}>Browse the portfolio →</button>
     </div>
     <button class="cnt-next-more">Send another enquiry</button>
   </div> */
.cnt-next { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.cnt-next-label {
  font-family: var(--font-label); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 16px;
}
.cnt-next-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 640px) { .cnt-next-cards { grid-template-columns: 1fr; } }
.cnt-next-card {
  display: block; text-align: left; padding: 18px 20px; border: 1px solid var(--line);
  border-radius: 4px; background: var(--bg-2); font-family: var(--font-label);
  font-size: 13px; letter-spacing: 0.02em; color: var(--ink);
  transition: border-color 0.2s, transform 0.2s;
}
.cnt-next-card:hover { border-color: var(--accent-deep); transform: translateY(-2px); }
.cnt-next-more {
  display: inline-block; margin-top: 18px; font-family: var(--font-label); font-size: 12px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
  border-bottom: 1px solid currentColor; padding-bottom: 3px;
}

/* ── Chat widget: automated-assistant disclosure line, pinned under header ──
   Expected markup: a single element (e.g. <div class="cwp-disclose">…</div>)
   placed immediately after .cwp-head so it reads as part of the chrome. */
.cwp-disclose {
  padding: 10px 20px; font-family: var(--font-sans); font-size: 11.5px; line-height: 1.4;
  color: var(--ink-2); background: var(--bg-2); border-bottom: 1px solid var(--line);
}

/* One-time hint shown when the 3s send rate-limit blocks a message. */
.cwp-rate-hint {
  padding: 8px 20px; font-family: var(--font-sans); font-size: 12px; line-height: 1.4;
  color: var(--muted); font-style: italic;
}

/* Portfolio rail CTA is now a <button> (was a mailto <a>) — match the
   existing link styling so the swap is visually silent. */
.port-rail-foot button {
  font: inherit;
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  display: inline-block;
  background: none; border-top: 0; border-left: 0; border-right: 0;
  cursor: pointer;
  transition: color 0.25s, border-color 0.25s;
}
.port-rail-foot button:hover { color: var(--accent-deep); border-color: var(--accent-deep); }
