@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@500;600;800&family=Inter:wght@400;500&display=swap');

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

:root {
  --bg:      #0b0b0c;
  --text:    #f2efe8;
  --muted:   #8d887e;
  --faint:   #57534c;
  --line:    rgba(255,255,255,0.11);
  --line-2:  rgba(255,255,255,0.18);
  --accent:  #e1512b;            /* the single spark — the only "fire" */
  --grotesk: 'Archivo', system-ui, sans-serif;
  --sans:    'Inter', system-ui, sans-serif;
  --kr:      'Pretendard Variable', Pretendard, system-ui, sans-serif;
  --pad:     clamp(24px, 4.5vw, 72px);
  --maxw:    1200px;             /* readable, substantial scale at the browser's default zoom */
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

/* ─── HEADER ─── */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
  padding: 0 var(--pad);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
}
/* once scrolled, a glass bar keeps the brand + nav readable over page content */
header.scrolled {
  background: rgba(11, 11, 12, 0.72);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  border-bottom-color: var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--grotesk);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text);
  text-decoration: none;
}
.brand-mark {
  width: 14px;
  height: 23px;
  flex: none;
  background: var(--accent);
  -webkit-mask: url(/assets/flame.png) center / contain no-repeat;
          mask: url(/assets/flame.png) center / contain no-repeat;
  transition: filter 0.25s ease;
}
.brand:hover .brand-mark { filter: brightness(1.25); }
nav { display: flex; gap: 30px; }
nav a {
  font-size: 16px;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s;
}
nav a:hover { color: var(--text); }

/* ─── HERO (RT3D ember-geode stage) ─── */
.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
}
.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  /* reserve the bottom band for the name; the reel sits (uncropped) above it */
  height: calc(100% - clamp(120px, 15vh, 160px));
  object-fit: contain;
  object-position: center bottom;
  background: var(--bg);
  z-index: 0;
  display: block;
}
/* legibility: darken the top (brand) and bottom (name) over the reel */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to bottom,
    rgba(11,11,12,0.55) 0%,
    rgba(11,11,12,0) 30%,
    rgba(11,11,12,0) 52%,
    rgba(11,11,12,0.92) 100%);
}

.hero-top {
  position: absolute;
  top: 96px;
  left: var(--pad);
  z-index: 2;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-top .spark {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px 1px var(--accent);
  animation: ember 3.4s ease-in-out infinite;
}
@keyframes ember { 0%,100%{opacity:.5;} 50%{opacity:1;} }

.hero-foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(24px, 4vh, 48px);
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
  z-index: 2;
}
.hero-kicker {
  font-family: var(--kr);
  font-weight: 600;
  font-size: clamp(18px, 2.3vw, 30px);
  letter-spacing: 0.04em;
  color: var(--text);
  margin-bottom: 12px;
  text-shadow: 0 1px 20px rgba(0,0,0,0.7);
}
.hero-kicker .accent { color: var(--accent); }
.hero h1 {
  font-family: var(--grotesk);
  font-weight: 800;
  font-size: clamp(48px, 9vw, 144px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--text);
  text-shadow: 0 2px 50px rgba(0,0,0,0.55);
}
.hero h1 .dot { color: var(--accent); }
.hero-role {
  margin-top: 14px;
  font-size: 16px;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-shadow: 0 1px 20px rgba(0,0,0,0.7);
}

/* ─── SECTIONS ─── */
.section {
  padding: clamp(52px, 7vw, 96px) var(--pad);
  max-width: var(--maxw);
  margin: 0 auto;
}
/* detail pages put the label directly in .section (no .section-head wrapper),
   so give it block behavior + breathing room above its body text */
.section > .section-label {
  display: flex;
  width: fit-content;
  margin-bottom: 18px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.section-label {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: rgba(242,239,232,0.82);
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.09);
  -webkit-backdrop-filter: blur(8px) saturate(1.2);
  backdrop-filter: blur(8px) saturate(1.2);
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.07);
}
/* gyro/pointer-driven sheen — a soft highlight that glides across the glass as
   the device tilts (--gx/--gy set by hero3d.js / app.js, -1..1). Kept subtle. */
