/* Dotmatrix site, clean edition. Inter with tight negative tracking on the big type, small tracked-out labels,
   pill buttons, a lot of air. Dark and light, English and Japanese. */
@font-face { font-family: DDIN; src: url(fonts/D-DINCondensed.otf); font-weight: 400; font-display: swap; }
@font-face { font-family: DDIN; src: url(fonts/D-DINCondensed-Bold.otf); font-weight: 700; font-display: swap; }

:root {
  --bg: #0a0a0b; --panel: #141416; --panel2: #1b1b1e; --text: #f4f4f5; --muted: #8e8e95; --faint: #5e5e66;
  --line: #232327; --inv-bg: #f4f4f5; --inv-text: #111113; --hover: rgba(255,255,255,.06);
  --sketch: #c3c7d2; --plate: #f4f5f7; --dot-off: #1d1e24; --dmark-dot: #2e2f36;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --sans: Inter, "Inter Fallback", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", Arial,
          "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", Meiryo, sans-serif;
  --wrap: 1200px; --gutter: clamp(20px, 5vw, 24px);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f6f6f6; --panel: #efefef; --panel2: #e8e8e8; --text: #202020; --muted: #6b6b6b; --faint: #a3a3a3;
  --line: #e3e3e3; --inv-bg: #202020; --inv-text: #ffffff; --hover: rgba(0,0,0,.05);
  --sketch: #2a2c33; --plate: #16171b; --dot-off: #e3e3e6; --dmark-dot: #e2e2e7;
  color-scheme: light;
}
:root[data-theme="light"] .th-dark, :root:not([data-theme="light"]) .th-light { display: none !important; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.5 var(--sans);
       -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-feature-settings: "cv11", "ss01";
       transition: background .4s, color .4s; overflow-x: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
.wrap { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* ---- type: the big lines run tight (-6.7 % at the top), the labels run wide */
.display { font: 500 clamp(52px, 7.9vw, 114px)/1.015 var(--sans); letter-spacing: -.067em; color: var(--text); }
.display.sm { font-size: clamp(48px, 6.95vw, 100px); line-height: 1.06; letter-spacing: -.065em; }
.h2 { font: 500 clamp(40px, 5.4vw, 78px)/1.04 var(--sans); letter-spacing: -.058em; color: var(--text); }
.h3 { font: 500 clamp(30px, 3.4vw, 48px)/1.08 var(--sans); letter-spacing: -.05em; color: var(--text); }
.lead { font: 400 18px/1.6 var(--sans); letter-spacing: -.025em; color: var(--muted); max-width: 34em; }
.eyebrow { font: 500 10px/1.5 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--faint);
           display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.fine { font-size: 13px; line-height: 1.6; color: var(--faint); letter-spacing: -.005em; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); flex: none; display: inline-block; }
/* Japanese: kana and kanji don't want Latin's negative tracking, and they want a little more leading */
:lang(ja) .display, :lang(ja) .h2, :lang(ja) .h3 { letter-spacing: -.02em; line-height: 1.18; }
:lang(ja) .lead, :lang(ja) .card p, :lang(ja) .step p { letter-spacing: 0; line-height: 1.8; }
:lang(ja) .display { font-size: clamp(42px, 6.4vw, 96px); }

/* headline lines rise out of their own masks */
.ln { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.ln > span { display: block; transform: translateY(105%); transition: transform 1.1s var(--ease); }
.ln:nth-child(2) > span { transition-delay: .08s; }
.in .ln > span, .display.in .ln > span { transform: none; }

/* ---- pills */
.pill { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 22px; border-radius: 999px;
        background: var(--inv-bg); color: var(--inv-text); font: 500 14px/1 var(--sans); letter-spacing: -.01em;
        transition: transform .4s var(--ease), background .3s, opacity .3s; white-space: nowrap; }
.pill:hover { transform: translateY(-1px); opacity: .9; }
.pill.ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.pill.ghost:hover { background: var(--hover); opacity: 1; }
.pill.sm { height: 36px; padding: 0 16px; font-weight: 400; }
.ctas { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 36px; }

/* ---- header: transparent at the top, frosted once you scroll */
.top { position: fixed; z-index: 50; inset: 0 0 auto; height: 76px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
       padding: 0 clamp(20px, 5.5vw, 80px); transition: background .4s, box-shadow .4s, height .4s var(--ease); }
.top.scrolled { height: 64px; background: color-mix(in srgb, var(--bg) 78%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(18px);
                backdrop-filter: saturate(1.4) blur(18px); box-shadow: 0 1px 0 var(--line); }
.mark svg { width: 28px; height: 28px; display: block; }
.nav { display: flex; gap: 2px; }
.nav a { font: 400 14px/20px var(--sans); padding: 8px 16px; border-radius: 999px; color: var(--text); opacity: .82; transition: background .25s, opacity .25s; }
.nav a:hover { background: var(--hover); opacity: 1; }
.tools { display: flex; gap: 8px; justify-content: flex-end; align-items: center; }
.theme { width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; padding: 0;
         transition: background .25s; }
.theme:hover { background: var(--hover); }
.theme .sun { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset -5px -2px 0 0 var(--text); transition: box-shadow .4s var(--ease); }
:root[data-theme="light"] .theme .sun { box-shadow: inset 0 0 0 7px var(--text); }

/* ---- hero */
.hero { padding: 164px var(--gutter) 76px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero .lead { margin-top: 27px; }
.product .hero .eyebrow { justify-content: center; margin-bottom: 26px; }

/* the stage: one big rounded panel, the newest plug-in drawing and colouring itself in */
.stage { max-width: 1296px; margin: 0 auto; border-radius: 28px; background: var(--panel); overflow: hidden; position: relative;
         margin-inline: clamp(12px, 5vw, 72px); }
@media (min-width: 1440px) { .stage { margin-inline: auto; } }
.stage-bar { display: flex; justify-content: space-between; padding: 22px 26px 0; font: 400 12px/1 var(--sans); color: var(--faint); letter-spacing: -.005em; }
.stage-bar > span:first-child { display: flex; align-items: center; gap: 9px; color: var(--muted); }
.stage-art { display: block; padding: clamp(40px, 7vw, 96px) clamp(24px, 9vw, 150px) clamp(48px, 8vw, 110px); }
.stage-art svg.sketch { overflow: visible; }
.stage-img img { width: 100%; height: auto; }
.stage.rv { transform: translateY(40px) scale(.975); }
.stage.rv.in { transform: none; }
.formats { text-align: center; font-size: 13px; color: var(--muted); padding: 64px var(--gutter) 0; letter-spacing: -.005em; }

/* ---- sections */
.sec { padding: clamp(96px, 11vw, 160px) 0 0; }
.sec.tight { padding-top: clamp(48px, 6vw, 80px); }
.sec .h2 { margin-bottom: clamp(48px, 5vw, 72px); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.split .lead { margin-top: 10px; font-size: 20px; line-height: 1.625; letter-spacing: -.015em; }
.band .split { margin-bottom: 56px; }

/* ---- cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 24px; }
.card { display: flex; flex-direction: column; }
.card .shot { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--panel); }
.card .shot img { width: 100%; height: 100%; object-fit: cover; opacity: 0; filter: grayscale(1) contrast(1.08);
                  transform: scale(1.04); transition: opacity .5s, transform 1.2s var(--ease); }
.card .shot .plan { position: absolute; inset: 0; z-index: 1; transition: opacity .5s; }
.card .shot .plan svg.sketch { width: 100%; height: 100%; color: var(--sketch); overflow: hidden; }
.card .shot .plan svg.sketch path.m { stroke-width: 4.2; }
.card .shot .plan svg.sketch path.c { stroke-width: 2; }
@media (hover: hover) {
  .card:hover .shot .plan { opacity: 0; }
  .card:hover .shot img { opacity: 1; transform: none; }
}
.card-meta { display: flex; align-items: center; gap: 10px; margin-top: 22px; font: 500 10px/1.5 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.card-meta .ver { margin-left: auto; letter-spacing: .08em; }
.card h3 { font: 500 26px/1.2 var(--sans); letter-spacing: -.035em; margin-top: 10px; }
.card p { font: 400 15px/1.65 var(--sans); color: var(--muted); margin-top: 8px; max-width: 30em; }

/* ---- the old greats: halftone plates drifting past */
.carousel { overflow: hidden; padding: 8px 0; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
            mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.track { display: flex; gap: 16px; width: max-content; animation: drift calc(var(--n) * 7s) linear infinite; }
@keyframes drift { from { transform: translateX(calc(-50% - 8px)); } to { transform: translateX(0); } }
.ht { margin: 0; flex: none; height: clamp(200px, 24vw, 340px); aspect-ratio: 3 / 2; border-radius: 14px; overflow: hidden; background: var(--panel); }
.ht .ink { width: 100%; height: 100%; background: var(--plate); -webkit-mask: var(--src) center / cover no-repeat; mask: var(--src) center / cover no-repeat; opacity: .9; }

/* ---- releases */
.rels { border-top: 1px solid var(--line); }
.rel { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr) 80px 24px; gap: 24px; align-items: baseline;
       padding: 24px 12px; border-bottom: 1px solid var(--line); transition: background .3s, padding .5s var(--ease); border-radius: 0; }
.rel:hover { background: var(--hover); padding-inline: 20px 12px; }
.rel-name { display: flex; align-items: center; gap: 12px; font: 500 20px/1.3 var(--sans); letter-spacing: -.025em; }
.rel-name .dot { transform: translateY(-2px); }
.rel-tag { font-size: 15px; line-height: 1.6; color: var(--muted); }
.rel-ver { font: 500 12px/1 var(--sans); letter-spacing: .08em; color: var(--faint); text-align: right; font-variant-numeric: tabular-nums; }
.rel-go { color: var(--faint); transition: transform .5s var(--ease), color .3s; }
.rel:hover .rel-go { transform: translateX(4px); color: var(--text); }

/* ---- workflow: four quiet panels */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.step { background: var(--panel); border-radius: 20px; padding: 28px 28px 36px; min-height: 320px; }
.step .eyebrow { margin: 0 0 88px; }
.step h3 { font: 500 26px/1.2 var(--sans); letter-spacing: -.035em; }
.step p { font: 400 15px/1.65 var(--sans); color: var(--muted); margin-top: 14px; }

/* ---- the end */
.end { padding: clamp(140px, 15vw, 200px) var(--gutter) clamp(140px, 15vw, 180px); text-align: center; }

/* ---- footer */
.foot { border-top: 1px solid var(--line); padding: 72px 0 40px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
.foot-brand p, .foot-col p { font-size: 14px; line-height: 1.7; color: var(--muted); max-width: 26em; margin-top: 20px; }
.foot-col p { margin-top: 0; }
.foot-col p a { color: var(--text); box-shadow: inset 0 -1px 0 var(--line); }
.foot-col h4 { font: 500 10px/1.5 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--faint); margin-bottom: 18px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-col a { font-size: 14px; color: var(--muted); transition: color .25s; }
.foot-col a:hover { color: var(--text); }
.foot-mark svg.word { height: 18px; width: auto; display: block; }
svg.word circle { fill: var(--dot-off); transition: fill .08s; }
svg.word circle.on { fill: var(--text); }
.dmark .dot { fill: var(--dmark-dot); }
.foot-fine { margin-top: 72px; padding-top: 24px; border-top: 1px solid var(--line); }
.foot-fine p { font-size: 12px; color: var(--faint); line-height: 1.6; }

/* ---- product page */
.prose p { font: 400 18px/1.65 var(--sans); letter-spacing: -.02em; color: var(--muted); margin-bottom: 20px; }
.prose .eyebrow { margin: 44px 0 14px; }
.ticks { list-style: none; margin: 0 0 28px; padding: 0; border-top: 1px solid var(--line); }
.ticks li { font-size: 15px; line-height: 1.6; color: var(--text); padding: 14px 0 14px 26px; border-bottom: 1px solid var(--line); position: relative; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 22px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.prose .fine { margin: 0 0 10px; }
.film { border-radius: 24px; overflow: hidden; background: #000; }
.film video { width: 100%; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; }
.shot-fig { margin: 0; }
.shot-fig .frame { border-radius: 20px; overflow: hidden; background: var(--panel); }
.shot-fig img { width: 100%; height: auto; transition: transform 1.4s var(--ease); }
.shot-fig:hover img { transform: scale(1.015); }
.shot-fig figcaption { font-size: 12px; color: var(--faint); margin-top: 14px; letter-spacing: -.005em; }
.faces { display: grid; gap: 40px; }
.back { display: inline-flex; gap: .3em; transition: opacity .3s; }
.back span { display: inline-block; transition: transform .5s var(--ease); }
.back:hover span { transform: translateX(8px); }

/* ---- sketches (shared with the drawings module) */
svg.sketch { width: 100%; height: auto; display: block; color: var(--sketch); overflow: visible; }
svg.sketch path { stroke-dasharray: 1 1; stroke-dashoffset: 1; }
svg.sketch path.m { stroke-width: 2.4; }
svg.sketch path.c { stroke-width: 1; opacity: .42; }
svg.sketch.drawn path { animation: draw .75s cubic-bezier(.55,.1,.25,1) forwards; animation-delay: calc(var(--i) * 4.5ms); }
svg.sketch .tx { font: 400 15px DDIN, var(--sans); letter-spacing: .12em; opacity: 0; transition: opacity .5s .6s; }
svg.sketch.drawn .tx { opacity: .85; }
@keyframes draw { to { stroke-dashoffset: 0; } }
svg.fill .tracer { color: #fff; filter: drop-shadow(0 0 4px rgba(255,255,255,.9)) drop-shadow(0 0 12px rgba(160,200,255,.6)); }
svg.fill .tracer > * { stroke-dasharray: .16 .84; stroke-dashoffset: 1; opacity: 0; }
:root[data-theme="light"] svg.fill .tracer { color: var(--text); filter: none; }

/* ---- reveals: fade and rise, staggered by --d */
.rv { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); transition-delay: var(--d, 0ms); }
.rv.in { opacity: 1; transform: none; }

/* ---- smaller screens */
@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .top { grid-template-columns: auto 1fr; padding: 0 16px; height: 64px; }
  .nav { display: none; }
  .hero { padding-top: 120px; }
  .split, .gallery, .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .cards, .steps { grid-template-columns: minmax(0, 1fr); }
  .rel { grid-template-columns: minmax(0, 1fr) auto; }
  .rel-tag, .rel-go { display: none; }
  .stage { border-radius: 20px; margin-inline: 12px; }
  .step { min-height: 0; }
  .step .eyebrow { margin-bottom: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .rv, .stage.rv { opacity: 1; transform: none; transition: none; }
  .ln > span { transform: none; transition: none; }
  svg.sketch path { stroke-dashoffset: 0; } svg.sketch .tx { opacity: .85; }
  .track { animation: none; } .carousel { overflow-x: auto; }
}

/* the product page's hook stays put while its copy scrolls past */
@media (min-width: 761px) { .product .split > div:first-child { position: sticky; top: 112px; } }
