:root {
  --bg: oklch(0.13 0.03 300);
  --fg: oklch(0.95 0.012 300);
  --accent: oklch(0.86 0.07 197);
  --accent-hover: oklch(0.93 0.05 197);
  --muted-1: oklch(0.84 0.022 300);
  --muted-2: oklch(0.82 0.018 300);
  --muted-3: oklch(0.78 0.018 300);
  --muted-4: oklch(0.76 0.018 300);
  --muted-5: oklch(0.74 0.018 300);
  --muted-6: oklch(0.72 0.022 300);
  --muted-7: oklch(0.70 0.022 300);
  --muted-8: oklch(0.66 0.022 300);
  --muted-9: oklch(0.62 0.022 300);
  --muted-10: oklch(0.60 0.022 300);
  --muted-11: oklch(0.58 0.022 300);
  --muted-12: oklch(0.56 0.022 300);
  --line-08: oklch(0.95 0.012 300 / 0.08);
  --line-10: oklch(0.95 0.012 300 / 0.10);
  --line-12: oklch(0.95 0.012 300 / 0.12);
  --line-14: oklch(0.95 0.012 300 / 0.14);
  --line-16: oklch(0.95 0.012 300 / 0.16);
  --line-22: oklch(0.96 0.012 300 / 0.22);
}

html, body { margin: 0; padding: 0; background: var(--bg); }
* { box-sizing: border-box; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
::selection { background: var(--accent); color: var(--bg); }

@keyframes tw { 0%, 100% { opacity: .2 } 50% { opacity: .9 } }
@keyframes rise { from { opacity: 0; transform: translateY(12px) } to { opacity: 1; transform: none } }

.app-shell {
  position: relative;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family: Sora, system-ui, sans-serif;
  font-weight: 300;
  overflow-x: hidden;
}

.bg-gradient {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(880px 600px at 16% 6%, oklch(0.48 0.13 330 / 0.45), transparent 66%),
    radial-gradient(900px 620px at 88% 46%, oklch(0.52 0.10 197 / 0.42), transparent 68%),
    radial-gradient(1200px 820px at 50% 118%, oklch(0.30 0.09 280 / 0.6), transparent 74%);
}

.starfield { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.star { position: absolute; border-radius: 50%; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px 40px;
  backdrop-filter: blur(14px);
  background: oklch(0.15 0.018 245 / 0.66);
  border-bottom: 1px solid var(--line-08);
}
.wordmark {
  display: flex; align-items: baseline; gap: 2px; color: inherit;
  font-family: Archivo, sans-serif; font-weight: 800; font-size: 23px;
  letter-spacing: -0.035em; text-transform: lowercase;
}
.wordmark:hover { color: inherit; }
.wordmark-accent { color: var(--accent); }
.site-nav {
  display: flex; align-items: center; gap: 28px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
}
.site-nav a { color: var(--muted-6); }
.site-nav a:hover { color: var(--fg); }
.nav-cta {
  display: inline-flex; padding: 9px 16px;
  border: 1px solid oklch(0.86 0.07 197 / 0.45); border-radius: 999px;
  color: var(--accent) !important;
}
.nav-cta:hover { background: oklch(0.86 0.07 197 / 0.14); }

main { position: relative; z-index: 10; }
#view-case { animation: rise .4s ease both; }

/* ---------- hero ---------- */
.hero { max-width: 1240px; margin: 0 auto; padding: 104px 40px 44px; }
.eyebrow {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 0.28em; color: var(--accent); text-transform: uppercase;
}
.hero-title {
  font-family: Archivo, sans-serif; font-weight: 800;
  font-size: clamp(44px, 8.6vw, 112px); line-height: 0.86;
  letter-spacing: -0.048em; text-transform: uppercase;
  margin: 22px 0 0; max-width: 13ch;
}
.hero-body {
  max-width: 500px; margin: 30px 0 0; font-size: 16.5px; line-height: 1.7;
  color: var(--muted-1); text-wrap: pretty;
}

/* ---------- docking bay ---------- */
.bay-section { position: relative; padding: 28px 0 40px; }
.bay-labels {
  max-width: 1240px; margin: 0 auto; display: flex; align-items: center;
  justify-content: space-between; font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.2em; color: var(--muted-9);
  text-transform: uppercase; padding: 0 40px;
}
.stage {
  position: relative; margin-top: 22px; overflow: hidden;
  touch-action: pan-y; user-select: none; cursor: grab;
}
.stage.dragging { cursor: grabbing; }
.bay-frame {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%); pointer-events: none; z-index: 5;
  transition: width .6s cubic-bezier(.2,1.1,.3,1), height .6s cubic-bezier(.2,1.1,.3,1), opacity .3s ease;
}
.corner { position: absolute; width: 34px; height: 34px; }
.corner-tl { left: -1px; top: -1px; border-left: 2px solid oklch(0.86 0.07 197 / 0.7); border-top: 2px solid oklch(0.86 0.07 197 / 0.7); border-top-left-radius: 14px; }
.corner-tr { right: -1px; top: -1px; border-right: 2px solid oklch(0.86 0.07 197 / 0.7); border-top: 2px solid oklch(0.86 0.07 197 / 0.7); border-top-right-radius: 14px; }
.corner-bl { left: -1px; bottom: -1px; border-left: 2px solid oklch(0.86 0.07 197 / 0.7); border-bottom: 2px solid oklch(0.86 0.07 197 / 0.7); border-bottom-left-radius: 14px; }
.corner-br { right: -1px; bottom: -1px; border-right: 2px solid oklch(0.86 0.07 197 / 0.7); border-bottom: 2px solid oklch(0.86 0.07 197 / 0.7); border-bottom-right-radius: 14px; }

.track { display: flex; align-items: center; padding: 46px 0 52px; will-change: transform; }

.card {
  flex: 0 0 auto; border-radius: 18px; overflow: hidden; position: relative;
  background: oklch(0.96 0.01 300 / 0.07); backdrop-filter: blur(18px);
  will-change: transform, opacity;
}
.card-grid { display: grid; height: 100%; }
.card-shot {
  position: relative; display: flex; align-items: center; justify-content: center;
}
.card-shot-label {
  font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.18em;
  color: var(--muted-10); text-transform: uppercase; text-align: center; padding: 0 12px;
}
.card-body { padding: 38px 38px 34px; display: flex; flex-direction: column; justify-content: space-between; min-width: 0; }
.card-meta {
  display: flex; align-items: center; gap: 12px;
  font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.2em;
  color: var(--accent); text-transform: uppercase;
}
.card-meta-rule { flex: 1; height: 1px; background: var(--line-14); }
.card-meta-year { color: var(--muted-9); }
.card-name {
  font-family: Archivo, sans-serif; font-weight: 800; font-size: clamp(30px, 3.2vw, 46px);
  line-height: 0.92; letter-spacing: -0.042em; text-transform: uppercase; margin: 20px 0 0;
}
.card-tagline { margin: 16px 0 0; font-size: 15.5px; line-height: 1.65; color: var(--muted-3); text-wrap: pretty; }
.card-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 22px; }
.tag-pill {
  font-family: 'JetBrains Mono', monospace; font-size: 9.5px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted-6); border: 1px solid var(--line-14);
  border-radius: 999px; padding: 6px 11px;
}
.card-open-btn {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--bg); background: var(--accent);
  border: none; border-radius: 999px; padding: 13px 22px; cursor: pointer;
}
.card-open-btn:hover { background: var(--accent-hover); }

