/* Same tokens and type as the home page: Archivo at two widths, ink on paper, one deep green. */
:root {
  --paper: #f3f2ee;
  --paper-2: #e7e5df;
  --ink: #121211;
  --ink-2: #1c1c1a;
  --mute: #5f5d57;
  --mute-on-ink: #a9a69e;
  --green: #1f4a35;
  --green-hi: #2b6649;
  --on-green: #f3f2ee;
  --green-lt: #8fbfa3;
  --orange: #f26a3d;
  --line-on-paper: rgba(18,18,17,.12);
  --line-on-ink: rgba(243,242,238,.12);
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --s-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --s-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --s-lead: clamp(1.25rem, 1.05rem + 0.8vw, 1.75rem);
  --s-head: clamp(2.4rem, 1.4rem + 4.2vw, 5.2rem);
  --gutter: clamp(16px, 3vw, 44px);
  --col: 1240px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: var(--s-body); line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: clip; }
@media (min-width: 2200px) { body { zoom: 1.2; } }
@media (min-width: 2500px) { body { zoom: 1.33; } }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 700; font-variation-settings: "wdth" 112; letter-spacing: -0.035em; line-height: .98; text-wrap: balance; }
::selection { background: var(--green); color: var(--on-green); }
:focus-visible { outline: 3px solid var(--green-hi); outline-offset: 4px; }
.wrap { padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.col { max-width: var(--col); margin-inline: auto; }
.ul { text-decoration: none; background: linear-gradient(currentColor, currentColor) 100% 100% / 0 1.5px no-repeat; transition: background-size .5s var(--ease); }
.ul:hover, .ul:focus-visible { background-size: 100% 1.5px; background-position: 0 100%; }

/* header */
header { position: sticky; z-index: 50; top: 0; padding-top: calc(18px + env(safe-area-inset-top, 0px)); padding-bottom: 18px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: var(--paper); }
header .mark { font-weight: 800; font-variation-settings: "wdth" 125; letter-spacing: -0.02em; text-decoration: none; font-size: 1.2rem; }
header nav { display: flex; gap: clamp(14px, 2.4vw, 34px); font-size: .98rem; font-weight: 500; }
header nav a { text-decoration: none; }
header nav a[aria-current] { color: var(--green); }

/* buttons */
.btn { --bg: var(--ink); --fg: var(--paper); position: relative; display: inline-flex; align-items: center; gap: .7em; min-height: 54px; padding: 0 1.6em; background: var(--bg); color: var(--fg); text-decoration: none; font-weight: 600; font-size: 1rem; border-radius: 999px; overflow: hidden; isolation: isolate; }
.btn::before { content: ""; position: absolute; inset: 0; background: var(--green); border-radius: inherit; transform: translateY(101%); transition: transform .6s var(--ease); z-index: -1; }
.btn:hover::before, .btn:focus-visible::before { transform: none; }
.btn:hover { color: var(--on-green); }
.btn svg { width: 20px; height: 20px; fill: currentColor; }
.btn .arr { transition: transform .5s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn-line { display: inline-flex; align-items: center; gap: .6em; min-height: 54px; padding: 0 1.4em; border-radius: 999px; border: 1px solid currentColor; text-decoration: none; font-weight: 600; font-size: 1rem; transition: background-color .4s var(--ease), color .4s var(--ease); }
.btn-line:hover, .btn-line:focus-visible { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.dark .btn { --bg: var(--paper); --fg: var(--ink); }
.dark .btn-line:hover, .dark .btn-line:focus-visible { background: var(--paper); color: var(--ink); border-color: var(--paper); }

/* intro */
.intro { padding-block: clamp(64px, 12vh, 140px) clamp(48px, 8vh, 96px); }
.intro h1 { font-size: clamp(3rem, 1.6rem + 6vw, 7.5rem); font-variation-settings: "wdth" 118; }
.intro p { margin-top: clamp(20px, 3vh, 32px); font-size: var(--s-lead); max-width: 36ch; line-height: 1.3; }
.intro .lic { margin-top: 1.2rem; color: var(--mute); font-size: var(--s-small); }

/* project */
.project { background: var(--ink); color: var(--paper); padding-block: clamp(72px, 12vh, 140px); }
.p-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem 4rem; align-items: end; }
.p-head .tag { display: inline-flex; gap: .5em; align-items: center; color: var(--mute-on-ink); font-size: var(--s-small); margin-bottom: 1rem; }
.p-head .tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.p-head h2 { font-size: var(--s-head); }
.p-head .one { margin-top: 1.2rem; font-size: var(--s-lead); line-height: 1.3; max-width: 30ch; color: var(--paper); }
.p-head .acts { display: flex; flex-wrap: wrap; gap: .8rem; }

.stage { position: relative; margin-top: clamp(48px, 8vh, 88px); padding-right: clamp(0px, 6vw, 110px); }
.ph { position: absolute; right: 0; bottom: clamp(-60px, -4vw, -20px); width: clamp(110px, 17%, 230px); aspect-ratio: 420 / 887; border-radius: 26px; border: 6px solid #2a2a27; background: #000; overflow: hidden; box-shadow: 0 40px 70px -20px rgba(0,0,0,.85); }
.ph img { display: block; width: 100%; height: 100%; object-fit: cover; }
.shot.glance { margin-top: clamp(64px, 10vh, 120px); }
.shot { margin: 0; border-radius: 14px; overflow: hidden; background: #000; box-shadow: 0 0 0 1px var(--line-on-ink), 0 40px 90px -30px rgba(0,0,0,.8); }
.shot .bar { height: 30px; display: flex; align-items: center; gap: 6px; padding-left: 14px; border-bottom: 1px solid var(--line-on-ink); background: #0b0b0b; }
.shot .bar i { width: 9px; height: 9px; border-radius: 50%; background: #3a3a36; }
.shot img { display: block; width: 100%; height: auto; }
.stage + .shot-note { margin-top: clamp(76px, 7vw, 100px); }
.shot-note { margin-top: .9rem; color: var(--mute-on-ink); font-size: var(--s-small); text-align: center; }

.cols { margin-top: clamp(64px, 10vh, 120px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 96px); }
.cols h3 { font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.6rem); margin-bottom: 1.2rem; }
.cols p + p { margin-top: 1rem; }
.cols p { color: var(--mute-on-ink); max-width: 56ch; }
.cols p b { color: var(--paper); font-weight: 600; }

.feats { margin-top: clamp(64px, 10vh, 120px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line-on-ink); border: 1px solid var(--line-on-ink); border-radius: 14px; overflow: hidden; }
.feat { background: var(--ink); padding: clamp(24px, 2.6vw, 40px); display: grid; gap: .6rem; align-content: start; }
.feat b { font-size: 1.15rem; font-weight: 650; }
.feat span { color: var(--mute-on-ink); font-size: 1rem; line-height: 1.5; }
.feat .cols4 { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .3rem; }
.feat .cols4 em { font-style: normal; font-size: var(--s-small); padding: .25em .7em; border-radius: 999px; border: 1px solid var(--line-on-ink); }

/* set up */
.setup { padding-block: clamp(72px, 12vh, 140px); }
.setup h2 { font-size: clamp(2rem, 1.2rem + 3vw, 3.8rem); }
.setup .sub { margin-top: 1rem; font-size: var(--s-lead); line-height: 1.3; max-width: 34ch; }
.steps { margin: clamp(40px, 6vh, 64px) 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px); counter-reset: s; }
.steps li { counter-increment: s; background: var(--paper-2); border-radius: 14px; padding: clamp(24px, 2.6vw, 36px); display: grid; gap: .7rem; align-content: start; }
.steps li::before { content: counter(s); font-weight: 800; font-variation-settings: "wdth" 125; font-size: 1.6rem; color: var(--green); line-height: 1; }
.steps b { font-size: 1.15rem; font-weight: 650; }
.steps span { color: var(--mute); font-size: 1rem; }
code { font-family: var(--mono); font-size: .88em; background: rgba(18,18,17,.06); padding: .1em .35em; border-radius: 5px; }
pre { margin: .4rem 0 0; padding: 1rem 1.1rem; background: var(--ink); color: var(--paper); border-radius: 10px; font-family: var(--mono); font-size: .88rem; line-height: 1.6; overflow-x: auto; white-space: pre; }
pre .c { color: var(--mute-on-ink); }
.notes { margin-top: clamp(40px, 6vh, 64px); display: flex; flex-wrap: wrap; gap: 1rem 3rem; justify-content: space-between; align-items: center; border-top: 1px solid var(--line-on-paper); padding-top: 1.6rem; color: var(--mute); font-size: var(--s-small); }
.notes .acts { display: flex; flex-wrap: wrap; gap: .8rem; }

.next { padding-block: clamp(80px, 14vh, 160px); }
.next .box { border: 1px dashed var(--line-on-paper); border-radius: 14px; padding: clamp(28px, 4vw, 56px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem 3rem; align-items: center; }
.next h2 { font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.6rem); }
.next p { margin-top: .6rem; color: var(--mute); max-width: 52ch; }

.jump { margin-top: clamp(28px, 4vh, 44px); display: flex; flex-wrap: wrap; gap: .7rem; }
.jump a { display: inline-flex; align-items: center; gap: .7em; min-height: 48px; padding: 0 1.2em; border-radius: 999px; background: var(--paper-2); text-decoration: none; font-weight: 600; transition: background-color .4s var(--ease), color .4s var(--ease); }
.jump a span { font-weight: 500; font-size: var(--s-small); color: var(--mute); transition: color .4s var(--ease); }
.jump a:hover, .jump a:focus-visible { background: var(--ink); color: var(--paper); }
.jump a:hover span, .jump a:focus-visible span { color: var(--mute-on-ink); }
.project.hg { border-top: 1px solid var(--line-on-ink); }
.project.hg .p-head .tag::before { background: #e8b23a; }
.stage-solo { margin-top: clamp(48px, 8vh, 88px); }
.hg-foot { margin-top: clamp(40px, 6vh, 64px); display: flex; flex-wrap: wrap; gap: 1.2rem 3rem; justify-content: space-between; align-items: center; border-top: 1px solid var(--line-on-ink); padding-top: 1.6rem; }
.hg-foot p { color: var(--mute-on-ink); max-width: 62ch; font-size: 1rem; }
.dark .btn-line { color: var(--paper); }
@media (max-width: 60rem) { .part { text-align: center; } .jump { justify-content: center; } .hg-foot { justify-content: center; text-align: center; } .hg-foot p { margin-inline: auto; } }

.part { font-size: clamp(1.4rem, 1rem + 1.2vw, 2rem); margin-top: clamp(40px, 6vh, 64px); }
.part + .steps { margin-top: 1.4rem; }
.steps-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps li { min-width: 0; }
.shot .demo { display: block; width: 100%; height: auto; background: #000; }
.shot.glance { position: relative; }
.vplay { position: absolute; right: 14px; bottom: 14px; min-height: 36px; padding: 0 .9em; border-radius: 999px; border: 1px solid rgba(243,242,238,.3); background: rgba(18,18,17,.7); color: var(--paper); font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; backdrop-filter: blur(6px); }
.vplay:hover { background: var(--paper); color: var(--ink); }

/* footer */
footer { background: var(--ink); color: var(--paper); padding-block: clamp(40px, 6vh, 72px) calc(28px + env(safe-area-inset-bottom, 0px)); display: grid; gap: clamp(40px, 6vh, 72px); }
.fcols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: var(--gutter); align-items: start; }
.fc { display: grid; gap: .7rem; justify-items: start; align-content: start; }
.fc h4 { margin: 0 0 .3rem; font-size: var(--s-small); font-weight: 600; color: var(--mute-on-ink); }
.fc a { text-decoration: none; font-size: 1.05rem; }
.fc-lead p { font-size: clamp(22px, 1.9vw, 32px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; max-width: 18ch; }
footer .row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem 2rem; font-size: var(--s-small); color: var(--mute-on-ink); border-top: 1px solid var(--line-on-ink); padding-top: 1.4rem; }
footer .row a { text-decoration: none; }

/* entrance */
.rise { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
.rise.in { opacity: 1; transform: none; }
.no-js .rise { opacity: 1; transform: none; }

@media (max-width: 60rem) {
  header nav { display: none; }
  .intro, .p-head, .setup-head, .next .box { text-align: center; }
  .intro p { margin-inline: auto; }
  .p-head { grid-template-columns: 1fr; justify-items: center; }
  .p-head .one { margin-inline: auto; }
  .p-head .acts, .notes .acts { justify-content: center; }
  .cols { grid-template-columns: 1fr; }
  .cols > div { max-width: 40rem; margin-inline: auto; }
  .cols h3 { text-align: center; }
  .feats { grid-template-columns: 1fr 1fr; }
  .feat { text-align: center; justify-items: center; }
  .feat .cols4 { justify-content: center; }
  .setup .sub { margin-inline: auto; }
  .steps { grid-template-columns: 1fr; }
  .notes { justify-content: center; text-align: center; }
  .next .box { grid-template-columns: 1fr; justify-items: center; }
  .next p { margin-inline: auto; }
  .fcols { grid-template-columns: repeat(3, 1fr); text-align: center; }
  .fc { justify-items: center; }
  .fc-lead { grid-column: 1 / -1; }
  .fc-lead p { margin-inline: auto; }
  footer .row { justify-content: center; text-align: center; }
}
@media (max-width: 34rem) {
  .feats { grid-template-columns: 1fr; }
  .fcols { grid-template-columns: 1fr; }
  .shot .bar { height: 22px; }
  .stage { padding-right: 0; }
  .ph { width: 28%; right: -4px; border-width: 4px; border-radius: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise { opacity: 1; transform: none; transition: none; }
  .btn::before, .btn .arr, .ul { transition: none; }
}

/* phone menu: a full-screen ink sheet with big links */
.menu-btn { display: none; align-items: center; gap: .55em; min-height: 44px; padding: 0 1.1em; margin-right: -.4em; border-radius: 999px; border: 1px solid currentColor; background: none; color: inherit; font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer; }
.menu-btn i { position: relative; width: 16px; height: 10px; display: inline-block; }
.menu-btn i::before, .menu-btn i::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; border-radius: 1px; }
.menu-btn i::before { top: 1px; } .menu-btn i::after { bottom: 1px; }
.mnav { position: fixed; inset: 0; z-index: 90; background: var(--ink); color: var(--paper); display: grid; grid-template-rows: auto 1fr auto; padding: calc(18px + env(safe-area-inset-top, 0px)) max(var(--gutter), env(safe-area-inset-right, 0px)) calc(28px + env(safe-area-inset-bottom, 0px)) max(var(--gutter), env(safe-area-inset-left, 0px)); visibility: hidden; opacity: 0; transition: opacity .45s var(--ease), visibility 0s linear .45s; overflow-y: auto; }
.mnav.open { visibility: visible; opacity: 1; transition: opacity .45s var(--ease); }
.mnav .mtop { display: flex; align-items: center; justify-content: space-between; }
.mnav .mtop .mark { font-weight: 800; font-variation-settings: "wdth" 125; letter-spacing: -0.02em; text-decoration: none; font-size: 1.2rem; }
.mnav .menu-btn { display: inline-flex; }
.mnav .menu-btn i::before { top: 4px; transform: rotate(45deg); } .mnav .menu-btn i::after { bottom: 4.5px; transform: rotate(-45deg); }
.mnav nav { display: grid; align-content: center; justify-items: center; gap: clamp(2px, 1vh, 10px); padding-block: 4vh; }
.mnav nav a { font-size: clamp(34px, 10vw, 60px); font-weight: 700; font-variation-settings: "wdth" 112; letter-spacing: -0.035em; line-height: 1.12; text-decoration: none; transform: translateY(18px); opacity: 0; transition: transform .7s var(--ease), opacity .7s var(--ease), color .3s; }
.mnav nav a[aria-current] { color: var(--green-lt); }
.mnav nav a:hover { color: var(--green-lt); }
.mnav.open nav a { transform: none; opacity: 1; }
.mnav.open nav a:nth-child(2) { transition-delay: .04s; } .mnav.open nav a:nth-child(3) { transition-delay: .08s; } .mnav.open nav a:nth-child(4) { transition-delay: .12s; } .mnav.open nav a:nth-child(5) { transition-delay: .16s; } .mnav.open nav a:nth-child(6) { transition-delay: .2s; } .mnav.open nav a:nth-child(7) { transition-delay: .24s; }
.mnav .mfoot { display: grid; justify-items: center; gap: .5rem; text-align: center; font-size: var(--s-small); color: var(--mute-on-ink); }
.mnav .mfoot a { color: var(--paper); text-decoration: none; font-size: 1rem; }
@media (max-width: 60rem) { header .menu-btn { display: inline-flex; } }
@media (prefers-reduced-motion: reduce) { .mnav, .mnav nav a { transition: none; } }
