/* =========================================================
   One to Start Solutions — Corporate Quiet Luxury
   Concept: the registration mark — where every plate
   (Design · Online · AI) aligns into one sharp image.
   ========================================================= */

:root {
  /* Surface — bright coated white, like a clean proof sheet */
  --surface: oklch(100% 0 0);
  /* Surface 2 — a cool paper-grey for alternate chapters, tinted toward the ink */
  --surface-2: oklch(97.4% 0.003 255);
  /* Ink — graphite key plate (K), never flat black */
  --ink: oklch(22% 0.012 255);
  --ink-soft: oklch(43% 0.012 255);
  --ink-mute: oklch(56% 0.01 255);
  /* Line — hairline rules, like a cutting mat */
  --line: oklch(91% 0.004 255);
  --line-strong: oklch(80% 0.006 255);
  /* Deep — the press room; services chapter */
  --deep: oklch(19.5% 0.016 252);
  --deep-2: oklch(24% 0.018 252);
  --deep-ink: oklch(94% 0.01 85);
  --deep-soft: oklch(74% 0.012 85);
  --deep-line: oklch(33% 0.016 252);
  /* Accent — burnt sienna, the proofer's mark. CTA only */
  --accent: oklch(50% 0.125 40);
  --accent-hover: oklch(44% 0.12 40);
  --accent-ink: oklch(98.5% 0.006 85);
  /* Accent on dark — lifted so it holds 4.5:1 on --deep */
  --accent-light: oklch(74% 0.11 50);
  /* Plates — muted process colours for the registration mark */
  --plate-design: oklch(64% 0.13 15);   /* magenta, quietened */
  --plate-online: oklch(66% 0.09 225);  /* cyan, quietened */
  --plate-ai: oklch(80% 0.11 88);       /* yellow, quietened */

  /* Desk swatches — the colour cards on the studio table */
  --sw-terracotta: oklch(60% 0.115 42);
  --sw-sand: oklch(84% 0.04 76);
  --sw-slate: oklch(53% 0.045 245);
  --sw-ivory: oklch(95.5% 0.014 85);
  --sw-stone: oklch(76% 0.02 70);
  /* Cotton-paper grain, drawn once as SVG noise */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .3 0 0 0 0 .25 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --paper: oklch(99.3% 0.005 85);
  --paper-shadow: 0 1px 0 oklch(80% 0.02 70 / .6), 0 18px 40px -22px oklch(30% 0.03 60 / .35);

  --font-display: "anugrom", "Google Sans", sans-serif;
  --font-text: "Google Sans", "proxima-nova-thai", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  /* Fluid type scale (≈1.25) */
  --step--1: clamp(0.8rem, 0.78rem + 0.1vw, 0.86rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --step-1: clamp(1.15rem, 1.08rem + 0.3vw, 1.3rem);
  --step-2: clamp(1.4rem, 1.25rem + 0.7vw, 1.8rem);
  --step-3: clamp(1.85rem, 1.5rem + 1.6vw, 2.9rem);
  --step-4: clamp(2.3rem, 1.7rem + 2.8vw, 4.2rem);
  --step-5: clamp(2.3rem, 1.4rem + 3.2vw, 4.4rem);

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: clamp(5rem, 3rem + 7vw, 9.5rem);

  --radius: 2px;
  --wrap: 1240px;
  --gutter: clamp(1rem, 0.4rem + 2.6vw, 2.5rem);

  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur: 240ms;
  --dur-slow: 900ms;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--step-0);
  font-weight: 400;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.25em; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
h3 { font-family: var(--font-display); font-weight: 300; letter-spacing: -0.005em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
em { font-style: italic; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 1px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--ink); color: var(--surface); padding: .6rem 1rem; }
.skip:focus { top: 1rem; }
.mono { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------- Type ---------- */
.display, .h2 {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: -0.015em;
}
.display { font-size: var(--step-5); line-height: 1.18; }
.h2 { font-size: var(--step-4); line-height: 1.22; }
.display em, .h2 em { font-style: normal; color: var(--accent); }
.lead { font-size: var(--step-1); color: var(--ink-soft); max-width: 34em; font-weight: 400; line-height: 1.8; }

.eyebrow, .kicker {
  display: inline-flex; align-items: center; gap: .6em;
  font-size: var(--step--1); font-weight: 600; letter-spacing: 0.04em;
  color: var(--ink-soft); margin-bottom: var(--space-3);
}
.kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.kicker-light { color: var(--deep-soft); }
.eyebrow-mark { color: var(--accent); font-size: 1.1em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: 0.85rem 1.6rem;
  border: 1px solid transparent; border-radius: var(--radius);
  font: 600 var(--step-0)/1.2 var(--font-text);
  text-decoration: none; cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn span[aria-hidden] { transition: transform var(--dur) var(--ease); }
.btn:hover span[aria-hidden] { transform: translateX(4px); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: var(--accent-hover); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { border-color: var(--deep-line); color: var(--deep-ink); }
.btn-light:hover { border-color: var(--accent-light); color: var(--accent-light); }
.btn-sm { min-height: 42px; padding: 0.55rem 1.1rem; font-size: var(--step--1); }
.btn-block { width: 100%; }
.link-arrow { color: var(--ink); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line-strong); padding-bottom: 4px; }
.link-arrow:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklch, var(--surface) 88%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease);
}
.site-header.is-scrolled { border-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: var(--space-4); height: 76px; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); }
.brand-mark { width: 30px; height: 30px; color: var(--ink); }
.brand-name { font-family: var(--font-display); font-size: 1.45rem; line-height: 1; display: flex; flex-direction: column; }
.brand-name small { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-mute); margin-top: 4px; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: var(--space-3); }
.nav a { font-size: var(--step--1); text-decoration: none; color: var(--ink-soft); padding-block: .5rem; transition: color var(--dur); }
.nav a { position: relative; }
.nav a:hover { color: var(--ink); }
/* Active section — a short accent rule, like a registration tick under the label */
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav a.is-active { color: var(--ink); }
.nav a.is-active::after { transform: scaleX(1); }
.mobile-menu a.is-active { color: var(--accent); }
.menu-toggle { display: none; }

/* ---------- 1. Hero ---------- */
.hero {
  /* Full first screen: viewport minus the sticky header */
  --header-h: 76px;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  display: flex; align-items: center;
  padding-block: clamp(2rem, 1rem + 3vw, 4rem);
}
.hero > .wrap { width: 100%; position: relative; z-index: 1; }
/* Cutting-mat grid behind the hero — the layout grid every design starts from */
.hero { position: relative; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  --cell: 96px;
  --grid-line: oklch(95.5% 0.003 255);
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: var(--cell) var(--cell);
  background-position: center center;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 60% 50%, #000 35%, transparent 100%);
          mask-image: radial-gradient(ellipse 75% 70% at 60% 50%, #000 35%, transparent 100%);
}
.hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: var(--space-5); align-items: center; }
.hero h1 { margin-bottom: var(--space-4); }
.hero .line { display: block; overflow: hidden; padding-bottom: .08em; white-space: nowrap; }
.hero .line > span { display: inline-block; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: var(--space-4); }
.hero-index { display: flex; flex-wrap: wrap; gap: 0; margin-top: var(--space-5); border-top: 1px solid var(--line); }
.hero-index li { flex: 1 1 0; min-width: 9rem; }
.hero-index a {
  display: flex; flex-direction: column; gap: 2px; padding: 1rem 1rem 0 0;
  text-decoration: none; font-size: var(--step--1); font-weight: 600; color: var(--ink);
}
.hero-index a span { font-family: var(--font-mono); font-size: 0.7rem; color: var(--ink-mute); letter-spacing: .08em; }
.hero-index a:hover { color: var(--accent); }

