/* =========================================================
   Qustum Signages — editorial design system
   Ink + paper, teal & gold from the mark. Serif display,
   grotesque body, mono folios.
   ========================================================= */

:root {
  --radius: 8px;
  --ink: #0e0f0f;
  --ink-2: #151716;
  --ink-3: #1d201f;
  --paper: #f2eee4;
  --paper-2: #e8e2d4;
  --teal: #8fb7ad;
  --teal-deep: #2d5a53;
  --gold: #d9ac5c;
  --gold-deep: #a8792a;

  --on-ink: #f2eee4;
  --on-ink-dim: rgba(242, 238, 228, .62);
  --on-paper: #131514;
  --on-paper-dim: rgba(19, 21, 20, .66);
  --line-ink: rgba(242, 238, 228, .16);
  --line-paper: rgba(19, 21, 20, .18);

  --f-display: "Instrument Serif", "Times New Roman", serif;
  --f-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "DM Mono", ui-monospace, Consolas, monospace;

  /* motion tokens */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --max: 1360px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--on-ink);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: fixed; left: 1rem; top: -4rem; z-index: 200; background: var(--gold); color: var(--ink); padding: .6rem 1rem; font-weight: 600; }
.skip:focus { top: 1rem; }

/* ---------- type ---------- */
.display {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 5.6vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.display em, .hero-title em { font-style: italic; color: var(--gold); }
.paper .display em { color: var(--teal-deep); }
.display--xl { font-size: clamp(2.8rem, 7vw, 6.4rem); }
.lede { font-size: clamp(1.15rem, 1.5vw, 1.35rem); line-height: 1.5; text-wrap: pretty; }
.mono-line, .folio, .tags, .case-n, .kicker, figcaption, .outcome span, .step-n, .cap-n {
  font-family: var(--f-mono);
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.folio { display: flex; align-items: center; gap: .9rem; color: var(--gold); margin-bottom: 1.6rem; }
.folio span { color: var(--on-ink); }
.paper .folio { color: var(--teal-deep); }
.paper .folio span { color: var(--on-paper); }
.folio::after { content: ""; flex: 0 0 3.5rem; height: 1px; background: currentColor; opacity: .55; }

/* ---------- sections ---------- */
.section { padding-block: clamp(5rem, 11vw, 10rem); position: relative; }
.ink { background: var(--ink); color: var(--on-ink); }
.paper { background: var(--paper); color: var(--on-paper); }
.paper .lede, .paper p { color: var(--on-paper-dim); }
.paper .display { color: var(--on-paper); }
.sec-head { max-width: 60rem; margin-bottom: clamp(2.5rem, 6vw, 5rem); }
.sec-head .lede { margin-top: 1.5rem; max-width: 40rem; color: var(--on-ink-dim); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .95rem 1.5rem; border-radius: 999px;
  font-weight: 500; font-size: .95rem; letter-spacing: .01em;
  border: 1px solid transparent;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease, border-color 200ms ease;
  -webkit-user-select: none; user-select: none;
}
.btn span { transition: transform 200ms var(--ease-out); display: inline-block; }
.btn:active { transform: scale(0.97); }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--ghost { border-color: var(--line-ink); color: var(--on-ink); }
.btn--sm { padding: .6rem 1.1rem; font-size: .85rem; }
.btn--block { width: 100%; justify-content: center; }
@media (hover: hover) and (pointer: fine) {
  .btn--gold:hover { background: #e6bc72; }
  .btn--ghost:hover { border-color: var(--on-ink); }
  .btn:hover span { transform: translateX(3px); }
}
.link-arrow {
  display: inline-flex; gap: .5rem; margin-top: 1.5rem; padding-bottom: .2rem;
  font-weight: 500; color: var(--on-paper); border-bottom: 1px solid currentColor;
  transition: gap 200ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .link-arrow:hover { gap: .9rem; } }

/* ---------- header ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 120; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--gold); transform: scaleX(0); transform-origin: 0 50%; }

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  padding-inline: var(--gutter);
  transition: transform 320ms var(--ease-out), background-color 240ms ease, border-color 240ms ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-solid { background: rgba(14, 15, 15, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line-ink); }
.site-header.is-hidden { transform: translateY(-100%); }
.brand img { height: 46px; width: auto; }
.nav { display: flex; gap: clamp(1rem, 2.4vw, 2.2rem); margin-left: auto; }
.nav a { font-size: .9rem; color: var(--on-ink-dim); position: relative; padding-block: .3rem; transition: color 160ms ease; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: 0 50%; transition: transform 240ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .nav a:hover { color: var(--on-ink); }
  .nav a:hover::after { transform: scaleX(1); }
}
.menu-btn { display: none; width: 44px; height: 44px; position: relative; border-radius: 50%; border: 1px solid var(--line-ink); transition: transform 160ms var(--ease-out); }
.menu-btn:active { transform: scale(0.95); }
.menu-btn span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--on-ink); transition: transform 260ms var(--ease-out); }
.menu-btn span:first-child { top: 18px; }
.menu-btn span:last-child { top: 25px; }
.menu-open .menu-btn span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-open .menu-btn span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.drawer {
  position: fixed; inset: 0; z-index: 90; background: var(--ink);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--header-h) + 2rem) var(--gutter) 2.5rem;
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity 240ms var(--ease-out), transform 320ms var(--ease-drawer), visibility 0s linear 320ms;
}
.menu-open .drawer { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.drawer nav { display: grid; }
.drawer nav a {
  display: flex; align-items: baseline; gap: 1rem;
  font-family: var(--f-display); font-size: clamp(2.4rem, 11vw, 4rem); line-height: 1.15;
  padding-block: .35rem; border-bottom: 1px solid var(--line-ink);
  opacity: 0; transform: translateY(14px);
  transition: opacity 200ms ease, transform 200ms ease;
}
.menu-open .drawer nav a { opacity: 1; transform: none; transition: opacity 420ms var(--ease-out), transform 520ms var(--ease-out); transition-delay: calc(60ms + var(--i) * 45ms); }
.drawer nav em { font-family: var(--f-mono); font-style: normal; font-size: .75rem; color: var(--gold); }
.drawer-foot { font-family: var(--f-mono); font-size: .8rem; color: var(--on-ink-dim); line-height: 1.8; }
.menu-open { overflow: hidden; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; padding-top: calc(var(--header-h) + 3rem); padding-bottom: 5rem; display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.spot { position: absolute; z-index: -1; left: 0; top: 0; width: 70vmax; height: 70vmax; margin: -35vmax 0 0 -35vmax; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(217, 172, 92, .16), rgba(143, 183, 173, .05) 55%, transparent 72%);
  transform: translate3d(70vw, 30vh, 0); will-change: transform; }

.kicker { display: flex; align-items: center; gap: .7rem; color: var(--on-ink-dim); margin-bottom: 2rem; }
.kicker .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px var(--gold); }
.hero-title {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(3.4rem, 9.4vw, 9.2rem); line-height: .95; letter-spacing: -0.025em;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hero-title .line > span { display: inline-block; transform: translateY(105%); animation: rise 1100ms var(--ease-out) forwards; }
.hero-title .line:nth-child(2) > span { animation-delay: 110ms; }
@keyframes rise { to { transform: none; } }
.hero-lede { max-width: 30rem; margin-top: 2rem; color: var(--on-ink-dim); opacity: 0; animation: fadeUp 800ms var(--ease-out) 450ms forwards; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; opacity: 0; animation: fadeUp 800ms var(--ease-out) 560ms forwards; }
.kicker { opacity: 0; animation: fadeUp 700ms var(--ease-out) 100ms forwards; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.hero-fig figcaption, figure figcaption { margin-top: .8rem; color: var(--on-ink-dim); text-transform: none; letter-spacing: .02em; font-size: .72rem; }
figcaption span { color: var(--gold); margin-right: .6rem; text-transform: uppercase; letter-spacing: .08em; }
.paper figcaption { color: var(--on-paper-dim); }
.paper figcaption span { color: var(--teal-deep); }
.hero-img { position: relative; overflow: hidden; border-radius: 3px; clip-path: inset(0 0 100% 0); animation: unveil 1200ms var(--ease-in-out) 250ms forwards; background: var(--ink-3); }
.hero-img img { width: 100%; height: auto; transform: scale(1.12); animation: settle 1600ms var(--ease-out) 250ms forwards; }
@keyframes unveil { to { clip-path: inset(0 0 0 0); } }
@keyframes settle { to { transform: scale(1); } }
.hero-fig figcaption { opacity: 0; animation: fadeUp 700ms var(--ease-out) 1100ms forwards; }
.scroll-cue { position: absolute; left: var(--gutter); bottom: 1.6rem; display: flex; align-items: center; gap: .8rem; font-family: var(--f-mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .14em; color: var(--on-ink-dim); }
.scroll-cue span { width: 1px; height: 38px; background: linear-gradient(var(--gold), transparent); transform-origin: top; animation: cue 2.4s var(--ease-in-out) infinite; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- marquee ---------- */
.marquee { background: var(--gold); color: var(--ink); overflow: hidden; border-block: 1px solid var(--ink); }
.marquee-track { display: flex; width: max-content; gap: 2rem; padding-block: .95rem; font-family: var(--f-display); font-size: clamp(1.5rem, 2.8vw, 2.4rem); line-height: 1; animation: marquee 38s linear infinite; }
.marquee-track span, .marquee-track i { white-space: nowrap; font-style: normal; }
.marquee-track span:nth-of-type(even) { font-style: italic; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (hover: hover) { .marquee:hover .marquee-track { animation-play-state: paused; } }

/* ---------- manifesto ---------- */
.manifesto { display: grid; grid-template-columns: 1fr; gap: 0; }
.manifesto-main .display { max-width: 18ch; font-size: clamp(2.6rem, 6.4vw, 6rem); }
.two-col { padding-top: clamp(2.5rem, 5vw, 4.5rem); }
.two-col p + p { margin-top: 1.1rem; }
.index-list { counter-reset: i; border-top: 1px solid var(--line-paper); }
.index-list li { counter-increment: i; display: flex; gap: 1.2rem; align-items: baseline; padding: .95rem 0; border-bottom: 1px solid var(--line-paper); font-family: var(--f-display); font-size: 1.5rem; line-height: 1.2; color: var(--on-paper); }
.index-list li::before { content: "0" counter(i); font-family: var(--f-mono); font-size: .72rem; color: var(--teal-deep); }
.manifesto-fig { margin-top: clamp(3rem, 7vw, 6rem); max-width: 62rem; margin-left: auto; }
.manifesto-fig img { width: 100%; height: auto; }

/* ---------- reveal system ---------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--ease-out), transform 800ms var(--ease-out); transition-delay: var(--d, 0ms); }
[data-reveal].is-in { opacity: 1; transform: none; }
.reveal-img { overflow: hidden; }
.reveal-img img, .reveal-img .tri-img { clip-path: inset(0 0 100% 0); transform: scale(1.06); transition: clip-path 1000ms var(--ease-in-out), transform 1400ms var(--ease-out); transition-delay: var(--d, 0ms); }
.reveal-img.is-in img, .reveal-img.is-in .tri-img { clip-path: inset(0 0 0 0); transform: none; }
.reveal-img figcaption { opacity: 0; transition: opacity 600ms ease 500ms; }
.reveal-img.is-in figcaption { opacity: 1; }

/* ---------- model ---------- */
.model { border-top: 1px solid var(--line-ink); }
.model li { padding: clamp(1.5rem, 3vw, 2.6rem) clamp(.8rem, 2vw, 1.8rem) clamp(1.5rem, 3vw, 2.6rem) 0; border-right: 1px solid var(--line-ink); padding-left: clamp(.8rem, 2vw, 1.8rem); display: flex; flex-direction: column; gap: 1rem; min-height: 15rem; justify-content: space-between; }
.model li:first-child { padding-left: 0; }
.model li:last-child { border-right: 0; }
.model b { font-family: var(--f-display); font-weight: 400; font-size: clamp(3rem, 7.5vw, 7.4rem); line-height: .9; letter-spacing: -.03em; }
.model li span { font-family: var(--f-mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--on-ink-dim); }
.model .is-one b { color: var(--gold); font-style: italic; }
.model-note { max-width: 44rem; margin-top: clamp(2rem, 4vw, 3.5rem); color: var(--on-ink-dim); font-size: 1.2rem; text-wrap: pretty; }

/* ---------- capability ---------- */
.cap-grid { border-top: 1px solid var(--line-paper); }
.cap { padding: 2rem 0 2.4rem; border-bottom: 1px solid var(--line-paper); }

.cap-n { color: var(--teal-deep); display: block; margin-bottom: 2.5rem; }
.cap h3 { font-family: var(--f-display); font-weight: 400; font-size: 1.9rem; line-height: 1.08; margin-bottom: 1.5rem; color: var(--on-paper); }
.cap li { padding: .5rem 0; font-size: .96rem; line-height: 1.4; color: var(--on-paper-dim); border-top: 1px dashed var(--line-paper); }
.bleed { margin: clamp(4rem, 8vw, 8rem) auto 0; max-width: 1180px; padding-inline: var(--gutter); }
.bleed img { width: 100%; height: auto; }
.bleed figcaption { padding: .9rem 0 0; }

/* ---------- wayfinding ---------- */

.split-fig img { width: 100%; height: auto; }
.split-copy .lede { margin-top: 1.5rem; color: var(--on-ink-dim); max-width: 36rem; }
.split-copy .btn { margin-top: 2rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.chips li { border: 1px solid var(--line-ink); border-radius: 999px; padding: .45rem .9rem; font-size: .85rem; color: var(--on-ink-dim); }

/* ---------- process ---------- */

.process-lead { position: sticky; top: calc(var(--header-h) + 2rem); }
.mono-line { margin-top: 2rem; color: var(--on-paper-dim); }
.steps { border-top: 1px solid var(--line-paper); }
.step { display: grid; grid-template-columns: 4.5rem 1fr; gap: 1rem; padding: clamp(2rem, 4vw, 3.4rem) 0; border-bottom: 1px solid var(--line-paper); opacity: .38; transform: translateX(-8px); transition: opacity 500ms var(--ease-out), transform 600ms var(--ease-out); }
.step.is-active { opacity: 1; transform: none; }
.step-n { color: var(--teal-deep); padding-top: .9rem; transition: color 300ms ease; }
.step.is-active .step-n { color: var(--gold-deep); }
.step h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(2.4rem, 5vw, 4.4rem); line-height: 1; color: var(--on-paper); }
.step p { margin-top: .8rem; font-size: 1.15rem; max-width: 24rem; }

/* ---------- materials ---------- */



.tri-img { overflow: hidden; background: var(--ink-3); }
.tri img { width: 100%; height: auto; }
.tri figcaption { font-family: var(--f-display); font-size: 1.3rem; text-transform: none; letter-spacing: 0; color: var(--on-ink); margin-top: 1rem; }
@media (hover: hover) and (pointer: fine) {
  .tri img { transition: transform 700ms var(--ease-out); }
  .tri.is-in:hover img { transform: scale(1.04); }
}

/* ---------- fabrication ---------- */
.fab { position: relative; padding-block: clamp(7rem, 16vw, 14rem); overflow: hidden; isolation: isolate; color: var(--on-ink); }
.fab-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.fab-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(14,15,15,.94) 0%, rgba(14,15,15,.78) 45%, rgba(14,15,15,.3) 100%); }
.fab-inner { max-width: var(--max); }
.fab-inner .display { max-width: 12ch; }
.fab-inner .lede { max-width: 38rem; margin: 1.6rem 0 2.2rem; color: var(--on-ink-dim); }

/* ---------- work / cases ---------- */
.case { padding-block: clamp(2.5rem, 6vw, 5.5rem); border-top: 1px solid var(--line-paper); }



.case-mat { display: grid; gap: clamp(.8rem, 2vw, 1.4rem); align-content: start; }
.case-main img { width: 100%; height: auto; }
.case-side { width: 62%; margin-left: auto; }
.case--flip .case-side { margin-left: 0; margin-right: auto; }
.case-side img { width: 100%; height: auto; }
.case-n { color: var(--teal-deep); margin-bottom: 1rem; }
.case h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(3rem, 6vw, 5.8rem); line-height: .95; letter-spacing: -.02em; color: var(--on-paper); }
.case-tag { font-family: var(--f-display); font-style: italic; font-size: clamp(1.4rem, 2.2vw, 1.9rem); line-height: 1.15; color: var(--teal-deep) !important; margin-top: 1rem; text-wrap: balance; }
.tags { color: var(--on-paper-dim) !important; margin-block: 1.4rem 1.2rem; line-height: 1.7; font-size: .7rem; }
.outcome { margin-top: 1.8rem; padding: 1rem 0 0 1.1rem; border-left: 2px solid var(--gold-deep); color: var(--on-paper); font-weight: 500; }
.outcome span { display: block; color: var(--gold-deep); margin-bottom: .35rem; }

/* ---------- why ---------- */
.why { border-top: 1px solid var(--line-ink); }
.why article { padding: 2.4rem 0 3rem; border-bottom: 1px solid var(--line-ink); }

.why span { font-family: var(--f-display); font-size: 4.6rem; line-height: 1; color: var(--gold); display: block; margin-bottom: 2.4rem; font-style: italic; }
.why h3 { font-family: var(--f-display); font-weight: 400; font-size: 2rem; line-height: 1.08; margin-bottom: .9rem; }
.why p { color: var(--on-ink-dim); max-width: 22rem; }

/* ---------- contact ---------- */
.contact { background: var(--teal-deep); color: var(--on-ink); padding-block: clamp(5rem, 11vw, 10rem); position: relative; overflow: hidden; }
.contact::before { content: ""; position: absolute; right: -12vw; top: -14vw; width: 46vw; height: 46vw; border-radius: 50%; border: 1px solid rgba(242,238,228,.18); box-shadow: 0 0 0 clamp(1.5rem,4vw,3.5rem) rgba(242,238,228,.04); pointer-events: none; }
.contact .folio { color: var(--gold); }
.contact-grid { position: relative; }
.contact .display em { color: var(--gold); }
.contact .mono-line { color: rgba(242,238,228,.7); }
.contact-card { background: var(--ink); border-radius: 4px; padding: clamp(1.4rem, 3vw, 2.4rem); }
.contact-card form { display: grid; gap: 1rem; }
.contact-card label { display: grid; gap: .4rem; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--on-ink-dim); }
.contact-card input, .contact-card textarea { font: inherit; font-family: var(--f-body); font-size: 1rem; letter-spacing: 0; text-transform: none; color: var(--on-ink); background: transparent; border: 0; border-bottom: 1px solid var(--line-ink); padding: .55rem 0; border-radius: 0; resize: vertical; transition: border-color 200ms ease; }
.contact-card input:focus, .contact-card textarea:focus { outline: none; border-color: var(--gold); }
.contact-card input[aria-invalid="true"] { border-color: #e07a5f; }
.form-note { min-height: 1.4em; font-size: .85rem; color: var(--teal); }
.contact-list { display: grid; gap: 1rem; margin-top: 1.6rem; padding-top: 1.6rem; border-top: 1px solid var(--line-ink); }
.contact-list dt { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.contact-list dd { color: var(--on-ink); }
.contact-list a { border-bottom: 1px solid var(--line-ink); transition: border-color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .contact-list a:hover { border-color: var(--gold); } }

/* ---------- footer ---------- */
.footer { background: var(--ink); border-top: 1px solid var(--line-ink); padding-block: 3rem; }
.footer-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem 3rem; }
.footer img { height: 54px; width: auto; }
.footer p { color: var(--on-ink-dim); font-size: .9rem; max-width: 28rem; }
.footer .fine { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; }

/* ---------- responsive (Bootstrap breakpoints: 576 / 768 / 992) ---------- */
@media (min-width: 576px) {
  .cap { padding-inline: 1.6rem; }
  .cap:nth-child(odd) { padding-left: 0; }
  .cap:nth-child(even) { border-left: 1px solid var(--line-paper); }
}
@media (min-width: 768px) {
  .why article { padding-inline: 2rem; }
  .why article:first-child { padding-left: 0; }
  .why article + article { border-left: 1px solid var(--line-ink); }
  .why article { border-bottom: 0; }
  .tri:nth-child(2) { margin-top: clamp(2rem, 6vw, 5rem); }
  .tri:nth-child(3) { margin-top: clamp(1rem, 3vw, 2.5rem); }
}
@media (min-width: 992px) {
  .cap { border-bottom: 0; }
  .cap:nth-child(odd) { padding-left: 1.6rem; }
  .cap:first-child { padding-left: 0; }
  .cap + .cap { border-left: 1px solid var(--line-paper); }
}
@media (max-width: 991.98px) {
  .nav, .header-cta { display: none; }
  .menu-btn { display: block; margin-left: auto; }
  .hero { padding-bottom: 6rem; align-items: flex-start; }
  .hero-fig { max-width: 30rem; }
  .process-lead, .faq-head { position: static; }
  .model li { min-height: 11rem; border-bottom: 1px solid var(--line-ink); }
  .model li:nth-child(2n) { border-right: 0; padding-left: 1.4rem; }
  .model li:nth-child(2n+1) { padding-left: 0; }
  .faq-item p { padding-right: 0; }
  .fab-shade { background: linear-gradient(180deg, rgba(14,15,15,.7), rgba(14,15,15,.92)); }
  .scroll-cue { display: none; }
}
@media (max-width: 575.98px) {
  .step { grid-template-columns: 3rem 1fr; }
  .case-side { width: 80%; }
  .brand img { height: 40px; }
}

/* ---------- reduced motion: keep fades, drop movement ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-title .line > span { transform: none; animation: none; }
  .hero-img { clip-path: none; animation: none; }
  .hero-img img { transform: none; animation: none; }
  .hero-lede, .hero-actions, .kicker, .hero-fig figcaption { transform: none; animation: fade 400ms ease forwards; }
  @keyframes fade { from { opacity: 0; } to { opacity: 1; } }
  [data-reveal] { transform: none; transition: opacity 400ms ease; }
  .reveal-img img, .reveal-img .tri-img { clip-path: none; transform: none; opacity: 0; transition: opacity 500ms ease; }
  .reveal-img.is-in img, .reveal-img.is-in .tri-img { opacity: 1; }
  .step { transform: none; }
  .marquee-track { animation: none; }
  .scroll-cue span { animation: none; transform: none; }
  .site-header, .site-header.is-hidden { transform: none; }
  .drawer, .drawer nav a { transform: none; }
}

/* no-JS safety */
.no-js [data-reveal], .no-js .reveal-img img, .no-js .reveal-img .tri-img, .no-js .reveal-img figcaption { opacity: 1; transform: none; clip-path: none; }
.no-js .step { opacity: 1; transform: none; }

/* ---------- bootstrap row used as page container ---------- */
.wrap.row { margin-inline: auto; padding-inline: max(0px, calc(var(--gutter) - var(--bs-gutter-x) * .5)); }

/* ---------- utilities ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- floating call / whatsapp ---------- */
.float-contact { position: fixed; z-index: 95; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: .75rem; align-items: center; }
.fab-btn {
  display: grid; place-items: center; border-radius: 50%; color: #fff;
  opacity: 0; translate: 0 12px; animation: fabIn 600ms var(--ease-out) forwards;
  transition: transform 160ms var(--ease-out), background-color 200ms ease;
  -webkit-user-select: none; user-select: none; touch-action: manipulation;
}
.fab-btn svg { fill: currentColor; display: block; }
.fab-btn--call svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fab-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fab-btn { width: 56px; height: 56px; border: 2px solid transparent; }
.fab-btn--call { background: var(--ink); border-color: rgba(242,238,228,.38); animation-delay: 1.3s; }
.fab-btn svg { width: 26px; height: 26px; }
.fab-btn--wa { background: #1f6b5f; animation-delay: 1.4s; }
.fab-btn:active { transform: scale(0.94); }
@keyframes fabIn { to { opacity: 1; translate: 0 0; } }
@media (hover: hover) and (pointer: fine) { .fab-btn--wa:hover { background: #26796b; } .fab-btn--call:hover { border-color: var(--gold); } }
.menu-open .float-contact { opacity: 0; pointer-events: none; }
.footer { padding-bottom: calc(3rem + 70px); }

/* ---------- on-site figure ---------- */
.fab-fig { margin-top: clamp(2.5rem, 6vw, 5rem); max-width: 54rem; }
.fab-fig img { width: 100%; height: auto; }
.fab-fig figcaption { color: rgba(242,238,228,.75); }

/* ---------- faq ---------- */

.faq-head { position: sticky; top: calc(var(--header-h) + 2rem); }
.faq-list { border-top: 1px solid var(--line-paper); }
.faq-item { border-bottom: 1px solid var(--line-paper); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1.5rem; align-items: center; padding: 1.4rem 0; font-family: var(--f-display); font-size: clamp(1.3rem, 2.2vw, 1.75rem); line-height: 1.2; color: var(--on-paper); -webkit-user-select: none; user-select: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex: none; width: 2rem; height: 2rem; display: grid; place-items: center; border: 1px solid var(--line-paper); border-radius: 50%; font-family: var(--f-body); font-size: 1.1rem; transition: transform 300ms var(--ease-out), background-color 200ms ease; }
.faq-item[open] summary::after { transform: rotate(45deg); background: var(--gold); border-color: var(--gold); }
.faq-item p { padding: 0 3.5rem 1.6rem 0; max-width: 40rem; animation: faqIn 380ms var(--ease-out); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- materials & type refinements ---------- */
.site-header.is-solid { background: rgba(14, 15, 15, .66); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); box-shadow: inset 0 -1px 0 rgba(242,238,228,.1); }
.hero-title, .display, .case h3 { font-optical-sizing: auto; }
.drawer { backdrop-filter: blur(24px) saturate(160%); -webkit-backdrop-filter: blur(24px) saturate(160%); background: rgba(14, 15, 15, .9); }
.case-copy, .split-copy, .manifesto-main { text-wrap: pretty; }
@media (prefers-reduced-transparency: reduce) {
  .site-header.is-solid, .drawer { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--ink); }
}
@media (prefers-contrast: more) {
  .nav a, .on-ink-dim { color: var(--on-ink); }
  .btn--ghost, .chips li { border-color: var(--on-ink); }
}

@media (max-width: 575.98px) {
  .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
}
@media (max-width: 380px) { :root { --gutter: 1.1rem; } }
@media (prefers-reduced-motion: reduce) {
  .fab-btn { translate: none; animation: fade 400ms ease forwards; }
  .faq-item p { animation: none; }
  .faq-item summary::after { transition: none; }
}

/* ---------- soft corners ---------- */
main img, .hero-img, .tri-img, .step-stage, .case-mat, .case-side, .case-main { border-radius: var(--radius); }
.fab-bg { border-radius: 0; }

/* =========================================================
   Fixed stage (wide screens). script.js adds .stage-mode to
   <html> and .panel to each section. The hero view stays put
   while panels swap inside it. Below 992px, on short screens
   or with reduced motion, the normal stacked layout is used.
   ========================================================= */
.hero-dim, .step-stage, .stage-rail, .stage-bg { display: none; }
.step-img { display: block; width: 100%; height: auto; margin-top: 1.2rem; }

.stage-mode .stage-view { position: sticky; top: 0; height: 100svh; overflow: hidden; isolation: isolate; background: var(--ink); }
.stage-mode .hero-track { display: contents; }
.stage-mode #work, .stage-mode #work > .wrap { display: contents; }
.stage-mode #work .sec-head, .stage-mode .bleed { display: none; }

/* ambient photos + shade behind the panels */
.stage-mode .stage-bg { display: block; position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.stage-bg .bg { position: absolute; inset: -5% 0; opacity: 0; transition: opacity 900ms var(--ease-out); }
.stage-bg .bg.is-on { opacity: 1; }
.stage-bg .bg img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; filter: saturate(.85) brightness(.55); transform: scale(1.06); }
.stage-shade { position: absolute; inset: 0; background: radial-gradient(120% 90% at 70% 20%, rgba(14, 15, 15, .25), rgba(14, 15, 15, .78)), linear-gradient(rgba(14, 15, 15, .55), rgba(14, 15, 15, .75)); }

/* the panels */
.stage-mode .panel {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center;
  padding-block: calc(var(--header-h) + .5rem) 4.4rem; margin: 0; min-height: 0; height: auto;
  background: transparent; color: var(--on-ink);
  opacity: 0; visibility: hidden; pointer-events: none; transform: translate3d(0, 3vh, 0);
  transition: opacity 520ms var(--ease-out), transform 760ms var(--ease-out), visibility 0s linear 520ms;
}
.stage-mode .panel.is-active { opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition-delay: 0s; }
.stage-mode .panel.is-past { transform: translate3d(0, -3vh, 0); }
.stage-mode .panel > .wrap { width: 100%; }
.stage-mode .hero.panel { flex-direction: row; align-items: center; }
.stage-mode .hero.panel > .wrap { padding-block: 0; }
.stage-mode .case.panel { padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); border-top: 0; }
.stage-mode .fab.panel { justify-content: center; }
.stage-mode .fab-bg { z-index: -2; }

/* cream sections read as dark glass inside the stage */
.stage-mode .paper, .stage-mode .paper.panel {
  --on-paper: #f2eee4; --on-paper-dim: rgba(242, 238, 228, .68); --line-paper: rgba(242, 238, 228, .18);
  --teal-deep: #8fb7ad; --gold-deep: #d9ac5c; --paper-2: rgba(242, 238, 228, .07);
  background: transparent; color: var(--on-ink);
}

/* markers on the marquee + hero cue */
.stage-mode .marquee { position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; }
.stage-mode .scroll-cue { bottom: 4.8rem; }
.stage-mode .hero-dim { display: block; position: absolute; inset: 0; background: #04060a; opacity: .66; pointer-events: none; will-change: opacity; }

/* panel entrances replace the scroll reveals */
.stage-mode [data-reveal] { opacity: 0; transform: translate3d(0, 22px, 0); }
.stage-mode .panel.is-active [data-reveal] { opacity: 1; transform: none; }
.stage-mode .reveal-img img, .stage-mode .reveal-img .tri-img { clip-path: inset(0 0 100% 0); transform: scale(1.05); }
.stage-mode .panel.is-active .reveal-img img, .stage-mode .panel.is-active .reveal-img .tri-img { clip-path: inset(0 0 0 0); transform: none; }
.stage-mode .reveal-img figcaption { opacity: 0; }
.stage-mode .panel.is-active .reveal-img figcaption { opacity: 1; }

/* compact type so every panel fits one screen */
.stage-mode .display { font-size: clamp(2rem, min(5.2vw, 8.6vh), 4.8rem); }
.stage-mode .manifesto-main .display { font-size: clamp(2.2rem, min(5.6vw, 9.4vh), 5.4rem); }
.stage-mode .display--xl { font-size: clamp(2.4rem, min(6vw, 10vh), 5.6rem); }
.stage-mode .sec-head { margin-bottom: clamp(1rem, 3.4vh, 2.4rem); }
.stage-mode .folio { margin-bottom: clamp(.8rem, 2.4vh, 1.4rem); }
.stage-mode .lede { font-size: clamp(1.02rem, 2.3vh, 1.25rem); }
.stage-mode .section.panel, .stage-mode .fab.panel { padding-block: calc(var(--header-h) + .5rem) 4.4rem; }

/* approach: copy left, photo right */
.stage-mode .manifesto { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.stage-mode .manifesto .folio { grid-column: 1 / -1; }
.stage-mode .manifesto-fig { margin: 0; max-width: none; display: flex; flex-direction: column; align-items: flex-start; }
.stage-mode .manifesto-fig img { width: auto; max-width: 100%; max-height: 52vh; }
.stage-mode .two-col { padding-top: clamp(1rem, 3vh, 2rem); }
.stage-mode .index-list li { padding: .5rem 0; font-size: 1.2rem; }

/* model: four words, one by one */
.stage-mode .model li { min-height: 0; padding-block: clamp(1rem, 3vh, 2rem); opacity: .14; transform: translateY(26px); transition: opacity 500ms var(--ease-out), transform 650ms var(--ease-out); }
.stage-mode .model li.is-on { opacity: 1; transform: none; }
.stage-mode .model b { font-size: clamp(2.6rem, min(7vw, 14vh), 6.8rem); }
.stage-mode .model .is-one.is-on b { transform: scale(1.05); transform-origin: 0 100%; }
.model b { display: block; transition: transform 700ms var(--ease-out); }
.stage-mode .model-note { opacity: 0; transform: translateY(14px); transition: opacity 600ms var(--ease-out), transform 700ms var(--ease-out); }
.stage-mode #model[data-i="3"] .model-note { opacity: 1; transform: none; }

/* capability */
.stage-mode .cap { padding-block: 1.2rem 1.4rem; }
.stage-mode .cap-n { margin-bottom: 1rem; }
.stage-mode .cap h3 { font-size: clamp(1.4rem, 3.2vh, 1.8rem); margin-bottom: .8rem; }
.stage-mode .cap li { padding: .38rem 0; font-size: clamp(.84rem, 1.9vh, .95rem); }

/* wayfinding + materials */
.stage-mode .split-fig img { width: auto; max-width: 100%; max-height: 62vh; }
.stage-mode .tri:nth-child(n) { margin-top: 0; }
.stage-mode .tri-img { display: flex; justify-content: center; }
.stage-mode .tri img { width: auto; max-width: 100%; max-height: 42vh; }
.stage-mode .tri figcaption { font-size: 1.15rem; }

/* process: heading + image frame, compact steps */
.stage-mode .process-lead { position: static; }
.stage-mode .step-stage { display: block; position: relative; margin-top: 1.4rem; width: 100%; height: min(38vh, 380px); background: var(--paper-2); overflow: hidden; }
.stage-mode .step-stage img { position: absolute; inset: .8rem; width: calc(100% - 1.6rem); height: calc(100% - 1.6rem); object-fit: contain; opacity: 0; transform: scale(1.04); filter: blur(4px); transition: opacity 500ms var(--ease-out), transform 700ms var(--ease-out), filter 500ms ease; }
.stage-mode .step-stage img.is-on { opacity: 1; transform: none; filter: none; }
.stage-mode .step-img { display: none; }
.stage-mode .step { min-height: 0; padding-block: clamp(.9rem, 2.6vh, 1.6rem); }
.stage-mode .step h3 { font-size: clamp(1.8rem, 4.6vh, 3rem); }
.stage-mode .step p { margin-top: .3rem; font-size: 1.02rem; }

/* case studies: image swap + text build while the panel is active */
.stage-mode .case-pin { height: auto; }
.stage-mode .case-mat { position: relative; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; height: min(64vh, 680px); padding: 1rem; background: var(--paper-2); }
.stage-mode .case-mat figure { grid-area: 1 / 1; width: 100%; height: 100%; margin: 0; display: flex; align-items: center; justify-content: center; transition: opacity 650ms var(--ease-out), transform 800ms var(--ease-out); }
.stage-mode .case-mat img { width: 100%; height: 100%; object-fit: contain; }
.stage-mode .case-side { opacity: 0; transform: scale(.97); }
.stage-mode .case[data-s="1"] .case-main, .stage-mode .case[data-s="2"] .case-main { opacity: 0; transform: scale(1.02); }
.stage-mode .case[data-s="1"] .case-side, .stage-mode .case[data-s="2"] .case-side { opacity: 1; transform: none; }
.stage-mode .case.case--single[data-s] .case-main { opacity: 1; transform: none; }
.stage-mode .case [data-at] { opacity: 0; transform: translateY(14px); transition: opacity 500ms var(--ease-out), transform 600ms var(--ease-out); }
.stage-mode .case[data-s="1"] [data-at="1"], .stage-mode .case[data-s="2"] [data-at] { opacity: 1; transform: none; }
.stage-mode .case h3 { font-size: clamp(2.6rem, min(5vw, 9vh), 4.8rem); }
.stage-mode .case-pin { margin-top: 0; --bs-gutter-y: 0; }

/* why */
.stage-mode .why article { padding-block: clamp(1.4rem, 4vh, 2.4rem); }
.stage-mode .why span { font-size: clamp(3rem, 8vh, 4.6rem); margin-bottom: 1.2rem; }

/* side rail: short horizontal ticks, the active one stretches left */
.stage-mode .stage-rail { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; position: fixed; z-index: 90; right: 1.25rem; top: 50%; transform: translateY(-50%); transition: opacity 300ms ease; }
.stage-mode .stage-rail.is-off { opacity: 0; pointer-events: none; }
.stage-rail button { position: relative; display: flex; align-items: center; justify-content: flex-end; width: 36px; height: 20px; padding: 0; }
.stage-rail button::before { content: ""; width: 10px; height: 2px; border-radius: 2px; background: rgba(242, 238, 228, .4); transition: width 300ms var(--ease-out), background-color 200ms ease; }
.stage-rail button.is-on::before { width: 28px; background: var(--gold); }
.stage-rail button::after { content: attr(data-label); position: absolute; right: 44px; top: 50%; translate: 6px -50%; opacity: 0; white-space: nowrap; font-family: var(--f-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--on-ink); background: rgba(14, 15, 15, .85); padding: .3rem .55rem; border-radius: 4px; pointer-events: none; transition: opacity 160ms ease, translate 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .stage-rail button:hover::after { opacity: 1; translate: 0 -50%; } .stage-rail button:hover::before { background: var(--gold); width: 20px; } .stage-rail button.is-on:hover::before { width: 28px; } }
@media (prefers-reduced-transparency: reduce) { .stage-shade { background: var(--ink); } }

/* faq + contact as the last two panels */
.stage-mode .faq-item summary { padding-block: clamp(.7rem, 2.1vh, 1.2rem); font-size: clamp(1.1rem, 2.7vh, 1.5rem); }
.stage-mode .faq-item p { padding-bottom: 1rem; font-size: .98rem; }
.stage-mode .faq-head { position: static; }
.stage-mode .contact.panel { background: var(--teal-deep); }
.stage-mode .contact-card { padding: clamp(1rem, 2.6vh, 1.8rem) clamp(1.2rem, 2.4vw, 2rem); }
.stage-mode .contact-card form { gap: .7rem; }
.stage-mode .contact-list { margin-top: 1rem; padding-top: 1rem; gap: .6rem; }

/* the rail and the top progress line show position, so the native bar is hidden on the stage */
html.stage-mode { scrollbar-width: none; }
html.stage-mode::-webkit-scrollbar { display: none; }

/* enquiry form */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-card label small { text-transform: none; letter-spacing: 0; opacity: .7; }
.form-note.is-error { color: #f0a58f; }
.contact-card button[type="submit"]:disabled { opacity: .6; cursor: progress; }

/* contact: info sits under the heading, the card holds the form only */
.contact-list { margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px solid rgba(242, 238, 228, .22); }
.stage-mode .contact-list { margin-top: clamp(1rem, 3vh, 1.8rem); padding-top: clamp(.8rem, 2vh, 1.2rem); gap: .7rem; }
.stage-mode .contact-card label { gap: .2rem; }
.stage-mode .contact-card input, .stage-mode .contact-card textarea { padding-block: .4rem; }
.stage-mode .form-note { min-height: 1.2em; }

/* shorter laptop screens */
@media (min-width: 992px) and (max-height: 800px) {
  .stage-mode .display, .stage-mode .manifesto-main .display { font-size: clamp(1.9rem, min(4.6vw, 7.8vh), 4rem); }
  .stage-mode .display--xl { font-size: clamp(2.2rem, min(5vw, 8.6vh), 4.4rem); }
  .stage-mode .cap li { padding-block: .3rem; }
  .stage-mode .cap-n { margin-bottom: .6rem; }
  .stage-mode .why span { margin-bottom: .6rem; }
  .stage-mode .step-stage { height: min(34vh, 320px); }
  .stage-mode .case-mat { height: min(60vh, 600px); }
  .stage-mode .faq-item summary { padding-block: .6rem; }
}
