/* Stark Bulkowski — site styles */

:root {
  --ink: #07090c;
  --ink-2: #0c0f14;
  --ink-3: #12161d;
  --line: rgba(237, 234, 227, 0.09);
  --line-2: rgba(237, 234, 227, 0.16);
  --bone: #edeae3;
  --bone-2: #c9c6bf;
  --mute: #8b919a;
  --dim: #5b616b;
  --signal: #ff5a1f;
  --signal-soft: rgba(255, 90, 31, 0.14);
  --paper: #efece5;
  --paper-ink: #0b0d10;
  --paper-mute: #5d6168;
  --paper-line: rgba(11, 13, 16, 0.12);

  --sans: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", ui-serif, Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -0.025em; line-height: 1.05; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--signal); color: var(--ink); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.signal { color: var(--signal); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Nav ---------- */

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}
.nav.is-scrolled {
  background: rgba(7, 9, 12, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-color: var(--line);
}
.nav__inner { display: flex; align-items: center; gap: 32px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 26px; height: 26px; }
.brand__name { font-weight: 600; font-size: 14px; letter-spacing: 0.2em; text-transform: uppercase; white-space: nowrap; }
.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a { font-size: 14px; color: var(--bone-2); transition: color 0.2s; }
.nav__links a:hover { color: var(--bone); }
.nav__right { display: flex; align-items: center; gap: 16px; }
.lang { display: flex; border: 1px solid var(--line-2); border-radius: 999px; padding: 3px; }
.lang a { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; padding: 4px 9px; border-radius: 999px; color: var(--mute); }
.lang a[aria-current="true"] { background: var(--bone); color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 500;
  padding: 13px 20px; border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 14px; height: 14px; transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--bone); color: var(--ink); }
.btn--primary:hover { background: #fff; }
.btn--ghost { border-color: var(--line-2); color: var(--bone); }
.btn--ghost:hover { border-color: var(--bone-2); }
.btn--sm { padding: 9px 14px; font-size: 14px; }

@media (max-width: 960px) {
  .nav__links { display: none; }
  .nav__right { margin-left: auto; }
}
@media (max-width: 520px) {
  .nav__cta { display: none; }
  .brand__name { font-size: 12px; letter-spacing: 0.16em; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  padding: 140px 0 72px;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__bg canvas { width: 100%; height: 100%; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 75% 40%, rgba(255, 90, 31, 0.10), transparent 70%),
    linear-gradient(to bottom, transparent 60%, var(--ink));
  pointer-events: none;
}
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--mute); margin-bottom: 28px; }
.eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--signal); }
.hero h1 { font-size: clamp(44px, 6.4vw, 92px); font-weight: 500; letter-spacing: -0.04em; line-height: 0.98; }
.hero h1 .serif { font-size: 1.06em; letter-spacing: -0.02em; }
.hero__lede { margin-top: 28px; max-width: 540px; font-size: clamp(17px, 1.4vw, 19px); color: var(--bone-2); }
.hero__ctas { display: flex; gap: 12px; margin-top: 40px; flex-wrap: wrap; }
.hero__meta { display: flex; gap: 10px 22px; margin-top: 64px; color: var(--dim); flex-wrap: wrap; }
.hero__meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero__meta i { width: 6px; height: 6px; background: var(--signal); border-radius: 50%; display: inline-block; }

@media (max-width: 980px) {
  .hero { padding-top: 120px; min-height: auto; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__meta { margin-top: 40px; }
}

/* ---------- Console (live demo) ---------- */

.console {
  position: relative;
  background: linear-gradient(180deg, rgba(18, 22, 29, 0.92), rgba(10, 13, 17, 0.92));
  border: 1px solid var(--line-2);
  border-radius: 8px;
  box-shadow: 0 40px 120px -40px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
  font-family: var(--mono);
  font-size: 12px;
  overflow: hidden;
}
.console__bar {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
  color: var(--mute); letter-spacing: 0.06em; text-transform: uppercase; font-size: 11px;
}
.console__bar .live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--signal); }
.console__bar .live::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--signal);
  animation: pulse 1.6s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

.console__section { padding: 16px; border-bottom: 1px solid var(--line); }
.console__label { color: var(--dim); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 10px; display: flex; justify-content: space-between; }