.hero-mark { position: relative; margin: 0; padding: clamp(1.5rem, 3vw, 2.75rem); aspect-ratio: 1 / 1.08; display: flex; flex-direction: column; justify-content: center; }
.crop { position: absolute; width: 22px; height: 22px; border-color: var(--line-strong); border-style: solid; border-width: 0; }
.crop-tl { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.crop-tr { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.crop-bl { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.crop-br { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }
.reg { width: 100%; overflow: visible; }
.plate { fill: none; stroke-width: 2.2; mix-blend-mode: multiply; transition: transform 1.6s var(--ease); }
.plate-design { stroke: var(--plate-design); }
.plate-online { stroke: var(--plate-online); }
.plate-ai { stroke: var(--plate-ai); stroke-width: 2.6; }
.plate-key { stroke: var(--ink); stroke-width: 1.2; opacity: 0; transition: opacity .6s var(--ease) 1.3s; }
.plate-key circle:nth-child(2) { fill: var(--ink); }
/* Start misregistered; JS adds .is-registered to align */
.plate-design { transform: translate(-26px, -14px); }
.plate-online { transform: translate(22px, -20px); }
.plate-ai { transform: translate(4px, 26px); }
.reg.is-registered .plate { transform: translate(0, 0); }
.reg.is-registered .plate-key { opacity: 1; }
/* Hover: the plates part slightly, revealing the three services inside the one mark */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .hero-mark:hover .reg.is-registered .plate { transition-duration: .7s; }
  .hero-mark:hover .reg.is-registered .plate-design { transform: translate(-9px, -5px); }
  .hero-mark:hover .reg.is-registered .plate-online { transform: translate(8px, -7px); }
  .hero-mark:hover .reg.is-registered .plate-ai { transform: translate(1px, 9px); }
}
.nw { white-space: nowrap; }
.reg-legend { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin-top: var(--space-3); font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.reg-legend span { display: inline-flex; align-items: center; gap: .45rem; }
.sw { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.sw-design { background: var(--plate-design); }
.sw-online { background: var(--plate-online); }
.sw-ai { background: var(--plate-ai); }
.reg-status { margin-left: auto; color: var(--ink-mute); }

/* Hero entrance */
@media (prefers-reduced-motion: no-preference) {
  .js .hero .line > span { transform: translateY(105%); transition: transform 1s var(--ease); }
  .js .hero .line:nth-child(2) > span { transition-delay: .1s; }
  .js .hero .line:nth-child(3) > span { transition-delay: .2s; }
  .js .hero.is-in .line > span { transform: none; }
  .js .hero .lead, .js .hero .hero-actions, .js .hero .hero-index { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease) .45s, transform .8s var(--ease) .45s; }
  .js .hero.is-in .lead, .js .hero.is-in .hero-actions, .js .hero.is-in .hero-index { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .plate { transform: none !important; transition: none; }
  .plate-key { opacity: 1; transition: none; }
}

/* ---------- 2. Problem ---------- */
.problem { padding-block: var(--space-6); background: var(--surface-2); border-block: 1px solid var(--line); }
.problem-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: var(--space-5); align-items: center; }
/* "แบรนด์" — four plates that slide into register as the section scrolls into view */
.misreg {
  position: relative; display: inline-block;
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(4.5rem, 2rem + 11vw, 11rem); line-height: 1.3;
  --p: 1; /* 0 = misregistered, 1 = registered (fallback driven by JS) */
}
.m-spacer { visibility: hidden; }
.m-plate {
  position: absolute; inset: 0; mix-blend-mode: multiply;
  transform: translate(calc(var(--dx) * (1 - var(--p))), calc(var(--dy) * (1 - var(--p))));
}
.m-design { color: var(--plate-design); --dx: -0.22em; --dy: -0.10em; }
.m-online { color: var(--plate-online); --dx: 0.20em;  --dy: -0.14em; }
.m-ai     { color: var(--plate-ai);     --dx: 0.06em;  --dy: 0.20em; }
.m-key    { color: var(--ink); --dx: -0.05em; --dy: 0.06em; opacity: calc(0.15 + 0.85 * var(--p)); }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .m-plate {
      animation: plate-register linear both;
      animation-timeline: view();
      animation-range: entry 10% cover 55%;
    }
    .m-key { animation-name: plate-register, key-in; }
  }
}
@keyframes plate-register {
  from { transform: translate(var(--dx), var(--dy)); }
  to   { transform: translate(0, 0); }
}
@keyframes key-in {
  0%, 60% { opacity: .15; }
  100% { opacity: 1; }
}
.caption { color: var(--ink-mute); margin-top: var(--space-2); text-transform: none; letter-spacing: .02em; }
.problem-copy .h2 { margin-bottom: var(--space-4); }
.pain-list { display: grid; gap: 0; border-top: 1px solid var(--line-strong); }
.pain-list li { padding: 1.25rem 0; border-bottom: 1px solid var(--line-strong); color: var(--ink-soft); }
.pain-list strong { display: block; color: var(--ink); font-weight: 600; font-size: var(--step-1); margin-bottom: .25rem; }

/* ---------- 3. About ---------- */
.about { padding-block: var(--space-6); }
.manifesto {
  font-family: var(--font-text); font-size: var(--step-3); line-height: 1.5;
  max-width: 24em; margin-bottom: var(--space-6); color: var(--ink);
}
.manifesto .w { transition: color .4s var(--ease); }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .js .manifesto .w { color: var(--line-strong); animation: fillword linear both; animation-timeline: view(); }
  }
}
@keyframes fillword { to { color: var(--ink); } }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.principle { padding: var(--space-3) var(--space-3) 0 0; }
.principle + .principle { padding-left: var(--space-3); border-left: 1px solid var(--line); }
.principle-no { font-family: var(--font-display); font-weight: 300; font-size: 1.6rem; color: var(--accent); display: block; margin-bottom: var(--space-2); }
.principle h3 { font-size: var(--step-2); line-height: 1.35; margin-bottom: .5rem; }
.principle p { color: var(--ink-soft); margin: 0; }

/* ---------- 4. Services (dark chapter) ---------- */
.services { background: var(--deep); color: var(--deep-ink); padding-block: var(--space-6); position: relative; }
.services::before {
  /* Faint registration grid, like a light table */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--deep-line) 1px, transparent 1px), linear-gradient(90deg, var(--deep-line) 1px, transparent 1px);
  background-size: 120px 120px; mask-image: linear-gradient(to bottom, #000, transparent 40%);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 40%);
}
.services > .wrap { position: relative; }
.services-head { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4) var(--space-5); align-items: end; margin-bottom: var(--space-6); }
.services-head .kicker { grid-column: 1 / -1; margin-bottom: 0; }
.services .h2 em { color: var(--accent-light); }
.services-intro { color: var(--deep-soft); font-size: var(--step-1); font-weight: 400; margin: 0; max-width: 30em; }

.services-body { display: grid; grid-template-columns: 250px 1fr; gap: var(--space-5); }
.svc-index { position: sticky; top: 120px; align-self: start; }
.svc-index ol { display: grid; gap: .25rem; }
.svc-index a { display: flex; gap: .8rem; padding: .6rem 0; text-decoration: none; color: var(--deep-soft); font-size: var(--step-0); transition: color var(--dur); }
.svc-index a span { font-family: var(--font-mono); font-size: .75rem; padding-top: .3em; }
.svc-index a:hover, .svc-index a.is-active { color: var(--deep-ink); }
.svc-index a.is-active span { color: var(--accent-light); }
.svc-progress { margin-top: var(--space-3); height: 1px; background: var(--deep-line); }
.svc-progress span { display: block; height: 100%; width: 0; background: var(--accent-light); transition: width .2s linear; }

.svc { padding-bottom: var(--space-6); margin-bottom: var(--space-6); border-bottom: 1px solid var(--deep-line); }
.svc:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.svc-head { display: flex; gap: var(--space-3); align-items: baseline; margin-bottom: var(--space-4); }
.svc-no { font-family: var(--font-display); font-weight: 300; font-size: var(--step-4); line-height: 1; color: var(--accent-light); }
.svc-title { font-family: var(--font-display); font-weight: 300; font-size: var(--step-3); line-height: 1.1; }
.svc-sub { color: var(--deep-soft); margin: .4rem 0 0; }
.svc-lede { font-family: var(--font-text); font-size: var(--step-2); line-height: 1.55; max-width: 26em; margin-bottom: var(--space-4); }
.svc-cols { display: grid; grid-template-columns: 1.15fr 1fr; gap: var(--space-4); margin-bottom: var(--space-4); }
.svc h4 { font-family: var(--font-text); font-weight: 600; font-size: var(--step--1); letter-spacing: 0; color: var(--deep-soft); margin-bottom: var(--space-2); }
.svc-cols p { color: var(--deep-soft); }
.ticks li { position: relative; padding: .55rem 0 .55rem 1.6rem; border-bottom: 1px solid var(--deep-line); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 1.15rem; width: 9px; height: 9px; border: 1px solid var(--accent-light); border-radius: 50%; }
.svc-note { margin-top: var(--space-3); padding: var(--space-2) var(--space-3); border-left: 1px solid var(--accent-light); background: var(--deep-2); }
.svc-note .mono { color: var(--accent-light); }
.svc-note p { margin: .4rem 0 0; font-size: var(--step--1); line-height: 1.7; }
.svc-note strong { color: var(--deep-ink); font-weight: 600; }

