@font-face {
  font-family: 'Space Grotesk';
  src: url(assets/fonts/space-grotesk-var.woff2) format('woff2');
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url(assets/fonts/inter-var.woff2) format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url(assets/fonts/instrument-serif-italic.woff2) format('woff2');
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

:root {
  --display: 'Space Grotesk', system-ui, sans-serif;
  --text: 'Inter', system-ui, sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;

  --accent: #ff7a0f;
  --accent-ink: #ff7a0f;
  --on-accent: #0a0a0b;

  --bg: #0a0a0b;
  --bg-alt: #101013;
  --surface: #141417;
  --line: #23232a;
  --line-2: #35353e;
  --fg: #f4f4f6;
  --fg-2: #a9a9b2;
  --fg-3: #85858f;

  --shell: 1240px;
  --pad: clamp(20px, 5vw, 56px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --r: 5px;
  color-scheme: dark;
}

[data-theme='light'] {
  --accent: #e2620a;
  --accent-ink: #b8430a;
  --bg: #f7f6f3;
  --bg-alt: #efede7;
  --surface: #fff;
  --line: #e2dfd7;
  --line-2: #cbc7bd;
  --fg: #14151a;
  --fg-2: #4c4e57;
  --fg-3: #6a6c75;
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  scrollbar-color: var(--line-2) transparent;
  scrollbar-width: thin;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--text);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  caret-color: var(--accent);
  accent-color: var(--accent);
  transition: background .35s var(--ease), color .35s var(--ease);
}

body::-webkit-scrollbar { width: 10px; }
html::-webkit-scrollbar { width: 10px; height: 10px; }
html::-webkit-scrollbar-thumb { background: var(--line-2); border: 3px solid var(--bg); border-radius: 99px; }
html::-webkit-scrollbar-thumb:hover { background: var(--fg-3); }

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

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -.032em;
  line-height: 1.04;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; color: var(--fg-2); text-wrap: pretty; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 12px 18px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { left: 12px; top: 12px; }

/* ── brand ─────────────────────────────────────────────────────────────── */
/* One artwork, two themes: the light mark is the graphite knockout, the dark
   mark the silver one. Both ship; CSS picks, so there is no flash and no JS. */
.mark { display: block; }
.mark img { width: 100%; height: auto; }
.mark-on-dark,
.mark-on-light,
.plate-mark { display: block; }
.mark-on-light,
.plate-mark.mark-on-light { display: none; }
[data-theme='light'] .mark-on-dark,
[data-theme='light'] .plate-mark.mark-on-dark { display: none; }
[data-theme='light'] .mark-on-light,
[data-theme='light'] .plate-mark.mark-on-light { display: block; }

.wordmark {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.06rem;
  letter-spacing: -.028em;
  line-height: 1;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand .mark { width: 30px; }
.brand .wordmark { padding-left: 12px; border-left: 1px solid var(--line-2); }

/* ── header ────────────────────────────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.header.is-stuck { border-bottom-color: var(--line); background: color-mix(in srgb, var(--bg) 92%, transparent); }

.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  height: 76px;
  transition: height .3s var(--ease);
}
.header.is-stuck .header-inner { height: 62px; }

.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a {
  position: relative;
  padding: 8px 13px;
  border-radius: var(--r);
  font-size: .92rem;
  font-weight: 500;
  color: var(--fg-2);
  text-decoration: none;
  transition: color .2s, background .2s;
}
.nav a:hover { color: var(--fg); background: var(--surface); }
.nav a[aria-current] { color: var(--fg); }
.nav a[aria-current]::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 50%;
  width: 4px;
  height: 4px;
  margin-top: -2px;
  background: var(--accent);
}

.controls { display: flex; align-items: center; gap: 10px; }
.nav-segs { display: none; }

.seg {
  display: flex;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 99px;
}
.seg button {
  padding: 5px 11px;
  border: 0;
  border-radius: 99px;
  background: transparent;
  color: var(--fg-3);
  font: inherit;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .2s, background .2s;
}
.seg button:hover { color: var(--fg); }
.seg button[aria-pressed='true'] { background: var(--fg); color: var(--bg); }
.seg--lang button { padding-inline: 9px; }

.menu-btn {
  display: none;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: transparent;
  color: var(--fg);
  font: inherit;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  cursor: pointer;
}
.menu-btn:hover { border-color: var(--line-2); }

/* ── hero ──────────────────────────────────────────────────────────────── */
.hero { padding-top: clamp(56px, 8vw, 116px); }

.hero-grid {
  display: grid;
  gap: clamp(40px, 5vw, 78px);
  padding-bottom: clamp(56px, 8vw, 104px);
}

.hero-title { font-size: clamp(2.3rem, 5.4vw, 4.8rem); }
.hero-title .line { display: block; }
.hero-title .em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.01em;
  font-size: 1.06em;
  padding-bottom: .06em;
}

.hero-lower {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: end;
  gap: clamp(36px, 6vw, 96px);
}
.hero-sub { max-width: 44ch; font-size: 1.08rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.btn {
  display: inline-flex;
  align-items: center;
  padding: 15px 28px;
  border-radius: 99px;
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform .25s var(--ease), background .25s, border-color .25s, color .25s, box-shadow .25s var(--ease);
}
.btn-solid { background: var(--accent); color: var(--on-accent); }
.btn-solid:hover { background: color-mix(in srgb, var(--accent) 86%, #fff); transform: translateY(-2px); box-shadow: 0 12px 28px -14px color-mix(in srgb, var(--accent) 75%, transparent); }
.btn-line { border: 1px solid var(--line-2); color: var(--fg); }
.btn-line:hover { border-color: var(--accent); color: var(--accent-ink); transform: translateY(-2px); }

.plate {
  position: relative;
  margin: 0;
  padding: clamp(30px, 3.4vw, 52px) clamp(24px, 3vw, 44px) clamp(26px, 3vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  text-align: center;
  overflow: hidden;
}
/* forge heat behind the mark — the one place the accent gets to glow */
.plate::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 34%;
  width: 78%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 26%, transparent), transparent 66%);
  pointer-events: none;
}
.plate-mark { position: relative; width: clamp(148px, 15vw, 212px); height: auto; }
.plate figcaption {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: clamp(22px, 2.4vw, 34px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.plate-name { font-family: var(--display); font-size: 1.22rem; font-weight: 500; letter-spacing: -.03em; }
.plate-tag { color: var(--fg-3); font-size: .88rem; }

.strip { border-block: 1px solid var(--line); }
.strip-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px clamp(20px, 4vw, 48px);
  padding-block: 20px;
}
.strip span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fg-3);
  font-size: .8rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.strip span::before {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--accent);
}

/* ── sections ──────────────────────────────────────────────────────────── */
.section { padding-block: clamp(72px, 9vw, 136px); }
.section + .section { border-top: 1px solid var(--line); }

.section-title { font-size: clamp(1.95rem, 4.4vw, 3.4rem); max-width: 20ch; }

.split {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(32px, 6vw, 104px);
}
.split > .section-title { position: sticky; top: 118px; align-self: start; }
.lead { max-width: 52ch; font-size: clamp(1.12rem, 1.5vw, 1.42rem); line-height: 1.45; }

.defs { margin: clamp(40px, 5vw, 64px) 0 0; }
.def {
  display: grid;
  grid-template-columns: minmax(140px, .6fr) minmax(0, 1fr);
  gap: 12px clamp(20px, 3vw, 44px);
  padding-block: 22px;
  border-top: 1px solid var(--line);
}
.defs .def:last-child { border-bottom: 1px solid var(--line); }
.def dt { font-family: var(--display); font-size: 1.08rem; font-weight: 500; letter-spacing: -.02em; }
.def dd { margin: 0; color: var(--fg-2); max-width: 46ch; }

/* service index — big editorial rows, no cards */
.rows { list-style: none; margin: clamp(40px, 5vw, 72px) 0 0; padding: 0; border-bottom: 1px solid var(--line); }
.row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .88fr);
  gap: 12px clamp(32px, 5vw, 80px);
  padding-block: clamp(30px, 3.6vw, 54px);
  border-top: 1px solid var(--line);
}
.row::after {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width .6s var(--ease);
}
.row:hover::after { width: 100%; }
.row h3 { font-size: clamp(1.55rem, 3.1vw, 2.5rem); max-width: 16ch; }
.row p { max-width: 48ch; font-size: 1.04rem; }