.voice { display: flex; gap: 14px; align-items: flex-start; min-height: 74px; }
.wave { display: flex; align-items: center; gap: 2px; height: 28px; flex: none; width: 54px; }
.wave span { width: 3px; background: var(--bone-2); border-radius: 2px; height: 4px; transition: height 0.12s; }
.wave.is-on span { background: var(--signal); }
.voice__text { color: var(--bone); font-size: 13px; line-height: 1.5; font-family: var(--sans); }
.voice__text .caret { display: inline-block; width: 7px; height: 14px; background: var(--signal); vertical-align: -2px; margin-left: 2px; animation: pulse 1s infinite; }
.voice__tr { color: var(--dim); font-size: 11px; margin-top: 6px; font-family: var(--mono); min-height: 15px; }

.ops { min-height: 92px; display: flex; flex-direction: column; gap: 4px; }
.op { display: flex; gap: 10px; opacity: 0; transform: translateY(4px); transition: opacity 0.35s, transform 0.35s var(--ease); white-space: nowrap; overflow: hidden; }
.op.is-in { opacity: 1; transform: none; }
.op b { font-weight: 500; width: 54px; flex: none; }
.op b.set { color: #7ee2a8; }
.op b.del { color: var(--signal); }
.op .k { color: var(--bone); width: 72px; flex: none; }
.op .v { color: var(--mute); overflow: hidden; text-overflow: ellipsis; }

.map { display: grid; grid-template-columns: 28px repeat(8, 1fr); gap: 4px; align-items: center; }
.map .h { color: var(--dim); font-size: 10px; text-align: center; }
.map .r { color: var(--dim); font-size: 10px; }
.cell {
  height: 22px; border: 1px solid var(--line); border-radius: 2px;
  display: flex; gap: 2px; padding: 3px; align-items: flex-end;
  transition: border-color 0.4s, background 0.4s;
}
.cell i { flex: 1; height: 0; background: var(--bone-2); opacity: 0.55; border-radius: 1px; transition: height 0.4s var(--ease), background 0.4s, opacity 0.4s; }
.cell i.on { height: 100%; }
.cell.flash { border-color: var(--signal); background: var(--signal-soft); }
.cell.flash i.on { background: var(--signal); opacity: 1; }

.console__foot { display: flex; gap: 20px; padding: 12px 16px; color: var(--mute); font-size: 11px; flex-wrap: wrap; }
.console__foot b { color: var(--bone); font-weight: 500; }

/* ---------- Sections ---------- */

section { position: relative; }
.section { padding: clamp(96px, 12vw, 160px) 0; }
.section--line { border-top: 1px solid var(--line); }
.sec-head { display: grid; grid-template-columns: 220px 1fr; gap: 40px; margin-bottom: clamp(48px, 6vw, 80px); }
.sec-head .mono { color: var(--mute); padding-top: 14px; }
.sec-head .mono em { color: var(--signal); font-style: normal; margin-right: 10px; }
.sec-head h2 { font-size: clamp(34px, 4.6vw, 64px); max-width: 900px; }
.sec-head p { margin-top: 24px; max-width: 640px; color: var(--bone-2); font-size: 18px; }
@media (max-width: 820px) { .sec-head { grid-template-columns: 1fr; gap: 16px; } .sec-head .mono { padding-top: 0; } }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Proof strip ---------- */

.proof { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--ink-2); }
.proof__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.proof__item { padding: 36px 28px; border-left: 1px solid var(--line); }
.proof__item:first-child { border-left: 0; padding-left: 0; }
.proof__num { font-size: clamp(36px, 4vw, 52px); font-weight: 500; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.proof__num sup { font-size: 0.45em; color: var(--signal); vertical-align: top; margin-left: 2px; }
.proof__lbl { margin-top: 12px; color: var(--mute); font-size: 14px; max-width: 220px; }
@media (max-width: 820px) {
  .proof__grid { grid-template-columns: 1fr 1fr; }
  .proof__item { padding: 28px 16px; }
  .proof__item:nth-child(odd) { border-left: 0; padding-left: 0; }
  .proof__item:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- Capabilities ---------- */

.caps { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
.cap {
  position: relative; padding: 44px 40px 48px 0; border-bottom: 1px solid var(--line);
  display: grid; grid-template-columns: 56px 1fr; gap: 8px 20px;
}
.cap:nth-child(even) { padding-left: 40px; padding-right: 0; border-left: 1px solid var(--line); }
.cap__n { font-family: var(--mono); font-size: 12px; color: var(--dim); padding-top: 8px; }
.cap h3 { font-size: 26px; letter-spacing: -0.02em; }
.cap p { grid-column: 2; color: var(--bone-2); margin-top: 12px; }
.cap ul { grid-column: 2; margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.cap li { font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; color: var(--mute); border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 10px; }
.cap::after {
  content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 0; background: var(--signal);
  transition: width 0.6s var(--ease);
}
.cap:nth-child(even)::after { left: 0; }
.cap:hover::after { width: 100%; }
@media (max-width: 820px) {
  .caps { grid-template-columns: 1fr; }
  .cap, .cap:nth-child(even) { padding: 36px 0; border-left: 0; grid-template-columns: 40px 1fr; }
}

/* ---------- Case studies (light) ---------- */

.paper { background: var(--paper); color: var(--paper-ink); }
.paper .sec-head .mono { color: var(--paper-mute); }
.paper .sec-head p { color: #3a3e45; }
.paper ::selection { background: var(--paper-ink); color: var(--paper); }

.case-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--paper-line); margin-bottom: 48px; overflow-x: auto; scrollbar-width: none; }
.case-tabs::-webkit-scrollbar { display: none; }
@media (min-width: 901px) { .case-tabs { flex-wrap: wrap; overflow: visible; } }
.case-tab {
  appearance: none; background: none; border: 0; cursor: pointer;
  font: inherit; font-size: 15px; color: var(--paper-mute);
  padding: 16px 0; margin-right: 22px; position: relative; white-space: nowrap;
}
.case-tab span { font-family: var(--mono); font-size: 11px; margin-right: 8px; }
.case-tab[aria-selected="true"] { color: var(--paper-ink); }
.case-tab[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--signal); }

.case { display: none; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.case.is-active { display: grid; animation: fadeUp 0.6s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.case__tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--paper-mute); }
.case h3 { font-size: clamp(30px, 3.2vw, 44px); margin-top: 16px; letter-spacing: -0.03em; }
.case__body { margin-top: 20px; color: #3a3e45; font-size: 17px; }
.case__ba { margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--paper-line); }
.case__ba div { padding: 20px 20px 0 0; }
.case__ba div + div { padding-left: 20px; border-left: 1px solid var(--paper-line); }
.case__ba .mono { color: var(--paper-mute); font-size: 11px; }
.case__ba p { margin-top: 8px; font-size: 15px; }
.case__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--paper-line); flex-wrap: wrap; }
.case__stats b { display: block; font-size: clamp(24px, 2.4vw, 32px); white-space: nowrap; font-weight: 500; letter-spacing: -0.03em; line-height: 1; }
.case__stats span { display: block; margin-top: 8px; font-size: 13px; color: var(--paper-mute); max-width: 160px; }