/* ---------- 5. Connect path ---------- */
.connect { padding-block: var(--space-6); }
.connect-head { margin-bottom: var(--space-5); }
.path { display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.path::before { content: ""; position: absolute; top: 7px; left: 0; right: 0; height: 1px; background: var(--line-strong); }
.path-step { position: relative; padding-right: var(--space-3); }
.path-dot { display: block; width: 15px; height: 15px; border-radius: 50%; background: var(--surface); border: 1px solid var(--ink); margin-bottom: var(--space-3); position: relative; }
.path-step:last-child .path-dot { background: var(--accent); border-color: var(--accent); }
.path-step .mono { color: var(--ink-mute); }
.path-step h3 { font-size: var(--step-2); line-height: 1.35; margin: .3rem 0 .4rem; }
.path-step p { color: var(--ink-soft); margin: 0; font-size: var(--step--1); line-height: 1.7; }

/* ---------- 6. Process ---------- */
.process { padding-block: var(--space-6); background: var(--surface-2); border-block: 1px solid var(--line); }
.process-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: var(--space-5); }
.process-head { position: sticky; top: 120px; align-self: start; }
.process-head .h2 { margin-bottom: var(--space-3); }
.process-head p { color: var(--ink-soft); max-width: 26em; margin-bottom: var(--space-4); }
.steps { border-top: 1px solid var(--ink); }
.step { display: grid; grid-template-columns: 4.5rem 1fr; gap: var(--space-2); padding: var(--space-4) 0; border-bottom: 1px solid var(--line-strong); }
.step-no { font-family: var(--font-display); font-weight: 300; font-size: var(--step-3); line-height: 1; color: var(--accent); }
.step h3 { font-size: var(--step-2); line-height: 1.35; margin-bottom: .35rem; }
.step p { margin: 0; color: var(--ink-soft); }
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
}

/* ---------- 7. Work ---------- */
.work { padding-block: var(--space-6); }
.work-head { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--space-3) var(--space-5); align-items: end; margin-bottom: var(--space-5); }
.work-intro { color: var(--ink-soft); margin: 0; max-width: 30em; }
.work-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--space-5) var(--space-3); }
.case { margin: 0; grid-column: span 4; }
.case-feature { grid-column: 1 / span 7; }
.case:nth-child(2) { grid-column: 9 / span 4; align-self: end; }
.case:nth-child(4) { margin-top: var(--space-5); }
.case-feature-alt { grid-column: 6 / span 7; margin-top: var(--space-4); }
.case-link { justify-self: start; margin-top: .3rem; font-size: var(--step--1); font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; }
.case-link:hover { color: var(--accent); border-color: var(--accent); }
/* Crop marks frame every piece of work — the registration motif carried down the page */
.case-frame { position: relative; padding: 14px; }
.case-frame .crop { width: 16px; height: 16px; }
.case-frame img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; background: var(--surface-2); transition: transform 1.2s var(--ease); }
.case-frame { overflow: hidden; }
@media (hover: hover) { .case:hover .case-frame img { transform: scale(1.025); } }
.case figcaption { display: grid; gap: .3rem; padding: var(--space-2) 14px 0; }
.case-meta { font-size: var(--step--1); color: var(--ink-mute); }
.case-meta .mono { color: var(--accent); margin-right: .4rem; }
.case figcaption strong { font-family: var(--font-display); font-weight: 300; font-size: var(--step-1); line-height: 1.4; }
.case-feature figcaption strong { font-size: var(--step-2); }
.case-desc { color: var(--ink-soft); font-size: var(--step--1); line-height: 1.75; max-width: 34em; }
.work-cta { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; margin-top: var(--space-5); padding: var(--space-3) 0; border-block: 1px solid var(--line-strong); }
.work-cta p { margin: 0; font-size: var(--step-1); }
.quote { margin: var(--space-6) 0 0; padding-top: var(--space-4); border-top: 1px solid var(--ink); display: grid; grid-template-columns: 1fr 2fr; gap: var(--space-4); }
.quote p { grid-column: 2; font-family: var(--font-text); font-size: var(--step-3); line-height: 1.45; margin: 0; }
.quote footer { grid-column: 2; grid-row: 2; color: var(--ink-soft); font-size: var(--step--1); }
.quote footer strong { color: var(--ink); font-weight: 600; }
.placeholder-inline { color: var(--ink-mute); background: var(--surface-2); padding: 0 .3em; }

/* ---------- 8. FAQ ---------- */
.faq { padding-block: var(--space-6); border-top: 1px solid var(--line); }
.faq-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: var(--space-5); }
.faq-list { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: var(--space-3);
  padding: 1.35rem 0; font-size: var(--step-1); font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-display); font-size: 1.6rem; line-height: 1; color: var(--accent); transition: transform var(--dur) var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-soft); padding-bottom: 1.35rem; margin: 0; max-width: 40em; }

/* ---------- 9. Contact ---------- */
.contact { background: var(--deep); color: var(--deep-ink); padding-block: var(--space-6); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); align-items: start; }
.contact-mark { width: 64px; height: 64px; color: var(--accent-light); margin-bottom: var(--space-4); }
.contact .h2 { margin-bottom: var(--space-3); }
.contact .h2 em { color: var(--accent-light); }
.contact-copy > p { color: var(--deep-soft); max-width: 30em; font-size: var(--step-1); font-weight: 400; }
.contact-list { margin: var(--space-4) 0 0; border-top: 1px solid var(--deep-line); }
.contact-list div { display: grid; grid-template-columns: 6rem 1fr; padding: .9rem 0; border-bottom: 1px solid var(--deep-line); }
.contact-list dt { font-size: var(--step--1); color: var(--deep-soft); padding-top: .3em; }
.contact-list dd { margin: 0; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { color: var(--accent-light); }
.contact-line { margin-top: var(--space-4); }

.form { position: relative; background: var(--surface); color: var(--ink); padding: clamp(1.5rem, 1rem + 2vw, 2.75rem); border-radius: var(--radius); }
.field { display: grid; gap: .4rem; margin: 0 0 1.15rem; border: 0; padding: 0; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label, .field legend { font-size: var(--step--1); font-weight: 600; padding: 0; margin-bottom: .1rem; }
.opt { color: var(--ink-mute); font-weight: 400; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0;
  padding: .65rem 0; min-height: 44px; transition: border-color var(--dur);
}
.field textarea { resize: vertical; line-height: 1.6; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-mute); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field input:focus-visible, .field textarea:focus-visible { box-shadow: 0 1px 0 0 var(--accent); }
.field [aria-invalid="true"] { border-color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .25rem; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 40px; padding: .4rem .95rem; border: 1px solid var(--line-strong); border-radius: 999px; font-size: var(--step--1); transition: all var(--dur) var(--ease); }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.form-error { color: var(--accent); font-size: var(--step--1); font-weight: 600; }
.form-fine { font-size: .78rem; color: var(--ink-mute); margin: .8rem 0 0; text-align: center; }
.form-success { position: absolute; inset: 0; background: var(--surface); display: flex; flex-direction: column; justify-content: center; padding: clamp(1.5rem, 1rem + 2vw, 2.75rem); }
.form-success[hidden] { display: none; }
.form-success svg { width: 48px; height: 48px; color: var(--accent); margin-bottom: var(--space-3); }
.form-success h3 { font-family: var(--font-display); font-weight: 300; font-size: var(--step-3); margin-bottom: .5rem; }
.form-success p { color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer { background: var(--deep); color: var(--deep-soft); border-top: 1px solid var(--deep-line); padding-top: var(--space-5); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--space-4); padding-bottom: var(--space-5); }
.brand-footer, .brand-footer .brand-mark { color: var(--deep-ink); }
.brand-footer .brand-name small { color: var(--deep-soft); }
.footer-legal { margin-top: var(--space-3); font-size: var(--step--1); line-height: 1.8; }
.footer-h { font-weight: 600; font-size: var(--step--1); color: var(--deep-ink); margin-bottom: var(--space-2); }
.site-footer ul { display: grid; gap: .4rem; font-size: var(--step--1); }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--deep-ink); }
.soon { opacity: .7; }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-block: var(--space-3); border-top: 1px solid var(--deep-line); font-size: .78rem; }

.sticky-cta { display: none; }

/* =========================================================
   Responsive recomposition
   ========================================================= */
