:root {
  --deepslate: #22262e;
  --deepslate-2: #1b1f26;
  --tuff: #2f343e;
  --tuff-line: #3d4350;
  --bone: #ece8df;
  --bone-dim: #b9b5ac;
  --bone-faint: #8a8780;
  --oak: #c48a4a;
  --oak-deep: #a06d33;
  --redstone: #e0493e;
  --lapis: #8fb0f0;
  --amethyst: #9b55c4;
  --emerald: #2f9a57;

  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --body: "IBM Plex Sans", system-ui, sans-serif;

  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: 2.4rem;
  --step-4: clamp(3rem, 6.4vw, 5.6rem);
  --measure: 34em;
  --gutter: clamp(1rem, 4vw, 3rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--deepslate);
  color: var(--bone);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

img, video, svg { display: block; max-width: 100%; height: auto; }

a { color: var(--lapis); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--bone); }

:focus-visible { outline: 2px solid var(--oak); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 0.95; margin: 0; letter-spacing: 0.005em; }
h2 { font-size: var(--step-3); margin-bottom: 1.4rem; }
h3 { font-size: var(--step-2); margin-bottom: 0.5rem; font-weight: 700; }

p { margin: 0 0 1rem; max-width: var(--measure); }

code, kbd {
  font-family: var(--body);
  font-size: 0.9em;
  background: var(--tuff);
  border: 1px solid var(--tuff-line);
  padding: 0.05em 0.4em;
  border-radius: 3px;
}
kbd { border-bottom-width: 3px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--oak); color: #1a1408; padding: 0.5rem 1rem; }
.skip:focus { left: 1rem; z-index: 10; }

/* buttons: a pressed-stone feel, the one place with depth */
.btn {
  display: inline-block;
  font-weight: 600;
  text-decoration: none;
  color: #1d1406;
  background: var(--oak);
  padding: 0.85rem 1.4rem 0.75rem;
  border-radius: 4px;
  border-bottom: 4px solid var(--oak-deep);
  transition: transform 0.08s, border-bottom-width 0.08s;
}
.btn:hover { color: #1d1406; background: #d29857; }
.btn:active { transform: translateY(2px); border-bottom-width: 2px; }
.btn-quiet { background: transparent; color: var(--bone); border: 1px solid var(--tuff-line); border-bottom: 1px solid var(--tuff-line); }
.btn-quiet:hover { background: var(--tuff); color: var(--bone); }
.btn-small { padding: 0.45rem 0.9rem 0.35rem; border-bottom-width: 3px; font-size: 0.95rem; }
.btn-big { font-size: var(--step-1); padding: 1rem 1.8rem 0.9rem; }

/* header */
.top {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem var(--gutter);
  border-bottom: 1px solid var(--tuff-line);
}
.brand { display: flex; align-items: center; gap: 0.6rem; color: var(--bone); text-decoration: none; font-family: var(--display); font-size: 1.7rem; font-weight: 800; }
.brand img { image-rendering: pixelated; }
.top nav { display: flex; gap: 1.4rem; margin-left: auto; }
.top nav a { color: var(--bone-dim); text-decoration: none; font-size: 0.95rem; }
.top nav a:hover { color: var(--bone); }

/* hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
  padding: clamp(2.5rem, 6vw, 5.5rem) var(--gutter) 3rem;
}
.hero h1 { font-size: var(--step-4); font-weight: 900; text-transform: none; margin-bottom: 1.4rem; max-width: 9ch; }
.lede { font-size: var(--step-1); color: var(--bone); line-height: 1.55; }
.actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 2rem 0 1.2rem; }
.fineprint { color: var(--bone-faint); font-size: 0.92rem; }

.monitor { margin: 0; }
.monitor-frame {
  position: relative;
  background: #000;
  border: 1px solid var(--tuff-line);
  border-radius: 6px 6px 0 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}
.monitor-frame video { width: 100%; height: 100%; object-fit: cover; }
.sound {
  position: absolute; right: 0.8rem; bottom: 0.8rem;
  font: 500 0.85rem var(--body);
  color: var(--bone); background: rgba(27, 31, 38, 0.82);
  border: 1px solid var(--tuff-line); border-radius: 4px;
  padding: 0.35rem 0.7rem; cursor: pointer;
}
.sound[aria-pressed="true"] { border-color: var(--oak); }
.monitor figcaption { color: var(--bone-faint); font-size: 0.9rem; margin-top: 0.8rem; }

/* the edit under the monitor: real tracks of the demo project */
.edit {
  position: relative;
  background: var(--deepslate-2);
  border: 1px solid var(--tuff-line);
  border-top: 0;
  border-radius: 0 0 6px 6px;
  padding: 1.6rem 0.8rem 0.8rem 3.2rem;
}
.ruler { position: absolute; left: 3.2rem; right: 0.8rem; top: 0.35rem; height: 1rem; }
.ruler span { position: absolute; transform: translateX(-50%); font-size: 0.72rem; color: var(--bone-faint); }
.ruler span:first-child { transform: none; }
.ruler span:last-child { transform: translateX(-100%); }
.track { position: relative; height: 1.7rem; margin-bottom: 0.35rem; }
.tname { position: absolute; left: -2.6rem; top: 0.25rem; font-size: 0.78rem; color: var(--bone-faint); }
.lane { position: absolute; inset: 0; background: rgba(255, 255, 255, 0.025); border-radius: 3px; }
.clip {
  position: absolute; top: 0; bottom: 0;
  font-style: normal; font-size: 0.75rem; line-height: 1.7rem;
  padding: 0 0.5rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  border-radius: 3px; color: #fff;
}
.clip.text { background: var(--amethyst); }
.clip.replay { background: #b0743a; }
.clip.audio { background: #1f6b3d; padding: 0; }
.clip.audio svg { width: 100%; height: 100%; }
.clip.audio path { fill: #8fe0ad; }
.playhead {
  position: absolute; top: 1.3rem; bottom: 0.5rem; left: 3.2rem;
  width: 2px; background: var(--redstone);
  box-shadow: 0 0 0 1px rgba(224, 73, 62, 0.25);
  pointer-events: none;
}
.playhead::before {
  content: ""; position: absolute; top: -6px; left: -5px;
  width: 12px; height: 8px; background: var(--redstone); border-radius: 2px 2px 0 0;
}

section { padding: clamp(3rem, 7vw, 6rem) var(--gutter); }

/* how it works: a real sequence, so the timecodes carry order */
.how { border-top: 1px solid var(--tuff-line); }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: start;
  padding: 2.2rem 0;
  border-top: 1px solid var(--tuff-line);
}
.steps li:first-child { border-top: 0; padding-top: 0.5rem; }
.tc { font-weight: 600; color: var(--redstone); font-size: 1rem; padding-top: 0.35rem; }
.steps img { border-radius: 4px; border: 1px solid var(--tuff-line); }

/* gallery */
.gallery { background: var(--deepslate-2); }
.shot { margin: 0; }
.shot img { border-radius: 4px; border: 1px solid var(--tuff-line); width: 100%; }
.shot figcaption { color: var(--bone-dim); font-size: 0.95rem; margin-top: 0.7rem; max-width: var(--measure); }
.wide { margin-bottom: 2.5rem; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 3vw, 2.5rem); }

/* features: plain grouped lists */
.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem clamp(1.5rem, 4vw, 3.5rem); }
.cols h3 { font-size: 1.5rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--oak); display: inline-block; }
.cols ul { list-style: none; margin: 0.8rem 0 0; padding: 0; }
.cols li { padding: 0.32rem 0; color: var(--bone-dim); border-bottom: 1px solid rgba(61, 67, 80, 0.6); }