.artifact {
  background: #fff; border: 1px solid var(--paper-line); border-radius: 6px;
  box-shadow: 0 30px 60px -30px rgba(11, 13, 16, 0.25);
  font-family: var(--mono); font-size: 12px; overflow: hidden;
}
.artifact__head { display: flex; flex-wrap: wrap; gap: 4px 16px; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--paper-line); color: var(--paper-mute); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
.artifact__quote { padding: 18px; border-bottom: 1px solid var(--paper-line); font-family: var(--sans); font-size: 14px; color: #3a3e45; background: #faf9f6; }
.artifact__quote .mono { display: block; margin-bottom: 8px; color: var(--paper-mute); font-size: 10.5px; }
.artifact table { width: 100%; border-collapse: collapse; }
.artifact th, .artifact td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--paper-line); white-space: nowrap; }
.artifact th { color: var(--paper-mute); font-weight: 400; font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; }
.artifact td.hl { color: var(--signal); }
.artifact table.long td { white-space: normal; vertical-align: top; }
.artifact table.long td:first-child { white-space: nowrap; }
.artifact__scroll { overflow-x: auto; }
.artifact__foot { display: flex; justify-content: space-between; padding: 12px 18px; color: var(--paper-mute); font-size: 11px; }
.artifact__foot b { color: #1a7a45; font-weight: 500; }

@media (max-width: 900px) {
  .case.is-active { grid-template-columns: 1fr; }
}

/* ---------- Technology / moat ---------- */

.moat__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.moat__lead { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.35; letter-spacing: -0.015em; color: var(--bone); }
.moat__lead em { font-family: var(--serif); font-size: 1.12em; color: var(--signal); }
.moat__points { margin-top: 40px; display: grid; gap: 0; }
.moat__point { padding: 22px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 40px 1fr; gap: 16px; }
.moat__point .mono { color: var(--signal); padding-top: 4px; }
.moat__point h4 { font-size: 18px; letter-spacing: -0.01em; }
.moat__point p { color: var(--mute); margin-top: 6px; font-size: 15px; }

.stack { position: sticky; top: 100px; display: grid; gap: 10px; }
.layer {
  border: 1px solid var(--line-2); border-radius: 6px; padding: 18px 20px;
  background: var(--ink-2);
  position: relative;
}
.layer__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.layer__name { font-weight: 500; font-size: 16px; }
.layer .mono { color: var(--dim); font-size: 10.5px; }
.layer__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.layer__chips span { font-family: var(--mono); font-size: 11px; color: var(--bone-2); background: rgba(237, 234, 227, 0.05); border: 1px solid var(--line); border-radius: 3px; padding: 4px 8px; }
.layer--core { border-color: rgba(255, 90, 31, 0.5); background: linear-gradient(180deg, rgba(255, 90, 31, 0.10), rgba(255, 90, 31, 0.03)); }
.layer--core .layer__name::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--signal); margin-right: 10px; vertical-align: 1px; }
.layer--core .layer__chips span { border-color: rgba(255, 90, 31, 0.25); }
.layer--models { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 10px; }
.model { border: 1px dashed var(--line-2); border-radius: 4px; padding: 14px; }
.model b { display: block; font-weight: 500; font-size: 14px; }
.model span { display: block; margin-top: 6px; color: var(--mute); font-size: 12px; line-height: 1.4; }
.model--own { border-style: solid; border-color: var(--bone-2); }
.joint { height: 18px; display: flex; justify-content: center; }
.joint i { width: 1px; background: linear-gradient(var(--line-2), var(--signal)); position: relative; overflow: hidden; }
.joint i::after { content: ""; position: absolute; left: -1px; width: 3px; height: 6px; background: var(--signal); animation: drip 1.8s infinite linear; }
@keyframes drip { from { top: -6px; } to { top: 18px; } }
@media (prefers-reduced-motion: reduce) { .joint i::after { animation: none; } }