@media (max-width: 1080px) {
  .nav { display: none; }
  .header-cta { margin-left: auto; }
  .menu-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 6px;
    width: 44px; height: 44px; padding: 0 10px; background: none; border: 0; cursor: pointer; color: var(--ink);
  }
  .menu-bar { display: block; height: 1.5px; background: currentColor; transition: transform var(--dur) var(--ease); }
  .menu-toggle[aria-expanded="true"] .menu-bar:nth-child(2) { transform: translateY(3.75px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-bar:nth-child(3) { transform: translateY(-3.75px) rotate(-45deg); }
  .mobile-menu { border-top: 1px solid var(--line); background: var(--surface); }
  .mobile-menu ul { padding: .5rem var(--gutter) 1.5rem; }
  .mobile-menu a { display: block; padding: .9rem 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: var(--step-1); }

  .services-body { grid-template-columns: 1fr; }
  .svc-index { display: none; }
  .process-grid, .faq-grid, .contact-grid { grid-template-columns: 1fr; }
  .process-head { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--space-4); }
  /* On phones the promise comes first; the mark becomes a quieter band below */
  .hero-mark { max-width: 300px; width: 100%; margin-inline: auto; aspect-ratio: auto; }
  .problem-grid { grid-template-columns: 1fr; gap: var(--space-4); }
  .problem-visual { order: 2; }
  .services-head { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr; }
  .principle, .principle + .principle { padding: var(--space-3) 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .svc-cols { grid-template-columns: 1fr; }
  .path { grid-template-columns: 1fr; gap: var(--space-3); }
  .path::before { top: 0; bottom: 0; left: 7px; right: auto; width: 1px; height: auto; }
  .path-step { padding-left: 2.6rem; padding-right: 0; }
  .path-dot { position: absolute; left: 0; top: .35rem; margin: 0; }
  .work-head { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr 1fr; gap: var(--space-4) var(--space-2); }
  .case, .case-feature, .case:nth-child(2) { grid-column: auto; }
  .case-feature, .case-feature-alt { grid-column: 1 / -1; margin-top: 0; }
  .case:nth-child(4) { margin-top: 0; }
  .case-frame { padding: 10px; }
  .case figcaption { padding-inline: 10px; }
  .quote { grid-template-columns: 1fr; }
  .quote p, .quote footer { grid-column: 1; grid-row: auto; }
}

@media (max-width: 600px) {
  body { padding-bottom: 76px; }
  .header-cta { display: none; }
  .menu-toggle { margin-left: auto; }
  .header-inner { height: 64px; }
  .hero { --header-h: 64px; }
  html { scroll-padding-top: 72px; }
  .hero .line { white-space: normal; }
  /* Phone: fit the first screen — the mark becomes a quiet watermark behind the headline */
  .hero { position: relative; overflow: hidden; }
  .hero::before { --cell: 56px; }
  .hero-grid { position: relative; }
  .hero-copy { position: relative; z-index: 1; }
  .hero-mark { position: absolute; top: -10px; right: -70px; width: 230px; max-width: none; padding: 0; opacity: .28; pointer-events: none; }
  .hero-mark .crop, .hero-mark .reg-legend { display: none; }
  .hero-index { display: none; }
  .hero-actions .btn { width: 100%; }
  .hero-index li { min-width: 0; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .work-grid { grid-template-columns: 1fr; }
  .step { grid-template-columns: 3.2rem 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .svc-head { flex-direction: column; gap: .5rem; }
  .sticky-cta {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: .75rem var(--gutter) calc(.75rem + env(safe-area-inset-bottom));
    background: color-mix(in oklch, var(--surface) 92%, transparent);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
    transform: translateY(110%); transition: transform var(--dur) var(--ease);
  }
  .sticky-cta.is-visible { transform: none; }
}


/* Hero background photograph — sunlit plaster studio wall */
.hero::before { display: none; } /* the photo replaces the cutting-mat grid */
.hero-bg {
  position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 70% center; pointer-events: none;
}
.hero::after {
  /* keep the headline side calm and readable */
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(90deg, oklch(100% 0 0 / .8) 0%, oklch(100% 0 0 / .62) 34%, oklch(100% 0 0 / .18) 52%, oklch(100% 0 0 / 0) 64%);
}
.hero .hero-mark .crop { border-color: oklch(45% 0.02 70 / .35); }
@media (prefers-reduced-motion: no-preference) {
  .js .hero-bg { transform: scale(1.06); opacity: 0; transition: transform 2.4s var(--ease), opacity 1.2s var(--ease); }
  .js .hero.is-in .hero-bg { transform: scale(1); opacity: 1; }
}
@media (max-width: 860px) {
  .hero-bg { object-position: 78% center; }
  .hero::after { background: linear-gradient(180deg, oklch(100% 0 0 / .86) 0%, oklch(100% 0 0 / .78) 60%, oklch(100% 0 0 / .35) 100%); }
}

/* The studio photo carries the story now — retire the floating mark, keep the copy on the clear wall */
.hero .hero-mark { display: none; }
.hero-grid { grid-template-columns: minmax(0, 46rem) 1fr; }
.hero-bg { object-position: 62% center; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero-bg { object-position: 82% center; } }

@media (min-width: 861px) { .hero .lead { max-width: 26em; } }


/* =========================================================
   Desk objects — swatches, paper and cards carried down the page
   ========================================================= */

/* Paper grain over the whole page: barely there, like cotton stock */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 70; pointer-events: none;
  background-image: var(--grain); background-size: 240px 240px;
  opacity: .14; mix-blend-mode: multiply;
}
.services, .contact, .site-footer { isolation: isolate; }

/* Section labels open with a small colour chip instead of a rule */
.kicker::before { width: 14px; height: 18px; border-radius: 1px; background: var(--chip, var(--sw-terracotta)); box-shadow: inset 0 -5px 0 oklch(100% 0 0 / .55); }
.problem .kicker { --chip: var(--sw-sand); }
.about .kicker { --chip: var(--sw-stone); }
.services .kicker { --chip: var(--sw-terracotta); }
.connect .kicker { --chip: var(--sw-slate); }
.process .kicker { --chip: var(--sw-sand); }
.work .kicker { --chip: var(--sw-terracotta); }
.faq .kicker { --chip: var(--sw-slate); }
.contact .kicker { --chip: var(--sw-sand); }

/* Swatch card component */
.swatch {
  display: inline-grid; grid-template-rows: 1fr auto auto; width: 92px; height: 128px;
  background: var(--paper); padding: 6px 6px 8px; border-radius: 2px; box-shadow: var(--paper-shadow);
  color: var(--ink); font-family: var(--font-mono); line-height: 1.25; flex: none;
}
.swatch i { background: var(--sw); border-radius: 1px; margin-bottom: 6px; }
.swatch b { font-weight: 500; font-size: .62rem; letter-spacing: .08em; }
.swatch small { font-size: .58rem; color: var(--ink-mute); letter-spacing: .04em; }
.svc-head { align-items: center; }
.svc-swatch { margin-left: auto; transform: rotate(4deg); }
.svc:nth-child(2) .svc-swatch { transform: rotate(-3deg); }

/* Paper sheets: principles as index cards on the desk */
.principles { border-top: 0; gap: var(--space-3); }
.principle, .principle + .principle {
  position: relative; border: 0; padding: var(--space-4) var(--space-3) var(--space-3);
  background: var(--paper); box-shadow: var(--paper-shadow);
}
.principle:nth-child(1) { transform: rotate(-.8deg); }
.principle:nth-child(2) { transform: rotate(.6deg) translateY(10px); }
.principle:nth-child(3) { transform: rotate(-.4deg); }
.principle::before { content: ""; position: absolute; top: 0; left: var(--space-3); width: 34px; height: 6px; background: var(--sw-terracotta); }
.principle:nth-child(2)::before { background: var(--sw-slate); }
.principle:nth-child(3)::before { background: var(--sw-sand); }

/* Problem list on a single proof sheet */
.pain-list { background: var(--paper); box-shadow: var(--paper-shadow); padding: var(--space-2) var(--space-3); border-top: 0; }
.pain-list li:last-child { border-bottom: 0; }

/* Path: a fan of swatch cards */
.path { gap: var(--space-3); }
.path::before { display: none; }
.path-step {
  background: var(--paper); box-shadow: var(--paper-shadow); padding: 0 var(--space-3) var(--space-3); border-radius: 2px;
  transition: transform .5s var(--ease);
}
.path-step::before { content: ""; display: block; height: 120px; margin: 8px -16px var(--space-3); margin-inline: calc(var(--space-3) * -1 + 8px); background: var(--sw); border-radius: 1px; }
.path-step:nth-child(1) { transform: rotate(-2deg); }
.path-step:nth-child(2) { transform: rotate(-.6deg) translateY(6px); }
.path-step:nth-child(3) { transform: rotate(.8deg); }
.path-step:nth-child(4) { transform: rotate(2deg) translateY(8px); }
@media (hover: hover) { .path-step:hover { transform: rotate(0) translateY(-6px); } }
.path-chip { display: flex; justify-content: space-between; gap: .5rem; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .06em; color: var(--ink-mute); margin-bottom: .4rem; }
.path-chip b { color: var(--ink); font-weight: 500; }
.path-step .mono { color: var(--accent); }

/* Process: steps printed on one sheet */
.steps { background: var(--paper); box-shadow: var(--paper-shadow); padding: 0 var(--space-4); border-top: 0; }
.step:last-child { border-bottom: 0; }

/* FAQ on a sheet */
.faq-list { background: var(--paper); box-shadow: var(--paper-shadow); padding: 0 var(--space-3); border-top: 0; }
.faq details:last-child { border-bottom: 0; }

/* Contact: a letterpress business card */
.bizcard {
  position: relative; margin-top: var(--space-4); max-width: 460px; aspect-ratio: 1.75;
  background: var(--paper); color: var(--ink);
  padding: clamp(1.25rem, 2.5vw, 1.9rem); border-radius: 3px; display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: 0 2px 0 oklch(80% 0.02 70 / .5), 0 30px 60px -24px oklch(0% 0 0 / .65); transform: rotate(-1.5deg);
}
.bizcard::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 10px; background: var(--sw-terracotta); border-radius: 0 3px 3px 0; }
.bizcard-top { display: flex; align-items: center; gap: .8rem; }
.bizcard-top svg { width: 34px; height: 34px; color: var(--accent); }
.bizcard-name { font-family: var(--font-display); font-weight: 300; font-size: 1.45rem; line-height: 1; display: grid; gap: 4px; text-shadow: 0 1px 0 oklch(100% 0 0 / .9); }
.bizcard-name small { font-family: var(--font-mono); font-size: .6rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-mute); }
.bizcard .contact-list { margin: 0; border-top: 1px solid var(--line); }
.bizcard .contact-list div { border-bottom: 0; padding: .3rem 0; grid-template-columns: 4.5rem 1fr; }
.bizcard .contact-list dt { color: var(--ink-mute); padding-top: .1em; }
.bizcard .contact-list a { color: var(--ink); }
.bizcard .contact-list a:hover { color: var(--accent); }

