/* ==========================================================================
   EMIRATED MARKETING — "The Range" design system
   One stylesheet, no framework. Sections:
   1 Tokens · 2 Base · 3 Layout · 4 Type · 5 Buttons & links · 6 Graphic system
   7 Header & menu · 8 Hero · 9 Home sections · 10 Widgets · 11 Inner pages
   12 Journal · 13 Brief form · 14 Footer · 15 Motion · 16 Print
   ========================================================================== */

/* 1 — Tokens ------------------------------------------------------------- */
:root {
  --ink: #0b0a09;
  --ink-2: #141210;
  --paper: #f3eee6;
  --paper-2: #e8e1d5;
  --bone: #f3eee6;
  --text: #15120f;
  --muted: #5d564d;
  --on-ink-muted: #a9a197;
  --red: #e5382d;          /* signal colour: lines, marks, large type */
  --red-solid: #cc2a20;    /* button fill, passes AA with white text */
  --red-text: #b4241b;     /* small red text on paper */
  --line: rgba(21, 18, 15, .16);
  --line-ink: rgba(243, 238, 230, .16);

  --sans: "Be Vietnam Pro", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", "Times New Roman", serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;

  --wrap: 1320px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --sec: clamp(4.5rem, 10vw, 9rem);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --hd-h: 72px;
}

/* 2 — Base --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hd-h) + 1rem); }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
:where(ul[class], ol[class]) { list-style: none; padding: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 2px; }
[hidden] { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 1rem; top: -4rem; z-index: 100;
  background: var(--bone); color: var(--ink); padding: .75rem 1rem; text-decoration: none;
}
.skip:focus { top: 1rem; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* 3 — Layout ------------------------------------------------------------- */
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
/* Each section is its own stacking context; decoration sits at z-index -1 so
   content needs no z-index (and logo blend modes see the section background). */
.sec { position: relative; padding-block: var(--sec); overflow: clip; isolation: isolate; }
.sec > .wrap { position: relative; }
.sec--ink { background: var(--ink); color: var(--bone); }
.sec--ink-2 { background: var(--ink-2); color: var(--bone); }
.sec--paper { background: var(--paper); }
.sec--paper-2 { background: var(--paper-2); }
.sec--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.sec--flush-top { padding-top: 0; }

/* Section opener: editorial rule with a measured label */
.mark {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding-top: .9rem; margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
  border-top: 1px solid var(--line);
  font: 500 .75rem/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted);
}
.mark b { font-weight: 500; color: var(--red-text); margin-right: .9em; }
.sec--ink .mark, .sec--ink-2 .mark, .ph .mark { border-color: var(--line-ink); color: var(--on-ink-muted); }
.sec--ink .mark b, .sec--ink-2 .mark b, .ph .mark b { color: var(--red); }
.mark span:last-child { text-align: right; }