/* process rail — the numbers are the point, so they stay */
.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 48px);
  list-style: none;
  margin: clamp(40px, 5vw, 72px) 0 0;
  padding: 0;
}
.step { position: relative; padding-top: 26px; border-top: 1px solid var(--line); counter-increment: step; }
.step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 18px;
  color: var(--accent-ink);
  font-family: var(--display);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .12em;
  font-variant-numeric: tabular-nums;
}
.step h3 { font-size: 1.22rem; margin-bottom: 10px; }
.step p { font-size: .98rem; max-width: 34ch; }

/* cases — hairlines drawn with a 1px grid gap, lead case runs full width */
.cases {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(40px, 5vw, 72px);
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.case { grid-column: span 2; padding: clamp(24px, 2.6vw, 40px); background: var(--bg); }
.case--lead {
  grid-column: span 6;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: 16px clamp(24px, 4vw, 72px);
  align-items: start;
}
.case h3 { font-size: 1.32rem; margin-bottom: 12px; transition: color .2s; }
.case--lead h3 { font-size: clamp(1.9rem, 3.4vw, 3rem); }
.case:hover h3 { color: var(--accent-ink); }
.case p { font-size: 1rem; max-width: 52ch; }
.case--lead .chip { grid-column: 1; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  padding: 5px 12px;
  border: 1px solid var(--line-2);
  border-radius: 99px;
  color: var(--fg-3);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  white-space: nowrap;
}
.chip::before { content: ''; width: 4px; height: 4px; background: var(--accent); }

/* ── call to action — the page's one loud band ─────────────────────────── */
.cta {
  background: var(--accent);
  color: var(--on-accent);
  scroll-margin-top: 0;
}
.cta-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  padding-block: clamp(64px, 9vw, 132px);
}
.cta-mark { width: clamp(60px, 7vw, 96px); height: auto; }
.cta h2 { font-size: clamp(1.85rem, 4.6vw, 3.4rem); max-width: 22ch; }.cta p { margin-top: 16px; color: color-mix(in srgb, var(--on-accent) 72%, transparent); max-width: 48ch; }
.cta-mail {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  font-family: var(--display);
  font-size: clamp(1.05rem, 2vw, 1.42rem);
  font-weight: 500;
  letter-spacing: -.02em;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 7px;
  transition: text-decoration-thickness .2s;
}
.cta-mail svg {
  width: .78em;
  height: .78em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .3s var(--ease);
}
.cta-mail:hover { text-decoration-thickness: 2px; }
.cta-mail:hover svg { transform: translate(3px, -3px); }