/* Work captions read like specimen labels */
.case figcaption { position: relative; padding-left: calc(14px + 18px); }
.case figcaption::before { content: ""; position: absolute; left: 14px; top: calc(var(--space-2) + .35em); width: 10px; height: 14px; border-radius: 1px; background: var(--sw-sand); }
.case:nth-child(3n+1) figcaption::before { background: var(--sw-terracotta); }
.case:nth-child(3n+2) figcaption::before { background: var(--sw-slate); }

@media (max-width: 860px) {
  .principle, .principle + .principle { border: 0; padding: var(--space-4) var(--space-3) var(--space-3); }
  .principle:nth-child(n) { transform: none; }
  .principles { gap: var(--space-3); }
  .path { gap: var(--space-3); }
  .path-step { padding-left: var(--space-3); }
  .path-step:nth-child(n) { transform: none; }
  .path-step::before { height: 64px; }
  .steps { padding: 0 var(--space-3); }
}
@media (max-width: 600px) {
  .svc-swatch { position: absolute; right: 0; top: 0; width: 64px; height: 88px; }
  .svc-head { padding-right: 80px; }
  .svc { position: relative; }
  .bizcard { aspect-ratio: auto; gap: var(--space-3); transform: none; }
}
@media (prefers-reduced-motion: reduce) { .path-step, .principle { transition: none; } }


/* =========================================================
   Digital-agency layer
   ========================================================= */

/* Live status in the eyebrow */
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: oklch(68% 0.15 150); box-shadow: 0 0 0 0 oklch(68% 0.15 150 / .5); }
@media (prefers-reduced-motion: no-preference) { .status-dot { animation: pulse 2.2s ease-out infinite; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 oklch(68% 0.15 150 / .55); } 80%, 100% { box-shadow: 0 0 0 10px oklch(68% 0.15 150 / 0); } }
.eyebrow-sep { color: var(--line-strong); }