.split { display: grid; gap: clamp(2rem, 5vw, 5rem); }
@media (min-width: 900px) {
  .split { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .split > .c5 { grid-column: span 5; }
  .split > .c6 { grid-column: span 6; }
  .split > .c7 { grid-column: span 7; }
  .split > .c4 { grid-column: span 4; }
  .split > .c8 { grid-column: span 8; }
  .split > .push1 { grid-column-start: 2; }
  .split > .end { grid-column-end: -1; }
}

/* 4 — Type --------------------------------------------------------------- */
.h1, .h2, .h3 { font-weight: 500; letter-spacing: -.035em; text-wrap: balance; }
.h1 { font-size: clamp(2.6rem, 7.4vw, 6.75rem); line-height: .96; letter-spacing: -.045em; }
.h2 { font-size: clamp(2rem, 4.6vw, 4rem); line-height: 1.02; }
.h3 { font-size: clamp(1.35rem, 2.2vw, 1.9rem); line-height: 1.15; letter-spacing: -.025em; }
.h1 em, .h2 em, .h3 em, .serif {
  font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em;
}
.h1 em, .h2 em { font-size: 1.09em; color: var(--red); padding-right: .04em; }
.sec--paper .h2 em, .sec--paper-2 .h2 em { color: var(--red-text); }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1.5; max-width: 38em; text-wrap: pretty; }
.body { max-width: 36em; color: var(--muted); text-wrap: pretty; }
.sec--ink .body, .sec--ink-2 .body { color: var(--on-ink-muted); }
.body + .body { margin-top: 1em; }
.label { font: 500 .75rem/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sec--ink .label, .sec--ink-2 .label { color: var(--on-ink-muted); }
.mt-s { margin-top: 1rem; } .mt-m { margin-top: 1.75rem; } .mt-l { margin-top: clamp(2.5rem, 5vw, 4rem); }

/* 5 — Buttons & links ----------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .7em;
  padding: 1.05em 1.5em; border: 1px solid transparent; border-radius: 999px;
  background: var(--red-solid); color: #fff;
  font-weight: 500; font-size: 1rem; line-height: 1; text-decoration: none; white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn .ico { transition: transform .35s var(--ease); }
.btn:hover { background: #a91f17; }
.btn:hover .ico { transform: translateX(4px); }
.btn--line { background: transparent; color: inherit; border-color: currentColor; }
.btn--line:hover { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.sec--paper .btn--line:hover, .sec--paper-2 .btn--line:hover { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.btn--sm { padding: .8em 1.15em; font-size: .9375rem; }
.btn[disabled] { opacity: .6; cursor: progress; }

.lnk {
  display: inline-flex; align-items: center; gap: .5em;
  font-weight: 500; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: .2em;
  transition: background-size .4s var(--ease);
}
.lnk:hover { background-size: 0 1px; background-position: 100% 100%; }
.lnk .ico { transition: transform .35s var(--ease); }
.lnk:hover .ico { transform: translate(3px, -3px); }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }

/* 6 — Graphic system: rings, ticks, grid ---------------------------------- */
/* Five rings = the five stages of the growth system. The same symbol is
   cropped differently in every section, and shown whole only at the close. */
.rings {
  position: absolute; z-index: -1; pointer-events: none;
  width: var(--d, 900px); aspect-ratio: 1; color: currentColor; opacity: .13; overflow: visible;
}
.sec--paper .rings, .sec--paper-2 .rings { opacity: .16; }
/* Pairs that straddle a section boundary so the target reads as one object */
.rings--bottom { left: var(--x, 70%); bottom: 0; transform: translate(-50%, 50%); }
.rings--top { left: var(--x, 70%); top: 0; transform: translate(-50%, -50%); }
.rings--corner { right: 0; top: 0; transform: translate(42%, -42%); }

/* Column rules: the editorial grid shows through on wide screens */
.grid-rules { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.grid-rules::before {
  content: ""; position: absolute; inset: 0 var(--gutter);
  max-width: var(--wrap); margin-inline: auto;
  background: linear-gradient(to right, var(--line-ink) 1px, transparent 1px) 0 0 / 25% 100%;
  border-right: 1px solid var(--line-ink);
  opacity: .5;
}
@media (max-width: 899px) { .grid-rules { display: none; } }

.grain::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* 7 — Header & menu ------------------------------------------------------- */
.hd {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--hd-h);
  color: var(--bone);
  border-bottom: 1px solid transparent;
  transition: background-color .35s var(--ease), border-color .35s var(--ease);
  view-transition-name: site-header;
}
.hd.is-stuck { background: rgba(11, 10, 9, .94); border-color: var(--line-ink); }
.hd__in { display: flex; align-items: center; gap: 2rem; height: 100%; }
.hd__logo { display: flex; align-items: center; gap: .7rem; text-decoration: none; margin-right: auto; }
.hd__logo img { width: 44px; height: 44px; }
.hd__logo span { font-weight: 600; letter-spacing: -.02em; font-size: 1.05rem; }
.hd__nav { display: none; gap: 2rem; }
.hd__nav a {
  position: relative; padding: .5rem 0; text-decoration: none; font-size: .9375rem; color: var(--on-ink-muted);
  transition: color .25s var(--ease);
}
.hd__nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .15rem; height: 1px; background: var(--red);
  transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.hd__nav a:hover, .hd__nav a[aria-current] { color: var(--bone); }
.hd__nav a:hover::after, .hd__nav a[aria-current]::after { transform: scaleX(1); }
.hd__cta { display: none; }
.hd__menu {
  display: inline-flex; align-items: center; gap: .6rem; padding: .7rem 0 .7rem 1rem;
  background: none; border: 0; font: 500 .8125rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
}
.hd__menu i { position: relative; width: 22px; height: 10px; }
.hd__menu i::before, .hd__menu i::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor;
  transition: transform .35s var(--ease);
}
.hd__menu i::before { top: 0; } .hd__menu i::after { bottom: 0; }
.hd__menu[aria-expanded="true"] i::before { transform: translateY(4.25px) rotate(45deg); }
.hd__menu[aria-expanded="true"] i::after { transform: translateY(-4.25px) rotate(-45deg); }
@media (min-width: 960px) {
  .hd__nav { display: flex; }
  .hd__cta { display: inline-flex; }
  .hd__menu { display: none; }
}

.menu {
  position: fixed; inset: 0; z-index: 40; background: var(--ink); color: var(--bone);
  padding: calc(var(--hd-h) + 2rem) var(--gutter) 2rem; overflow-y: auto;
  display: flex; flex-direction: column; gap: 2rem;
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility 0s .3s;
}
.menu.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
.menu__nav { display: grid; }
.menu__nav a {
  display: flex; align-items: baseline; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--line-ink);
  font-size: clamp(1.9rem, 9vw, 3rem); letter-spacing: -.035em; line-height: 1.1; text-decoration: none;
  opacity: 0; transform: translateY(14px); transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.menu__nav a small { font: 500 .75rem var(--mono); letter-spacing: .08em; color: var(--red); }