@media (max-width: 960px) {
  .moat__grid { grid-template-columns: 1fr; }
  .stack { position: static; }
}
@media (max-width: 520px) { .layer--models { grid-template-columns: 1fr; } }

/* ---------- Vocative band ---------- */

.vocative { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--ink-2); overflow: hidden; }
.vocative__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.vocative__word { font-size: clamp(56px, 9vw, 132px); font-weight: 500; letter-spacing: -0.05em; line-height: 0.9; }
.vocative__word span { color: var(--signal); }
.vocative__copy p { color: var(--bone-2); font-size: 17px; }
.vocative__copy .mono { color: var(--mute); display: block; margin-bottom: 16px; }
.vocative__feats { margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.vocative__feats li { font-size: 14px; color: var(--bone-2); padding-left: 16px; position: relative; }
.vocative__feats li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 1px; background: var(--signal); }
@media (max-width: 860px) { .vocative__inner { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .vocative__feats { grid-template-columns: 1fr; } }

/* ---------- Process ---------- */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); counter-reset: step; }
.step { padding: 32px 28px 0 0; position: relative; }
.step + .step { padding-left: 28px; border-left: 1px solid var(--line); }
.step::before {
  content: ""; position: absolute; top: -1px; left: 0; height: 1px; width: 0; background: var(--signal);
  transition: width 1.2s var(--ease);
}
.steps.is-in .step::before { width: 100%; }
.steps.is-in .step:nth-child(2)::before { transition-delay: 0.25s; }
.steps.is-in .step:nth-child(3)::before { transition-delay: 0.5s; }
.steps.is-in .step:nth-child(4)::before { transition-delay: 0.75s; }
.step__n { font-family: var(--mono); font-size: 12px; color: var(--signal); }
.step h3 { font-size: 22px; margin-top: 20px; letter-spacing: -0.02em; }
.step__time { font-family: var(--mono); font-size: 11px; color: var(--dim); margin-top: 8px; text-transform: uppercase; letter-spacing: 0.06em; }
.step p { margin-top: 16px; color: var(--mute); font-size: 15px; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .step, .step + .step { padding: 28px 16px 28px 0; border-left: 0; }
  .step:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .step:nth-child(even) { padding-left: 0; border-left: 0; }
}

/* ---------- Sectors ---------- */

