/* KIDAT — editorial grid: 12 columns, hairline rules, zero radius; black and white interface, colour only inside photographs. */
:root {
  --paper: #ffffff;
  --paper-2: #f2f2ee;
  --ink: #0b0b0b;
  --ink-2: #50504a;
  --ink-3: #85857d;
  --hair: #d8d8d2;
  --inv-bg: #0b0b0b;
  --inv-fg: #f6f6f2;
  --display: 'Newsreader', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --sans: 'Schibsted Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'DM Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --gut: clamp(16px, 4vw, 56px);
  --gap: clamp(12px, 2vw, 32px);
  --sec: clamp(72px, 11vw, 168px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0b0b0b; --paper-2: #161615; --ink: #f6f6f2; --ink-2: #b6b6ae; --ink-3: #7e7e77;
    --hair: #2d2d2a; --inv-bg: #f6f6f2; --inv-fg: #0b0b0b; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0b0b0b; --paper-2: #161615; --ink: #f6f6f2; --ink-2: #b6b6ae; --ink-3: #7e7e77;
  --hair: #2d2d2a; --inv-bg: #f6f6f2; --inv-fg: #0b0b0b; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

/* ---------- type ---------- */
.d1, .d2, .d3 { font-family: var(--display); font-weight: 300; text-wrap: balance; letter-spacing: -.022em; }
.d1 { font-size: clamp(46px, 10.4vw, 168px); line-height: .9; }
.d2 { font-size: clamp(34px, 5.4vw, 84px); line-height: .98; }
.d3 { font-size: clamp(24px, 2.7vw, 40px); line-height: 1.12; letter-spacing: -.012em; }
.d1 em, .d2 em, .d3 em { font-style: italic; font-weight: 300; }
.lede { font-family: var(--display); font-size: clamp(21px, 2.1vw, 30px); line-height: 1.3; font-weight: 300; max-width: 34em; }
.meta { font-family: var(--mono); font-size: 11.5px; line-height: 1.5; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-2); }
.meta b { font-weight: 500; color: var(--ink); }
.body { max-width: 62ch; }
.body p + p { margin-top: 1em; }
.muted { color: var(--ink-2); }
.req {
  display: inline-block; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  border: 1px dashed var(--ink-3); color: var(--ink-2); padding: 2px 7px; line-height: 1.5; vertical-align: .08em;
}

/* ---------- layout ---------- */
.wrap { max-width: 1520px; margin-inline: auto; padding-inline: var(--gut); }
.g { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: clamp(28px, 4vw, 56px); }
.g > * { min-width: 0; grid-column: var(--c, 1 / -1); }
.sec { padding-block: var(--sec); }
.sec-t { padding-block: clamp(48px, 7vw, 104px); }
.rule { border-top: 1px solid var(--ink); }
.hair { border-top: 1px solid var(--hair); }
.alt { background: var(--paper-2); }
.inv { background: var(--inv-bg); color: var(--inv-fg); }
.inv .meta, .inv .muted { color: inherit; opacity: .72; }
.inv .req { color: inherit; border-color: currentColor; opacity: .8; }
.stack { display: flex; flex-direction: column; gap: clamp(16px, 2vw, 28px); }
.stack-l { display: flex; flex-direction: column; gap: clamp(28px, 4vw, 56px); }
.row { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.sec-h { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 24px; padding-block: 14px; border-top: 1px solid var(--ink); margin-bottom: clamp(28px, 4vw, 64px); }
@media (max-width: 820px) { .g > * { grid-column: 1 / -1; } }

/* ---------- header ---------- */
.hd { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: var(--paper); border-bottom: 1px solid var(--ink); }
.hd-in { display: flex; align-items: center; gap: 24px; height: 60px; }
.logo { font-family: var(--sans); font-weight: 800; font-size: 21px; letter-spacing: .2em; text-decoration: none; margin-right: auto; }
.nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
.nav a, .dd summary { font-family: var(--mono); font-size: 12px; letter-spacing: .09em; text-transform: uppercase; text-decoration: none; cursor: pointer; padding-block: 6px; background-image: linear-gradient(var(--ink), var(--ink)); background-size: 0 1px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .35s var(--ease); }
.nav a:hover, .nav a[aria-current="page"], .dd summary:hover { background-size: 100% 1px; }
.dd { position: relative; }
.dd summary { list-style: none; }
.dd summary::-webkit-details-marker { display: none; }
.dd summary::after { content: ' +'; }
.dd[open] summary::after { content: ' \2212'; }
.dd-p { position: absolute; top: calc(100% + 17px); left: -16px; min-width: 330px; background: var(--paper); border: 1px solid var(--ink); border-top: 0; padding: 8px 16px 12px; display: flex; flex-direction: column; }
.dd-p a { padding-block: 10px; border-top: 1px solid var(--hair); }
.dd-p a:first-child { border-top: 0; }
.btn { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; background: var(--inv-bg); color: var(--inv-fg); border: 1px solid var(--inv-bg); padding: 14px 22px; cursor: pointer; transition: background .25s, color .25s; }
.btn::after { content: '\2192'; transition: transform .3s var(--ease); }
.btn:hover { background: transparent; color: var(--ink); }
.btn:hover::after { transform: translateX(5px); }
.btn-o { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-o:hover { background: var(--inv-bg); color: var(--inv-fg); }
.btn-s { padding: 9px 14px; }
.inv .btn { background: var(--inv-fg); color: var(--inv-bg); border-color: var(--inv-fg); }
.inv .btn:hover { background: transparent; color: var(--inv-fg); }
.lnk { font-family: var(--mono); font-size: 12px; letter-spacing: .09em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.lnk::after { content: ' \2192'; }
.menu-b { display: none; background: none; border: 0; padding: 8px 0; font-family: var(--mono); font-size: 12px; letter-spacing: .09em; text-transform: uppercase; cursor: pointer; }
.menu { position: fixed; inset: 0; z-index: 39; background: var(--paper); padding: calc(84px + env(safe-area-inset-top, 0px)) var(--gut) 32px; overflow-y: auto; display: flex; flex-direction: column; gap: 28px; }
.menu-l a { display: block; font-family: var(--display); font-weight: 300; font-size: clamp(38px, 11vw, 64px); line-height: 1.08; letter-spacing: -.02em; text-decoration: none; border-top: 1px solid var(--hair); padding-block: 8px; }
.menu-s { display: flex; flex-wrap: wrap; gap: 8px 20px; }
@media (max-width: 980px) {
  .nav, .hd .btn { display: none; }
  .menu-b { display: block; }
}

/* ---------- figures and sample media ---------- */
.fig { position: relative; }
.fig .ph { overflow: hidden; background: var(--paper-2); aspect-ratio: var(--r, 4 / 5); max-width: 100%; }
.fig img, .fig video { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
a.fig, .fig a { text-decoration: none; display: block; }
a.fig:hover img { transform: scale(1.035); }
.fig figcaption, .cap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding-top: 10px; }
.bleed { margin-inline: calc(var(--gut) * -1); }
.film { position: relative; }
.film button { position: absolute; left: 16px; bottom: 16px; }

/* ---------- hero ---------- */
.hero { padding-block: clamp(28px, 4vw, 56px) clamp(56px, 8vw, 120px); }
.hero-m { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-bottom: clamp(28px, 5vw, 72px); }
.hero-t { position: relative; z-index: 2; }
.hero-f { margin-top: clamp(-120px, -7vw, -24px); }
@keyframes rise { from { clip-path: inset(0 0 100% 0); transform: translateY(.18em); } to { clip-path: inset(-10% 0 -10% 0); transform: none; } }
@keyframes shut { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
.rise > span { display: block; animation: rise 1s var(--ease) both; }
.rise > span:nth-child(2) { animation-delay: .09s; }
.rise > span:nth-child(3) { animation-delay: .18s; }
.rise > span:nth-child(4) { animation-delay: .27s; }
.shut .ph { animation: shut 1.2s var(--ease) .2s both; }
.ph-h { padding-block: clamp(36px, 6vw, 96px) clamp(32px, 5vw, 72px); }

/* ---------- facts ---------- */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); border-top: 1px solid var(--ink); }
.facts > div { padding: 14px 16px 18px 0; border-bottom: 1px solid var(--hair); display: flex; flex-direction: column; gap: 6px; }
.facts dd { font-family: var(--display); font-size: clamp(20px, 1.9vw, 27px); line-height: 1.15; font-weight: 300; }

/* ---------- lists ---------- */
.idx { border-top: 1px solid var(--ink); }
.idx > li, .idx > a { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr) auto; gap: 8px 20px; align-items: baseline; padding-block: 16px; border-bottom: 1px solid var(--hair); text-decoration: none; }
.idx .t { font-family: var(--display); font-weight: 300; font-size: clamp(21px, 2.1vw, 31px); line-height: 1.15; }
.idx > a { transition: padding .35s var(--ease); }
.idx > a:hover { padding-left: 14px; }
@media (max-width: 640px) { .idx > li, .idx > a { grid-template-columns: minmax(0, 1fr); gap: 4px; } }
.run { font-family: var(--display); font-weight: 300; font-size: clamp(27px, 4.1vw, 62px); line-height: 1.1; letter-spacing: -.015em; }
.run span:nth-child(even) { font-style: italic; color: var(--ink-2); }
.run span:not(:last-child)::after { content: ' / '; font-style: normal; color: var(--ink-3); }
.letters > li { display: grid; grid-template-columns: clamp(64px, 9vw, 140px) minmax(0, 1fr); align-items: baseline; border-top: 1px solid var(--hair); padding-block: 10px; }
.letters > li:first-child { border-top: 1px solid var(--ink); }
.letters b { font-family: var(--display); font-weight: 300; font-size: clamp(54px, 7.4vw, 116px); line-height: .95; }
.letters span { font-family: var(--display); font-style: italic; font-weight: 300; font-size: clamp(24px, 2.6vw, 38px); }

/* ---------- process sequence ---------- */
.proc { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--gap) clamp(24px, 6vw, 104px); }
.proc-v { position: sticky; top: calc(84px + env(safe-area-inset-top, 0px)); align-self: start; }
.proc-v .ph { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper-2); }
.proc-v img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; clip-path: inset(100% 0 0 0); transition: clip-path .9s var(--ease); }
.proc-v img.on { clip-path: inset(0); }
.proc-s > li { min-height: 68vh; display: flex; flex-direction: column; justify-content: center; gap: 16px; border-top: 1px solid var(--hair); padding-block: 40px; opacity: .32; transition: opacity .5s; }
.proc-s > li.on { opacity: 1; }
.proc-s > li:first-child { border-top: 1px solid var(--ink); }
.proc-s .fig { display: none; }
@media (max-width: 820px), (prefers-reduced-motion: reduce) {
  .proc { grid-template-columns: minmax(0, 1fr); }
  .proc-v { display: none; }
  .proc-s > li { min-height: 0; opacity: 1; }
  .proc-s .fig { display: block; }
}

