/* Direction A: Exploded View. Graphite drawing sheet, signal orange, condensed grotesk + mono. */
:root {
  --bg: #0c0d0f;
  --bg-2: #121418;
  --fg: #ece9e2;
  --muted: #9a9ca1;
  --line: rgba(236, 233, 226, 0.12);
  --line-soft: rgba(236, 233, 226, 0.05);
  --accent: #ff5b1f;
  --font-display: 'Archivo', 'Arial Narrow', sans-serif;
  --font-body: 'Archivo', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --pad: clamp(16px, 4vw, 40px);
}

body { font-stretch: 100%; }

.nav { mix-blend-mode: difference; color: #fff; }
.nav__cta { border: 1px solid currentColor; }
.nav__cta:hover { background: #fff; color: #000; }

/* ---------- Hero ---------- */
.hero { position: relative; height: 320vh; }
.hero__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }

.hero__grid {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 45%, transparent 30%, var(--bg) 80%),
    linear-gradient(var(--line-soft) 1px, transparent 1px) 0 0 / 16px 16px,
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px) 0 0 / 16px 16px,
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 128px 128px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 128px 128px;
}

.hero__title {
  position: absolute; left: var(--pad); right: var(--pad); bottom: clamp(56px, 9vh, 96px);
  display: flex; justify-content: space-between; flex-wrap: wrap;
  font-family: var(--font-display); font-weight: 800; font-stretch: 62%;
  font-size: clamp(76px, 17.5vw, 300px); line-height: 0.8; letter-spacing: -0.02em;
  text-transform: uppercase; color: var(--fg);
  pointer-events: none;
}

.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s ease; }
.hero__canvas.is-ready { opacity: 1; }
.hero__fallback { display: none; position: absolute; left: 50%; top: 42%; width: min(60vw, 420px); transform: translate(-50%, -50%); opacity: .8; }
.no-3d .hero__fallback { display: block; }
.no-3d .hero__canvas { display: none; }

.hero__leaders { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.hero__leaders polyline { fill: none; stroke: var(--accent); stroke-width: 1; opacity: 0; }

.callout {
  position: absolute; left: 0; top: 0; z-index: 3;
  display: flex; flex-direction: column; gap: 4px;
  min-width: 190px; padding: 10px 12px;
  background: rgba(12, 13, 15, 0.82); border: 1px solid var(--line); border-top: 2px solid var(--accent);
  opacity: 0; will-change: transform, opacity;
}
.callout strong { font-weight: 600; font-size: 15px; line-height: 1.2; }
.callout__no, .callout__meta { font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.callout__no { color: var(--accent); }

.corner { position: absolute; display: flex; flex-direction: column; gap: 4px; color: var(--muted); z-index: 2; }
.corner--tl { left: var(--pad); top: 84px; }
.corner--tr { right: var(--pad); top: 84px; text-align: right; }
.corner--br { right: var(--pad); bottom: 22px; text-align: right; }
.corner b { color: var(--accent); font-weight: 500; }
.hero__lede { position: absolute; left: var(--pad); bottom: 18px; max-width: 360px; font-size: 14px; line-height: 1.45; color: var(--muted); z-index: 2; }
.hero__hint { position: absolute; left: 50%; top: 84px; transform: translateX(-50%); color: var(--fg); opacity: .8; display: flex; align-items: center; gap: 10px; }
.hero__hint::after { content: ''; width: 1px; height: 18px; background: var(--accent); animation: hint 1.6s ease-in-out infinite; }
@keyframes hint { 0%, 100% { transform: scaleY(.3); transform-origin: top; } 50% { transform: scaleY(1); } }

@media (max-width: 760px) {
  .hero { height: 260vh; }
  .hero__title { bottom: 120px; flex-direction: column; }
  .hero__lede { right: var(--pad); max-width: none; bottom: 64px; }
  .corner--tr, .hero__hint { display: none; }
  .corner--br { bottom: 22px; left: var(--pad); right: auto; text-align: left; flex-direction: row; gap: 14px; }
  .callout { min-width: 0; max-width: 170px; }
  .callout strong { font-size: 13px; }
}
.reduced .hero, .no-3d .hero { height: 100vh; height: 100svh; }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(96px, 14vw, 180px) var(--pad); border-top: 1px solid var(--line); }
.section__index { color: var(--accent); margin-bottom: 28px; }
.h2 { font-family: var(--font-display); font-weight: 700; font-stretch: 75%; font-size: clamp(40px, 6.4vw, 96px); line-height: .92; letter-spacing: -0.015em; text-transform: uppercase; max-width: 14ch; }

.profile { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 40px; }
.profile .section__index { grid-column: 1 / -1; margin: 0; }
.profile__text { grid-column: 1 / 8; display: flex; flex-direction: column; gap: 32px; }
.profile__text p { max-width: 56ch; font-size: clamp(17px, 1.4vw, 20px); color: var(--muted); }
.spec { grid-column: 9 / -1; align-self: end; border-top: 1px solid var(--line); }
.spec > div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.spec dt { color: var(--muted); padding-top: 3px; }
@media (max-width: 960px) { .profile__text, .spec { grid-column: 1 / -1; } }

.work .h2 { margin-bottom: 48px; }
.bom { border-top: 1px solid var(--fg); }
.bom__head, .bom__row { display: grid; grid-template-columns: 64px minmax(0, 1.2fr) minmax(0, 2fr) minmax(0, 1fr) 120px; gap: 24px; align-items: baseline; }
.bom__head { padding: 12px 0; color: var(--muted); border-bottom: 1px solid var(--line); }
.bom__row { position: relative; padding: 28px 0; border-bottom: 1px solid var(--line); transition: background .3s, padding .3s; }
.bom__row::before { content: ''; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.bom__row:hover::before { transform: scaleX(1); }
.bom__row:hover { background: var(--bg-2); }
.bom__no { color: var(--accent); }
.bom__name { font-family: var(--font-display); font-weight: 700; font-stretch: 75%; font-size: clamp(24px, 2.6vw, 38px); line-height: 1; text-transform: uppercase; }
.bom__row p { color: var(--muted); max-width: 52ch; }
.bom__stack { color: var(--muted); }
.bom__status { display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--muted); }
.dot--live { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255, 91, 31, .18); }
@media (max-width: 960px) {
  .bom__head { display: none; }
  .bom__row { grid-template-columns: 40px 1fr; gap: 8px 16px; }
  .bom__row > :nth-child(n+3) { grid-column: 2; }
}