.sectors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.sector { background: var(--ink); padding: 28px; min-height: 180px; display: flex; flex-direction: column; transition: background 0.3s; }
.sector:hover { background: var(--ink-2); }
.sector .mono { color: var(--dim); }
.sector h4 { font-size: 20px; padding-top: 36px; letter-spacing: -0.015em; }
.sector p { color: var(--mute); font-size: 14px; margin-top: 8px; }
.sector--live .mono { color: var(--signal); }
@media (max-width: 820px) { .sectors { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .sectors { grid-template-columns: 1fr; } .sector { min-height: 0; } }

/* ---------- Partners ---------- */

.partners { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.partner { background: var(--ink); padding: 40px; display: flex; flex-direction: column; gap: 28px; }
.partner__mono { width: 64px; height: 64px; border: 1px solid var(--line-2); display: grid; place-items: center; font-family: var(--serif); font-size: 34px; font-style: italic; }
.partner h3 { font-size: 30px; letter-spacing: -0.03em; }
.partner .mono { color: var(--mute); margin-top: 8px; display: block; }
@media (max-width: 720px) { .partners { grid-template-columns: 1fr; } .partner { padding: 28px; } }

/* ---------- CTA ---------- */

.cta { padding: clamp(110px, 14vw, 180px) 0; text-align: left; overflow: hidden; position: relative; isolation: isolate; }
.cta::before {
  content: ""; position: absolute; z-index: -1; width: 900px; height: 900px; right: -300px; top: -200px;
  background: radial-gradient(closest-side, rgba(255, 90, 31, 0.16), transparent);
}
.cta h2 { font-size: clamp(44px, 7vw, 108px); letter-spacing: -0.045em; line-height: 0.95; max-width: 1000px; }
.cta p { margin-top: 28px; max-width: 560px; color: var(--bone-2); font-size: 18px; }
.cta__row { display: flex; gap: 12px; margin-top: 44px; flex-wrap: wrap; align-items: center; }
.cta__mail { font-family: var(--mono); font-size: 14px; color: var(--bone-2); margin-left: 12px; border-bottom: 1px solid var(--line-2); padding-bottom: 2px; }
.cta__mail:hover { color: var(--bone); border-color: var(--signal); }

/* ---------- Footer ---------- */

.footer { border-top: 1px solid var(--line); padding: 40px 0 48px; color: var(--dim); font-size: 13px; overflow: hidden; }
.footer__inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.footer__links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer a:hover { color: var(--bone); }
.footer__giant {
  font-weight: 600; font-size: clamp(32px, 10.6vw, 140px); letter-spacing: -0.05em; line-height: 0.85;
  color: transparent; -webkit-text-stroke: 1px var(--line-2);
  margin-top: 56px; white-space: nowrap; user-select: none;
}
@media (max-width: 520px) { .case__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Case stages (per-case animated visuals) ---------- */

.stage { position: relative; padding: 20px 18px; border-bottom: 1px solid var(--paper-line); font-family: var(--mono); font-size: 11px; color: var(--paper-mute); overflow: hidden; }
.stage b { font-weight: 500; }
#work:not(.play) .stage,
#work:not(.play) .stage *,
#work:not(.play) .stage *::before,
#work:not(.play) .stage *::after { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) {
  .stage *, .stage *::before, .stage *::after { animation: none !important; }
}
@keyframes sgGrowX { from { transform: scaleX(0); } }
@keyframes sgFade { from { opacity: 0; } }
@keyframes sgUp { from { opacity: 0; transform: translateY(8px); } }
@keyframes sgPop { from { opacity: 0; transform: scale(0); } }
@keyframes sgPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 90, 31, 0.45); } 50% { box-shadow: 0 0 0 7px rgba(255, 90, 31, 0); } }