.section-label::before {
  content: '';
  position: absolute;
  inset: -1px;
  z-index: -1;
  background: linear-gradient(
    115deg,
    rgba(255,255,255,0) calc(34% + var(--gx, 0) * 26% + var(--gy, 0) * 8%),
    rgba(255,255,255,0.18) calc(50% + var(--gx, 0) * 26% + var(--gy, 0) * 8%),
    rgba(255,255,255,0) calc(66% + var(--gx, 0) * 26% + var(--gy, 0) * 8%)
  );
  pointer-events: none;
}
.section-index {
  font-size: 13px;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}

/* ─── REVEAL ─── */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1);
}
.js [data-reveal].in { opacity: 1; transform: none; }

/* ─── WORK LIST ─── */
.work-row {
  display: grid;
  grid-template-columns: 50px minmax(0,1fr) auto 28px;
  align-items: center;
  gap: 28px;
  padding: clamp(30px, 3.5vw, 44px) 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  position: relative;
}
.work-row:last-child { border-bottom: 1px solid var(--line); }
/* stack name over description — spans are inline by default, which let a long
   desc flow onto the same line as the name and orphan its last word */
.work-info { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.work-num {
  font-size: 13px;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
  align-self: start;
  padding-top: 8px;
}
.work-name {
  font-family: var(--grotesk);
  font-weight: 600;
  font-size: clamp(34px, 4.6vw, 60px);
  letter-spacing: -0.02em;
  line-height: 1.02;
  color: var(--text);
  transition: transform 0.35s cubic-bezier(.2,.7,.2,1);
}
.work-title { display: flex; align-items: center; gap: 12px; }
.work-logo {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  flex: none;
  object-fit: cover;
}
.work-desc {
  margin-top: 9px;
  font-size: 17px;
  color: var(--muted);
  max-width: 46ch;
}
.work-tags {
  display: flex;
  gap: 18px;
  justify-self: end;
  text-align: right;
}
.work-tags span {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.work-arrow {
  font-size: 22px;
  color: var(--faint);
  justify-self: end;
  transition: transform 0.35s cubic-bezier(.2,.7,.2,1), color 0.25s;
}
.work-row:hover .work-name { transform: translateX(10px); }
.work-row:hover .work-arrow { transform: translate(4px,-4px); color: var(--accent); }

/* ─── STUDIO FOCUS ─── */
.studio-lead {
  max-width: 22ch;
  font-family: var(--grotesk);
  font-size: clamp(40px, 5.8vw, 72px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.studio-lead span,
.studio-lead em { display: block; }
.studio-lead em { color: var(--accent); font-style: normal; }
.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(36px, 6vw, 72px);
  border-block: 1px solid var(--line);
}
.capability { padding: 32px 28px 36px; }
.capability + .capability { border-left: 1px solid var(--line); }
.capability-index {
  display: block;
  margin-bottom: 42px;
  color: var(--faint);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.capability h3 {
  margin-bottom: 10px;
  font-family: var(--grotesk);
  font-size: 21px;
  font-weight: 600;
}
.capability p { color: var(--muted); font-size: 16px; line-height: 1.65; }

/* ─── PROSE ─── */
.prose {
  max-width: 60ch;
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.7;
  color: var(--text);
}
.prose.dim { color: var(--muted); }
.about-copy { color: var(--muted); font-size: 18px; }

/* ─── ADMIN PLATFORMS ─── */
.ops-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.8fr);
  align-items: end;
  gap: clamp(28px, 6vw, 88px);
  margin-bottom: clamp(32px, 5vw, 56px);
}
.ops-intro h2 {
  max-width: 16ch;
  font-family: var(--grotesk);
  font-size: clamp(42px, 5.4vw, 72px);
  font-weight: 650;
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.ops-intro p {
  max-width: 42ch;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}
.ops-console {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 18px;
  background: #0d0e10;
  box-shadow: 0 28px 80px rgba(0,0,0,0.32);
}
.ops-console-bar {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.018);
}
.ops-window-dots { display: inline-flex; gap: 6px; margin-right: 2px; }
.ops-window-dots i {
  width: 7px;
  height: 7px;
  display: block;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
}
.ops-window-dots i:nth-child(2) { background: rgba(225,81,43,0.72); }
.ops-console-brand {
  font-family: var(--grotesk);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--text);
}
.ops-console-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ops-console-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #62c895;
  box-shadow: 0 0 10px rgba(98,200,149,0.7);
}
.ops-console-body {
  display: grid;
  grid-template-columns: 174px minmax(0, 1fr);
  min-width: 0;
}
.ops-nav {
  display: block;
  min-width: 0;
  padding: 18px 12px;
  border-right: 1px solid var(--line);
  background: rgba(255,255,255,0.012);
}
.ops-nav-title {
  display: block;
  margin: 0 10px 12px;
  color: var(--faint);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.ops-nav-item {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 34px;
  margin: 2px 0;
  padding: 7px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 13px;
  text-align: left;
  white-space: nowrap;
}
.ops-nav button.ops-nav-item { cursor: pointer; }
.ops-nav button.ops-nav-item:hover { color: var(--text); background: rgba(255,255,255,0.035); }
.ops-nav button.ops-nav-item:focus-visible { outline: 2px solid rgba(225,81,43,0.8); outline-offset: 2px; }
.ops-nav-item.active {
  color: var(--text);
  background: rgba(225,81,43,0.1);
  box-shadow: inset 2px 0 0 var(--accent);
}
.ops-main { min-width: 0; padding: clamp(20px, 3.2vw, 38px); }
.ops-console--interactive .ops-main { min-height: 650px; }
.ops-view { animation: ops-view-in 0.22s cubic-bezier(.2,.7,.2,1); }
.ops-view[hidden] { display: none; }
@keyframes ops-view-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: none; }
}
.ops-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.ops-toolbar h3 {
  font-family: var(--grotesk);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 620;
  letter-spacing: -0.025em;
}
.ops-toolbar p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 14px;
}
.ops-sample-label {
  flex: none;
  color: var(--faint);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ops-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.ops-metric { min-width: 0; padding: 20px; }
.ops-metric + .ops-metric { border-left: 1px solid var(--line); }
.ops-metric-value {
  display: block;
  color: var(--text);
  font-family: var(--grotesk);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 650;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.ops-metric-label {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-size: 13px;
}
.ops-metrics--words .ops-metric-value { font-size: clamp(22px, 2.6vw, 30px); }
.ops-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(250px, 0.85fr);
  gap: 14px;
  margin-top: 14px;
}
.ops-panel {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,0.012);
}
.ops-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.ops-panel h4 {
  font-family: var(--grotesk);
  font-size: 16px;
  font-weight: 620;
}
.ops-panel-meta { color: var(--faint); font-size: 11px; }
.ops-event {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 13px 0;
  border-top: 1px solid rgba(255,255,255,0.075);
}
.ops-channel {
  color: var(--accent);
  font-family: 'SF Mono','Cascadia Code',monospace;
  font-size: 11px;
  line-height: 1.55;
  white-space: nowrap;
}
.ops-event-copy { min-width: 0; }
.ops-event-copy strong {
  display: block;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}