/* Hero becomes a column so the capability band sits on its bottom edge */
.hero { flex-direction: column; align-items: stretch; padding-bottom: 0; }
.hero > .hero-grid { flex: 1; align-items: center; }
.cap-ticker {
  position: relative; z-index: 1; margin-top: var(--space-4); overflow: hidden;
  border-top: 1px solid oklch(100% 0 0 / .6);
  background: oklch(100% 0 0 / .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.cap-track { display: flex; width: max-content; }
.cap-row { display: flex; align-items: center; gap: clamp(1.25rem, 2.5vw, 2.5rem); padding: 1rem clamp(.6rem, 1.25vw, 1.25rem); white-space: nowrap; font-family: var(--font-display); font-weight: 300; font-size: var(--step-2); line-height: 1; color: var(--ink); }
.cap-row i { font-style: normal; font-size: .6em; color: var(--accent); }
@media (prefers-reduced-motion: no-preference) { .cap-track { animation: cap-slide 45s linear infinite; } .cap-ticker:hover .cap-track { animation-play-state: paused; } }
@keyframes cap-slide { to { transform: translateX(-50%); } }

/* Numbered chapters: (01) before every section label */
main { counter-reset: chapter; }
main > section:not(.hero) .kicker { counter-increment: chapter; }
main > section:not(.hero) .kicker::after {
  content: "(" counter(chapter, decimal-leading-zero) ")"; order: -1; margin-right: .2rem;
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .06em; color: var(--ink-mute);
}
.services .kicker::after, .contact .kicker::after { color: var(--deep-soft); }
.work-head .kicker { margin-bottom: var(--space-3); }

/* Work: count badge, zoom cursor, lightbox */
.work-count { display: inline-flex; margin-left: .5rem; padding: .15rem .6rem; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--ink); font-size: .68rem; vertical-align: middle; }
.work .h2 em { color: var(--accent); font-style: normal; }
.case-frame img { cursor: zoom-in; }
.cursor-tag {
  position: fixed; left: 0; top: 0; z-index: 80; pointer-events: none;
  width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; text-align: center;
  background: var(--accent); color: var(--accent-ink); font-size: .78rem; font-weight: 600; line-height: 1.3;
  opacity: 0; transform: translate(-50%, -50%) scale(.4); transition: opacity .25s var(--ease), transform .35s var(--ease);
}
.cursor-tag.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
@media (hover: none) { .cursor-tag { display: none; } }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 1100px); max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: oklch(15% 0.015 250 / .86); backdrop-filter: blur(4px); }
.lightbox img { display: block; max-width: 100%; max-height: 82vh; width: auto; height: auto; margin-inline: auto; box-shadow: 0 30px 80px -30px oklch(0% 0 0 / .8); }
.lightbox-cap { margin: .9rem 0 0; text-align: center; color: var(--deep-ink); font-size: var(--step-0); }
.lightbox-close { position: absolute; top: -48px; right: 0; width: 44px; height: 44px; border: 1px solid var(--deep-line); border-radius: 50%; background: transparent; color: var(--deep-ink); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.lightbox-close:hover { border-color: var(--accent-light); color: var(--accent-light); }

/* Footer: oversized wordmark sign-off */
.footer-wordmark {
  font-family: var(--font-display); font-weight: 300; font-size: clamp(4rem, 15.5vw, 15rem); line-height: .82; letter-spacing: -0.03em;
  text-align: center; white-space: nowrap; overflow: hidden; color: transparent;
  -webkit-text-stroke: 1px oklch(44% 0.02 250); padding: var(--space-4) 0 var(--space-3); user-select: none;
}

@media (max-width: 600px) {
  .eyebrow { flex-wrap: wrap; row-gap: .2rem; }
  .cap-row { font-size: var(--step-1); padding-block: .85rem; }
  .hero .cap-ticker { margin-top: var(--space-3); }
  .footer-wordmark { -webkit-text-stroke-width: .7px; }
}


/* =========================================================
   Brand system from the main logo
   Red block + charcoal wordmark: one solid square, white channels
   cut through it — "start from one block, build the whole system".
   ========================================================= */
:root {
  /* Brand red — sampled from the logo mark (#D3403A) */
  --accent: #d3403a;
  --accent-hover: #b8342f;
  --accent-ink: #ffffff;
  /* Red lifted for dark chapters (≥4.5:1 on --deep) */
  --accent-light: #f07a6f;
  /* Charcoal — sampled from the wordmark (#3A3A3C) */
  --ink: #2f2f31;
  --ink-soft: #55555a;
  --ink-mute: #77777c;
  --line: #e7e6e4;
  --line-strong: #cfcecb;
  --surface: #ffffff;
  --surface-2: #f5f4f2;
  /* Dark chapters in the wordmark charcoal */
  --deep: #252527;
  --deep-2: #2f2f32;
  --deep-line: #414145;
  --deep-ink: #f5f5f3;
  --deep-soft: #b9b9bd;
  /* Logo palette as desk swatches (old names kept as aliases) */
  --sw-red: #d3403a;
  --sw-charcoal: #3a3a3c;
  --sw-stone: #9b9a98;
  --sw-mist: #e4e3e0;
  --sw-paper: #f7f6f4;
  --sw-terracotta: var(--sw-red);
  --sw-slate: var(--sw-charcoal);
  --sw-sand: var(--sw-mist);
  --sw-ivory: var(--sw-paper);
  /* Registration plates re-inked in the brand colours */
  --plate-design: #d3403a;
  --plate-online: #7d7d82;
  --plate-ai: #c9c8c6;
}

/* Logos */
.brand-logo { display: block; height: 38px; width: auto; }
.brand-footer .brand-logo { height: 46px; }
.header-inner .brand { flex: none; }
@media (max-width: 600px) { .brand-logo { height: 32px; } }
.bizcard-top img { height: 34px; width: auto; }
.contact-mark { width: 64px; height: auto; margin-bottom: var(--space-4); }

/* Small brand blocks replace the crosshair marks */
.eyebrow-mark { display: inline-block; width: 10px; height: 10px; background: var(--accent); }
.cap-row i { width: 9px; height: 9px; background: var(--accent); display: inline-block; flex: none; }
.kicker::before { box-shadow: none; }

/* The mark as a quiet watermark in the dark services chapter */
.services::after {
  content: ""; position: absolute; right: -6vw; bottom: 8%; width: min(40vw, 560px); aspect-ratio: 1 / 1;
  background: url("../img/brand/logo-mark-cut.png") center / contain no-repeat; opacity: .05; pointer-events: none;
}
@media (max-width: 860px) { .services::after { width: 60vw; right: -14vw; bottom: 2%; opacity: .05; } }

/* Footer sign-off follows the uppercase wordmark */
.footer-wordmark { letter-spacing: .02em; font-weight: 400; }

/* Business card edge strip in brand red */
.bizcard::after { background: var(--accent); }
/* keep the watermark inside the chapter without breaking the sticky service index */
.services { overflow-x: clip; }
/* hero without the capability band: give the bottom edge its breathing room back */
.hero { padding-bottom: clamp(2rem, 1rem + 3vw, 4rem); }

/* Wider layout: content runs to 1480px with a more generous gutter */
:root {
  --wrap: 1480px;
  --gutter: clamp(1rem, 0.2rem + 3.6vw, 4rem);
}
@media (min-width: 1100px) {
  .hero-grid { grid-template-columns: minmax(0, 52rem) 1fr; }
  .services-body { grid-template-columns: 280px 1fr; gap: clamp(3rem, 5vw, 6rem); }
}


/* =========================================================
   Brand identity, sharpened from the logo
   - Wordmark voice: wide geometric uppercase (Montserrat for Latin)
   - Mark vocabulary: solid red block, white channels with round ends
   ========================================================= */
:root {
  --font-brand: "Montserrat", "Google Sans", sans-serif;
  /* the mark in miniature: red block, one white channel with round ends */
  --mini-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Crect width='20' height='20' fill='%23d3403a'/%3E%3Cpath d='M6 5v10M10.5 10h4' stroke='%23fff' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E");
  --radius: 0px;
}

/* Wordmark voice on Latin labels, numbers and English lines */
.kicker, .eyebrow, .case-meta, .path-step .mono, .svc-no, .step-no, .footer-base,
.work-count, .hero-index a span, .svc-index a span {
  font-family: var(--font-brand), var(--font-text);
}
.kicker { text-transform: uppercase; letter-spacing: .14em; font-weight: 700; font-size: .74rem; color: var(--ink); }
.kicker-light { color: var(--deep-ink); }
.kicker::before { width: 18px; height: 18px; border-radius: 0; background: var(--mini-mark) center / cover no-repeat; }
main > section:not(.hero) .kicker::after { font-family: var(--font-brand); font-weight: 600; letter-spacing: .08em; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 700; }
.svc-no, .step-no { font-weight: 800; letter-spacing: -0.02em; }

/* "ความสำเร็จ" set like the mark: white letters cut out of a red block */
.hero h1 em {
  font-style: normal; color: #fff; background: var(--accent);
  padding: .04em .28em .1em; margin-left: -.06em; display: inline-block; line-height: 1.12;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}

/* Buttons: square blocks, the arrow sits in its own block */
.btn { border-radius: 0; font-weight: 600; letter-spacing: .01em; }
.btn-accent { padding-right: .6rem; }
.btn-accent span[aria-hidden] {
  display: inline-grid; place-items: center; width: 34px; height: 34px; margin-left: .4rem;
  background: oklch(100% 0 0 / .16);
}
.btn-sm.btn-accent { padding-right: 1.1rem; }
.chip span, .chips-list li, .work-count { border-radius: 0; }

/* Contact: the closing chapter becomes the brand block */
.contact { background: var(--accent); color: #fff; position: relative; overflow: hidden; isolation: isolate; }
.contact::before {
  /* oversized mark bleeding off the edge */
  content: ""; position: absolute; z-index: -1; left: -8vw; bottom: -12vw; width: min(52vw, 720px); aspect-ratio: 1;
  background: url("../img/brand/logo-mark.png") center / contain no-repeat; opacity: .1; mix-blend-mode: luminosity;
}
.contact .h2, .contact .h2 em { color: #fff; }
.contact .h2 em { text-decoration: underline; text-decoration-thickness: .06em; text-underline-offset: .18em; }
.contact-copy > p { color: oklch(100% 0 0 / .88); }
.contact .kicker, .contact .kicker-light { color: #fff; }
.contact .kicker::before { background: #fff; }
.contact main > section:not(.hero) .kicker::after, .contact .kicker::after { color: oklch(100% 0 0 / .75); }
.contact .contact-mark { display: none; }
.contact .btn-light { border-color: oklch(100% 0 0 / .6); color: #fff; }
.contact .btn-light:hover { background: #fff; color: var(--accent); border-color: #fff; }
.contact .form { box-shadow: 0 40px 80px -40px oklch(20% 0.05 25 / .55); }
.bizcard::after { background: var(--ink); }

/* Section rule from the mark's channels: long + short, round ends */
.work-head, .connect-head, .services-head { position: relative; }
.work-head::before, .work-head::after, .connect-head::before, .connect-head::after {
  content: ""; position: absolute; bottom: calc(var(--space-4) * -0.6); height: 8px; border-radius: 999px; background: var(--accent);
}
.work-head::before, .connect-head::before { left: 0; width: 88px; }
.work-head::after, .connect-head::after { left: 100px; width: 28px; }

/* Footer sign-off in the wordmark's voice */
.footer-wordmark {
  font-family: var(--font-brand); font-weight: 800; letter-spacing: -0.01em; font-size: clamp(3.2rem, 12.6vw, 13rem);
  color: #2e2e31; -webkit-text-stroke: 0; line-height: .9;
}
.footer-wordmark::first-letter { color: var(--accent); }

/* Header: a thin brand-red rule along the top edge */
.site-header { border-top: 4px solid var(--accent); }


/* About: a picture of the studio desk beside one clear statement */
.about { padding-block: var(--space-6); }
.about-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2.5rem, 6vw, 7rem); align-items: center; }
.about-media { position: relative; margin: 0; padding: 0 0 8% 0; }
.about-photo { position: relative; padding: 14px; }
.about-photo img { display: block; width: 100%; height: auto; aspect-ratio: 1312 / 1536; object-fit: cover; }
.about-badge {
  position: absolute; right: -6%; bottom: 0; width: clamp(140px, 34%, 210px); aspect-ratio: 1;
  background: var(--accent); color: #fff; display: grid; grid-template-rows: auto 1fr; padding: 16px;
  box-shadow: 0 30px 60px -30px oklch(30% 0.08 25 / .55);
}
.about-badge img { width: 44%; height: auto; box-shadow: 0 0 0 1px oklch(100% 0 0 / .25); }
.about-badge span { align-self: end; font-family: var(--font-brand); font-weight: 800; text-transform: uppercase; letter-spacing: .04em; font-size: clamp(.9rem, .6rem + .7vw, 1.2rem); line-height: 1.15; }
.about-copy .h2 { margin-bottom: var(--space-3); }
.about-copy .h2 em { color: var(--accent); font-style: normal; }
.about-lead { font-size: var(--step-1); color: var(--ink-soft); max-width: 32em; margin-bottom: var(--space-4); }
.about-points { display: grid; gap: 0; margin-bottom: var(--space-4); border-top: 1px solid var(--line); }
.about-points li { display: grid; grid-template-columns: 22px 1fr; gap: var(--space-2); padding: 1.05rem 0; border-bottom: 1px solid var(--line); align-items: start; }
.about-point-mark { width: 18px; height: 18px; margin-top: .3rem; background: var(--mini-mark) center / cover no-repeat; }
.about-points strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: var(--step-2); line-height: 1.3; }
.about-points span:not(.about-point-mark) { color: var(--ink-soft); }
@media (prefers-reduced-motion: no-preference) {
  .js .about-photo img { clip-path: inset(0 0 100% 0); transition: clip-path 1.3s var(--ease); }
  .js .about.is-seen .about-photo img { clip-path: inset(0); }
}
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 560px; }
  .about-badge { right: 0; }
}
/* label tracking that suits both Latin caps and Thai */
.kicker { letter-spacing: .08em; }
main > section.contact .kicker::after { color: oklch(100% 0 0 / .8); }


/* =========================================================
   One typeface for the whole site: Futura 100 Thai (Adobe Fonts kit oyk7bie)
   Kit weights: 300 / 400 / 700 (+ Book 400). Weights are mapped onto those.
   ========================================================= */
:root {
  --font-display: "futura-100-thai", "Helvetica Neue", Arial, sans-serif;
  --font-text: "futura-100-thai", "Helvetica Neue", Arial, sans-serif;
  --font-brand: "futura-100-thai", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "futura-100-thai", "Helvetica Neue", Arial, sans-serif;
}
body { font-weight: 400; }
/* map the old 500/600/800 weights onto the kit so the browser never fakes a bold */
strong, b, .btn, .kicker, .eyebrow, .nav a.is-active, .field label, .field legend,
.case figcaption strong, .faq summary, .footer-h, .svc h4, .chip span { font-weight: 700; }
.svc-no, .step-no, .footer-wordmark, .about-badge span { font-weight: 700; }
.mono { letter-spacing: .1em; font-weight: 400; }
button, input, select, textarea { font-family: var(--font-text); }

/* buttons carry text only — no glyph icons */
.btn-accent { padding-right: 1.6rem; }
.btn-sm.btn-accent { padding-right: 1.1rem; }


/* =========================================================
   Brand hero — the worktable seen through the white channels of the logo mark
   ========================================================= */
.hero::after { display: none; }                 /* retire the photo-wash overlay */
.hero-bg { display: none; }
.hero { background: var(--surface); }
.hero::before {                                  /* quiet grid back on white */
  display: block; --grid-line: oklch(95.5% 0.003 255);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 72% 50%, #000 30%, transparent 100%);
          mask-image: radial-gradient(ellipse 70% 80% at 72% 50%, #000 30%, transparent 100%);
}
.hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 5vw, 6rem); align-items: center; }
.hero-title, .hero h1 { font-size: clamp(3rem, 1.3rem + 4.4vw, 6.1rem); line-height: 1.12; }
.hero .lead { max-width: 30em; }

.hero-brand { margin: 0; justify-self: end; width: min(100%, 76svh, 640px); }
.hb-block {
  position: relative; aspect-ratio: 586 / 585; background: var(--accent); overflow: hidden;
  box-shadow: 0 50px 90px -50px oklch(35% 0.12 25 / .55);
}
.hb-photo {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 58% 50%;
  -webkit-mask: url("../img/brand/mark-channels.png") center / 100% 100% no-repeat;
          mask: url("../img/brand/mark-channels.png") center / 100% 100% no-repeat;
}
.hb-cap {
  display: flex; justify-content: space-between; gap: 1rem; margin-top: 1rem;
  font-family: var(--font-brand); font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink);
}
.hb-cap span:last-child { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink-soft); }
.hb-cap i { width: 7px; height: 7px; background: var(--accent); display: inline-block; }