.bay-controls {
  max-width: 1240px; margin: 30px auto 0; padding: 0 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.bay-nav { display: flex; align-items: center; gap: 14px; }
.bay-nav-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-16);
  background: transparent; color: oklch(0.90 0.012 300); font-size: 15px; cursor: pointer;
}
.bay-nav-btn:hover { border-color: oklch(0.86 0.07 197 / 0.7); }
.bay-counter { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.2em; color: var(--muted-7); margin-left: 6px; }
.bay-ticks { display: flex; align-items: center; gap: 10px; }
.tick {
  height: 10px; border-radius: 999px; padding: 0; cursor: pointer; border: none;
  transition: width .45s cubic-bezier(.2,1.1,.3,1), background .3s ease;
}

/* ---------- services ---------- */
.services-section { max-width: 1160px; margin: 0 auto; padding: 130px 40px 0; }
.section-eyebrow { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.2em; color: var(--muted-9); text-transform: uppercase; }
.section-title {
  font-family: Archivo, sans-serif; font-weight: 800; font-size: clamp(30px, 4.2vw, 52px);
  line-height: 0.92; letter-spacing: -0.045em; text-transform: uppercase; margin: 18px 0 0;
  max-width: 760px; text-wrap: pretty;
}
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 16px; margin-top: 56px; }
.service-card { background: oklch(0.96 0.012 300 / 0.05); border: 1px solid var(--line-14); border-radius: 16px; padding: 28px 24px 32px; }
.service-eyebrow { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.2em; color: var(--accent); text-transform: uppercase; }
.service-title { font-family: Archivo, sans-serif; font-weight: 800; font-size: 21px; margin: 14px 0 0; letter-spacing: -0.032em; text-transform: uppercase; }
.service-body { margin: 12px 0 0; font-size: 14.5px; line-height: 1.7; color: var(--muted-4); }

/* ---------- studio ---------- */
.studio-section { max-width: 1160px; margin: 0 auto; padding: 130px 40px 0; }
.studio-statement {
  font-family: Archivo, sans-serif; font-weight: 500; font-size: clamp(24px, 3.4vw, 40px);
  line-height: 1.24; letter-spacing: -0.028em; margin: 20px 0 0; max-width: 880px; text-wrap: pretty;
}
.studio-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 28px;
  margin-top: 64px; padding-top: 36px; border-top: 1px solid var(--line-10);
}
.stat-value { font-family: Archivo, sans-serif; font-weight: 800; font-size: 42px; letter-spacing: -0.04em; color: var(--accent); }
.stat-label { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.18em; color: var(--muted-8); text-transform: uppercase; margin-top: 6px; }

