/* ── Tokens ─────────────────────────────────────────── */
:root {
  --bg: #f4f4f4;
  --surface: #ffffff;
  --text: #0a0a0a;
  --muted: #6b6b6b;
  --line: #e2e2e2;
  --accent: #0a0a0a;
  --accent-ink: #ffffff;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 8px 24px rgb(0 0 0 / 0.06);

  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --max: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 18px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0a0a;
    --surface: #151515;
    --text: #f5f5f5;
    --muted: #9a9a9a;
    --line: #262626;
    --accent: #f5f5f5;
    --accent-ink: #0a0a0a;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px rgb(0 0 0 / 0.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a0a0a;
  --surface: #151515;
  --text: #f5f5f5;
  --muted: #9a9a9a;
  --line: #262626;
  --accent: #f5f5f5;
  --accent-ink: #0a0a0a;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px rgb(0 0 0 / 0.35);
  color-scheme: dark;
}

/* ── Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s, color 0.3s;
}
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ── Nav ────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}
.nav__inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo {
  font: 400 24px/1 var(--serif);
  letter-spacing: -0.02em;
}
.logo--avatar { display: block; width: 46px; height: 46px; border-radius: 50%; overflow: hidden; background: #ffffff; box-shadow: 0 0 0 1px var(--line); transition: transform 0.3s; }
.logo--avatar img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.2); transform-origin: 46% 58%; filter: contrast(1.4); }
.logo--avatar:hover { transform: rotate(-6deg) scale(1.05); }
.nav__inner nav { margin-left: auto; }
.nav__links { display: flex; gap: 4px; }
.nav__links a {
  font-size: 14px; color: var(--muted);
  padding: 8px 12px; border-radius: 999px;
  transition: color 0.2s, background-color 0.2s;
}
.nav__links a:hover, .nav__links a.active { color: var(--text); background: var(--surface); }
.theme-toggle {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  cursor: pointer; transition: transform 0.3s;
}
.theme-toggle:hover { transform: rotate(-20deg); }

/* ── Hero ───────────────────────────────────────────── */
.hero { padding-top: clamp(72px, 14vw, 160px); padding-bottom: clamp(64px, 10vw, 120px); }
.eyebrow {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  font-size: 14px; color: var(--muted); margin-bottom: 28px;
}
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); color: var(--text);
}
.badge[hidden] { display: none; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #838383; box-shadow: 0 0 0 0 #838383; animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

.hero__title {
  font-family: var(--serif);
  font-size: clamp(40px, 7vw, 86px);
  line-height: 1.04; letter-spacing: -0.025em;
  max-width: 17ch;
  text-wrap: balance;
}
.hero__intro { max-width: 52ch; margin-top: 28px; font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px;
  font-size: 15px; font-weight: 500;
  border: 1px solid var(--line); background: var(--surface);
  transition: transform 0.2s, background-color 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-2px); border-color: var(--text); }
.btn--primary { background: var(--text); color: var(--bg); border-color: var(--text); }

/* ── Sections ───────────────────────────────────────── */
.section { padding-block: clamp(64px, 9vw, 112px); border-top: 1px solid var(--line); }
.section__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: clamp(36px, 5vw, 56px); }
.section__head h2 { font-family: var(--serif); font-size: clamp(32px, 4.4vw, 48px); letter-spacing: -0.02em; line-height: 1; }
.section__num { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ── Projects ───────────────────────────────────────── */
.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2.4vw, 28px); }
.project {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(.2,.7,.2,1), box-shadow 0.35s, border-color 0.35s;
}
.project--link:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.project__art {
  position: relative; aspect-ratio: 16 / 10;
  background:
    radial-gradient(120% 90% at 85% 10%, hsl(0 0% 78% / 0.9), transparent 60%),
    radial-gradient(90% 80% at 10% 100%, hsl(0 0% 42% / 0.85), transparent 60%),
    hsl(0 0% 10%);
  overflow: hidden;
}
.project__index { position: absolute; top: 18px; left: 20px; color: #ffffff; opacity: 0.8; font-size: 13px; letter-spacing: 0.08em; }
.project__shape {
  position: absolute; inset: auto -12% -30% auto; width: 62%; aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgb(255 255 255 / 0.45);
  box-shadow: inset 0 0 0 28px rgb(255 255 255 / 0.06), 0 0 0 28px rgb(255 255 255 / 0.04);
  transition: transform 0.6s cubic-bezier(.2,.7,.2,1);
}
.project:hover .project__shape { transform: scale(1.12) translate(-4%, -6%); }
.project__body { padding: 22px 24px 24px; display: grid; gap: 10px; }
.project__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.project__top h3 { font-family: var(--serif); font-size: 25px; line-height: 1.1; letter-spacing: -0.01em; }
.project__arrow { color: var(--muted); transition: transform 0.3s, color 0.3s; }
.project:hover .project__arrow { transform: translate(3px, -3px); color: var(--accent); }
.project__body p { color: var(--muted); font-size: 15px; }
.project__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; font-size: 13px; color: var(--muted); }
.tag { padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; }

/* ── About ──────────────────────────────────────────── */
.about { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 6vw, 80px); }
.about__text { display: grid; gap: 20px; align-content: start; font-size: clamp(18px, 1.8vw, 21px); line-height: 1.55; }
.about__skills h3 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 18px; font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  padding: 7px 14px; border-radius: 999px; font-size: 14px;
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color 0.2s, color 0.2s;
}
.chips li:hover { border-color: var(--accent); color: var(--accent); }
.about__skills { display: grid; gap: 36px; align-content: start; }
.about__skills h3 { margin-bottom: 14px; }
.edu { display: grid; gap: 14px; }
.edu li { display: grid; gap: 2px; font-size: 15px; }
.edu strong { font-weight: 500; }
.edu span { color: var(--muted); font-size: 14px; }

