:root {
  --bg: #f6f6f3;
  --ink: #161a21;
  --lime: #c6f432;
  --mute: #a7a9ad;
  --line: rgba(22, 26, 33, .28);
  --pad: 16px;
  --sans: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.3 var(--sans); letter-spacing: -.01em; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
canvas { display: block; }
::selection { background: var(--lime); color: var(--ink); }
:focus-visible { outline: 2px solid #2b4bff; outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--bg); padding: 10px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* ---------- Menu bar and hero labels ---------- */
.hud {
  left: 0; right: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 0 var(--pad); height: 40px;
  font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .02em;
}
/* Solid bar: takes the colour of the section under it, so nothing shows through. */
.hud.top { position: fixed; top: 0; background: var(--bg); color: var(--ink); border-bottom: 1px solid var(--line); transition: background-color .15s steps(2), color .15s steps(2); }
.hud.top.on-dark { background: var(--ink); color: var(--bg); border-bottom-color: rgba(246, 246, 243, .22); }
/* The lower labels belong to the hero only and scroll away with it. */
.hud.bot { position: absolute; top: calc(max(100vh, 520px) - 40px); top: calc(max(100svh, 520px) - 40px); color: var(--ink); pointer-events: none; }
.hud a { display: inline-flex; align-items: center; height: 40px; padding: 0 2px; }
.hud a:hover { text-decoration: underline; text-underline-offset: 4px; }

.brace { font-size: 17px; letter-spacing: -.02em; }
.moji { display: inline-block; width: .82em; height: .82em; vertical-align: -.06em; margin: 0 .04em; }
.moji svg { display: block; width: 100%; height: 100%; }
.sq { display: inline-block; width: .62em; height: .62em; background: currentColor; margin-left: .35em; }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 520px; background: var(--bg); color: var(--ink); overflow: hidden; border-bottom: 1px solid var(--ink); }
#heroCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-copy { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 var(--pad) 78px; text-align: center; pointer-events: none; }
h1 { font-size: clamp(34px, min(7.1vw, 14.5vh), 118px); line-height: .9; font-weight: 400; letter-spacing: -.055em; text-transform: uppercase; text-wrap: balance; max-width: 1500px; margin: 0 auto; }
.hero .brace { margin-top: clamp(18px, 3vh, 34px); font-size: clamp(18px, 1.7vw, 26px); letter-spacing: -.035em; }

/* ---------- Statement ---------- */
.statement { padding: clamp(100px, 17vh, 190px) 10vw clamp(50px, 8vh, 90px); }
.statement p { font-size: clamp(27px, 3.45vw, 54px); line-height: 1.04; letter-spacing: -.055em; text-indent: 28%; max-width: 1240px; margin: 0 auto; }
.statement .w { color: var(--mute); transition: color .25s linear; }
.statement .w.on { color: var(--ink); }
.statement .moji { opacity: .25; transition: opacity .25s linear, transform .25s steps(3); transform: scale(.6); text-indent: 0; }
.statement .moji.on { opacity: 1; transform: none; }

/* ---------- Sections ---------- */
.sec { padding: 0 var(--pad) 70px; scroll-margin-top: 40px; }
.sec.dark { background: var(--ink); color: var(--bg); --line: rgba(246, 246, 243, .3); }
.sec-title { text-align: center; padding: clamp(70px, 12vh, 130px) 0 clamp(56px, 9vh, 100px); }
.sec-title h2 { font-size: clamp(64px, 10.5vw, 150px); line-height: 1.1; font-weight: 400; letter-spacing: -.065em; }
.sec-title .brace { margin-top: 14px; }
.lime { color: var(--lime); }
.lede { font-size: clamp(22px, 2.4vw, 34px); line-height: 1.08; letter-spacing: -.045em; max-width: 880px; margin: -40px auto 110px; text-align: center; text-wrap: balance; }

/* work rows */
.work { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 5.6fr) minmax(0, 3.4fr); gap: 28px; border-top: 1px solid var(--ink); padding: 14px 0 44px; align-items: start; }
.dark .work { border-top-color: var(--bg); }
.work-art { display: block; overflow: hidden; }
.pxa { width: 100%; height: auto; aspect-ratio: 5 / 3; }
.work .num { margin-bottom: 14px; }
.work h3 { font-size: clamp(30px, 3.6vw, 54px); line-height: 1; font-weight: 400; letter-spacing: -.05em; max-width: 14.5em; text-wrap: balance; }
.work-desc { margin-top: 16px; max-width: 27em; font-size: clamp(17px, 1.45vw, 21px); line-height: 1.2; letter-spacing: -.03em; color: color-mix(in srgb, currentColor 72%, transparent); }
.link { display: inline-flex; align-items: center; margin-top: 14px; min-height: 40px; font-size: 17px; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.link:hover .sq { background: var(--lime); outline: 1px solid var(--ink); }
.dark .link:hover .sq { outline: 0; }
.work-meta { font: 400 11px/1.45 var(--mono); text-transform: uppercase; letter-spacing: .02em; padding-left: 8px; }
.work-meta .k { font-weight: 500; margin-top: 14px; }
.work-meta .k:first-child { margin-top: 0; margin-bottom: 8px; }
.work-meta .v { opacity: .62; }

/* pixel wipes */
.wipe { width: 100%; height: 34vh; min-height: 220px; }

/* ---------- Approach ---------- */
.approach { padding-bottom: 0; }
.arows { position: relative; }
.stage { position: sticky; top: 0; height: 100vh; display: grid; place-items: center; pointer-events: none; z-index: 2; }
#stageCanvas { width: min(40vw, 62vh, 580px); height: min(40vw, 62vh, 580px); }
.stage + .arow { margin-top: -100vh; }
.arow { height: 86vh; min-height: 520px; border-top: 1px solid var(--ink); display: grid; grid-template-columns: 1fr min(40vw, 62vh, 580px) 1fr; gap: 24px; padding: 0 44px; }
.arow-l { padding-top: 11vh; transition: opacity .3s linear; }
.arow.past .arow-l { opacity: .28; }
.num { display: block; text-transform: uppercase; font: 500 11px/1 var(--mono); margin-bottom: 20px; }
.arow h3 { font-size: clamp(30px, 3.7vw, 56px); line-height: .98; font-weight: 400; letter-spacing: -.06em; max-width: 6.2em; }
.arow-r { align-self: end; justify-self: end; padding-bottom: 10vh; max-width: 290px; }
.arow-r p { font-size: clamp(17px, 1.45vw, 21px); line-height: 1.08; letter-spacing: -.035em; text-indent: 2.4em; }

/* ---------- Contact ---------- */
.contact { padding-bottom: 60px; }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 16px; max-width: 980px; margin: 0 auto; }
.field { display: flex; flex-direction: column; gap: 8px; }
.full { grid-column: 1 / -1; }
.field label { font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .02em; opacity: .6; }
.field input, .field select, .field textarea { background: transparent; color: inherit; border: 0; border-bottom: 1px solid var(--bg); border-radius: 0; padding: 8px 0 12px; font: 400 clamp(20px, 2vw, 28px)/1.1 var(--sans); letter-spacing: -.04em; width: 100%; }
.field select { appearance: none; background: linear-gradient(var(--bg), var(--bg)) right 4px center / 10px 10px no-repeat; }
.field select option { color: #000; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--lime); }
.form-foot { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.btn { background: var(--lime); color: var(--ink); border: 0; border-radius: 0; padding: 16px 20px; font: 500 12px/1 var(--mono); letter-spacing: .02em; cursor: pointer; box-shadow: 6px 6px 0 var(--bg); transition: transform .12s steps(2), box-shadow .12s steps(2); }
.btn:hover { transform: translate(3px, 3px); box-shadow: 3px 3px 0 var(--bg); }
.btn:active { transform: translate(6px, 6px); box-shadow: none; }
.form-msg { font-size: 15px; color: var(--lime); }

.foot { margin-top: 150px; padding-bottom: 40px; }
.foot-row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--bg); padding: 14px 0 34px; font: 500 11px/1 var(--mono); letter-spacing: .02em; }
.foot-row a { padding: 14px 0; margin: -14px 0; }
.foot-row a:hover { color: var(--lime); }
.fine { font-size: 13px; line-height: 1.4; opacity: .5; max-width: 640px; margin-top: 4px; letter-spacing: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hide-s { display: none; }
  .hud.top { gap: 8px; }
  .btn { padding: 18px 22px; }
  h1 span { display: block; }
  .hero .brace { text-wrap: balance; }
  .statement { padding-left: var(--pad); padding-right: var(--pad); }
  .statement p { text-indent: 18%; }
  .work { grid-template-columns: 1fr; gap: 16px; padding-bottom: 48px; }
  .work-art { max-width: 260px; }
  .work-meta { padding-left: 0; }
  .work-meta .k { margin-top: 6px; }
  .lede { margin-top: -20px; margin-bottom: 70px; }
  .stage { height: 50vh; background: var(--bg); border-bottom: 1px solid var(--ink); padding-top: 44px; }
  #stageCanvas { width: min(64vw, 38vh); height: min(64vw, 38vh); }
  .stage + .arow { margin-top: 0; border-top: 0; }
  .arow { display: block; height: auto; min-height: 50vh; padding: 30px var(--pad) 70px; }
  .arow-c { display: none; }
  .arow-l { padding-top: 0; }
  .arow.past .arow-l { opacity: 1; }
  .arow h3 { max-width: none; font-size: clamp(30px, 8.6vw, 44px); }
  .arow-r { max-width: 330px; padding: 0; margin-top: 18px; }
  .arow:last-child { min-height: 52vh; }
  .form { grid-template-columns: 1fr; }
  .foot { margin-top: 100px; }
}

@media (prefers-reduced-motion: reduce) {
  .statement .w, .statement .moji, .btn, .arow-l { transition: none; }
}

@media (max-width: 359px) {
  .hud { font-size: 10px; letter-spacing: 0; }
}