/* C — document scan → register */
.scan { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 18px; align-items: center; }
.page { position: relative; height: 176px; padding: 26px 12px 12px; background: #fff; border: 1px solid var(--paper-line); border-radius: 3px; box-shadow: 0 10px 24px -14px rgba(11, 13, 16, 0.3); overflow: hidden; }
.page__lbl { position: absolute; top: 8px; left: 12px; font-size: 9px; letter-spacing: 0.06em; text-transform: uppercase; }
.page i { display: block; height: 5px; margin-bottom: 7px; border-radius: 2px; background: rgba(11, 13, 16, 0.12); }
.page i.gap { height: 2px; background: none; }
.page i.hit { animation: sgHit 3.2s infinite; animation-delay: calc(var(--p) * 3.2s * 0.8); }
@keyframes sgHit { 0%, 6% { background: rgba(255, 90, 31, 0.75); } 30%, 100% { background: rgba(255, 90, 31, 0.28); } }
.page::after {
  content: ""; position: absolute; left: 0; right: 0; top: -30px; height: 30px;
  background: linear-gradient(transparent, rgba(255, 90, 31, 0.18)); border-bottom: 2px solid #ff5a1f;
  animation: sgScan 3.2s infinite linear;
}
@keyframes sgScan { to { top: 180px; } }
.reg { display: grid; gap: 6px; }
.reg__row {
  display: grid; grid-template-columns: 1fr auto 16px; gap: 8px; align-items: center;
  padding: 8px 10px; background: #fff; border: 1px solid var(--paper-line); border-radius: 3px;
  animation: sgUp 0.5s var(--ease) both; animation-delay: calc(var(--i) * 0.45s + 0.5s);
}
.reg__row span { color: var(--paper-ink); font-family: var(--sans); font-size: 12.5px; }
.reg__row b { font-size: 10.5px; color: var(--paper-mute); white-space: nowrap; }
.reg__row em { font-style: normal; color: #1a7a45; }
@media (max-width: 520px) { .scan { grid-template-columns: 1fr; } .page { height: 120px; } }


/* D — real-estate listing */
.re { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 16px; align-items: start; }
.re__photos { display: grid; gap: 8px; }
.ph { position: relative; aspect-ratio: 16 / 9; border-radius: 3px; overflow: hidden; animation: sgUp 0.5s var(--ease) both; animation-delay: calc(var(--i) * 0.25s + 0.1s); }
.ph--1 { background: linear-gradient(160deg, #e9dfcf 0%, #d6c3a5 55%, #a98d6a 100%); }
.ph--2 { background: linear-gradient(160deg, #eef0ef 0%, #cfd6d6 55%, #8e9b9d 100%); }
.ph--3 { background: linear-gradient(180deg, #bcd8ee 0%, #dcebf5 55%, #b9a990 56%, #9b8a70 100%); }
.ph i { position: absolute; inset: 14% 54% 30% 12%; background: rgba(255, 255, 255, 0.55); border: 2px solid rgba(255, 255, 255, 0.8); }
.ph--2 i { inset: 52% 10% 18% 10%; background: rgba(60, 66, 70, 0.35); border: 0; }
.ph--3 i { inset: 48% 8% 34% 8%; background: none; border: 0; border-top: 2px solid rgba(60, 60, 60, 0.45); }
.ph span {
  position: absolute; left: 6px; bottom: 6px; font-size: 9.5px; color: #fff; background: rgba(11, 13, 16, 0.72);
  padding: 2px 6px; border-radius: 2px; animation: sgPop 0.35s var(--ease) both; animation-delay: calc(var(--i) * 0.45s + 0.8s);
}
.li { border: 1px solid var(--paper-line); border-radius: 4px; padding: 14px; background: #fff; }
.li__title { display: block; font-family: var(--sans); font-size: 15px; color: var(--paper-ink); line-height: 1.3; animation: sgFade 0.5s both 0.4s; }
.li__price { display: flex; align-items: baseline; gap: 10px; margin-top: 8px; flex-wrap: wrap; animation: sgUp 0.5s both 0.7s; }
.li__price b { font-family: var(--sans); font-size: 20px; color: var(--paper-ink); letter-spacing: -0.02em; }
.li__price span { color: #ff5a1f; animation: sgPop 0.4s var(--ease) both 1.4s; }
.li__fields { display: grid; gap: 5px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--paper-line); }
.li__f { display: flex; justify-content: space-between; gap: 10px; animation: sgUp 0.4s both; animation-delay: calc(var(--i) * 0.18s + 1.6s); }
.li__f b { color: var(--paper-ink); text-align: right; }
.li__desc { margin-top: 12px; display: grid; gap: 6px; }
.li__desc i { display: block; height: 5px; width: var(--w); border-radius: 2px; background: rgba(11, 13, 16, 0.12); transform-origin: left; animation: sgGrowX 0.6s var(--ease) both; }
.li__desc i:nth-child(1) { animation-delay: 2.6s; }
.li__desc i:nth-child(2) { animation-delay: 2.8s; }
.li__desc i:nth-child(3) { animation-delay: 3.0s; }
.li__desc i:nth-child(4) { animation-delay: 3.2s; }
@media (max-width: 520px) { .re { grid-template-columns: 1fr; } .re__photos { grid-template-columns: repeat(3, 1fr); } .ph span { font-size: 8px; left: 3px; right: 3px; bottom: 3px; } }