.caps .h2 { margin-bottom: 56px; }
.caps__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.cap { position: relative; padding: 28px; border: 1px solid var(--line); background: var(--bg-2); min-height: 280px; display: flex; flex-direction: column; gap: 18px; }
.cap__tag { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--accent); color: var(--accent); }
.cap h3 { font-family: var(--font-display); font-weight: 700; font-stretch: 75%; font-size: 32px; text-transform: uppercase; line-height: 1; }
.cap ul { display: flex; flex-direction: column; gap: 10px; color: var(--muted); }
.cap li::before { content: '— '; color: var(--accent); }
@media (max-width: 960px) { .caps__grid { grid-template-columns: 1fr; } .cap { min-height: 0; } }

.contact { padding-bottom: 140px; }
.contact__title { font-family: var(--font-display); font-weight: 800; font-stretch: 62%; font-size: clamp(64px, 13vw, 220px); line-height: .82; text-transform: uppercase; letter-spacing: -0.02em; }
.contact__row { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 40px; margin-top: 56px; }
.btn { display: inline-flex; align-items: center; gap: 18px; min-height: 64px; padding: 0 28px; background: var(--accent); color: #111; text-decoration: none; font-weight: 600; font-size: 18px; }
.btn .todo { color: #111; }
.btn:hover { background: var(--fg); }
.link { text-decoration: none; border-bottom: 1px solid var(--line); padding: 12px 0; }
.link:hover { border-color: var(--accent); }

.titleblock { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--fg); padding-bottom: 72px; }
.titleblock > div { display: flex; flex-direction: column; gap: 6px; padding: 18px var(--pad); border-right: 1px solid var(--line); }
.titleblock > div:last-child { border-right: 0; }
.titleblock span:first-child { color: var(--muted); font-size: 10px; }
@media (max-width: 760px) { .titleblock { grid-template-columns: 1fr 1fr; } .titleblock > div { border-bottom: 1px solid var(--line); } }
@media (max-width: 720px) { .nav { mix-blend-mode: normal; } }