/* ── Experience ─────────────────────────────────────── */
.timeline { display: grid; }
.job {
  display: grid; grid-template-columns: 200px 1fr; gap: 24px;
  padding-block: 28px; border-bottom: 1px solid var(--line);
}
.job:first-child { padding-top: 0; }
.job__period { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; padding-top: 6px; }
.job h3 { font-size: 20px; font-weight: 500; letter-spacing: -0.01em; margin-bottom: 6px; }
.job__company { color: var(--muted); font-weight: 400; }
.job p { color: var(--muted); max-width: 60ch; }

/* ── Contact ────────────────────────────────────────── */
.contact { text-align: center; padding-block: clamp(80px, 12vw, 160px); }
.contact .eyebrow { justify-content: center; }
.contact__title {
  font-family: var(--serif); font-size: clamp(38px, 6.6vw, 80px);
  line-height: 1.04; letter-spacing: -0.025em; max-width: 16ch; margin-inline: auto;
  text-wrap: balance;
}
.contact__title em { color: var(--accent); }
.contact__email {
  display: inline-block; margin-top: 36px;
  font-size: clamp(20px, 2.6vw, 28px);
  border-bottom: 1px solid var(--line); padding-bottom: 4px;
  overflow-wrap: anywhere;
  transition: border-color 0.2s, color 0.2s;
}
.contact__email:hover { color: var(--accent); border-color: var(--accent); }
.contact__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 40px; }
.contact__links a {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 10px 16px; border-radius: 999px; font-size: 14px;
  border: 1px solid var(--line); background: var(--surface);
  transition: border-color 0.2s;
}
.contact__links a svg { width: 16px; height: 16px; color: var(--muted); }
.contact__links a:hover { border-color: var(--text); }

/* ── Footer ─────────────────────────────────────────── */
.footer {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-block: 28px 40px; border-top: 1px solid var(--line);
  font-size: 14px; color: var(--muted);
}
.footer a:hover { color: var(--text); }

/* ── Reveal animation ───────────────────────────────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.2,.7,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .dot { animation: none; }
}

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 820px) {
  .projects, .about { grid-template-columns: 1fr; }
  .job { grid-template-columns: 1fr; gap: 6px; }
  .job__period { padding-top: 0; }
}
@media (max-width: 560px) {
  .nav__inner nav { display: none; }
  .theme-toggle { margin-left: auto; }
  .hero__cta .btn { flex: 1; justify-content: center; }
}

/* ── Case study pages ───────────────────────────────── */
.case__hero { padding-top: clamp(40px, 7vw, 80px); padding-bottom: clamp(32px, 5vw, 56px); }
.case__back { display: inline-block; font-size: 14px; color: var(--muted); margin-bottom: 40px; transition: color 0.2s; }
.case__back:hover { color: var(--text); }
.case__title {
  font-family: var(--serif); font-size: clamp(38px, 6vw, 74px);
  line-height: 1.04; letter-spacing: -0.025em; max-width: 20ch; text-wrap: balance;
}
.case__question { margin-top: 20px; max-width: 44ch; font-size: clamp(18px, 2vw, 22px); color: var(--muted); font-style: italic; font-family: var(--serif); }
.case__meta {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  margin: 48px 0 0; padding-top: 28px; border-top: 1px solid var(--line);
}
.case__meta dt { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 6px; }
.case__meta dd { margin: 0; font-size: 15px; }

.case__visual {
  margin: 0; border-radius: calc(var(--radius) + 6px); overflow: hidden;
  min-height: clamp(380px, 50vw, 560px);
  display: grid; place-items: center; padding: clamp(28px, 5vw, 64px) 16px;
  background:
    radial-gradient(90% 80% at 85% 0%, hsl(0 0% 78% / 0.85), transparent 60%),
    radial-gradient(80% 80% at 0% 100%, hsl(0 0% 42% / 0.8), transparent 60%),
    hsl(0 0% 10%);
}

.case__body { padding-block: clamp(48px, 8vw, 96px); }
.case__block {
  display: grid; grid-template-columns: 220px 1fr; gap: 32px;
  padding-block: clamp(32px, 4.5vw, 52px); border-top: 1px solid var(--line);
}
.case__block:first-child { border-top: 0; padding-top: 0; }
.case__label { font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-weight: 500; padding-top: 6px; }
.case__content { display: grid; gap: 18px; max-width: 68ch; }
.case__content > p { font-size: 18px; line-height: 1.65; }
.case__lead { font-size: clamp(21px, 2.3vw, 26px) !important; line-height: 1.45 !important; }
.case__list { display: grid; gap: 12px; }
.case__list li { position: relative; padding-left: 26px; font-size: 17px; }
.case__list li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 12px; height: 1.5px; background: var(--accent); }

.steps { display: grid; gap: 10px; }
.case__block:has(.steps) .case__content, .case__block:has(.features) .case__content { max-width: none; }
.step {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px;
  display: grid; grid-template-columns: 36px 130px 1fr; gap: 6px 16px; align-items: baseline;
}
.step__n { font-size: 12px; color: var(--accent); font-variant-numeric: tabular-nums; letter-spacing: 0.08em; }
.step h3 { font-size: 17px; font-weight: 600; }
.step p { font-size: 15px; color: var(--muted); line-height: 1.55; }
@media (max-width: 560px) {
  .step { grid-template-columns: 30px 1fr; }
  .step p { grid-column: 2; }
}