/* ── footer ────────────────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--line); overflow: hidden; }
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  padding-block: clamp(40px, 5vw, 64px);
}
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-brand .mark { width: 40px; }
.footer-brand .wordmark { display: block; font-size: 1.14rem; }
.footer-tag { display: block; margin-top: 4px; color: var(--fg-3); font-size: .92rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.footer-nav a { color: var(--fg-2); font-size: .94rem; text-decoration: none; }
.footer-nav a:hover { color: var(--accent-ink); }
.footer-legal {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-block: 20px;
  border-top: 1px solid var(--line);
  color: var(--fg-3);
  font-size: .84rem;
  font-variant-numeric: tabular-nums;
}
.footer-word {
  margin-bottom: -.2em;
  font-family: var(--display);
  font-size: clamp(3.4rem, 20vw, 18rem);
  font-weight: 500;
  line-height: .8;
  letter-spacing: -.05em;
  text-align: center;
  white-space: nowrap;
  color: color-mix(in srgb, var(--fg) 7%, transparent);
  user-select: none;
}
@supports (-webkit-text-stroke: 1px #000) {
  .footer-word { color: transparent; -webkit-text-stroke: 1px var(--line-2); }
}

/* ── motion ────────────────────────────────────────────────────────────── */
.js .hero-title .line { clip-path: inset(0 0 106% 0); animation: rise .95s var(--ease) forwards; }
.js .hero-title .line + .line { animation-delay: .13s; }
.js .hero-sub, .js .hero-cta { opacity: 0; animation: fade .8s var(--ease) .38s forwards; }
.js .hero-cta { animation-delay: .5s; }
.js .plate { opacity: 0; animation: plate-in 1.2s var(--ease) .22s forwards; }
.js .strip-inner { opacity: 0; animation: fade .8s var(--ease) .62s forwards; }
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }

@keyframes rise { to { clip-path: inset(-22% 0 -12% 0); } }
@keyframes fade { to { opacity: 1; } }
@keyframes plate-in {
  from { opacity: 0; transform: translateY(16px) scale(.985); filter: blur(7px); }
  to { opacity: 1; transform: none; filter: none; }
}

/* ── responsive ────────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .hero-lower { grid-template-columns: 1fr; }
  .plate { max-width: 460px; }
  .split { grid-template-columns: 1fr; }
  .split > .section-title { position: static; max-width: 26ch; }
  .row { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case--lead { grid-column: span 6; grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: grid;
    gap: 0;
    margin: 0;
    padding: 8px var(--pad) 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    clip-path: inset(0 0 100% 0);
    opacity: 0;
    pointer-events: none;
    transition: clip-path .45s var(--ease), opacity .3s var(--ease);
  }
  .nav.is-open { clip-path: inset(0 0 0 0); opacity: 1; pointer-events: auto; }
  .nav a { padding: 15px 0; border-top: 1px solid var(--line); border-radius: 0; font-size: 1.05rem; }
  .nav a[aria-current]::before { left: 0; top: 50%; margin-left: -14px; }
  .nav .nav-segs { border-top: 1px solid var(--line); }
  .menu-btn { display: block; }
  .header-inner { position: relative; }
  .case { grid-column: span 3; }
  .def { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  /* no room for three controls at 360px: the panel carries theme + language */
  .controls .seg { display: none; }
  .nav-segs { display: flex; gap: 10px; padding-top: 18px; }
  .strip-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
  .steps { grid-template-columns: 1fr; }
  .case, .case--lead { grid-column: span 6; }
  .cta-inner { grid-template-columns: 1fr; }
  .footer-legal { flex-direction: column; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, ::before, ::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .hero-title .line { clip-path: none; }
}