@media (prefers-reduced-motion: no-preference) {
  .js .hb-block { clip-path: inset(100% 0 0 0); transition: clip-path 1.2s var(--ease) .15s; }
  .js .hero.is-in .hb-block { clip-path: inset(0 0 0 0); }
  .js .hb-photo { transform: scale(1.18); transition: transform 2.6s var(--ease) .3s; }
  .js .hero.is-in .hb-photo { transform: scale(1.02); }
  .hero.is-in .hb-photo { animation: hb-drift 16s ease-in-out 3s infinite alternate; }
  .js .hb-cap { opacity: 0; transition: opacity .8s var(--ease) 1.2s; }
  .js .hero.is-in .hb-cap { opacity: 1; }
}
@keyframes hb-drift { from { transform: scale(1.02) translate(0, 0); } to { transform: scale(1.1) translate(-2%, 1%); } }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--space-4); }
  .hero-brand { order: -1; justify-self: start; width: min(64vw, 340px); }
  .hb-cap { font-size: .66rem; }
}
@media (max-width: 600px) {
  .hero-title, .hero h1 { font-size: clamp(2.5rem, 1rem + 7vw, 3.2rem); }
  .hero-brand { width: min(52vw, 230px); }
  .hb-cap { flex-direction: column; gap: .3rem; }
}
@media (max-width: 600px) {
  .hero-grid { gap: var(--space-3); }
  .hero-brand { width: min(40vw, 170px); }
  .hb-cap { display: none; }
  .hero .eyebrow { margin-bottom: var(--space-2); }
}
/* hero headline one step smaller */
.hero-title, .hero h1 { font-size: clamp(2.6rem, 1.2rem + 3.4vw, 4.8rem); }
@media (max-width: 600px) { .hero-title, .hero h1 { font-size: clamp(2.2rem, 0.9rem + 6vw, 2.8rem); } }
.hero-eyebrow { color: var(--accent); }

/* Hero reel: real work cycles through the white channels of the mark */
.hb-block { display: block; }
.hb-photo { opacity: 0; object-position: 50% 42%; transition: opacity .9s var(--ease), transform 2.6s var(--ease) .3s; }
.hb-photo.is-active { opacity: 1; }
.hb-block:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
.hb-now { display: inline-flex; align-items: baseline; gap: .7rem; min-width: 0; overflow: hidden; }
.hb-now [data-hb-name] { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); transition: opacity .35s var(--ease); }
.hb-now [data-hb-name].is-swapping { opacity: 0; }
.hb-count { color: var(--accent); flex: none; }
.hb-cap { align-items: baseline; }
.hb-cap > span:last-child { flex: none; }

/* =========================================================
   Hero v3 — the logo as a window, not a sticker
   The channels are cropped tight so the work fills the frame;
   red survives only as the mark's own structure. The panel bleeds
   to the right edge of the screen.
   ========================================================= */