.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.feature { padding: 22px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.feature h3 { font-family: var(--serif); font-size: 21px; line-height: 1.15; margin-bottom: 8px; }
.feature p { font-size: 15px; color: var(--muted); }

.results { display: flex; flex-wrap: wrap; gap: 10px; }
.results li { padding: 10px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-weight: 500; }

.case__next { border-top: 1px solid var(--line); }
.case__next a { display: block; padding-block: clamp(48px, 8vw, 96px); }
.case__next .eyebrow { margin-bottom: 12px; }
.case__next-title { font-family: var(--serif); font-size: clamp(32px, 5vw, 60px); letter-spacing: -0.02em; line-height: 1; transition: color 0.2s; }
.case__next a:hover .case__next-title { color: var(--accent); }
.case__missing { padding-block: 120px; display: grid; gap: 24px; }
.case__missing h1 { font-family: var(--serif); font-size: 56px; }

/* Date picker illustration */
.dp {
  width: min(380px, 100%); background: #ffffff; color: #191919; border-radius: 18px;
  padding: 18px; box-shadow: 0 30px 60px rgb(0 0 0 / 0.3); font-size: 14px;
}
.dp__fields { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.dp__field { flex: 1; border: 1.5px solid #dddddd; border-radius: 10px; padding: 8px 12px; display: grid; }
.dp__field small { font-size: 11px; color: #676767; }
.dp__field strong { font-weight: 600; font-size: 14px; }
.dp__field--active { border-color: #0a0a0a; box-shadow: 0 0 0 3px rgb(0 0 0 / 0.1); }
.dp__arrow { color: #676767; }
.dp__head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; padding-inline: 4px; }
.dp__head strong { flex: 1; font-weight: 600; }
.dp__head span { color: #676767; }
.dp__year { font-size: 12px; border: 1px solid #dddddd; border-radius: 6px; padding: 2px 8px; }
.dp__grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 4px; text-align: center; }
.dp__w { font-size: 11px; color: #979797; padding-bottom: 4px; }
.dp__d { padding-block: 7px; font-size: 13px; font-variant-numeric: tabular-nums; }
.dp__d--in { background: #e5e5e5; }
.dp__d--start, .dp__d--end { background: #0a0a0a; color: #ffffff; font-weight: 600; }
.dp__d--start { border-radius: 999px 0 0 999px; }
.dp__d--end { border-radius: 0 999px 999px 0; }
.dp__foot { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid #eeeeee; }
.dp__reset { color: #676767; font-size: 13px; }
.dp__summary { flex: 1; text-align: center; font-size: 13px; color: #676767; }
.dp__done { background: #191919; color: #ffffff; padding: 8px 18px; border-radius: 999px; font-weight: 600; font-size: 13px; }

/* Ticket machine illustration */
.tvm {
  width: min(340px, 100%); background: #272727; border-radius: 22px; padding: 16px 16px 22px;
  box-shadow: 0 30px 60px rgb(0 0 0 / 0.35), inset 0 0 0 1px rgb(255 255 255 / 0.06);
}
.tvm__screen { background: #fafafa; color: #191919; border-radius: 12px; padding: 16px; display: grid; gap: 12px; }
.tvm__bar { display: flex; justify-content: space-between; font-size: 11px; color: #676767; }
.tvm__ask { font-family: var(--serif); font-size: 22px; line-height: 1.1; }
.tvm__search {
  display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500;
  border: 2px solid #191919; border-radius: 10px; padding: 10px 12px;
}
.tvm__icon { font-size: 18px; color: #676767; }
.tvm__caret { width: 2px; height: 18px; background: #777777; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.tvm__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tvm__chip { font-size: 12px; font-weight: 600; padding: 7px 12px; border-radius: 8px; }
.tvm__chip--a { background: #ececec; color: #4f4f4f; }
.tvm__chip--a.is-on { background: #777777; color: #ffffff; }
.tvm__chip--b { background: #e8e8e8; color: #424242; }
.tvm__chip--c { background: #f0f0f0; color: #484848; margin-left: auto; }
.tvm__route { display: grid; gap: 0; padding: 6px 4px; }
.tvm__stop { position: relative; display: flex; align-items: center; gap: 10px; padding: 6px 0 6px 20px; font-size: 13px; }
.tvm__stop i { position: absolute; left: 3px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid #777777; background: #ffffff; }
.tvm__stop:not(:last-child)::after { content: ""; position: absolute; left: 7px; top: 22px; height: calc(100% - 10px); width: 2px; background: #777777; }
.tvm__stop--mid { color: #676767; font-size: 12px; }
.tvm__stop--mid i { width: 6px; height: 6px; left: 5px; border-width: 0; background: #777777; }
.tvm__stop span { flex: 1; }
.tvm__stop b { font-variant-numeric: tabular-nums; }
.tvm__cta { background: #191919; color: #ffffff; text-align: center; padding: 12px; border-radius: 10px; font-weight: 600; font-size: 14px; }
.tvm__slot { width: 46%; height: 8px; margin: 16px auto 0; border-radius: 4px; background: #121212; box-shadow: inset 0 2px 3px rgb(0 0 0 / 0.6); }

@media (max-width: 820px) {
  .case__meta { grid-template-columns: repeat(2, 1fr); }
  .case__block { grid-template-columns: 1fr; gap: 16px; }
  .features { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .tvm__caret { animation: none; } }

/* ── Dither Camera playground ───────────────────────── */
.case__credit { font-size: 14px !important; color: var(--muted); }
.case__credit a { border-bottom: 1px solid var(--line); }
.case__credit a:hover { color: var(--text); border-color: var(--text); }
.case__visual--dither { background: #0c0c0c; min-height: 0; padding: clamp(12px, 2vw, 20px); display: block; }
.lab { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; color: #ededed; }
.lab__stage { position: relative; border-radius: 14px; overflow: hidden; background: #000000; aspect-ratio: 16 / 9; min-width: 0; }
.lab__canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.lab__overlay {
  position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%);
  display: grid; justify-items: center; gap: 8px; text-align: center; width: max-content; max-width: calc(100% - 24px);
}
.lab__overlay[hidden] { display: none; }
.lab__start {
  font: 600 14px/1 var(--sans); padding: 13px 22px; border-radius: 999px; border: 0;
  background: #ededed; color: #111111; cursor: pointer; box-shadow: 0 8px 24px rgb(0 0 0 / 0.35);
  transition: transform 0.2s;
}
.lab__start:hover { transform: translateY(-2px); }
.lab__hint { font-size: 12px; color: rgb(255 255 255 / 0.75); background: rgb(0 0 0 / 0.45); padding: 4px 10px; border-radius: 999px; }
.lab__status { position: absolute; top: 12px; left: 12px; font-size: 12px; background: rgb(0 0 0 / 0.6); padding: 6px 10px; border-radius: 8px; }
.lab__status:empty { display: none; }
.lab__controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 4px 4px 2px; }
.lab__group { display: flex; gap: 4px; background: #1b1b1b; padding: 4px; border-radius: 999px; }
.lab__seg {
  font: 500 13px/1 var(--sans); color: #b8b8b8; background: none; border: 0; padding: 8px 12px; border-radius: 999px; cursor: pointer;
}
.lab__seg[aria-checked="true"] { background: #ededed; color: #111111; }
.lab__slider { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #b8b8b8; }
.lab__slider input { width: 110px; accent-color: #f5f5f5; }
.lab__palettes { gap: 6px; padding: 6px; }
.lab__swatch {
  width: 22px; height: 22px; border-radius: 50%; cursor: pointer;
  border: 2px solid transparent; background: linear-gradient(135deg, var(--bg) 50%, var(--fg) 50%);
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.15);
}
.lab__swatch[aria-checked="true"] { border-color: #ededed; }
.lab__actions { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.lab__btn {
  font: 500 13px/1 var(--sans); color: #ededed; background: #1b1b1b; border: 1px solid #313131;
  padding: 9px 14px; border-radius: 999px; cursor: pointer; transition: border-color 0.2s;
}
.lab__btn:hover, .lab__btn[aria-pressed="true"] { border-color: #ededed; }
.lab__btn--primary { background: #f5f5f5; border-color: #f5f5f5; color: #0a0a0a; }
.lab button:focus-visible, .lab label:focus-within { outline: 2px solid #f5f5f5; outline-offset: 2px; }
@media (max-width: 820px) {
  .lab__stage { aspect-ratio: 4 / 5; }
  .lab__hint { display: none; }
  .lab__actions { margin-left: 0; }
  .lab__slider input { width: 90px; }
}

/* ── Code snippets ──────────────────────────────────── */
.case__block:has(.code) .case__content { max-width: none; }
.code { border-radius: 14px; overflow: hidden; background: #111111; border: 1px solid #2a2a2a; color: #e3e3e3; }
.code__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 14px 10px 18px; border-bottom: 1px solid #2a2a2a; font-size: 13px; color: #979797;
}
.code__copy {
  font: 500 12px/1 var(--sans); color: #e3e3e3; background: #1d1d1d; border: 1px solid #313131;
  padding: 7px 12px; border-radius: 999px; cursor: pointer; transition: border-color 0.2s;
}
.code__copy:hover { border-color: #e3e3e3; }
.code pre { margin: 0; padding: 18px; overflow-x: auto; }
.code code { font: 13.5px/1.65 ui-monospace, "SF Mono", Menlo, Consolas, monospace; white-space: pre; }
.code__foot { font-size: 14px !important; color: var(--muted); }
.code__foot a { color: var(--text); border-bottom: 1px solid var(--line); margin-left: 4px; }
.code__foot a:hover { border-color: var(--accent); color: var(--accent); }

/* Blotter illustration */
.bl {
  width: min(760px, 100%); background: #ffffff; color: #191919; border-radius: 16px;
  box-shadow: 0 30px 60px rgb(0 0 0 / 0.3); font-size: 13px; overflow: hidden;
}
.bl__flow { display: flex; align-items: center; gap: 8px; padding: 14px 18px; background: #f6f6f6; border-bottom: 1px solid #ececec; flex-wrap: wrap; }
.bl__step { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #676767; font-weight: 500; }
.bl__step i { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; font-style: normal; font-size: 10px; background: #e3e3e3; color: #676767; }
.bl__step.is-done i { background: #0a0a0a; color: #ffffff; }
.bl__step.is-now { color: #191919; }
.bl__step.is-now i { background: #ffffff; color: #5b5b5b; box-shadow: inset 0 0 0 2px #5b5b5b; }
.bl__line { flex: 1; min-width: 12px; height: 2px; background: #d9d9d9; border-radius: 2px; }
.bl__top { display: flex; align-items: center; gap: 6px; padding: 12px 18px; flex-wrap: wrap; }
.bl__top strong { font-size: 15px; margin-right: 8px; }
.bl__chip { padding: 4px 10px; border-radius: 999px; background: #f1f1f1; color: #545454; font-size: 12px; }
.bl__chip.is-on { background: #191919; color: #ffffff; }
.bl__new { margin-left: auto; background: #0a0a0a; color: #ffffff; padding: 7px 12px; border-radius: 8px; font-weight: 600; font-size: 12px; }
.bl__scroll { overflow-x: auto; }
.bl__table { min-width: 640px; }
.bl__row {
  display: grid; grid-template-columns: 1.5fr 0.6fr 0.8fr 1.4fr 0.8fr 0.6fr 1.2fr; gap: 10px; align-items: center;
  padding: 10px 18px; border-top: 1px solid #efefef; font-variant-numeric: tabular-nums;
}
.bl__row--head { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: #858585; background: #fafafa; }
.bl__row--open { background: #f6f6f6; }
.bl__row--child { background: #fbfbfb; color: #545454; font-size: 12px; padding-block: 7px; }
.bl__row--child .bl__sym { padding-left: 22px; }
.bl__sym { font-weight: 600; white-space: nowrap; }
.bl__row--child .bl__sym { font-weight: 400; }
.bl__tw { display: inline-block; width: 16px; color: #858585; font-weight: 400; }
.bl__num { text-align: right; }
.bl__side { font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 4px; }
.bl__side--buy { background: #0a0a0a; color: #fff; }
.bl__side--sell { background: #fff; color: #0a0a0a; box-shadow: inset 0 0 0 1.5px #0a0a0a; }
.bl__fill { display: flex; align-items: center; gap: 8px; }
.bl__fill em { font-style: normal; min-width: 44px; text-align: right; }
.bl__bar { flex: 1; height: 5px; border-radius: 3px; background: #ebebeb; overflow: hidden; }
.bl__bar i { display: block; height: 100%; background: #0a0a0a; border-radius: 3px; }
.bl__pill { font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.bl__pill--filled { background: #0a0a0a; color: #fff; }
.bl__pill--alloc { background: #fff; color: #0a0a0a; box-shadow: inset 0 0 0 1px #0a0a0a; }
.bl__pill--partial { background: #d6d6d6; color: #0a0a0a; }
.bl__pill--working { background: #fff; color: #555; box-shadow: inset 0 0 0 1px #aaa; border: 0; outline: 1px dashed #999; outline-offset: -1px; }

/* Project thumbnails */
.thumb {
  position: absolute; inset: 8% 10% 6%; width: 80%; height: 86%;
  filter: drop-shadow(0 10px 24px rgb(0 0 0 / 0.18));
  transition: transform 0.6s cubic-bezier(.2,.7,.2,1);
}
.project--link:hover .thumb { transform: scale(1.04) translateY(-2%); }

/* Orion illustration */
.or {
  width: min(760px, 100%); background: #ffffff; color: #191919; border-radius: 18px; padding: 18px;
  box-shadow: 0 30px 60px rgb(0 0 0 / 0.3); font-size: 13px; display: grid; gap: 14px;
}
.or__search {
  display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 18px;
  border-radius: 14px; border: 1.5px solid #191919; box-shadow: 0 0 0 4px rgb(119 119 119 / 0.12);
}
.or__spark { color: #777777; font-size: 18px; }
.or__q { flex: 1; font-size: clamp(14px, 2vw, 17px); font-weight: 500; }
.or__caret { display: inline-block; width: 2px; height: 1.1em; background: #777777; margin-left: 2px; vertical-align: -0.15em; animation: blink 1s steps(1) infinite; }
.or__go { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #191919; color: #ffffff; font-weight: 700; flex: none; }
.or__parsed, .or__ctx { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.or__parsed small { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: #858585; margin-right: 4px; }
.or__cond { padding: 5px 10px; border-radius: 8px; font-size: 12px; }
.or__cond b { font-weight: 700; }
.or__cond--yes { background: #0a0a0a; color: #fff; }
.or__cond--no { background: #fff; color: #0a0a0a; outline: 1.5px dashed #0a0a0a; outline-offset: -1.5px; }
.or__f { padding: 5px 10px; border-radius: 999px; background: #f1f1f1; border: 1px solid #e0e0e0; font-size: 12px; color: #414141; }
.or__add { position: relative; padding: 5px 10px; border-radius: 999px; border: 1px dashed #b4b4b4; font-size: 12px; color: #545454; }
.or__menu {
  position: absolute; left: 0; top: calc(100% + 6px); z-index: 2; display: grid; min-width: 160px;
  background: #ffffff; border-radius: 10px; box-shadow: 0 12px 30px rgb(0 0 0 / 0.16); padding: 6px; border: 1px solid #eeeeee;
}
.or__menu span { padding: 7px 10px; border-radius: 6px; font-size: 12px; color: #191919; }
.or__menu span:first-child { background: #f1f1f1; }
.or__res { border: 1px solid #eeeeee; border-radius: 12px; overflow: hidden; }
.or__count { padding: 10px 14px; background: #fafafa; border-bottom: 1px solid #eeeeee; color: #676767; }
.or__count strong { color: #191919; }
.or__scroll { overflow-x: auto; }
.or__table { min-width: 600px; }
.or__row {
  display: grid; grid-template-columns: 1.2fr 1.1fr 0.7fr 0.9fr 0.7fr 0.9fr; gap: 10px; align-items: center;
  padding: 9px 14px; border-top: 1px solid #f0f0f0; font-variant-numeric: tabular-nums;
}
.or__row--head { border-top: 0; font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: #858585; }
.or__row .n { text-align: right; }
.or__client { font-weight: 600; }
.or__lvl { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.or__lvl--low { background: #fff; color: #0a0a0a; box-shadow: inset 0 0 0 1px #0a0a0a; }
.or__lvl--med { background: #d6d6d6; color: #0a0a0a; }
.or__lvl--high { background: #0a0a0a; color: #fff; }
@media (max-width: 560px) { .or__menu { display: none; } }
@media (prefers-reduced-motion: reduce) { .or__caret { animation: none; } }

/* Catalog illustration: web, tablet and phone (scales with its container) */
.case__visual--catalog { padding: clamp(36px, 6vw, 72px) clamp(12px, 3vw, 40px) clamp(20px, 4vw, 48px); min-height: 0; }
.c3 { position: relative; width: min(900px, 100%); aspect-ratio: 16 / 10.5; container-type: inline-size; }
.c3 * { box-sizing: border-box; }
.c3 { font-size: 1.15cqw; color: #0a0a0a; }
.c3 small { display: block; font-size: 0.82em; color: #6b6b6b; text-transform: uppercase; letter-spacing: 0.04em; }
.c3__bar { display: block; height: 0.42em; border-radius: 1em; background: #0a0a0a; opacity: 0.35; margin-top: 0.45em; }
.c3__label {
  position: absolute; top: -2.4em; left: 0; font-size: 0.95em; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: #fff; background: rgb(0 0 0 / 0.55); padding: 0.3em 0.8em; border-radius: 1em;
}
.c3__pulse { display: inline-grid; place-items: center; width: 2.6em; height: 1.6em; border-radius: 1em; background: #0a0a0a; color: #fff; }
.c3__pulse svg { width: 1.7em; height: 0.75em; }

/* Web window */
.c3__web {
  position: absolute; top: 4%; left: 8%; width: 84%; height: 74%;
  background: #f4f4f4; border-radius: 0.9em; box-shadow: 0 2em 4em rgb(0 0 0 / 0.35); display: flex; flex-direction: column;
}
.c3__chrome { display: flex; align-items: center; gap: 0.45em; padding: 0.7em 0.9em; background: #e6e6e6; border-radius: 0.9em 0.9em 0 0; }
.c3__chrome i { width: 0.7em; height: 0.7em; border-radius: 50%; background: #bdbdbd; }
.c3__chrome span { margin-left: 1.2em; flex: 0 1 40%; background: #fff; border-radius: 0.6em; padding: 0.25em 0.8em; font-size: 0.85em; color: #6b6b6b; }
.c3__webbody { flex: 1; display: grid; grid-template-columns: 17% 1fr; min-height: 0; }
.c3__side { background: #fff; border-right: 1px solid #e6e6e6; padding: 1.1em 0.9em; display: grid; align-content: start; gap: 0.35em; border-radius: 0 0 0 0.9em; }
.c3__logo { display: flex; align-items: center; gap: 0.5em; font-size: 1.05em; margin-bottom: 0.8em; }
.c3__side span { padding: 0.45em 0.7em; border-radius: 0.5em; color: #6b6b6b; }
.c3__side .is-on { background: #0a0a0a; color: #fff; }
.c3__main { padding: 1.1em 1.4em; display: grid; gap: 1em; align-content: start; min-width: 0; }
.c3__top { display: flex; align-items: center; justify-content: space-between; gap: 1em; }
.c3__top strong { font-family: var(--serif); font-weight: 400; font-size: 2.2em; line-height: 1; }
.c3__search { flex: 0 1 45%; background: #fff; border: 1px solid #e2e2e2; border-radius: 1em; padding: 0.45em 0.9em; color: #8a8a8a; }
.c3__hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1em; background: #0a0a0a; color: #fff; border-radius: 0.8em; padding: 1.1em 1.3em; }
.c3__hero small { color: #a3a3a3; }
.c3__hero strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.7em; margin: 0.25em 0 0.6em; }
.c3__player { display: flex; align-items: center; gap: 0.7em; }
.c3__player b { width: 2em; height: 2em; border-radius: 50%; background: #fff; color: #0a0a0a; display: grid; place-items: center; font-size: 0.8em; }
.c3__track { flex: 1; height: 0.3em; background: #3a3a3a; border-radius: 1em; overflow: hidden; }
.c3__track i { display: block; height: 100%; background: #fff; }
.c3__player em { font-style: normal; color: #a3a3a3; font-size: 0.85em; }
.c3__heroart { color: #fff; opacity: 0.85; align-self: end; }
.c3__heroart svg, .c3__chart svg { display: block; width: 100%; height: 4.5em; }
.c3__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8em; }
.c3__card { background: #fff; border: 1px solid #e6e6e6; border-radius: 0.7em; padding: 0.8em 0.9em; min-width: 0; }
.c3__card strong { display: block; font-size: 1em; line-height: 1.3; margin-top: 0.25em; }
.c3__cardfoot { display: flex; justify-content: space-between; margin-top: 0.7em; font-size: 0.85em; }
.c3__cardfoot em { font-style: normal; color: #6b6b6b; }
.c3__card--theme { background: repeating-linear-gradient(135deg, #fff 0 0.6em, #f0f0f0 0.6em 0.68em); }
.c3__dots { display: flex; align-items: center; margin-top: 0.8em; }
.c3__dots i { width: 1.5em; height: 1.5em; border-radius: 50%; background: #0a0a0a; border: 0.15em solid #fff; margin-left: -0.4em; }
.c3__dots i:first-child { margin-left: 0; }
.c3__dots i:nth-child(2) { background: #666; }
.c3__dots i:nth-child(3) { background: #aaa; }
.c3__dots em { font-style: normal; margin-left: 0.6em; font-size: 0.85em; color: #6b6b6b; }

/* Tablet */
.c3__tab {
  position: absolute; left: 0; bottom: 0; width: 42%; height: 58%;
  background: #0a0a0a; border-radius: 1.6em; padding: 0.9em; box-shadow: 0 2em 4em rgb(0 0 0 / 0.4);
}
.c3__tab .c3__label { top: -2.4em; }
.c3__tabbody { height: 100%; background: #f4f4f4; border-radius: 0.9em; display: grid; grid-template-columns: 38% 1fr; overflow: hidden; }
.c3__list { background: #fff; border-right: 1px solid #e6e6e6; padding: 0.9em 0.7em; display: grid; align-content: start; gap: 0.45em; }
.c3__list > strong { font-family: var(--serif); font-weight: 400; font-size: 1.6em; line-height: 1; }
.c3__chips { display: flex; gap: 0.3em; }
.c3__chips span { padding: 0.25em 0.6em; border-radius: 1em; border: 1px solid #e2e2e2; font-size: 0.82em; }
.c3__chips .is-on { background: #0a0a0a; color: #fff; border-color: #0a0a0a; }
.c3__row { padding: 0.5em 0.6em; border-radius: 0.5em; border: 1px solid #ececec; background: #fff; }
.c3__row b { display: block; font-size: 0.9em; line-height: 1.25; margin-top: 0.1em; }
.c3__row.is-sel { box-shadow: inset 0 0 0 1.5px #0a0a0a; }
.c3__row--dark { background: #0a0a0a; color: #fff; border-color: #0a0a0a; }
.c3__row--dark small { color: #a3a3a3; }
.c3__detail { padding: 0.9em 1em; display: grid; align-content: start; gap: 0.15em; min-width: 0; }
.c3__detail strong { font-family: var(--serif); font-weight: 400; font-size: 1.45em; line-height: 1.12; margin: 0.25em 0 0.2em; }
.c3__chart { background: #fff; border: 1px solid #e6e6e6; border-radius: 0.6em; padding: 0.5em; margin: 0.6em 0 0.2em; }
.c3__chart svg { height: 3.6em; }
.c3__sharebar { display: flex; align-items: center; justify-content: space-between; margin-top: 0.8em; padding-top: 0.7em; border-top: 1px solid #e2e2e2; font-weight: 600; }
.c3__targets { display: flex; gap: 0.4em; }
.c3__targets i { width: 2.2em; height: 2.2em; border-radius: 0.6em; background: #0a0a0a; color: #fff; display: grid; place-items: center; font-style: normal; font-size: 0.75em; font-weight: 700; }

/* Phone */
.c3__phone {
  position: absolute; right: 2%; bottom: 0; width: 20%; height: 66%;
  background: #0a0a0a; border-radius: 2em; padding: 0.55em; box-shadow: 0 2em 4em rgb(0 0 0 / 0.45);
}
.c3__phone .c3__label { left: auto; right: 0; }
.c3__pbody { position: relative; height: 100%; background: #f4f4f4; border-radius: 1.5em; padding: 1.4em 0.7em 0.7em; display: grid; align-content: start; gap: 0.45em; overflow: hidden; }
.c3__phead { display: flex; align-items: center; justify-content: space-between; }
.c3__phead strong { font-family: var(--serif); font-weight: 400; font-size: 1.6em; }
.c3__scrim { position: absolute; inset: 0; background: rgb(0 0 0 / 0.35); }
.c3__sheet { position: absolute; left: 0; right: 0; bottom: 0; background: #fff; border-radius: 1.2em 1.2em 0 0; padding: 0.6em 0.8em 1.2em; display: grid; gap: 0.7em; }
.c3__grab { width: 2.6em; height: 0.3em; border-radius: 1em; background: #d4d4d4; justify-self: center; }
.c3__sheet > b { font-size: 1em; }
.c3__tgts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.3em; text-align: center; font-size: 0.72em; }
.c3__tgts span { display: grid; justify-items: center; gap: 0.35em; }
.c3__tgts i { width: 3em; height: 3em; border-radius: 0.9em; background: #0a0a0a; color: #fff; display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: 1.1em; }
.c3__tgts span:first-child i { font-size: 0.85em; }

/* OSP pick station illustration (scales with its container) */
.case__visual--osp { min-height: 0; padding: clamp(24px, 5vw, 64px) clamp(12px, 3vw, 40px); }
.osp { width: min(820px, 100%); container-type: inline-size; }
.osp * { box-sizing: border-box; }
.osp__screen {
  font-size: 1.5cqw; color: #f5f5f5; background: #111; border-radius: 1.4em; padding: 1.2em;
  box-shadow: 0 0 0 0.5em #2a2a2a, 0 2em 4em rgb(0 0 0 / 0.45); display: grid; gap: 1em;
}
.osp small { display: block; font-size: 0.8em; text-transform: uppercase; letter-spacing: 0.08em; color: #8f8f8f; }
.osp__top { display: flex; align-items: center; gap: 1em; font-size: 0.9em; color: #a3a3a3; }
.osp__prog { flex: 1; height: 0.35em; border-radius: 1em; background: #2b2b2b; overflow: hidden; }
.osp__prog i { display: block; height: 100%; background: #f5f5f5; }
.osp__body { display: grid; grid-template-columns: 1.1fr 1fr 0.8fr; gap: 1em; align-items: stretch; }
.osp__task { background: #f5f5f5; color: #0a0a0a; border-radius: 1em; padding: 1.1em 1.2em; display: grid; align-content: start; gap: 0.3em; }
.osp__task small { color: #6b6b6b; }
.osp__qty { font-family: var(--serif); font-size: 5.2em; line-height: 0.95; }
.osp__qty span { font-size: 0.45em; margin-left: 0.1em; color: #6b6b6b; }
.osp__task strong { font-size: 1.15em; }
.osp__from { font-size: 0.85em; color: #6b6b6b; }
.osp__totes { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); gap: 0.5em; padding: 0.6em; border-radius: 1em; background: #1d1d1d; border: 1px solid #2f2f2f; }
.osp__slot { border-radius: 0.6em; border: 1px dashed #444; display: grid; place-items: center; font-size: 0.8em; font-weight: 600; text-align: center; padding: 0.3em; }
.osp__slot.is-full { background: repeating-linear-gradient(135deg, #2a2a2a 0 0.4em, #333 0.4em 0.8em); border-style: solid; border-color: #3a3a3a; }
.osp__slot.is-target { background: #f5f5f5; color: #0a0a0a; border: 0; box-shadow: 0 0 0 0.25em rgb(245 245 245 / 0.25); }
.osp__map { border-radius: 1em; background: #1d1d1d; border: 1px solid #2f2f2f; padding: 0.8em; display: grid; gap: 0.5em; align-content: start; font-size: 0.85em; color: #a3a3a3; }
.osp__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.3em; }
.osp__grid i { aspect-ratio: 1; border-radius: 0.2em; background: #2b2b2b; }
.osp__grid i.is-bot { background: #bdbdbd; }
.osp__grid i.is-here { background: #f5f5f5; box-shadow: 0 0 0 0.2em rgb(245 245 245 / 0.3); }
.osp__modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7em; }
.osp__mode { display: flex; align-items: center; gap: 0.7em; padding: 0.8em 1em; border-radius: 0.9em; border: 1px solid #333; font-size: 0.95em; color: #d4d4d4; }
.osp__mode b { display: inline-grid; place-items: center; min-width: 2.6em; height: 2.6em; padding: 0 0.6em; border-radius: 0.7em; background: #262626; color: #f5f5f5; font-size: 0.9em; }
.osp__mode--touch { background: #f5f5f5; color: #0a0a0a; border-color: #f5f5f5; font-weight: 600; }
.osp__mode--touch b { background: #0a0a0a; }
.osp__wave { display: inline-flex !important; gap: 0.18em; align-items: center; }
.osp__wave i { width: 0.22em; border-radius: 1em; background: #f5f5f5; height: 0.6em; animation: oswave 1.2s ease-in-out infinite; }
.osp__wave i:nth-child(2) { height: 1.2em; animation-delay: 0.1s; }
.osp__wave i:nth-child(3) { height: 1.6em; animation-delay: 0.2s; }
.osp__wave i:nth-child(4) { height: 1em; animation-delay: 0.3s; }
.osp__wave i:nth-child(5) { height: 0.5em; animation-delay: 0.4s; }
@keyframes oswave { 50% { transform: scaleY(0.5); } }
@media (prefers-reduced-motion: reduce) { .osp__wave i { animation: none; } }

/* ── Password-protected case studies ───────────────── */
.project__lock {
  position: absolute; top: 14px; right: 14px; z-index: 1;
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px;
  background: rgb(0 0 0 / 0.55); color: #fff; font-size: 12px; font-weight: 500;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.lock { padding-bottom: clamp(64px, 10vw, 120px); }
.lock__card {
  max-width: 560px; margin: 0 auto; padding: clamp(28px, 5vw, 44px); text-align: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px);
  display: grid; gap: 12px; justify-items: center;
}
.lock__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--text); color: var(--bg); margin-bottom: 6px; }
.lock__card h2 { font-family: var(--serif); font-size: clamp(24px, 3vw, 30px); line-height: 1.15; }
.lock__card > p { color: var(--muted); max-width: 40ch; }
.lock__row { display: flex; gap: 8px; width: 100%; max-width: 400px; margin-top: 8px; }
.lock__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lock__input {
  flex: 1; min-width: 0; font: inherit; font-size: 16px; padding: 12px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg); color: var(--text);
}
.lock__input:focus { outline: 2px solid var(--text); outline-offset: 1px; }
.lock__btn { border: 0; cursor: pointer; }
.lock__btn:disabled { opacity: 0.6; cursor: progress; transform: none; }
.lock__error { min-height: 1.4em; font-size: 14px; font-weight: 500; color: var(--text); }
.lock__ask { font-size: 14px; color: var(--muted); }
.lock__ask a { color: var(--text); border-bottom: 1px solid var(--line); }
.lock__card.is-shake { animation: shake 0.35s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@media (prefers-reduced-motion: reduce) { .lock__card.is-shake { animation: none; } }
@media (max-width: 420px) { .lock__row { flex-direction: column; } }

/* Headline typing effect */
.tw__c { opacity: 0; position: relative; }
.tw__c.on { opacity: 1; }
.tw__c.on.glitch {
  color: var(--muted);
  animation: glitch-flicker 0.06s steps(1) infinite;
}
@keyframes glitch-flicker {
  0%   { opacity: 1; }
  33%  { opacity: 0.5; }
  66%  { opacity: 0.9; }
  100% { opacity: 1; }
}
.tw__c.tw__gone { display: none; }
.tw__c.last::after {
  content: ""; position: absolute; left: 100%; margin-left: 0.04em; top: 0.12em; height: 0.9em; width: 0.07em;
  background: currentColor; opacity: 1;
}
.hero__title.tw--done .tw__c.last::after { animation: blink 1s steps(1) infinite; }

/* Git terminal lines around the headline */
.git {
  margin: 0; min-height: 1.6em; white-space: nowrap; overflow: hidden;
  font: 500 13px/1.6 ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: var(--muted);
}
.git--pre { margin-bottom: 16px; }
.git--post { margin-top: 20px; }
.git.is-waiting { visibility: hidden; }
.git__prompt { color: var(--text); margin-right: 0.7em; }
.git__cmd { color: var(--text); }
.git__out { color: var(--muted); }
.git__cur {
  display: inline-block; width: 0.6em; height: 1.1em; margin-left: 2px; vertical-align: -0.2em;
  background: var(--text);
}
.git__cur[hidden] { display: none; }
.git.is-idle .git__cur { animation: blink 1s steps(1) infinite; }
@media (min-width: 821px) { .git { font-size: 14px; } }

/* Download CV button */
.btn--ghost { background: transparent; border-color: transparent; padding-inline: 14px; }
.btn--ghost:hover { border-color: var(--line); }
.contact__links a[download] svg { width: 16px; height: 16px; }
@media (max-width: 560px) { .hero__cta .btn--ghost { flex-basis: 100%; } }