.ops-event-copy span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.ops-action-list { list-style: none; }
.ops-action-list li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 9px;
  padding: 11px 0;
  border-top: 1px solid rgba(255,255,255,0.075);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.ops-action-list li::before {
  content: '\2713';
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(98,200,149,0.1);
  color: #75d5a6;
  font-size: 11px;
}
.ops-health-list { border-top: 1px solid rgba(255,255,255,0.075); }
.ops-health-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.075);
  color: var(--muted);
  font-size: 13px;
}
.ops-health-row:last-child { border-bottom: 0; }
.ops-state {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 4px 8px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
}
.ops-state--good {
  border-color: rgba(98,200,149,0.24);
  background: rgba(98,200,149,0.08);
  color: #75d5a6;
}
.ops-panel--table { margin-top: 14px; padding-bottom: 8px; }
.ops-record {
  display: grid;
  grid-template-columns: 1.05fr 1.35fr 0.9fr 0.85fr;
  gap: 16px;
  align-items: center;
  min-height: 54px;
  padding: 12px 0;
  border-top: 1px solid rgba(255,255,255,0.075);
  color: var(--muted);
  font-size: 13px;
}
.ops-record--head {
  min-height: 34px;
  padding-block: 8px;
  color: var(--faint);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ops-record strong { color: var(--text); font-weight: 600; }
.ops-record b { font-weight: 650; }
.ops-view-note {
  display: grid;
  grid-template-columns: minmax(140px, 0.35fr) minmax(0, 1fr);
  gap: 18px;
  margin-top: 14px;
  padding: 17px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(225,81,43,0.035);
}
.ops-view-note strong { color: var(--text); font-size: 13px; }
.ops-view-note span { color: var(--muted); font-size: 13px; line-height: 1.5; }
.ops-search {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--faint);
  font-size: 13px;
}
.ops-search kbd {
  padding: 3px 7px;
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 5px;
  color: var(--muted);
  font-family: inherit;
  font-size: 10px;
}
.ops-control-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.ops-control-cards article {
  display: flex;
  flex-direction: column;
  min-height: 136px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,0.012);
}
.ops-control-cards small {
  color: var(--accent);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ops-control-cards strong { margin-top: 15px; color: var(--text); font-size: 14px; }
.ops-control-cards span { margin-top: 7px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.ops-slack-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(250px, 0.8fr);
  gap: 14px;
}
.ops-route {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 70px;
  padding: 12px 0;
  border-top: 1px solid rgba(255,255,255,0.075);
}
.ops-route > span:nth-child(2) { min-width: 0; }
.ops-route strong { display: block; color: var(--text); font-size: 13px; font-weight: 600; }
.ops-route small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.ops-route > b {
  padding: 4px 7px;
  border-radius: 5px;
  background: rgba(255,255,255,0.045);
  color: var(--faint);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.ops-slack-side { display: flex; flex-direction: column; gap: 14px; }
.ops-slack-message {
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  background: #1a191b;
}
.ops-slack-message-head { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.ops-bot-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-family: var(--grotesk);
  font-size: 15px;
  font-weight: 750;
}
.ops-slack-message-head strong { display: block; color: var(--text); font-size: 13px; }
.ops-slack-message-head small { display: block; margin-top: 2px; color: var(--faint); font-size: 9px; }
.ops-slack-message h4 { margin-bottom: 9px; color: var(--text); font-size: 15px; }
.ops-slack-message p {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 0;
  color: var(--muted);
  font-size: 12px;
}
.ops-slack-message p strong { color: var(--text); font-variant-numeric: tabular-nums; }
.ops-slack-foot { display: block; margin-top: 12px; color: var(--faint); font-size: 9px; }
.ops-delivery-controls { flex: 1; }
.ops-capabilities {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
  border-block: 1px solid var(--line);
}
.ops-capability { padding: 24px 22px 26px; }
.ops-capability + .ops-capability { border-left: 1px solid var(--line); }
.ops-capability small {
  color: var(--accent);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ops-capability h4 {
  margin-top: 13px;
  font-family: var(--grotesk);
  font-size: 18px;
  font-weight: 620;
}
.ops-capability p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.ops-caption {
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 12px;
  line-height: 1.5;
}

/* ─── MEDIA / CTA ─── */
.media-row { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 26px; }
.cta-link {
  font-family: var(--grotesk);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  color: var(--text);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line-2);
  transition: border-color 0.2s, color 0.2s;
}
.cta-link:hover { color: var(--accent); border-color: var(--accent); }

/* ─── FOOTER ─── */
footer {
  border-top: 1px solid var(--line);
  padding: 34px var(--pad);
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
footer span, footer a {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
}
footer a:hover { color: var(--text); }
.footer-links { display: inline-flex; align-items: center; gap: 14px; }
.footer-social { display: inline-flex; }

/* ─── MOBILE ─── */
@media (max-width: 680px) {
  body { font-size: 16px; }
  header { height: 62px; }
  .brand { font-size: 15px; }
  .brand-mark { width: 12px; height: 20px; }
  nav { gap: 22px; }
  nav a { font-size: 14px; }
  .capability-grid { grid-template-columns: 1fr; }
  .capability { padding-inline: 0; }
  .capability + .capability { border-left: 0; border-top: 1px solid var(--line); }
  .capability-index { margin-bottom: 24px; }

  .work-row {
    grid-template-columns: 32px 1fr;
    grid-template-areas: "num name" ". desc" ". tags";
    gap: 4px 14px;
    padding: 26px 0;
  }
  .work-num { grid-area: num; }
  .work-row > .work-info { grid-area: name; }
  .work-desc { grid-area: desc; }
  .work-tags { grid-area: tags; justify-self: start; text-align: left; gap: 14px; margin-top: 14px; flex-wrap: wrap; }
  .work-arrow { display: none; }
  .work-row:hover .work-name { transform: none; }
  .work-name { font-size: clamp(30px, 10vw, 42px); }

  .ops-intro { grid-template-columns: 1fr; gap: 18px; }
  .ops-intro h2 { font-size: clamp(38px, 12vw, 54px); }
  .ops-intro p { font-size: 16px; }
  .ops-console { border-radius: 14px; }
  .ops-console-bar { min-height: 54px; padding: 11px 13px; }
  .ops-console-brand { font-size: 14px; }
  .ops-console-status { padding: 5px 8px; font-size: 9px; }
  .ops-console-body { grid-template-columns: 1fr; }
  .ops-nav {
    display: flex;
    gap: 4px;
    padding: 10px;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    scrollbar-width: none;
  }
  .ops-nav::-webkit-scrollbar { display: none; }
  .ops-nav-title { display: none; }
  .ops-nav-item { width: auto; flex: none; margin: 0; padding: 7px 10px; }
  .ops-nav-item.active { box-shadow: inset 0 -2px 0 var(--accent); }
  .ops-main { padding: 18px 14px; }
  .ops-console--interactive .ops-main { min-height: 0; }
  .ops-toolbar { flex-direction: column; align-items: start; gap: 8px; margin-bottom: 18px; }
  .ops-toolbar h3 { font-size: 24px; }
  .ops-toolbar p { font-size: 13px; }
  .ops-sample-label { font-size: 9px; text-align: left; }
  .ops-metrics { grid-template-columns: 1fr; }
  .ops-metric { padding: 16px; }
  .ops-metric + .ops-metric { border-left: 0; border-top: 1px solid var(--line); }
  .ops-metric-value { font-size: 30px; }
  .ops-grid { grid-template-columns: 1fr; }
  .ops-panel { padding: 16px; }
  .ops-event { grid-template-columns: 82px minmax(0, 1fr); gap: 8px; }
  .ops-channel { font-size: 10px; }
  .ops-record { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; padding: 14px 0; }
  .ops-record--head { display: none; }
  .ops-record span::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    color: var(--faint);
    font-size: 9px;
    font-weight: 650;
    letter-spacing: 0.07em;
    text-transform: uppercase;
  }
  .ops-view-note { grid-template-columns: 1fr; gap: 6px; padding: 15px 16px; }
  .ops-control-cards,
  .ops-slack-layout { grid-template-columns: 1fr; }
  .ops-control-cards article { min-height: 0; }
  .ops-route { grid-template-columns: 76px minmax(0, 1fr); gap: 9px; }
  .ops-route > b { grid-column: 2; width: fit-content; }
  .ops-capabilities { grid-template-columns: 1fr; }
  .ops-capability { padding-inline: 0; }
  .ops-capability + .ops-capability { border-left: 0; border-top: 1px solid var(--line); }

  /* Hero: drop the full-screen overlay on mobile — a 16:9 reel leaves a huge
     void above it. Flow the video full-width, name directly below. */
  .hero { height: auto; min-height: 0; padding-top: 62px; }
  .hero-video { position: static; width: 100%; height: auto; object-position: center; }
  .hero-foot { position: static; max-width: none; margin: 0; padding: 22px var(--pad) 40px; }
  .hero::after { display: none; }
}

/* ─── GAME SCROLL SHIELD ─── */
/* Mobile: transparent layer over the game iframe so a touch-drag scrolls the
   page instead of being captured by the game. The fullscreen button sits above
   it (higher z-index) and stays tappable. Desktop scrolls fine via wheel, so
   the shield is removed there and the game is directly interactive. */
.game-scroll-shield {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.18s ease;
}
.game-scroll-shield::before {
  content: 'Tap to play';
  color: #fff;
  font-family: var(--grotesk);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 9px 18px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.game-scroll-shield.is-engaged { opacity: 0; pointer-events: none; }
@media (pointer: fine) {
  .game-scroll-shield { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero-top .spark { animation: none; }
  html { scroll-behavior: auto; }
}
