/* Kransfeld Studios v6 · "Made to measure"
   Base: tokens, fonts, reset, browser surfaces, nav, tape measure, tracing wheel, buttons, headings. */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: block;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-ext.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: block;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2C60-2C7F, U+A720-A7FF;
}
@font-face { font-family: "Geist"; src: url("../fonts/geist.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/geistmono.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }

:root {
  /* pattern tissue */
  --sheet: #f3f4f0;
  --sheet-2: #e8eae4;      /* envelope card */
  --sheet-3: #dfe2dc;
  --grid: rgba(28, 48, 72, .075);
  --grid-5: rgba(28, 48, 72, .12);
  /* printed inks */
  --ink: #15171a;
  --ink-2: #33373c;        /* body text, 10.9:1 on sheet */
  --ink-3: #555a60;        /* secondary text, 6.6:1 on sheet */
  --red: #c8222c;          /* signal red, dashed */
  --blue: #1d4fae;         /* process blue, dash-dot */
  --green: #11724c;        /* green, dotted */
  /* type */
  --f-display: "Archivo", "Arial Narrow", sans-serif;
  --f-body: "Geist", system-ui, sans-serif;
  --f-mono: "Geist Mono", ui-monospace, monospace;
  /* layout */
  --gut: clamp(16px, 4.4vw, 72px);
  --tape-w: 0px;
  --nav-h: 64px;
  /* motion */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-io: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-spring: cubic-bezier(0.34, 1.36, 0.64, 1);
}
@media (min-width: 1024px) { :root { --tape-w: 46px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background-color: var(--sheet);
  /* printed 1cm grid, heavier every 5cm */
  background-image:
    linear-gradient(var(--grid-5) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-5) 1px, transparent 1px),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 5cm 5cm, 5cm 5cm, 1cm 1cm, 1cm 1cm;
  background-position: -1px -1px;
  color: var(--ink-2);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.55;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ol, ul, dl, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }

/* browser surfaces */
::selection { background: var(--red); color: var(--sheet); }
::-moz-selection { background: var(--red); color: var(--sheet); }
html { scrollbar-color: var(--ink) var(--sheet-2); scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--sheet-2); }
::-webkit-scrollbar-thumb { background: var(--ink); border: 3px solid var(--sheet-2); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
input, textarea, select { caret-color: var(--red); }

.skip {
  position: fixed; left: 12px; top: 12px; z-index: 100;
  background: var(--ink); color: var(--sheet); padding: 10px 14px; font-weight: 500;
  transform: translateY(-160%); transition: transform .2s var(--ease-out);
}
.skip:focus-visible { transform: none; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- line system (the four inks, each with one fixed line style) ---------- */
.ln { fill: none; stroke-width: 1.6; stroke-linecap: butt; stroke-linejoin: round; }
.ln-k { stroke: var(--ink); stroke-width: 1.8; }
.ln-r { stroke: var(--red); stroke-dasharray: 10 6; }
.ln-b { stroke: var(--blue); stroke-dasharray: 14 5 2.5 5; }
.ln-g { stroke: var(--green); stroke-dasharray: 0.01 5.2; stroke-linecap: round; stroke-width: 2.4; }
.ln-k-thin { stroke: var(--ink); stroke-width: 1; opacity: .7; }
.ln-heavy { stroke-width: 1.6; }
.ann-small { font-size: 10px; letter-spacing: .1em; }
.outline { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: -1; }
.ln-arrow { fill: none; stroke-width: 1.2; stroke-linejoin: miter; }
.ln-k-arrow { stroke: var(--ink); opacity: .7; }
.ln-b-solid { stroke: var(--blue); }
.notch { fill: var(--ink); }
.ann-circle { fill: var(--sheet); stroke: var(--ink); stroke-width: 1.2; }
.ann-num { font-family: var(--f-mono); font-size: 15px; font-weight: 500; text-anchor: middle; fill: var(--ink); }
.ann-text { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; fill: var(--ink); }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 var(--tape-w) auto 0; z-index: 40;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 28px;
  padding: 0 var(--gut);
  background: var(--sheet);
  transition: box-shadow .3s ease;
}
.nav.is-solid { background: var(--sheet); box-shadow: 0 1px 0 rgba(21, 23, 26, .14); }
.nav-mark {
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink);
  font-family: var(--f-display); font-weight: 760; font-stretch: 112%; font-size: 17px; letter-spacing: -0.02em;
  margin-right: auto;
}
.nav-glyph { flex: none; }
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  position: relative; padding: 8px 12px;
  font-size: 15px; font-weight: 500; color: var(--ink); text-decoration: none;
}
.nav-links a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 1.5px;
  background: repeating-linear-gradient(90deg, var(--red) 0 7px, transparent 7px 11px);
  clip-path: inset(0 100% 0 0); transition: clip-path .28s var(--ease-out);
}
.nav-links a.is-here::after { clip-path: inset(0 0 0 0); }
@media (hover: hover) and (pointer: fine) { .nav-links a:hover::after { clip-path: inset(0 0 0 0); } }
.nav-cta { padding: 11px 18px 11px 22px; font-size: 15px; }
.nav-tape { display: none; }
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav { gap: 12px; }
}
@media (max-width: 1023px) {
  .nav-tape {
    display: block; position: absolute; left: 0; right: 0; bottom: -7px; height: 7px; pointer-events: none;
    background:
      repeating-linear-gradient(90deg, rgba(21,23,26,.55) 0 1px, transparent 1px 1cm),
      repeating-linear-gradient(90deg, rgba(21,23,26,.25) 0 1px, transparent 1px 2mm);
    background-size: 100% 7px, 100% 3px; background-repeat: no-repeat;
    opacity: 0; transition: opacity .3s ease;
  }
  .nav.is-solid .nav-tape { opacity: 1; }
  .nav-tape i { position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--red); transform: translateX(var(--x, 0px)); }
}
@media (max-width: 420px) {
  .nav-mark { font-size: 15px; gap: 8px; }
  .nav-glyph { width: 22px; height: 22px; }
  .nav-cta { padding: 10px 12px 10px 17px; font-size: 13.5px; }
}
@media (max-width: 360px) { .nav-mark span { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none; white-space: nowrap; border: 0; cursor: pointer;
  font-family: var(--f-body); font-weight: 500; line-height: 1;
}
.btn-ink {
  background: var(--ink); color: var(--sheet);
  padding: 17px 24px 17px 30px; font-size: 16px;
  /* a notch cut into the leading edge */
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0 64%, 8px 50%, 0 36%);
  transition: transform .16s var(--ease-out), background-color .2s ease;
}
.btn-ink:active { transform: scale(.97); }
.btn-arrow { transition: transform .35s var(--ease-spring); }
@media (hover: hover) and (pointer: fine) {
  .btn-ink:hover { background: #000; }
  .btn-ink:hover .btn-arrow { transform: translateX(4px); }
}
.btn-line {
  display: inline-flex; align-items: center; gap: 12px; padding: 12px 2px;
  color: var(--ink); font-weight: 500; font-size: 16px; text-decoration: none; position: relative;
}
.btn-line::after {
  content: ""; position: absolute; left: 46px; right: 0; bottom: 6px; height: 1.5px;
  background: repeating-linear-gradient(90deg, var(--blue) 0 14px, transparent 14px 19px, var(--blue) 19px 21.5px, transparent 21.5px 26.5px);
  transform-origin: left; transition: transform .4s var(--ease-out);
}
.btn-line .grain { color: var(--blue); transition: transform .4s var(--ease-spring); }
.btn-line:active { transform: scale(.98); }
@media (hover: hover) and (pointer: fine) { .btn-line:hover .grain { transform: translateX(3px); } }

/* ---------- section scaffolding ---------- */
main > section, .foot { padding-left: var(--gut); padding-right: calc(var(--gut) + var(--tape-w)); }
.sec-head { max-width: 1180px; margin-bottom: clamp(48px, 7vw, 104px); }
.sh {
  position: relative; display: block; max-width: 100%;
  font-family: var(--f-display); font-weight: 800; font-stretch: 104%;
  font-size: clamp(2.7rem, 1.2rem + 5.6vw, 7.4rem); line-height: .92; letter-spacing: -0.045em;
  color: var(--ink); text-wrap: balance;
}
.sh-text { display: block; max-width: 13em; padding-bottom: .06em; }
.sh-mark {
  display: flex; align-items: center; gap: 14px; margin-top: clamp(16px, 2vw, 26px);
  font-size: 16px; letter-spacing: 0; line-height: 1;
}
.sh-line { flex: 1 1 auto; min-width: 40px; height: 16px; overflow: visible; }
.sh-circ {
  flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  border: 1.6px solid currentColor; background: var(--sheet);
  font-family: var(--f-mono); font-weight: 600; font-size: 15px;
}
.sh-ann { flex: none; font-family: var(--f-mono); font-weight: 500; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); white-space: nowrap; }
.sh-mark[data-ink="r"] .sh-circ { color: var(--red); }
.sh-mark[data-ink="b"] .sh-circ { color: var(--blue); }
.sh-mark[data-ink="g"] .sh-circ { color: var(--green); }
.sh-mark[data-ink="k"] .sh-circ { color: var(--ink); }
.sh-line .notch { fill: var(--ink); }
html:not(.js) .sh-mark { display: none; }
@media (max-width: 520px) { .sh-ann { font-size: 10px; letter-spacing: .06em; } .sh-circ { width: 32px; height: 32px; font-size: 13px; } }
.sec-lede { margin-top: 26px; max-width: 54ch; font-size: clamp(17px, 1rem + .3vw, 20px); line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.motion .sh .sh-text { clip-path: inset(0 100% 0 0); }
.motion .sh .sh-ann { clip-path: inset(0 100% 0 0); }
.motion .sh .sh-circ { opacity: 0; }

/* ---------- tape measure ---------- */
.tape {
  position: fixed; top: 0; right: 0; bottom: 0; width: var(--tape-w); z-index: 45;
  background: var(--sheet); border-left: 1px solid rgba(21,23,26,.22);
  display: none; pointer-events: none;
}
@media (min-width: 1024px) { .tape { display: block; } }
.tape-strip { position: absolute; inset: 0; overflow: hidden; }
.tape-ticks {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(180deg, rgba(21,23,26,.6) 0 1px, transparent 1px var(--cm10, 40px)) right top / 22px 100% no-repeat,
    repeating-linear-gradient(180deg, rgba(21,23,26,.42) 0 1px, transparent 1px var(--cm5, 20px)) right top / 14px 100% no-repeat,
    repeating-linear-gradient(180deg, rgba(21,23,26,.26) 0 1px, transparent 1px var(--cm1, 4px)) right top / 8px 100% no-repeat;
}
.tape-nums span {
  position: absolute; left: 5px; font-family: var(--f-mono); font-size: 9.5px; color: var(--ink-3);
  transform: translateY(-50%) rotate(-90deg); transform-origin: 50% 50%;
}
.tape-marks i {
  position: absolute; right: 0; width: 100%; height: 0; border-top: 1.5px solid var(--red);
}
.tape-marks i::after {
  content: ""; position: absolute; left: 0; top: -5px; width: 7px; height: 10px; background: var(--red); clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.tape-hair {
  position: absolute; left: -10px; right: 0; top: 0; height: 2px; background: var(--ink);
}
.tape-read {
  position: absolute; right: calc(100% + 10px); top: 0;
  display: grid; justify-items: end; gap: 1px; padding: 6px 9px 6px 10px;
  background: var(--sheet); border: 1px solid var(--ink);
  font-family: var(--f-mono); font-size: 11px; line-height: 1.25; color: var(--ink); white-space: nowrap;
}
.tape-read::after {
  content: ""; position: absolute; right: -7px; top: 50%; margin-top: -6px;
  width: 7px; height: 12px; background: var(--ink); clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.tape-cm { font-weight: 600; letter-spacing: .02em; }
.tape-sec { color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; font-size: 9.5px; }

/* ---------- tracing wheel cursor ---------- */
.trail, .wheel { display: none; }
.has-wheel, .has-wheel a, .has-wheel button, .has-wheel label, .has-wheel summary { cursor: none; }
.has-wheel input, .has-wheel textarea, .has-wheel select { cursor: auto; }
.has-wheel .trail { display: block; position: fixed; inset: 0; z-index: 60; pointer-events: none; }
.has-wheel .wheel {
  display: block; position: fixed; left: 0; top: 0; z-index: 61; pointer-events: none;
  width: 0; height: 0; will-change: transform;
}
.wheel-svg { position: absolute; left: -40px; top: -40px; width: 80px; height: 80px; max-width: none; overflow: visible; transition: transform .35s var(--ease-spring), opacity .2s ease; }
.wheel-handle { stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }
.wheel-disc { fill: var(--sheet); stroke: var(--ink); stroke-width: 1.6; }
.wheel-spikes line { stroke: var(--ink); stroke-width: 1.4; stroke-linecap: round; }
.wheel-axle { fill: var(--ink); }
.wheel.is-link .wheel-svg { transform: scale(1.25); }
.wheel.is-link .wheel-disc { stroke: var(--red); }
.wheel.is-link .wheel-spikes line { stroke: var(--red); }
.wheel.is-text .wheel-svg { opacity: 0; transform: scale(.6); }
.wheel.is-hidden .wheel-svg { opacity: 0; }
.wheel-label {
  position: absolute; left: 24px; top: 16px;
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 6px 9px; background: var(--ink); color: var(--sheet);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  clip-path: inset(0 100% 0 0); transition: clip-path .3s var(--ease-out);
}
.wheel.is-piece .wheel-label { clip-path: inset(0 0 0 0); }

.noscript-work { display: grid; gap: 10px; font-size: 18px; }

/* ---------- plain pages: privacy, 404 ---------- */
.page-plain { background: var(--sheet); }
.page-plain .nav { position: sticky; }
.legal { max-width: 760px; margin: 0 auto; padding: clamp(48px, 8vw, 112px) var(--gut) clamp(80px, 10vw, 140px); color: var(--ink-2); }
.legal-title { margin: 0; font-family: var(--f-display); font-weight: 800; font-size: clamp(40px, 6vw, 80px); line-height: .95; letter-spacing: -.02em; color: var(--ink); text-wrap: balance; }
.legal-lede { margin: 22px 0 0; font-size: 19px; line-height: 1.55; color: var(--ink-3); max-width: 52ch; }
.legal h2 { margin: 52px 0 12px; padding-top: 14px; border-top: 1.5px dashed var(--red); font-family: var(--f-display); font-weight: 700; font-size: clamp(20px, 2vw, 26px); line-height: 1.15; color: var(--ink); }
.legal p { margin: 0 0 14px; font-size: 17px; line-height: 1.65; max-width: 66ch; }
.legal a { color: var(--ink); text-underline-offset: .2em; }
.legal-back { margin-top: 48px !important; }
.lost { min-height: calc(100vh - var(--nav-h)); min-height: calc(100svh - var(--nav-h)); display: grid; align-content: center; }
.lost-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 32px !important; }
.legal-link { color: var(--ink); font-weight: 600; text-underline-offset: .22em; }
.legal .btn-ink { color: var(--sheet); text-decoration: none; }