.hero h1, .hero-title { font-weight: 400; }
@media (min-width: 861px) {
  .hero { position: relative; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { max-width: min(46%, 40rem); }
  .hero-brand {
    position: absolute; z-index: 1; right: 0; top: 50%; transform: translateY(-50%);
    width: min(52vw, 132svh); margin: 0;
  }
}
.hb-block { aspect-ratio: 375 / 331; background: var(--accent); box-shadow: none; }
.hb-photo {
  object-position: 50% 40%;
  -webkit-mask: url("../img/brand/mark-channels-tight.png") center / 100% 100% no-repeat;
          mask: url("../img/brand/mark-channels-tight.png") center / 100% 100% no-repeat;
}
.hb-cap { padding-right: var(--gutter); margin-top: .9rem; }
@media (max-width: 860px) {
  .hero-brand { order: -1; justify-self: stretch; width: auto; margin-inline: calc(var(--gutter) * -1); }
  .hb-cap { padding-inline: var(--gutter); }
}
@media (max-width: 600px) {
  /* phones: promise and CTA first, the work window follows as the next thing you see */
  .hero-brand { width: auto; order: 2; }
  .hb-cap { display: flex; font-size: .62rem; margin-top: .6rem; }
}

/* Hero window — calmer size: supports the headline instead of competing with it */
@media (min-width: 861px) {
  .hero-copy { max-width: min(52%, 42rem); }
  .hero-brand { width: clamp(380px, 38vw, 580px); right: var(--gutter); }
  .hb-cap { padding-right: 0; }
}
@media (max-width: 860px) {
  .hero-brand { margin-inline: 0; justify-self: start; width: min(78%, 520px); }
  .hb-cap { padding-inline: 0; }
}
@media (max-width: 600px) {
  .hero-brand { width: 100%; }
}

/* =========================================================
   Hero v4 — the mark as line art (from the brand outline drawing)
   ========================================================= */
.hero-outline { aspect-ratio: auto; }
.ho-svg { display: block; width: 100%; height: auto; overflow: visible; }
.ho-svg path {
  fill: none; stroke: var(--ink); stroke-width: 1.6px; vector-effect: non-scaling-stroke;
  stroke-linejoin: miter; transition: fill .6s var(--ease);
}
.ho-svg .ho-sq { fill: var(--accent); stroke: var(--accent); }
@media (hover: hover) {
  .hero-outline:hover .ho-svg path:not(.ho-sq) { fill: oklch(97% 0.01 30); }
}
@media (prefers-reduced-motion: no-preference) {
  .js .ho-svg path { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .js .ho-svg .ho-sq { fill: transparent; }
  .js .hero.is-in .ho-svg path { stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s var(--ease), fill .6s var(--ease); }
  .js .hero.is-in .ho-svg path:nth-child(2) { transition-delay: .15s; }
  .js .hero.is-in .ho-svg path:nth-child(3) { transition-delay: .45s; }
  .js .hero.is-in .ho-svg path:nth-child(4) { transition-delay: .3s; }
  .js .hero.is-in .ho-svg path:nth-child(5) { transition-delay: .5s; }
  .js .hero.is-in .ho-svg path:nth-child(6) { transition-delay: .75s; }
  .js .hero.is-in .ho-svg .ho-sq { fill: var(--accent); transition: stroke-dashoffset 1s var(--ease), fill .5s var(--ease) 1.6s; }
}
.hero-outline .hb-cap { margin-top: 1.4rem; }
@media (min-width: 861px) { .hero-outline { width: clamp(360px, 36vw, 560px); } }
@media (max-width: 860px) { .hero-outline { width: min(70%, 460px); } }
@media (max-width: 600px) { .hero-outline { width: min(72%, 300px); } }

/* =========================================================
   Hero on brand red — the whole first screen becomes the mark's block
   Everything inside inverts to white; red stays the ground.
   ========================================================= */
.hero { background: var(--accent); color: #fff; }
.hero::before {
  --grid-line: oklch(100% 0 0 / .09);
  -webkit-mask-image: radial-gradient(ellipse 80% 85% at 70% 50%, #000 25%, transparent 100%);
          mask-image: radial-gradient(ellipse 80% 85% at 70% 50%, #000 25%, transparent 100%);
}
.hero h1, .hero .lead, .hero .hb-cap, .hero .hb-cap span:last-child { color: #fff; }
.hero .lead { color: oklch(100% 0 0 / .9); }
.hero-eyebrow { color: #fff; opacity: .9; }
.hero h1 em { background: #fff; color: var(--accent); }
.hero .btn-accent { background: #fff; color: var(--accent); }
.hero .btn-accent:hover { background: var(--ink); color: #fff; }
.hero .btn-ghost { border-color: oklch(100% 0 0 / .7); color: #fff; }
.hero .btn-ghost:hover { background: #fff; color: var(--accent); border-color: #fff; }
.hero .hb-cap i { background: #fff; }
.ho-svg path { stroke: #fff; stroke-width: 1.8px; }
.ho-svg .ho-sq { fill: #fff; stroke: #fff; }
.js .hero.is-in .ho-svg .ho-sq { fill: #fff; }
@media (hover: hover) { .hero-outline:hover .ho-svg path:not(.ho-sq) { fill: oklch(100% 0 0 / .08); } }
.hero :focus-visible { outline-color: #fff; }

/* Hero play 1 — each block of the mark is a service */
.ho-part { cursor: pointer; outline: none; }
.ho-part path { transition: fill .35s var(--ease), stroke-width .35s var(--ease); }
.ho-part text {
  font-family: var(--font-brand); font-weight: 700; font-size: 58px; letter-spacing: .06em; text-transform: uppercase;
  fill: #fff; opacity: 0; transform: translateY(14px); transition: opacity .35s var(--ease), transform .35s var(--ease);
  pointer-events: none;
}
.ho-start text { fill: var(--accent); font-size: 46px; }
.ho-part:hover path:not(.ho-sq), .ho-part:focus-visible path:not(.ho-sq) { fill: oklch(100% 0 0 / .14); }
.ho-part:hover text, .ho-part:focus-visible text { opacity: 1; transform: none; }
.ho-part:focus-visible path { stroke-width: 3px; }
.ho-svg:hover .ho-part:not(:hover) path:not(.ho-sq) { stroke: oklch(100% 0 0 / .55); }
@media (hover: none) { .ho-part text { opacity: .9; transform: none; } }
.ho-now { transition: opacity .25s var(--ease); }

/* Hero play 2 — the journey dot travels the channels, start → success */
.ho-trail {
  fill: none; stroke: #fff; stroke-width: 9px; vector-effect: non-scaling-stroke;
  stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: .0001 1; stroke-dashoffset: 0;
  opacity: 0; pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .hero.is-in .ho-trail { animation: ho-journey 9s linear 2.6s infinite; }
}
@keyframes ho-journey {
  0%   { stroke-dashoffset: 0; opacity: 0; }
  4%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { stroke-dashoffset: -1; opacity: 0; }
}
/* specificity fixes: the trail is not part of the line-art draw-in */
.ho-svg path.ho-trail {
  fill: none; stroke: #fff; stroke-width: 9px; stroke-linecap: round;
  stroke-dasharray: .0001 1; stroke-dashoffset: 0; opacity: 0; transition: none;
}
@media (prefers-reduced-motion: no-preference) {
  .js .hero.is-in .ho-svg path.ho-trail { stroke-dasharray: .0001 1; transition: none; animation: ho-journey 9s linear 2.6s infinite; }
  /* stagger the draw-in per block now that paths sit inside links */
  .js .hero.is-in .ho-part:nth-of-type(2) path { transition-delay: .15s; }
  .js .hero.is-in .ho-part:nth-of-type(3) path { transition-delay: .35s; }
  .js .hero.is-in .ho-part:nth-of-type(4) path { transition-delay: .55s; }
  .js .hero.is-in .ho-part path + path { transition-delay: .8s; }
}
/* hover: only the block under the pointer fills; the journey route never fills */
@media (hover: hover) {
  .hero-outline:hover .ho-svg path:not(.ho-sq) { fill: none; }
  .hero-outline .ho-part:hover path:not(.ho-sq) { fill: oklch(100% 0 0 / .14); }
}
.ho-svg path.ho-trail, .hero-outline:hover .ho-svg path.ho-trail { fill: none !important; }
/* the whole area of each block is hoverable, even while it has no fill */
.ho-part path { pointer-events: all; }

/* =========================================================
   Hero left — one composed column
   Everything shares the headline's left edge and a single 8px rhythm;
   a hairline separates the promise from the explanation.
   ========================================================= */
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .9rem; margin: 0 0 2rem;
  font-size: .82rem; letter-spacing: .18em; opacity: 1; color: #fff;
}
.hero-eyebrow::before { content: ""; width: 44px; height: 2px; background: #fff; }
.hero h1 { margin: 0; line-height: 1.14; }
.hero h1 .line { display: block; padding-bottom: .04em; }
.hero h1 em { margin: .18em 0 0 -.02em; padding: .02em .26em .1em; line-height: 1.1; }
.hero .lead {
  margin: 2.25rem 0 0; padding-top: 1.75rem; max-width: 30rem; width: 100%;
  border-top: 1px solid oklch(100% 0 0 / .4);
  font-size: clamp(1.05rem, .95rem + .45vw, 1.35rem); line-height: 1.65; font-weight: 400; color: #fff;
}
.hero-actions { display: flex; gap: .75rem; margin: 2.25rem 0 0; }
.hero .btn { min-height: 56px; padding: 0 2rem; font-size: 1rem; }
.hero .btn-accent { padding-right: 2rem; }

@media (max-width: 860px) {
  .hero-eyebrow { margin-bottom: 1.5rem; }
  .hero .lead { margin-top: 1.75rem; padding-top: 1.25rem; }
  .hero-actions { margin-top: 1.75rem; }
}
@media (max-width: 600px) {
  .hero-eyebrow { font-size: .72rem; gap: .7rem; }
  .hero-eyebrow::before { width: 28px; }
  .hero .lead br { display: none; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1; padding: 0 1rem; }
  /* the line-art runs the full width of the phone screen */
  .hero-outline { width: auto; margin-inline: calc(var(--gutter) * -1); }
  .hero-outline .ho-svg { width: 100%; }
  .hero-outline .hb-cap { padding-inline: var(--gutter); }
}
@media (max-width: 600px) {
  /* stretch the figure itself; an SVG with only a viewBox would otherwise fall back to 300px */
  .hero-outline { justify-self: stretch; width: calc(100% + var(--gutter) * 2); max-width: none; margin-inline: calc(var(--gutter) * -1); }
  .hero-outline .ho-svg { width: 100%; height: auto; }
}
/* labels sized to sit inside their blocks without crossing the logo's lines */
.ho-part text { font-size: 46px; letter-spacing: .05em; }
.ho-start text { font-size: 42px; }

/* Growth path — Smart Office joins as the fifth card */
@media (min-width: 1081px) { .path { grid-template-columns: repeat(5, 1fr); } .path-step h3 { font-size: var(--step-1); } }
@media (min-width: 861px) and (max-width: 1080px) { .path { grid-template-columns: repeat(3, 1fr); row-gap: var(--space-4); } }
@media (min-width: 861px) { .path-step:nth-child(5) { transform: rotate(-1.2deg) translateY(2px); } }
.path-step-office .mono { color: var(--ink); }
.path-link {
  display: inline-block; margin-top: .9rem; font-size: var(--step--1); font-weight: 700; color: var(--accent);
  text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px;
}
.path-link:hover { color: var(--ink); }