/* assistants */
.assistants {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  border-top: 1px solid var(--tuff-line);
}
.clients { margin: 0 0 1.2rem; padding-left: 1.1rem; }
.clients li { padding: 0.15rem 0; }
.clients li::marker { color: var(--oak); }

/* install: genuinely ordered */
.install { background: var(--deepslate-2); }
.numbered { counter-reset: n; list-style: none; margin: 0; padding: 0; max-width: 48rem; }
.numbered li { counter-increment: n; display: grid; grid-template-columns: 3rem 1fr; padding: 1rem 0; border-top: 1px solid var(--tuff-line); }
.numbered li::before { content: counter(n); font-family: var(--display); font-weight: 800; font-size: 2rem; line-height: 1; color: var(--oak); }
.numbered p { margin: 0; }

/* download */
.download { border-top: 1px solid var(--tuff-line); }
.dl-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: end; }
.file-name { font-family: var(--display); font-size: var(--step-3); font-weight: 800; margin-bottom: 1rem; }
.file dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem 2rem; max-width: 42rem; }
.file dl div { display: flex; gap: 0.8rem; border-top: 1px solid var(--tuff-line); padding-top: 0.5rem; }
.file dt { color: var(--bone-faint); min-width: 5.5rem; }
.file dd { margin: 0; }
.hash { word-break: break-all; font-size: 0.82rem; color: var(--bone-dim); }
.dl-row + .dl-row { margin-top: 2.6rem; padding-top: 2.6rem; border-top: 1px solid var(--tuff-line); }
.file dl .wide { grid-column: 1 / -1; }
.download > .fineprint { margin-top: 2rem; }
.dl-actions .btn-big { min-width: 17rem; }
.dl-actions { display: flex; flex-direction: column; gap: 0.8rem; align-items: stretch; text-align: center; }

.foot { padding: 2rem var(--gutter) 3rem; color: var(--bone-faint); font-size: 0.9rem; border-top: 1px solid var(--tuff-line); }
.foot p { max-width: none; }
.foot a { margin-right: 1.2rem; }

@media (max-width: 960px) {
  .hero, .assistants { grid-template-columns: 1fr; }
  .hero h1 { max-width: 12ch; }
  .steps li { grid-template-columns: 4.5rem 1fr; }
  .steps img { grid-column: 1 / -1; }
  .cols { grid-template-columns: 1fr 1fr; }
  .dl-row { grid-template-columns: 1fr; }
  .dl-actions { align-items: flex-start; }
}
@media (max-width: 640px) {
  .top nav { display: none; }
  .top .btn-small { margin-left: auto; }
  .cols, .pair, .file dl { grid-template-columns: 1fr; }
  .edit { padding-left: 2.6rem; }
  .ruler { left: 2.6rem; }
  .playhead { left: 2.6rem; }
  .tname { left: -2.2rem; }
  .clip { font-size: 0.68rem; }
}

/* shorts: three phone-shaped clips */
.shorts { border-top: 1px solid var(--tuff-line); }
.shorts-intro { color: var(--bone-dim); margin-bottom: 2rem; }
.reel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2.5rem); max-width: 64rem; }
.short { margin: 0; }
.short video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: #000; border-radius: 6px; border: 1px solid var(--tuff-line); }
.short figcaption { color: var(--bone-dim); font-size: 0.95rem; margin-top: 0.8rem; }
.short figcaption strong { display: block; color: var(--bone); font-family: var(--display); font-size: var(--step-1); font-weight: 800; margin-bottom: 0.2rem; }
@media (max-width: 760px) {
  .reel { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 72%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 0.8rem; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .short { scroll-snap-align: start; }
}