.menu.is-open .menu__nav a { opacity: 1; transform: none; }
.menu.is-open .menu__nav a:nth-child(2) { transition-delay: .04s; }
.menu.is-open .menu__nav a:nth-child(3) { transition-delay: .08s; }
.menu.is-open .menu__nav a:nth-child(4) { transition-delay: .12s; }
.menu.is-open .menu__nav a:nth-child(5) { transition-delay: .16s; }
.menu.is-open .menu__nav a:nth-child(6) { transition-delay: .2s; }
.menu__foot { margin-top: auto; display: grid; gap: .9rem; }
.menu__foot a:not(.btn) { color: var(--on-ink-muted); text-decoration: none; }
.menu .rings { --d: 150vw; right: 0; bottom: 0; transform: translate(45%, 45%); opacity: .1; }
@media (min-width: 960px) { .menu { display: none; } }

/* Section rail — home only, wide screens. A measured index of where you are. */
.rail { display: none; }
@media (min-width: 1500px) and (min-height: 640px) {
  .rail {
    display: grid; gap: .1rem; position: fixed; left: 1.4rem; top: 50%; z-index: 30; transform: translateY(-50%);
    mix-blend-mode: difference; color: #fff;
  }
  .rail a {
    display: flex; align-items: center; gap: .6rem; height: 1.5rem; text-decoration: none;
    font: 500 .6875rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  }
  .rail a::before { content: ""; width: 10px; height: 1px; background: currentColor; opacity: .5; transition: width .4s var(--ease), opacity .4s var(--ease); }
  .rail a span { opacity: 0; transform: translateX(-4px); transition: opacity .3s var(--ease), transform .3s var(--ease); }
  .rail a:hover span, .rail a:focus-visible span, .rail a.is-on span { opacity: 1; transform: none; }
  .rail a.is-on::before, .rail a:hover::before { width: 26px; opacity: 1; }
}

