/* Companion Dock — dock.semkivlabs.tech
   Layout idea: one pinned, scroll-scrubbed product stage on pure black, then quiet
   left-aligned bands. Labels are set like the engraving on the case (mono, tracked caps). */
@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/Barlow-Regular.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/Barlow-Medium.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/Barlow-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/BarlowSemiCondensed-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/JetBrainsMono-Medium.woff2") format("woff2"); }
:root {
  color-scheme: dark;
  --bg: #000000;
  --surface: #0b0c0e;
  --line: #1e2125;
  --text: #f1f2f4;
  --muted: #9ba2ab;
  --glow: #a9d4ff;          /* the key's light */
  --warm: #f2b84b;          /* kapton / brass, used once for the support button */
  --font-display: "Barlow Semi Condensed", "Barlow", "DIN Alternate", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Barlow", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --wrap: 1120px;
  --gutter: clamp(18px, 4vw, 48px);
  --nav-h: 60px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; border-radius: 4px; }
code { font: 500 0.88em var(--font-mono); background: var(--surface); border: 1px solid var(--line); border-radius: 5px; padding: 0.08em 0.38em; }
em { font-style: normal; color: var(--text); font-weight: 500; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.04; letter-spacing: -0.012em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
h3 { font-size: 1.35rem; line-height: 1.15; letter-spacing: 0; }
p { margin: 0; }
.eyebrow { font: 500 0.74rem/1 var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--glow); margin-bottom: 1.1rem; }
.lede { font-size: clamp(1.06rem, 1.35vw, 1.22rem); line-height: 1.5; color: #c9ced5; max-width: 34em; }
.lede.narrow { max-width: 40em; margin-top: 1.1rem; }
.fine { font-size: 0.86rem; color: var(--muted); margin-top: 0.9rem; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--text); color: #000; padding: 8px 12px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 40px; padding: 0 1.05em; border-radius: 999px; border: 1px solid transparent;
  font: 500 0.95rem/1 var(--font-body); text-decoration: none; white-space: nowrap;
  transition: background-color .18s, border-color .18s, color .18s, transform .18s;
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn-lg { min-height: 48px; padding: 0 1.35em; font-size: 1.02rem; }
.btn-solid { background: var(--text); color: #000; }
.btn-solid:hover { background: #fff; transform: translateY(-1px); }
.btn-ghost { border-color: #3a3f46; color: var(--text); background: rgba(0,0,0,.35); }
.btn-ghost:hover { border-color: var(--text); }
.btn-warm { background: var(--warm); color: #1a1200; }
.btn-warm:hover { background: #ffc85c; transform: translateY(-1px); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.8rem; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 var(--gutter);
  background: linear-gradient(#000c, #0000); backdrop-filter: blur(10px) saturate(140%); -webkit-backdrop-filter: blur(10px) saturate(140%);
  -webkit-mask-image: linear-gradient(#000 70%, #0000); mask-image: linear-gradient(#000 70%, #0000);
}
.brand { display: inline-flex; align-items: center; text-decoration: none; font: 600 1.12rem/1 var(--font-display); letter-spacing: 0.01em; }
.nav-links { display: flex; gap: clamp(14px, 2.2vw, 30px); font-size: 0.93rem; }
.nav-links a { text-decoration: none; color: #c3c8cf; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; gap: 8px; }
@media (max-width: 900px) { .nav-links { display: none; } }
@media (max-width: 420px) { .nav-cta .btn-ghost span { display: none; } .nav-cta .btn-ghost { padding: 0 0.8em; } }

/* ---------- stage (scroll sequence) ---------- */
.stage { position: relative; background: #000; }
.stage-pin { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(20px, 3vw, 48px); overflow: hidden; padding-inline: max(var(--gutter), calc((100vw - 1320px) / 2)); }
.stage-canvas { display: none; position: absolute; inset: 0; width: 100%; height: 100%; }
.stage-still { position: absolute; top: 0; left: min(15vw, 260px); width: 100%; height: 100vh; height: 100svh; object-fit: cover; object-position: 50% 55%; -webkit-mask-image: linear-gradient(to right, #0000, #000 9%); mask-image: linear-gradient(to right, #0000, #000 9%); }
.beat { position: relative; z-index: 2; padding-bottom: clamp(48px, 7vw, 88px); }
.beat-hero { grid-column: 1 / -1; min-height: 100vh; min-height: 100svh; display: grid; align-content: center; justify-items: start; max-width: 31rem; padding-block: calc(var(--nav-h) + 24px) 48px; }
.beat h2 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); }
.beat .lede { margin-top: 1.2rem; max-width: 27em; }
.scroll-hint { display: none; }

/* pinned mode: JS on, motion allowed */
.js-seq .stage { height: 560vh; }
.js-seq .stage-pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: block; padding-inline: 0; }
.js-seq .stage-canvas { display: block; }
.js-seq .stage-still { display: none; }
.js-seq .beat {
  display: block; position: absolute; top: 50%; left: max(var(--gutter), calc((100vw - 1320px) / 2)); width: min(100% - 2 * var(--gutter), 29rem);
  min-height: 0; max-width: none; padding: 0; transform: translateY(calc(-50% + var(--dy, 0px))); opacity: 0; visibility: hidden; will-change: opacity, transform;
}
.js-seq .beat h2 { font-size: clamp(2.3rem, 5vw, 4.2rem); }
.js-seq .beat.is-on { visibility: visible; }
.js-seq .beat-hero { opacity: 1; visibility: visible; }
.js-seq .scroll-hint {
  display: flex; align-items: center; gap: 10px; position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  font: 500 0.7rem/1 var(--font-mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); transition: opacity .3s;
}
.scroll-hint span { width: 1px; height: 26px; background: linear-gradient(var(--muted), #0000); animation: hint 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes hint { 0%,100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }

@media (max-width: 760px), (orientation: portrait) {
  .stage-pin { grid-template-columns: 1fr; }
  .stage-still { left: 0; object-fit: contain; object-position: 50% 82%; -webkit-mask-image: none; mask-image: none; }
  .beat-hero { align-content: start; }
  .js-seq .beat { top: calc(var(--nav-h) + 2vh); transform: translateY(var(--dy, 0px)); }
  .beat h1 { font-size: clamp(2.1rem, 8.6vw, 3rem); }
  .js-seq .beat h2 { font-size: clamp(2rem, 8.4vw, 2.9rem); }
  .beat .lede { font-size: 1rem; margin-top: 0.8rem; }
  .beat .cta-row { margin-top: 1.1rem; gap: 8px; }
  .beat .btn-lg { min-height: 44px; font-size: 0.95rem; padding: 0 1.1em; }
}

/* ---------- bands ---------- */
.band { padding-block: clamp(72px, 11vw, 150px); border-top: 1px solid var(--line); }
.band > .wrap + .wrap, .band > .wrap + .bleed, .band > .bleed + .wrap { margin-top: clamp(36px, 5vw, 64px); }
.two { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 6vw, 88px); align-items: start; }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; } }
.prose { display: grid; gap: 1.05em; color: #c9ced5; font-size: 1.08rem; max-width: 36em; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0; border-top: 1px solid var(--line); }
.stats div { padding: 26px 20px 0 0; }
.stats dt { font: 500 0.72rem/1.3 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.stats dd { margin: 0.5rem 0 0; font: 600 clamp(2.2rem, 4.6vw, 3.6rem)/1 var(--font-display); font-variant-numeric: tabular-nums; }
.stats dd small { font: 400 0.95rem/1 var(--font-body); color: var(--muted); margin-left: 0.3em; }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 8px; } }

.grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.grid > li { background: var(--bg); padding: clamp(22px, 2.6vw, 34px); display: grid; gap: 0.7rem; align-content: start; }
.grid p { color: var(--muted); font-size: 0.98rem; }
.features { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(32px, 4vw, 56px); }
@media (max-width: 1040px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }
.variants { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .variants { grid-template-columns: 1fr; } }
.spec { font: 500 0.8rem/1.3 var(--font-mono); letter-spacing: 0.04em; color: var(--text) !important; font-variant-numeric: tabular-nums; }

/* screenshots */
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); margin-top: clamp(32px, 4vw, 56px); }
.shots.web { margin-top: clamp(14px, 2vw, 24px); }
@media (max-width: 700px) { .shots { grid-template-columns: 1fr; } }
figure { margin: 0; }
.shot img { width: 100%; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
figcaption { margin-top: 0.7rem; font-size: 0.9rem; color: var(--muted); }
figcaption strong { color: var(--text); font-weight: 500; }

/* case */
.bleed { width: min(100%, 1680px); margin-inline: auto; }
.bleed img { width: 100%; }
.details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); margin-top: clamp(28px, 4vw, 48px); }
.details img { width: 100%; aspect-ratio: 8 / 5; object-fit: cover; border-radius: 14px; border: 1px solid var(--line); }
@media (max-width: 860px) { .details { grid-template-columns: 1fr; } }
.note { margin-top: clamp(24px, 3vw, 40px); color: var(--muted); max-width: 52em; }

/* tables */
.tables { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); margin-top: clamp(32px, 4vw, 56px); }
@media (max-width: 900px) { .tables { grid-template-columns: 1fr; } }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
caption { text-align: left; font: 600 1.35rem/1.2 var(--font-display); padding-bottom: 0.9rem; }
th, td { text-align: left; vertical-align: top; padding: 0.8rem 1rem 0.8rem 0; border-top: 1px solid var(--line); }
thead th { font: 500 0.7rem/1.3 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); border-top: 0; }
tbody th { font-weight: 500; min-width: 11em; }
td { color: #c3c8cf; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--text); }

/* steps */
.steps { list-style: none; margin: clamp(32px, 4vw, 56px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); counter-reset: step; }
.steps li { counter-increment: step; display: grid; gap: 0.8rem; align-content: start; justify-items: start; border-top: 1px solid var(--line); padding-top: 1.4rem; }
.steps li::before { content: "0" counter(step); font: 500 0.78rem/1 var(--font-mono); letter-spacing: 0.14em; color: var(--glow); }
.steps p { color: var(--muted); }
.steps .btn { margin-top: 0.4rem; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* buy */
.buy { background: radial-gradient(120% 90% at 85% 40%, #10151b 0%, #000 62%); }
.buy .two { align-items: center; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.buy-copy { display: grid; gap: 1.1rem; justify-items: start; }
.buy-copy > p:not(.eyebrow):not(.lede):not(.fine) { color: var(--muted); max-width: 34em; }
.buy-copy .eyebrow { margin-bottom: 0; }
.buy-art img { width: min(100%, 460px); margin-inline: auto; mix-blend-mode: lighten; }
@media (max-width: 860px) { .buy .two { grid-template-columns: 1fr; } .buy-art { order: -1; } .buy-art img { width: min(72%, 320px); } }

/* support */
.support { padding-block: clamp(48px, 6vw, 80px); }
.support-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.support h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.support p { color: var(--muted); margin-top: 0.6rem; max-width: 34em; }

/* faq */
.faq { border-bottom: 1px solid var(--line); }
.faq details { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1.15rem 2.2rem 1.15rem 0; position: relative; font: 600 1.3rem/1.2 var(--font-display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 11px; height: 11px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq p { color: #c3c8cf; padding: 0 2rem 1.3rem 0; max-width: 42em; }

/* footer */
.foot { border-top: 1px solid var(--line); padding-block: 48px 56px; color: var(--muted); font-size: 0.92rem; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 48px; }
.foot-brand { font: 600 1.15rem/1 var(--font-display); color: var(--text); margin-bottom: 0.5rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; align-content: start; max-width: 34em; }
.legal { margin-top: 28px; font-size: 0.8rem; max-width: 60em; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-hint span { animation: none; }
  .btn { transition: none; }
}