/* ---------- sketch to garment ---------- */
.ba { position: relative; aspect-ratio: 4 / 5; max-width: 100%; overflow: hidden; background: var(--paper-2); --p: 38%; touch-action: pan-y; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba .top { clip-path: inset(0 calc(100% - var(--p)) 0 0); }
.ba .ln { position: absolute; top: 0; bottom: 0; left: var(--p); width: 1px; background: #fff; mix-blend-mode: difference; pointer-events: none; }
.ba .kn { position: absolute; top: 50%; left: var(--p); transform: translate(-50%, -50%); font-family: var(--mono); font-size: 11px; letter-spacing: .1em; background: #0b0b0b; color: #fff; padding: 7px 10px; pointer-events: none; }
.ba input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba:focus-within { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ---------- chain ---------- */
.chain { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); border-top: 1px solid currentColor; }
.chain li { padding: 14px 12px 22px 0; border-bottom: 1px solid currentColor; display: flex; flex-direction: column; gap: 22px; }
.chain li b { font-family: var(--display); font-weight: 300; font-size: clamp(22px, 2.2vw, 32px); }
.chain li:not(:last-child) b::after { content: ' \2192'; opacity: .5; }

/* ---------- work ---------- */
.work { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(36px, 5vw, 80px) var(--gap); align-items: end; }
.work > * { grid-column: span 4; min-width: 0; }
.work > :nth-child(6n+1) { grid-column: span 7; }
.work > :nth-child(6n+2) { grid-column: span 5; }
.work > :nth-child(6n+6) { grid-column: 4 / span 6; }
@media (max-width: 820px) { .work > * { grid-column: 1 / -1 !important; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; background: transparent; border: 1px solid var(--hair); padding: 8px 12px; cursor: pointer; }
.chips button[aria-pressed="true"] { background: var(--inv-bg); color: var(--inv-fg); border-color: var(--inv-bg); }
.scroller { display: flex; gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; scrollbar-width: thin; }
.scroller > * { flex: 0 0 min(78vw, 440px); scroll-snap-align: start; }
.scroller.wide > * { flex-basis: min(86vw, 620px); }

/* ---------- accordion, subnav, tabs ---------- */
.acc { border-top: 1px solid var(--ink); }
.acc details { border-bottom: 1px solid var(--hair); }
.acc summary { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr) auto; gap: 8px 20px; align-items: baseline; padding-block: 20px; cursor: pointer; list-style: none; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: '+'; font-family: var(--mono); font-size: 18px; }
.acc details[open] summary::after { content: '\2212'; }
.acc .t { font-family: var(--display); font-weight: 300; font-size: clamp(22px, 2.4vw, 36px); line-height: 1.15; }
.acc .in { padding: 0 0 28px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px var(--gap); }
.acc.faq summary { grid-template-columns: minmax(0, 1fr) auto; }
.acc.faq .in { display: block; max-width: 62ch; }
@media (max-width: 640px) { .acc summary { grid-template-columns: minmax(0, 1fr) auto; } .acc summary .meta { grid-column: 1 / -1; } }
.sub { position: sticky; top: calc(61px + env(safe-area-inset-top, 0px)); z-index: 30; background: var(--paper); border-bottom: 1px solid var(--hair); }
.sub .wrap { display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; }
.sub a { flex: none; font-family: var(--mono); font-size: 11.5px; letter-spacing: .09em; text-transform: uppercase; text-decoration: none; padding-block: 13px; color: var(--ink-2); border-bottom: 1px solid transparent; }
.sub a.on, .sub a:hover { color: var(--ink); border-bottom-color: var(--ink); }
.tabs { display: flex; gap: 0; border: 1px solid var(--ink); width: max-content; max-width: 100%; }
.tabs button { font-family: var(--mono); font-size: 12px; letter-spacing: .09em; text-transform: uppercase; background: transparent; border: 0; padding: 12px 20px; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--inv-bg); color: var(--inv-fg); }
.steps { counter-reset: s; border-top: 1px solid var(--ink); }
.steps > li { counter-increment: s; display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 6px 20px; padding-block: 18px; border-bottom: 1px solid var(--hair); }
.steps > li::before { content: counter(s, decimal-leading-zero); font-family: var(--mono); font-size: 12px; letter-spacing: .09em; color: var(--ink-2); padding-top: .5em; }
.steps .t { font-family: var(--display); font-weight: 300; font-size: clamp(22px, 2.2vw, 32px); line-height: 1.15; }

/* ---------- forms ---------- */
.form { display: flex; flex-direction: column; gap: 22px; max-width: 560px; }
.fld { display: flex; flex-direction: column; gap: 6px; }
.fld input, .fld select, .fld textarea { background: transparent; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; padding: 10px 0; font-family: var(--display); font-size: 22px; font-weight: 300; width: 100%; }
.fld textarea { min-height: 96px; resize: vertical; }
.fld input:focus-visible, .fld select:focus-visible, .fld textarea:focus-visible { outline: 0; border-bottom-width: 3px; }
.note { border: 1px solid var(--ink); padding: 16px 18px; }

/* ---------- article ---------- */
.art { max-width: 66ch; font-size: 19px; line-height: 1.62; }
.art p + p, .art h2 + p { margin-top: 1em; }
.art h2 { font-family: var(--display); font-weight: 300; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.15; margin-top: 1.8em; }
.art p:first-of-type::first-letter { font-family: var(--display); font-size: 4.2em; line-height: .82; float: left; padding: .06em .1em 0 0; font-weight: 300; }

/* ---------- footer ---------- */
.ft { border-top: 1px solid var(--ink); padding-block: clamp(48px, 7vw, 104px) calc(40px + env(safe-area-inset-bottom, 0px)); }
.ft-l a { display: block; text-decoration: none; padding-block: 3px; }
.ft-l a:hover { text-decoration: underline; }
.bar { display: none; }
@media (max-width: 820px) {
  .bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; background: var(--inv-bg); color: var(--inv-fg); padding: 0 var(--gut) env(safe-area-inset-bottom, 0px); border-top: 1px solid var(--paper); }
  .bar a { flex: 1; text-align: center; text-decoration: none; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; padding-block: 15px; }
  .bar a + a { border-left: 1px solid currentColor; }
  .ft { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ================= motion layer ================= */
/* Page-to-page: old page lifts away, new page is drawn down like a curtain. */
@view-transition { navigation: auto; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-18px); } }
@keyframes vt-in { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
::view-transition-old(root) { animation: vt-out .4s cubic-bezier(.2, .7, .1, 1) both; }
::view-transition-new(root) { animation: vt-in .7s cubic-bezier(.2, .7, .1, 1) both; }

/* "Making the invisible visible": the outlined word fills with ink. */
.ghost { color: transparent; -webkit-text-stroke: 1px var(--ink); animation: fillin 1.5s var(--ease) 1.2s both; }
@keyframes fillin { to { color: var(--ink); -webkit-text-stroke-color: transparent; } }

/* Pattern draft that draws itself */
.draft { position: relative; aspect-ratio: 4 / 5; max-width: 100%; background: var(--paper-2); color: var(--ink); }
.draft svg { display: block; width: 100%; height: 100%; }
.draft text { font-family: var(--mono); font-size: 15px; letter-spacing: .08em; fill: currentColor; }
.draft .l { fill: none; stroke: currentColor; stroke-dasharray: 1; stroke-dashoffset: 1; animation: dr var(--d, 1.2s) var(--ease) var(--t, 0s) forwards; }
.draft .f { opacity: 0; animation: fd .7s ease var(--t, 0s) forwards; }
.draft .w { fill: currentColor; opacity: 0; animation: wash 1.4s ease var(--t, 0s) forwards; }
@keyframes dr { to { stroke-dashoffset: 0; } }
@keyframes fd { to { opacity: 1; } }
@keyframes wash { to { opacity: .1; } }
.draft button { position: absolute; right: 12px; top: 12px; background: transparent; border: 1px solid var(--ink); padding: 6px 10px; cursor: pointer; font-family: var(--mono); font-size: 11px; letter-spacing: .09em; text-transform: uppercase; }
.draft button:hover { background: var(--inv-bg); color: var(--inv-fg); }

/* Kinetic line, moved by the scroll position rather than a timer */
.kin-w { overflow: hidden; margin-inline: calc(var(--gut) * -1); border-block: 1px solid var(--ink); padding-block: clamp(10px, 1.6vw, 24px); }
.kin { white-space: nowrap; font-family: var(--display); font-style: italic; font-weight: 300; font-size: clamp(64px, 13vw, 216px); line-height: 1; letter-spacing: -.02em; width: max-content; }

/* Rules draw themselves; images settle as they enter. Static where scroll timelines are unsupported. */
.sec-h { border-top: 0; position: relative; }
.sec-h::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: currentColor; transform-origin: 0 50%; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .sec-h::before { animation: rule linear both; animation-timeline: view(); animation-range: entry 0% cover 28%; }
    .fig:not(.shut) .ph img { animation: settle linear both; animation-timeline: view(); animation-range: entry 0% cover 42%; }
    .kin { animation: kin linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
    .letters > li b { animation: slide linear both; animation-timeline: view(); animation-range: entry 0% cover 35%; }
    .run { animation: fadeup linear both; animation-timeline: view(); animation-range: entry 0% cover 30%; }
  }
}
@keyframes rule { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes settle { from { scale: 1.18; } to { scale: 1; } }
@keyframes kin { from { transform: translateX(6%); } to { transform: translateX(-42%); } }
@keyframes slide { from { transform: translateX(-.35em); } to { transform: none; } }
@keyframes fadeup { from { transform: translateY(40px); } to { transform: none; } }

/* Contextual cursor (desktop, fine pointer only) */
.cur { position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; background: var(--inv-bg); color: var(--inv-fg); padding: 8px 12px; opacity: 0; transition: opacity .2s; will-change: transform; }
.cur.on { opacity: 1; }
.scroller.drag { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.clean .req { display: none; }
.toggle { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: .18em; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; }
@media (prefers-reduced-motion: reduce) {
  .ghost { color: var(--ink); -webkit-text-stroke: 0; }
  .draft .l { stroke-dashoffset: 0; }
  .draft .f { opacity: 1; }
  .draft .w { opacity: .1; }
}

/* ================= journey components ================= */
.paths .t { font-size: clamp(26px, 3.5vw, 54px); }
.year, .ladder { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: clamp(28px, 4vw, 56px) var(--gap); border-top: 1px solid currentColor; padding-top: 18px; }
.year > li, .ladder > * { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ladder > li > div { margin-top: auto; padding-top: 8px; }
#year, #parents { scroll-margin-top: 90px; }

/* ================= logo (existing KIDAT mark, vector) ================= */
.logo { display: block; margin-right: auto; color: var(--ink); letter-spacing: 0; line-height: 0; }
.logo svg { display: block; height: 24px; width: auto; }
.logo .lg-word { display: none; }
@media (max-width: 520px) { .logo .lg-full { display: none; } .logo .lg-word { display: block; height: 22px; } }
.ft-logo svg { display: block; width: clamp(200px, 34vw, 520px); height: auto; }

/* ================= statement line: whole phrase, on the page grid ================= */
.kin-w { overflow: hidden; margin-inline: 0; border-block: 1px solid var(--ink); padding-block: clamp(14px, 2vw, 28px); }
.kin { white-space: nowrap; font-style: normal; font-size: min(8.2vw, 148px); line-height: 1.12; width: auto; }
.kin em { font-style: italic; }
@keyframes kin { from { transform: translateX(7%); } to { transform: none; } }
@supports (animation-timeline: view()) { @media (prefers-reduced-motion: no-preference) { .kin { animation-range: entry 0% cover 45%; } } }
.bleed .ph img { object-position: 50% 42%; }

/* ================= story motion graphics ================= */
/* Rest state is the finished drawing. Script "arms" a graphic only when it is below the fold, then plays it once on entry. */
.mg { color: var(--ink); }
.mg.panel { background: var(--paper-2); max-width: 100%; }
.mg svg, .mg-proc svg { display: block; width: 100%; height: 100%; }
.mg text, .mg-proc text { font-family: var(--mono); font-size: 15px; letter-spacing: .08em; text-transform: uppercase; fill: currentColor; }
.mg .l, .mg-proc .l { fill: none; stroke: currentColor; stroke-dasharray: 1; stroke-dashoffset: 0; }
.mg.armed .l { stroke-dashoffset: 1; }
.mg.armed .f, .mg.armed .c { opacity: 0; }
.mg.armed.play .l { animation: dr var(--d, 1.1s) var(--ease) var(--t, 0s) forwards; }
.mg.armed.play .f, .mg.armed.play .c { animation: fd .7s ease var(--t, 0s) forwards; }

/* Process: four layers of one drawing */
.proc-v .mg-proc { color: var(--ink); }
.pl { opacity: 0; transition: opacity .7s var(--ease); }
.pl.on { opacity: 1; }
.pl.past { opacity: .12; }
.pl .l { stroke-dashoffset: 1; }
.pl .f, .pl .c { opacity: 0; }
.pl.on .l, .pl.past .l { animation: dr var(--d, 1.1s) var(--ease) var(--t, 0s) forwards; }
.pl.on .f, .pl.past .f, .pl.on .c, .pl.past .c { animation: fd .7s ease var(--t, 0s) forwards; }
.proc-s .fig { display: none; }
@media (max-width: 820px), (prefers-reduced-motion: reduce) { .proc-s .fig { display: block; } }

/* Runway walk */
.runway { overflow: hidden; background: #0c0c0c; aspect-ratio: 1600 / 686; max-width: 100%; }
.runway svg { display: block; width: 100%; height: 100%; }
.walk { transform-box: view-box; transform-origin: 800px 250px; }
.bleed figcaption { padding-inline: var(--gut); }

/* Stitched thread across the year */
.thread { position: relative; height: 22px; margin-bottom: -28px; }
.thread i { position: absolute; left: 0; right: 0; top: 10px; border-top: 2px dashed currentColor; }
.thread b { position: absolute; left: calc(100% - 44px); top: 0; width: 44px; height: 20px; }
.thread + .year { border-top: 0; }
.track { height: 3px; margin-bottom: -26px; }
.track span { display: block; height: 100%; background: currentColor; transform-origin: 0 50%; }
.stair { height: clamp(48px, 7vw, 90px); margin-bottom: -28px; }
.ladder.nob { border-top: 0; }
.ladder .mg.panel { max-width: 220px; }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .walk { animation: walk linear both; animation-timeline: view(); animation-range: entry 20% cover 62%; }
    .beam { animation: beam linear both; animation-timeline: view(); animation-range: entry 20% cover 62%; }
    .thread i { animation: sew linear both; animation-timeline: view(); animation-range: entry 40% cover 55%; }
    .thread b { animation: needle linear both; animation-timeline: view(); animation-range: entry 40% cover 55%; }
    .track span { animation: rule linear both; animation-timeline: view(); animation-range: entry 60% cover 50%; }
    .inkin { background: linear-gradient(90deg, var(--ink) 0 50%, var(--hair) 50% 100%) 100% 0 / 200% 100% no-repeat; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-box-decoration-break: clone; box-decoration-break: clone; animation: inkin linear both; animation-timeline: view(); animation-range: entry 35% cover 48%; }
  }
}
@keyframes walk { from { transform: scale(.2); } to { transform: scale(1); } }
@keyframes beam { from { opacity: 0; } to { opacity: .1; } }
@keyframes sew { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes needle { from { left: 0; } to { left: calc(100% - 44px); } }
@keyframes inkin { to { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) {
  .pl { opacity: 1; } .pl .l { stroke-dashoffset: 0; } .pl .f, .pl .c { opacity: 1; }
}

.pl.past text, .gh text { display: none; }

/* ================= breathing space =================
   Three distances only: between chapters (--sec), between a heading and what it introduces (--lead), between related lines (--near).
   One idea per screen; nothing crowds the thing before it. */
:root { --sec: clamp(96px, 13vw, 208px); --lead: clamp(44px, 6vw, 96px); --near: clamp(16px, 2vw, 28px); }
body { line-height: 1.62; }
.sec-t { padding-block: clamp(80px, 10vw, 160px); }
.hero { padding-block: clamp(32px, 4.5vw, 64px) clamp(72px, 9vw, 144px); }
.ph-h { padding-block: clamp(48px, 7vw, 120px) clamp(48px, 6vw, 96px); }
.stack-l { gap: var(--lead); }
.stack { gap: var(--near); }
.sec-h { margin-bottom: var(--lead); padding-block: 18px; }
.g { row-gap: clamp(36px, 5vw, 72px); }
.lede { line-height: 1.36; }
.body p + p { margin-top: 1.15em; }
.d2 + p, .d2 + .body, .d3 + p { margin-top: 4px; }

/* lists and rows get room to be read one at a time */
.paths > a { padding-block: clamp(22px, 2.6vw, 38px); }
.idx > li, .idx > a { padding-block: 20px; }
.facts > div { padding: 18px 20px 24px 0; gap: 8px; }
.letters > li { padding-block: 14px; }
.steps > li { padding-block: 24px; }
.acc summary { padding-block: 26px; }
.acc .in { padding-bottom: 36px; }
.chain li { padding: 18px 14px 30px 0; }
.work { row-gap: clamp(56px, 7vw, 120px); }
.fig figcaption, .cap { padding-top: 14px; }

/* story graphics: clear air between the drawing and the words it belongs to */
.year, .ladder { padding-top: clamp(28px, 3.5vw, 48px); row-gap: clamp(44px, 6vw, 80px); }
.year > li, .ladder > * { gap: 14px; }
.year .mg.panel, .ladder .mg.panel { margin-bottom: 10px; }
.thread { margin-bottom: calc(var(--lead) * -1 + 6px); }
.track { margin-bottom: calc(var(--lead) * -1 + 4px); }
.stair { margin-bottom: calc(var(--lead) * -1 + 8px); }
.proc-s > li { gap: 20px; padding-block: 56px; }
.kin-w { margin-block: clamp(8px, 2vw, 32px); padding-block: clamp(20px, 2.6vw, 40px); }
.form { gap: 30px; }
.ft { padding-top: clamp(72px, 9vw, 136px); }

/* calmer motion: nothing the eye has to chase while reading */
@keyframes settle { from { scale: 1.06; } to { scale: 1; } }
@supports (animation-timeline: view()) {
  .run, .letters > li b { animation: none; }
}
@media (max-width: 820px) {
  :root { --sec: clamp(88px, 22vw, 128px); --lead: 40px; }
  .sec-t { padding-block: 72px; }
  .g { row-gap: 32px; }
  .d1 { line-height: .96; }
  .year, .ladder { row-gap: 56px; }
}

/* ================= motion treatment on inner pages ================= */
.acc.nob { border-top: 0; }
.acc .in .mg.panel { max-width: 260px; }
.daylist > .g:first-child { border-top: 0; }
.inv .mg.panel { color: #0b0b0b; background: #f2f2ee; }
.inv .fig figcaption { color: inherit; }

/* ================= Sutradhar for brands ================= */
.year.five { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.distmap { max-width: 1100px; margin-inline: auto; width: 100%; }
.distmap svg { height: auto; }
.distmap text { font-size: 17px; }
@media (max-width: 820px) { .distmap { display: none; } }
.sub a b { font-weight: 500; color: var(--ink); }
.inv .acc { border-color: currentColor; }
.inv .acc details { border-color: currentColor; }
#how, #get, #why, #formats, #fit, #faq, #enquire, #show, #runway, #archive, #film, #backstage { scroll-margin-top: 110px; }

/* ================= spacing standard =================
   8-point scale, stepped at two breakpoints (no fluid in-between values).
   --sec   between chapters          112 / 88 / 64
   --lead  heading to its content     56 / 48 / 32
   --label small label to its content 40 / 32 / 24
   --near  related lines              24 / 24 / 16
   Rule of proximity: a heading is always closer to what it introduces than to what came before. */
:root { --sec: 112px; --lead: 56px; --label: 40px; --near: 24px; --gut: 56px; --gap: 32px; }
@media (max-width: 1100px) { :root { --sec: 88px; --lead: 48px; --label: 32px; --gut: 32px; --gap: 24px; } }
@media (max-width: 820px) { :root { --sec: 64px; --lead: 32px; --label: 24px; --near: 16px; --gut: 20px; --gap: 16px; } }

.sec, .sec-t { padding-block: var(--sec); }
/* two chapters on the same ground share one gap instead of stacking two */
main > section.wrap + section.wrap:not([style*="padding-top"]) { padding-top: 0; }
.hero { padding-block: 48px var(--sec); }
.ph-h { padding-block: calc(var(--sec) * .75) var(--lead); }
.hero-m { padding-bottom: var(--lead); }
.stack-l { gap: var(--lead); }
.stack { gap: var(--near); }
.g { row-gap: var(--lead); }
.sec-h { margin-bottom: var(--label); padding-block: 16px; }
.work { row-gap: calc(var(--lead) + 8px); }
.year, .ladder { padding-top: 32px; row-gap: var(--lead); }
.year > li, .ladder > * { gap: 16px; }
.year .mg.panel, .ladder .mg.panel { margin-bottom: 8px; }
.thread, .track, .stair { margin-bottom: calc(16px - var(--lead)); }
.proc-s > li { padding-block: 48px; gap: 16px; }
.kin-w { margin-block: 0; padding-block: 24px; }
.paths > a { padding-block: 32px; }
.idx > li, .idx > a { padding-block: 24px; }
.facts > div { padding: 16px 16px 24px 0; gap: 8px; }
.letters > li { padding-block: 16px; }
.steps > li { padding-block: 24px; }
.acc summary { padding-block: 24px; }
.acc .in { padding-bottom: 32px; }
.chain li { padding: 16px 16px 32px 0; gap: 24px; }
.fig figcaption, .cap { padding-top: 12px; }
.form { gap: 32px; }
.ft { padding-top: var(--sec); }
.lede { max-width: 31em; }
@media (max-width: 820px) {
  .hero { padding-block: 32px var(--sec); }
  .paths > a { padding-block: 24px; }
  .idx > li, .idx > a { padding-block: 16px; }
  .kin-w { padding-block: 16px; }
  .proc-s > li { padding-block: 32px; }
  .year, .ladder { row-gap: 48px; }
}

/* text: nothing below 12px */
.meta, .req, .draft button, .cur { font-size: 12px; }
.req { letter-spacing: .04em; }

/* touch targets: 44px minimum, visually unchanged */
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding-block: 0; background-position: 0 calc(50% + 12px); }
.menu-b { min-height: 44px; min-width: 44px; }
.btn-s, .chips button, .draft button, .film button { min-height: 44px; }
.chips button { padding-inline: 16px; }
.ft-l a { padding-block: 10px; }
.sub a { padding-block: 14px; }
.tabs button { padding: 14px 20px; }
.lnk, .toggle, .logo, .meta a { position: relative; }
.lnk::before, .toggle::before, .logo::before, .meta a::before { content: ''; position: absolute; inset: -12px -8px; }

.letters span small { display: block; font-family: var(--sans); font-style: normal; font-size: 15px; color: var(--ink-2); margin-top: 4px; }

/* Wide runway photographs: keep heads in frame. Specific enough to beat .bleed .ph img. */
.fig .ph img[src*="sutradhar-hero"], .fig .ph img[src*="sutradhar-finale"], .fig .ph img[src*="-wide"] { object-position: 50% 15%; }

/* ---------------------------------------------------------------- Journal articles (WordPress content, imported unchanged) */
article .ph-h h1.d2 { font-size: clamp(32px, 4.2vw, 64px); line-height: 1.02; }
.art-aside { position: sticky; top: 96px; align-self: start; }
@media (max-width: 900px) { .art-aside { display: none; } .wp { grid-column: 1 / -1 !important; } }
.wp { font-size: 18px; line-height: 1.7; color: var(--ink); min-width: 0; overflow-wrap: break-word; }
.wp > * + * { margin-top: 1.1em; }
.wp p, .wp li { max-width: 40em; }
.wp span { background: none !important; color: inherit !important; font-family: inherit !important; font-size: inherit !important; }
.wp h2, .wp h3, .wp h4, .wp h5, .wp h6 { font-family: var(--display); font-weight: 400; letter-spacing: -.012em; line-height: 1.18; text-wrap: balance; margin-top: 1.9em; }
.wp h2 { font-size: clamp(28px, 2.8vw, 38px); padding-top: 1em; border-top: 1px solid var(--ink); }
.wp h3 { font-size: clamp(23px, 2.1vw, 28px); }
.wp h4 { font-size: 21px; }
.wp h5, .wp h6 { font-family: var(--mono); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; font-weight: 500; }
.wp h2 + *, .wp h3 + *, .wp h4 + *, .wp h5 + *, .wp h6 + * { margin-top: .6em; }
.wp b, .wp strong { font-weight: 600; }
.wp a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.wp a:hover { text-decoration-thickness: 2px; }
.wp ul, .wp ol { padding-left: 1.3em; }
.wp ul { list-style: square; }
.wp li + li { margin-top: .45em; }
.wp li::marker { color: var(--ink-2); }
.wp blockquote { border-left: 2px solid var(--ink); padding-left: 1.1em; font-family: var(--display); font-size: 1.2em; line-height: 1.45; }
.wp img { display: block; max-width: 100%; height: auto; margin-inline: auto; }
.wp figure, .wp .wp-caption { max-width: 100% !important; width: auto !important; margin-inline: 0; }
.wp figcaption, .wp .wp-caption-text { font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); margin-top: 10px; }
.wp .aligncenter { margin-inline: auto; }
.wp table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; display: block; overflow-x: auto; }
.wp th, .wp td { border-bottom: 1px solid var(--ink-3); padding: 10px 14px 10px 0; text-align: left; vertical-align: top; min-width: 120px; }
.wp th, .wp tr:first-child td { font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; border-bottom-color: var(--ink); }
.wp .related-blogs { border-top: 1px solid var(--ink); padding-top: 1em; }
.wp iframe, .wp video { max-width: 100%; }

/* ---------------------------------------------------------------- breadcrumbs */
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 .5em; }
.crumbs li + li::before { content: "/"; margin-right: .5em; color: var(--ink-3); }
.crumbs [aria-current] { color: var(--ink); }
address { font-style: normal; }

/* ---------------------------------------------------------------- author box (journal articles) */
.author-box { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 24px; align-items: center; padding-block: 32px; border-block: 1px solid var(--ink); }
.author-box .fig { margin: 0; }
.author-box .d3 a { text-decoration: none; }
@media (max-width: 900px) { .author-box { grid-column: 1 / -1 !important; grid-template-columns: 88px minmax(0, 1fr); gap: 16px; } }
.team-portrait { max-width: 280px; }

/* ---------------------------------------------------------------- course FAQ hub */
.toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; padding-top: 12px; border-top: 1px solid var(--ink); }
.toc a { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.qa { scroll-margin-top: 96px; padding-top: 24px; border-top: 1px solid var(--hair, var(--ink-3)); }
.qa h3 { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.2; margin-bottom: 12px; }
.qa p { max-width: 40em; }
.qa p + p { margin-top: 10px; }
section[id] { scroll-margin-top: 80px; }

/* Bold labels inside inverted sections follow the section colour */
.inv .meta b { color: inherit; }