/* 8 — Hero ---------------------------------------------------------------- */
.hero {
  position: relative; min-height: min(100svh, 980px); display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--hd-h) + 3rem) 0 0; background: var(--ink); color: var(--bone); overflow: clip; isolation: isolate;
}
.hero__art {
  position: absolute; z-index: -1; pointer-events: none; overflow: visible;
  width: min(128vw, 760px); aspect-ratio: 1; right: -42vw; top: -6vw;
}
.hero__art .r { fill: none; stroke: var(--bone); stroke-opacity: .2; }
.hero__art .tick { fill: none; stroke: var(--bone); stroke-opacity: .28; }
.hero__art .axis { stroke: var(--bone); stroke-opacity: .12; }
.hero__art text { font: 500 15px var(--mono); letter-spacing: .1em; fill: var(--bone); fill-opacity: .55; }
.hero__art .path { fill: none; stroke: url(#flight); stroke-width: 2; stroke-linecap: round; }
.hero__art .hit { fill: var(--red); }
.hero__art .cross { fill: var(--ink); stroke: var(--red); stroke-width: 1.5; }
.hero__art .labels { display: none; }
.hero__body { position: relative; padding-bottom: clamp(2.5rem, 6vw, 5rem); }
.hero__kicker { display: flex; align-items: center; gap: .9rem; margin-bottom: clamp(1.25rem, 3vw, 2.25rem); color: var(--on-ink-muted); }
.hero__kicker::before { content: ""; width: 2.5rem; height: 1px; background: var(--red); }
.hero .h1 { max-width: 11.5em; }
.hero .lede { margin-top: clamp(1.25rem, 2.5vw, 2rem); color: #d3ccc1; max-width: 33em; }
.hero .row { margin-top: clamp(1.75rem, 3vw, 2.5rem); }
.hero__facts {
  position: relative; border-top: 1px solid var(--line-ink);
  display: grid; grid-template-columns: 1fr;
}
.hero__facts div { padding: 1.1rem 0; border-bottom: 1px solid var(--line-ink); display: flex; gap: 1rem; align-items: baseline; }
.hero__facts dt { font: 500 .75rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--red); min-width: 5.5rem; }
.hero__facts dd { color: #d3ccc1; font-size: .9375rem; }
@media (min-width: 760px) {
  .hero__facts { grid-template-columns: repeat(3, 1fr); }
  .hero__facts div { border-bottom: 0; padding: 1.25rem 1.5rem 1.5rem 0; flex-direction: column; gap: .35rem; }
  .hero__facts div + div { padding-left: 1.5rem; border-left: 1px solid var(--line-ink); }
}
@media (min-width: 960px) {
  .hero__art { width: min(82svh, 60vw, 860px); right: -5vw; top: calc(50% + var(--hd-h) / 2); translate: 0 -54%; }
  .hero__art .labels { display: block; }
}

/* 9 — Home sections ------------------------------------------------------- */
/* Clients */
.roster { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-ink); border-left: 1px solid var(--line-ink); }
.roster li { display: grid; place-items: center; aspect-ratio: 3 / 2; border-right: 1px solid var(--line-ink); border-bottom: 1px solid var(--line-ink); }
.roster img { width: 62%; max-width: 132px; aspect-ratio: 1; object-fit: contain; opacity: .78; transition: opacity .3s var(--ease); }
.roster li:hover img { opacity: 1; }
/* Some client logos ship on a black plate; screen blending drops it on dark sections */
.roster img, .notes__tabs img, .clients-list img { mix-blend-mode: screen; }
@media (min-width: 700px) { .roster { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1100px) { .roster { grid-template-columns: repeat(6, 1fr); } }

/* Capability index */
.index { border-top: 1px solid var(--text); counter-reset: idx; }
.index li { counter-increment: idx; border-bottom: 1px solid var(--line); }
.index a {
  display: grid; grid-template-columns: 3rem 1fr auto; align-items: baseline; gap: .5rem 1rem;
  padding: 1.05rem 0; text-decoration: none; position: relative;
  transition: padding .4s var(--ease), color .25s var(--ease);
}
.index a::before { content: counter(idx, decimal-leading-zero); font: 500 .75rem var(--mono); letter-spacing: .06em; color: var(--red-text); }
.index b { font-weight: 500; font-size: clamp(1.25rem, 2.3vw, 1.85rem); letter-spacing: -.03em; line-height: 1.15; }
.index span { grid-column: 2; color: var(--muted); font-size: .9375rem; max-width: 34em; }
.index .ico { grid-row: 1; grid-column: 3; align-self: center; opacity: .35; transition: opacity .3s var(--ease), transform .4s var(--ease); }
.index a:hover { padding-left: .75rem; }
.index a:hover .ico { opacity: 1; transform: translate(3px, -3px); color: var(--red-text); }
@media (min-width: 900px) {
  .index--2 { columns: 2; column-gap: clamp(2rem, 5vw, 5rem); border-top: 0; }
  .index--2 li { break-inside: avoid; border-top: 1px solid var(--line); border-bottom: 0; }
}

/* Principles (why) */
.tenets { display: grid; gap: 0; border-top: 1px solid var(--line); }
.tenets li { display: grid; gap: .75rem 2rem; padding: clamp(1.75rem, 3.5vw, 3rem) 0; border-bottom: 1px solid var(--line); }
.tenets .label { color: var(--red-text); }
@media (min-width: 900px) { .tenets li { grid-template-columns: 2fr 5fr 5fr; align-items: start; } }

/* Process */
.steps { position: relative; display: grid; gap: clamp(2.5rem, 5vw, 4rem); padding-left: 2.5rem; }
.steps::before, .steps::after { content: ""; position: absolute; left: 5px; top: .6rem; bottom: .6rem; width: 1px; background: var(--line); }
.steps::after { background: var(--red-text); transform-origin: top; }
.steps li { position: relative; }
.steps li::before {
  content: ""; position: absolute; left: calc(-2.5rem + 1px); top: .55rem; width: 9px; height: 9px; border-radius: 50%;
  background: var(--paper); border: 1.5px solid var(--red-text);
}
.steps .label { display: block; margin-bottom: .6rem; color: var(--red-text); }
.steps .body { margin-top: .6rem; }
.steps dl { margin-top: 1rem; display: grid; gap: .3rem; font-size: .9375rem; }
.steps dl div { display: flex; gap: .75rem; }
.steps dt { font: 500 .75rem/1.9 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); min-width: 6.5rem; }
@media (min-width: 900px) { .sticky { position: sticky; top: calc(var(--hd-h) + 2.5rem); align-self: start; } }

/* Closing call */
.close { text-align: left; padding-block: clamp(5rem, 12vw, 11rem); }
.rings--whole { --d: min(150vw, 1100px); --bull: var(--red); right: 0; top: 50%; transform: translate(38%, -50%); opacity: 1; color: rgba(243, 238, 230, .2); }

.close__contact { margin-top: clamp(2.5rem, 5vw, 4rem); display: grid; gap: 1rem 3rem; border-top: 1px solid var(--line-ink); padding-top: 1.5rem; }
.close__contact a { text-decoration: none; font-size: 1.125rem; }
.close__contact a:hover { color: var(--red); }
.close__contact .label { display: block; margin-bottom: .35rem; }
@media (min-width: 760px) { .close__contact { grid-template-columns: repeat(3, auto); justify-content: start; } }

/* 10 — Widgets ------------------------------------------------------------ */
/* Tabs (shared behaviour: growth system + client notes). Panels are stacked in
   one grid cell so switching never changes the height of the page. */
.js [data-tabs] .panels { display: grid; }
.js [data-tabs] .panels > * { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .45s var(--ease), transform .45s var(--ease), visibility 0s .45s; }
.js [data-tabs] .panels > .is-on { opacity: 1; visibility: visible; transform: none; transition-delay: .08s, .08s, 0s; }
html:not(.js) [data-tabs] [role="tablist"] { display: none; }
html:not(.js) [data-tabs] .panels > * + * { margin-top: 2.5rem; padding-top: 2.5rem; border-top: 1px solid var(--line); }

/* Growth system */
.system { display: grid; gap: 2rem; }
.system__tabs { display: flex; gap: .5rem; overflow-x: auto; scroll-snap-type: x proximity; margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter) .75rem; scrollbar-width: none; }
.system__tabs::-webkit-scrollbar { display: none; }
.system__tabs button {
  flex: none; scroll-snap-align: start; display: flex; align-items: baseline; gap: .6rem;
  padding: .7rem 1rem; background: none; border: 1px solid var(--line); border-radius: 999px;
  font-weight: 500; letter-spacing: -.01em; transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.system__tabs button small { font: 500 .6875rem var(--mono); color: var(--red-text); }
.system__tabs button[aria-selected="true"] { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.system__tabs button[aria-selected="true"] small { color: var(--red); }
.dial { width: min(72%, 300px); margin-inline: auto; overflow: visible; }
.dial circle.ring { fill: none; stroke: var(--text); stroke-opacity: .22; transition: stroke .5s var(--ease), stroke-opacity .5s var(--ease), stroke-width .5s var(--ease); }
.dial .tick { fill: none; stroke: var(--text); stroke-opacity: .3; }
.dial .axis { stroke: var(--text); stroke-opacity: .12; }
.dial .core { fill: var(--text); fill-opacity: .25; transition: fill .5s var(--ease), fill-opacity .5s var(--ease); }
.dial .probe { fill: var(--red); transition: transform .7s var(--ease); }
.dial text { font: 500 25px var(--mono); letter-spacing: .1em; fill: var(--muted); transition: fill .4s var(--ease); }
[data-active="0"] .dial .r0, [data-active="1"] .dial .r1, [data-active="2"] .dial .r2, [data-active="3"] .dial .r3 { stroke: var(--red); stroke-opacity: 1; stroke-width: 2.5; }
[data-active="4"] .dial .core { fill: var(--red); fill-opacity: 1; }
[data-active="0"] .dial text:nth-of-type(1), [data-active="1"] .dial text:nth-of-type(2), [data-active="2"] .dial text:nth-of-type(3),
[data-active="3"] .dial text:nth-of-type(4), [data-active="4"] .dial text:nth-of-type(5) { fill: var(--red-text); }
[data-active="0"] .dial .probe { transform: translate(-318px, 318px); }
[data-active="1"] .dial .probe { transform: translate(-247px, 247px); }
[data-active="2"] .dial .probe { transform: translate(-177px, 177px); }
[data-active="3"] .dial .probe { transform: translate(-106px, 106px); }
[data-active="4"] .dial .probe { transform: translate(0, 0); }
.system__panel .h3 { font-size: clamp(1.6rem, 2.8vw, 2.4rem); }
.system__panel .body { margin-top: 1rem; }
.system__panel h4 { margin: 1.75rem 0 .6rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips a, .chips span {
  display: inline-block; padding: .45rem .85rem; border: 1px solid var(--line); border-radius: 999px;
  font-size: .875rem; text-decoration: none; transition: border-color .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease);
}
.chips a:hover { border-color: var(--text); background: var(--text); color: var(--paper); }
.sec--ink .chips span, .sec--ink .chips a { border-color: var(--line-ink); }
html:not(.js) .dial { display: none; }
@media (min-width: 1000px) {
  .system { grid-template-columns: minmax(0, 3.3fr) minmax(0, 4fr) minmax(0, 4.7fr); align-items: center; gap: clamp(2rem, 4vw, 4rem); }
  .system__tabs { flex-direction: column; overflow: visible; margin: 0; padding: 0; gap: 0; border-top: 1px solid var(--line); }
  .system__tabs button {
    width: 100%; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 1.15rem 0; gap: 1rem;
    font-size: 1.35rem; letter-spacing: -.03em; color: var(--muted); text-align: left;
    transition: color .3s var(--ease), padding .4s var(--ease);
  }
  .system__tabs button:hover { color: var(--text); }
  .system__tabs button[aria-selected="true"] { background: none; color: var(--text); padding-left: 1rem; }
  .system__tabs button[aria-selected="true"] small { color: var(--red-text); }
  .dial { width: 100%; max-width: 460px; }
}

/* Client notes */
.notes { display: grid; gap: 2.5rem; }
.notes__tabs { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line-ink); border-right: 0; }
.notes__tabs button {
  display: grid; place-items: center; gap: .25rem; aspect-ratio: 1; padding: .5rem; background: none; border: 0; border-right: 1px solid var(--line-ink);
  position: relative; transition: background-color .3s var(--ease);
}
.notes__tabs img { width: 78%; aspect-ratio: 1; object-fit: contain; opacity: .5; transition: opacity .3s var(--ease); }
.notes__tabs button::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.notes__tabs button[aria-selected="true"]::after { transform: scaleX(1); }
.notes__tabs button[aria-selected="true"] img, .notes__tabs button:hover img { opacity: 1; }
.note blockquote { font-family: var(--serif); font-size: clamp(1.7rem, 3.6vw, 3.1rem); line-height: 1.14; letter-spacing: -.012em; text-wrap: balance; }
.note blockquote::before { content: "\201C"; color: var(--red); margin-left: -.42em; }
.note blockquote::after { content: "\201D"; }
.note figcaption { margin-top: 1.75rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem 1rem; }
.note figcaption b { font-weight: 500; }
.note figcaption span { color: var(--on-ink-muted); }
.note .chips { margin-top: 1.5rem; }
.note .chips span { font-size: .8125rem; color: var(--on-ink-muted); }
@media (min-width: 1000px) {
  .notes { grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: clamp(3rem, 6vw, 6rem); align-items: start; }
  .notes__tabs { grid-template-columns: repeat(2, 1fr); border-bottom: 0; }
  .notes__tabs button { border-bottom: 1px solid var(--line-ink); }
}

/* Accordions (native <details>) */
.acc { border-top: 1px solid var(--text); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1.5rem; padding: 1.35rem 0; cursor: pointer; list-style: none;
  font-weight: 500; font-size: clamp(1.1rem, 1.7vw, 1.4rem); letter-spacing: -.02em; line-height: 1.25;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after {
  content: ""; width: 14px; height: 14px; flex: none;
  background: linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
  transition: transform .4s var(--ease);
}
.acc details[open] > summary::after { transform: rotate(45deg); color: var(--red-text); }
.acc summary:hover { color: var(--red-text); }
.acc .acc__body { padding: 0 0 1.75rem; max-width: 44em; color: var(--muted); }
.acc .acc__body p + p { margin-top: .9em; }
@supports (interpolate-size: allow-keywords) {
  .acc details { interpolate-size: allow-keywords; }
  .acc details::details-content { block-size: 0; overflow: clip; transition: block-size .45s var(--ease), content-visibility .45s allow-discrete; }
  .acc details[open]::details-content { block-size: auto; }
}

/* Discipline finder (solutions page) */
.finder { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.finder button {
  padding: .7rem 1.1rem; background: none; border: 1px solid var(--line); border-radius: 999px; font-weight: 500; font-size: .9375rem;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.finder button:hover { border-color: var(--text); }
.finder button[aria-pressed="true"] { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.finder__status { margin-top: 1rem; min-height: 1.4em; }
html:not(.js) .finder-block { display: none; }
.svc summary { grid-template-columns: 3rem 1fr auto; align-items: baseline; }
.svc summary::before { content: attr(data-n); font: 500 .75rem var(--mono); letter-spacing: .06em; color: var(--red-text); }
.svc summary b { font-weight: 500; font-size: clamp(1.4rem, 2.8vw, 2.2rem); letter-spacing: -.035em; line-height: 1.1; }
.svc summary small { display: block; margin-top: .3rem; font-size: .9375rem; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.svc summary::after { align-self: center; }
.svc .acc__body { max-width: none; padding-left: 0; display: grid; gap: 1.5rem 3rem; color: var(--text); }
.svc .acc__body ul { padding-left: 0; list-style: none; display: grid; gap: .5rem; }
.svc .acc__body li { position: relative; padding-left: 1.4rem; color: var(--muted); }
.svc .acc__body li::before { content: ""; position: absolute; left: 0; top: .72em; width: .7rem; height: 1px; background: var(--red-text); }
@media (min-width: 900px) { .svc .acc__body { grid-template-columns: 5fr 5fr; padding-left: 4rem; } }

/* 11 — Inner pages -------------------------------------------------------- */
.ph { position: relative; isolation: isolate; background: var(--ink); color: var(--bone); padding: calc(var(--hd-h) + clamp(3rem, 8vw, 6.5rem)) 0 clamp(3rem, 6vw, 5rem); overflow: clip; }
.ph > .wrap { position: relative; }
.ph .rings { --d: min(120vw, 820px); }
.ph .h1 { font-size: clamp(2.4rem, 6.2vw, 5.25rem); max-width: 13em; }
.ph .lede { margin-top: 1.5rem; color: #d3ccc1; }
.crumbs { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.75rem; font: 500 .75rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--on-ink-muted); }
.crumbs a { text-decoration: none; } .crumbs a:hover { color: var(--bone); }
.crumbs li + li::before { content: "/"; margin-right: .6rem; color: var(--red); }
.prose { max-width: 42rem; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 500; letter-spacing: -.03em; line-height: 1.15; margin-top: 2.2em; text-wrap: balance; }
.prose h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -.015em; margin-top: 1.8em; }
.prose a { color: var(--red-text); text-underline-offset: .2em; }
.prose ul, .prose ol { padding-left: 1.2rem; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--red-text); }
.prose blockquote { margin: 2em 0; padding-left: 1.5rem; border-left: 2px solid var(--red); font-family: var(--serif); font-size: 1.55rem; line-height: 1.25; }
.prose img { width: 100%; border-radius: 2px; }
.prose table { width: 100%; border-collapse: collapse; font-size: .9375rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: .7rem .9rem .7rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.facts { border-top: 1px solid var(--text); }
.facts dd { overflow-wrap: anywhere; min-width: 0; }
.facts div { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.facts dt { font: 500 .75rem/2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.facts a { text-decoration-color: var(--line); text-underline-offset: .2em; }
.facts a:hover { color: var(--red-text); }
.clients-list { border-top: 1px solid var(--line-ink); }
.clients-list li { display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 1.25rem; padding: .9rem 0; border-bottom: 1px solid var(--line-ink); }
.clients-list img { width: 64px; aspect-ratio: 1; object-fit: contain; }
.clients-list b { font-weight: 500; font-size: 1.15rem; letter-spacing: -.02em; }
@media (min-width: 800px) { .clients-list { columns: 2; column-gap: 4rem; } .clients-list li { break-inside: avoid; } }
.e404 { min-height: 100svh; display: grid; align-items: center; }

/* 12 — Journal ------------------------------------------------------------ */
.posts { border-top: 1px solid var(--text); }
.posts li { border-bottom: 1px solid var(--line); }
.posts a { display: grid; gap: .5rem 2rem; padding: 1.5rem 0; text-decoration: none; align-items: center; }
.posts img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter .5s var(--ease); background: var(--paper-2); }
.posts a:hover img { filter: none; }
.posts .label b { color: var(--red-text); font-weight: 500; margin-right: 1em; }
.posts h3 { font-weight: 500; font-size: clamp(1.3rem, 2.4vw, 1.9rem); letter-spacing: -.03em; line-height: 1.15; text-wrap: balance; transition: color .25s var(--ease); }
.posts a:hover h3 { color: var(--red-text); }
.posts p { color: var(--muted); font-size: .9375rem; max-width: 40em; }
@media (min-width: 760px) {
  .posts a { grid-template-columns: 200px 1fr; }
  .posts .posts__txt { display: grid; gap: .5rem; }
  .posts--compact a { grid-template-columns: 9rem 1fr auto; }
}
.post-hero img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.post { display: grid; gap: 3rem; }
.post__aside { font-size: .9375rem; }
@media (min-width: 1000px) { .post { grid-template-columns: 1fr minmax(0, 42rem) 1fr; } .post .prose { grid-column: 2; } .post__aside { grid-column: 3; padding-left: 2rem; } }
.readbar { position: fixed; left: 0; top: 0; z-index: 60; width: 100%; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; display: none; }

/* 13 — Brief form --------------------------------------------------------- */
.brief { position: relative; }
.brief__prog { display: flex; align-items: center; gap: 1rem; margin-bottom: 2.5rem; }
.brief__bar { flex: 1; height: 1px; background: var(--line); position: relative; }
.brief__bar i { position: absolute; inset: -0.5px 0; background: var(--red-text); height: 2px; transform-origin: left; transform: scaleX(.333); transition: transform .6s var(--ease); }
html:not(.js) .brief__prog, html:not(.js) .brief__nav [data-next], html:not(.js) .brief__nav [data-prev] { display: none; }
.brief fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.brief fieldset + fieldset { margin-top: 3rem; }
.js .brief fieldset.step { margin-top: 0; }
.js .brief fieldset.step:not(.is-on) { display: none; }
.js .brief fieldset.step.is-on { animation: stepin .5s var(--ease) both; }
@keyframes stepin { from { opacity: 0; transform: translateY(12px); } }
.brief legend { padding: 0; font-weight: 500; font-size: clamp(1.6rem, 3vw, 2.4rem); letter-spacing: -.035em; line-height: 1.1; margin-bottom: .6rem; }
.brief .hint { color: var(--muted); margin-bottom: 1.75rem; }
.picks { display: flex; flex-wrap: wrap; gap: .6rem; }
.picks label { position: relative; cursor: pointer; }
.picks input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.picks span {
  display: inline-flex; align-items: center; gap: .6rem; padding: .85rem 1.15rem; border: 1px solid var(--line); border-radius: 999px; font-weight: 500;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.picks span::before { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid currentColor; opacity: .5; transition: background-color .25s, opacity .25s; }
.picks label:hover span { border-color: var(--text); }
.picks input:checked + span { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.picks input:checked + span::before { background: var(--red); border-color: var(--red); opacity: 1; }
.picks input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 3px; }
.fields { display: grid; gap: 1.5rem; }
@media (min-width: 700px) { .fields--2 { grid-template-columns: 1fr 1fr; } }
.field label, .field .field__label { display: block; font: 500 .75rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: .35rem; }
.field input, .field textarea {
  width: 100%; padding: .7rem 0; background: transparent; border: 0; border-bottom: 1px solid var(--text); border-radius: 0;
  font-size: 1.15rem; transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.field textarea { min-height: 7rem; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--red-text); box-shadow: 0 1px 0 var(--red-text); }
.field input::placeholder, .field textarea::placeholder { color: #8d857b; }
.field [aria-invalid="true"] { border-color: var(--red-text); }
.err { display: block; min-height: 1.3em; margin-top: .35rem; font-size: .875rem; color: var(--red-text); }
.brief__nav { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 2.5rem; }
.brief__back { background: none; border: 0; padding: .5rem 0; font-weight: 500; text-decoration: underline; text-underline-offset: .25em; }
.brief__status { margin-top: 1.5rem; padding: 1rem 1.25rem; border: 1px solid var(--red-text); color: var(--red-text); }
.brief__done { padding: clamp(1.75rem, 4vw, 3rem); border: 1px solid var(--text); }
.brief__done > .ico { width: 2rem; height: 2rem; color: var(--red-text); margin-bottom: 1rem; }
.hp { position: absolute; left: -9999px; }

/* 14 — Footer ------------------------------------------------------------- */
.ft { position: relative; background: var(--ink); color: var(--bone); padding: clamp(3rem, 6vw, 5rem) 0 2rem; border-top: 1px solid var(--line-ink); overflow: clip; }
.ft__top { display: grid; gap: 2.5rem; }
.ft__brand img { width: 72px; height: 72px; margin-bottom: 1rem; }
.ft__brand p { color: var(--on-ink-muted); max-width: 26em; font-size: .9375rem; }
.ft h2 { font: 500 .75rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--on-ink-muted); margin-bottom: 1rem; }
.ft ul { display: grid; gap: .55rem; list-style: none; padding: 0; }
.ft a { text-decoration: none; }
.ft li a { background: linear-gradient(var(--red), var(--red)) 0 100% / 0 1px no-repeat; padding-bottom: .15em; transition: background-size .4s var(--ease); }
.ft li a:hover { background-size: 100% 1px; }
.ft__word { margin-top: clamp(3rem, 7vw, 6rem); font-size: clamp(3rem, 22vw, 20.5rem); font-weight: 500; letter-spacing: -.06em; line-height: .8; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(243, 238, 230, .28); user-select: none; }
.ft__bot { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line-ink); display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: space-between; font-size: .8125rem; color: var(--on-ink-muted); }
.ft__bot nav { display: flex; gap: 1.5rem; }
.ft__bot a:hover { color: var(--bone); }
@media (min-width: 900px) { .ft__top { grid-template-columns: 4fr 2fr 2fr 3fr; } }

/* 15 — Motion ------------------------------------------------------------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .18s ease both; }
::view-transition-new(root) { animation: vt-in .32s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  /* Reveal on entry. Only armed when JS is running, so nothing is ever hidden without it. */
  .js .rv { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .js .rv.in { opacity: 1; transform: none; }
  .js .rv[data-d="1"] { transition-delay: .08s; } .js .rv[data-d="2"] { transition-delay: .16s; } .js .rv[data-d="3"] { transition-delay: .24s; }

  /* Hero: pure CSS, plays once, final state is the static composition */
  .hero .h1 .ln { display: block; overflow: clip; padding-bottom: .08em; margin-bottom: -.08em; }
  .hero .h1 .ln > span { display: block; animation: rise .9s var(--ease) both; }
  .hero .h1 .ln:nth-child(2) > span { animation-delay: .08s; }
  .hero .h1 .ln:nth-child(3) > span { animation-delay: .16s; }
  .hero .lede, .hero .row, .hero__kicker { animation: fade .9s var(--ease) .3s both; }
  .hero__art .path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.5s cubic-bezier(.5, 0, .2, 1) .25s forwards; }
  .hero__art .hit, .hero__art .cross { animation: pop .5s var(--ease) 1.55s both; transform-box: fill-box; transform-origin: center; }
  .hero__art .pulse { fill: none; stroke: var(--red); transform-box: fill-box; transform-origin: center; animation: pulse 1.4s ease-out 1.65s forwards; }
  @keyframes rise { from { transform: translateY(105%); } }
  @keyframes fade { from { opacity: 0; transform: translateY(12px); } }
  @keyframes draw { to { stroke-dashoffset: 0; } }
  @keyframes pop { from { opacity: 0; transform: scale(.2); } }
  @keyframes pulse { from { opacity: .9; transform: scale(.3); } to { opacity: 0; transform: scale(3.2); } }

  /* Scroll-linked work: only where the browser does it natively, off the main thread */
  @supports (animation-timeline: view()) {
    .hero__art { animation: drift linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
    @keyframes drift { to { transform: translateY(9vh) rotate(8deg); } }
    .rings--turn { animation: turn linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
    @keyframes turn { from { rotate: -14deg; } to { rotate: 14deg; } }
    .steps::after { animation: fill linear both; animation-timeline: view(); animation-range: entry 35% cover 70%; }
    @keyframes fill { from { transform: scaleY(0); } to { transform: scaleY(1); } }
    .readbar { display: block; animation: read linear both; animation-timeline: scroll(root); }
    @keyframes read { to { transform: scaleX(1); } }
    .rings--whole { animation: settle linear both; animation-timeline: view(); animation-range: entry 0% cover 55%; }
    @keyframes settle { from { scale: 1.25; rotate: -20deg; opacity: .3; } to { scale: 1; rotate: 0deg; opacity: 1; } }
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  .hero__art .pulse { display: none; }
}
@media (prefers-reduced-motion: no-preference) { .hero__art .pulse { opacity: 0; } }

/* 16 — Print -------------------------------------------------------------- */
@media print {
  .hd, .menu, .rail, .rings, .hero__art, .ft__word { display: none !important; }
  body, .sec--ink, .ph, .hero { background: #fff !important; color: #000 !important; }
}