/* ---------- contact ---------- */
.contact-section { max-width: 1160px; margin: 0 auto; padding: 130px 40px 130px; }
.contact-row {
  border-top: 1px solid var(--line-10); padding-top: 56px; display: flex; flex-wrap: wrap;
  gap: 40px; align-items: flex-end; justify-content: space-between;
}
.contact-title {
  font-family: Archivo, sans-serif; font-weight: 800; font-size: clamp(32px, 5.2vw, 64px);
  line-height: 0.9; margin: 0; letter-spacing: -0.048em; text-transform: uppercase;
}
.contact-body { margin: 20px 0 0; font-size: 15px; line-height: 1.7; color: var(--muted-5); max-width: 420px; }
.contact-email-btn {
  font-family: 'JetBrains Mono', monospace; font-size: 13px; letter-spacing: 0.12em;
  padding: 16px 26px; border-radius: 999px; background: var(--accent); color: var(--bg) !important;
}
.contact-email-btn:hover { background: var(--accent-hover); }
.footer-row {
  display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center;
  margin-top: 80px; font-family: 'JetBrains Mono', monospace; font-size: 10px;
  letter-spacing: 0.18em; color: var(--muted-12); text-transform: uppercase;
}

/* ---------- case study ---------- */
.case-article { max-width: 900px; margin: 0 auto; padding: 64px 40px 120px; }
.back-link { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted-7) !important; }
.back-link:hover { color: var(--fg) !important; }
.case-meta { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.22em; color: var(--accent); text-transform: uppercase; margin-top: 52px; }
.case-title {
  font-family: Archivo, sans-serif; font-weight: 800; font-size: clamp(40px, 7.2vw, 84px);
  line-height: 0.88; letter-spacing: -0.05em; text-transform: uppercase; margin: 18px 0 0;
}
.case-lede { margin: 22px 0 0; max-width: 620px; font-size: 19px; line-height: 1.6; color: var(--muted-2); text-wrap: pretty; }
.case-meta-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 24px;
  margin-top: 48px; padding: 26px 0; border-top: 1px solid var(--line-10); border-bottom: 1px solid var(--line-10);
}
.case-meta-label { font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: 0.2em; color: var(--muted-11); text-transform: uppercase; }
.case-meta-value { margin-top: 8px; font-size: 14px; color: oklch(0.88 0.012 300); }

.placeholder-bg {
  border-radius: 14px; border: 1px solid var(--line-12);
  background: repeating-linear-gradient(135deg, oklch(0.95 0.012 300 / 0.05) 0 10px, transparent 10px 20px);
  display: flex; align-items: center; justify-content: center; background-size: cover; background-position: center;
}
.placeholder-label { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.18em; color: var(--muted-9); text-transform: uppercase; }
.case-hero-placeholder { margin-top: 48px; aspect-ratio: 16 / 9; }

.case-section { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,2fr); gap: 36px; margin-top: 64px; }
.case-section-heading { font-family: Archivo, sans-serif; font-weight: 800; font-size: 22px; line-height: 1.06; margin: 0; letter-spacing: -0.035em; text-transform: uppercase; }
.case-section-body { margin: 0; font-size: 16px; line-height: 1.8; color: var(--muted-3); text-wrap: pretty; }

.case-screens { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-top: 64px; }
.case-screen-placeholder { aspect-ratio: 3 / 4; }

.case-quote { margin: 72px 0 0; padding: 0 0 0 26px; border-left: 2px solid oklch(0.86 0.07 197 / 0.55); }
.case-quote-text { font-family: Archivo, sans-serif; font-weight: 500; font-size: 26px; line-height: 1.3; letter-spacing: -0.025em; margin: 0; text-wrap: pretty; }
.case-quote-by { display: block; margin-top: 16px; font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.2em; color: var(--muted-9); font-style: normal; text-transform: uppercase; }

.case-next-row {
  margin-top: 88px; padding-top: 38px; border-top: 1px solid var(--line-10);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.case-next-label { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.2em; color: var(--muted-11); text-transform: uppercase; }
.case-next-btn {
  margin-top: 10px; font-family: Archivo, sans-serif; font-weight: 800; font-size: 34px;
  background: none; border: none; padding: 0; color: oklch(0.96 0.012 300); cursor: pointer;
  letter-spacing: -0.045em; text-transform: uppercase;
}
.case-next-btn:hover { color: var(--accent); }
.case-start-link {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 14px 22px; border-radius: 999px; border: 1px solid oklch(0.86 0.07 197 / 0.45); color: var(--accent) !important;
}
.case-start-link:hover { background: oklch(0.86 0.07 197 / 0.14); }
