/* =========================================================================
   (STUDIO) NOVAETAS · THE ARCHIVE
   Design tokens → base → layout → components → pages → motion → responsive
   ========================================================================= */

@font-face {
  font-family: 'Novaetas Light';
  src: url('../fonts/StudioNovaetas-1.ttf') format('truetype');
  font-weight: 200; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Novaetas';
  src: url('../fonts/StudioNovaetas-2.ttf') format('truetype');
  font-weight: 500; font-style: normal; font-display: swap;
}

:root {
  /* colour */
  --paper: #ffffff;
  --ink: #2a2a28;
  --ink-2: #5f5f5b;
  --ink-3: #9c9b96;
  --rule: #e4e3df;
  --wash: #f6f5f2;
  --folder-paper: #eeece7;
  --folder-stone: #e2e0d9;
  --folder-graphite: #363634;
  --seal: #2a2a28;

  /* type */
  --light: 'Novaetas Light', 'Helvetica Neue', Arial, sans-serif;
  --medium: 'Novaetas', 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', 'SFMono-Regular', Menlo, Consolas, 'Liberation Mono', monospace;

  /* Small, uppercase, editorial. The largest text is barely bigger than the nav. */
  --fs-micro: 9px;
  --fs-xs: 10px;
  --fs-s: 11px;
  --fs-body: 11px;
  --fs-m: 12px;
  --fs-l: clamp(13px, 1.05vw, 15px);
  --fs-xl: clamp(14px, 1.25vw, 18px);
  --fs-xxl: clamp(16px, 1.6vw, 22px);

  /* space */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 40px; --s-7: 56px; --s-8: 80px; --s-9: 120px; --s-10: 160px;
  --margin: clamp(16px, 2.6vw, 44px);
  --gutter: clamp(12px, 1.4vw, 24px);
  --section: clamp(40px, 5vw, 80px);
  --header-h: 64px;

  /* surfaces that change with the theme */
  --header-bg: rgba(255, 255, 255, .86);
  --object: #fcfbf8;        /* index cards, contact sheets: paper objects */
  --object-line: #e3e1db;

  /* motion */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --t-fast: 220ms;
  --t-mid: 600ms;
  --t-slow: 1100ms;
}

/* ---- black mode -------------------------------------------------------- */
[data-theme="dark"] {
  --paper: #0e0e0d;
  --ink: #ecebe6;
  --ink-2: #a9a8a2;
  --ink-3: #6e6d68;
  --rule: #262624;
  --wash: #191918;
  --header-bg: rgba(14, 14, 13, .86);
  --object: #f4f3ef;
  --object-line: #d9d7d0;
  color-scheme: dark;
}
/* paper objects stay paper in black mode: keep their own dark ink */
.card, .contact, .strip, .print, .sheet, .jcard--index, .desk__interior:not(.tone-graphite), .desk__cover:not(.tone-graphite), .folder:not(.folder--graphite) {
  --ink: #2a2a28; --ink-2: #5f5f5b; --ink-3: #9c9b96; --rule: #e4e3df;
}
.card, .contact, .strip, .print, .sheet, .jcard--index, .desk__interior:not(.tone-graphite) { color: var(--ink); }
[data-theme="dark"] .site-header__logo img, [data-theme="dark"] .site-footer__mark { filter: invert(1); }
[data-theme="dark"] .folder--graphite { --folder-graphite: #2b2b29; }
.theme-anim, .theme-anim *, .theme-anim *::before, .theme-anim *::after { transition: background-color 600ms var(--ease), color 600ms var(--ease), border-color 600ms var(--ease) !important; }

/* ---- reset / base ------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; background: var(--paper); }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--medium);
  font-size: var(--fs-s);
  letter-spacing: .12em;
  line-height: 1.7;
  text-transform: uppercase;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; letter-spacing: inherit; text-transform: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }

[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; top: 8px; left: 8px; z-index: 999; padding: 8px 12px; background: var(--ink); color: var(--paper); transform: translateY(-200%); }
.skip:focus { transform: none; }

/* ---- type utilities ---------------------------------------------------- */
.t-micro { font-family: var(--mono); font-size: var(--fs-micro); letter-spacing: .04em; line-height: 1.3; color: var(--ink-3); }
.t-xs    { font-size: var(--fs-xs); letter-spacing: .16em; line-height: 1.5; }
.t-s     { font-size: var(--fs-s); letter-spacing: .12em; }
/* Body copy: light, uppercase, grey. Titles: medium, uppercase, black, small. */
.t-body  { font-family: var(--light); font-size: var(--fs-body); letter-spacing: .08em; line-height: 1.85; color: var(--ink-2); max-width: 52ch; font-weight: 200; }
.t-body strong { font-family: var(--medium); font-weight: 500; color: var(--ink); }
.t-m     { font-family: var(--light); font-size: var(--fs-m); letter-spacing: .08em; line-height: 1.8; font-weight: 200; color: var(--ink-2); }
.t-l     { font-family: var(--medium); font-size: var(--fs-l); letter-spacing: .14em; line-height: 1.6; font-weight: 500; color: var(--ink); }
.t-xl    { font-family: var(--medium); font-size: var(--fs-xl); letter-spacing: .16em; line-height: 1.5; font-weight: 500; color: var(--ink); }
.t-xxl   { font-family: var(--medium); font-size: var(--fs-xxl); letter-spacing: .16em; line-height: 1.45; font-weight: 500; color: var(--ink); }
.muted   { color: var(--ink-3); }
.soft    { color: var(--ink-2); }
.num::before { content: '('; } .num::after { content: ')'; }

/* ---- links ------------------------------------------------------------- */
.link { position: relative; display: inline-flex; align-items: center; gap: .6em; padding-bottom: 2px; }
.link::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform 350ms var(--ease);
}
.link:hover::after, .link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.link .arrow { display: inline-block; transition: transform var(--t-fast) var(--ease); }
.link:hover .arrow { transform: translateX(4px); }
.link--under::after { transform: scaleX(1); opacity: .35; }
.link--under:hover::after { opacity: 1; }

/* ---- layout ------------------------------------------------------------ */
.wrap { padding-left: var(--margin); padding-right: var(--margin); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.section { padding-top: var(--section); }
.rule { height: 1px; background: var(--rule); border: 0; margin: 0; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-4); padding-bottom: var(--s-3); border-bottom: 1px solid var(--rule); margin-bottom: var(--s-6); }

main { display: block; min-height: 60vh; }

/* ---- header ------------------------------------------------------------ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 var(--margin);
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(140%) blur(10px); backdrop-filter: saturate(140%) blur(10px);
  font-size: var(--fs-xs); letter-spacing: .16em;
  transition: transform 520ms var(--ease), background var(--t-fast);
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header.is-clear { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.site-header__nav { display: flex; gap: clamp(14px, 1.8vw, 28px); }
.site-header__logo { display: block; width: clamp(132px, 12vw, 184px); }
.site-header__logo svg, .site-header__logo img { width: 100%; height: auto; }
.site-header__right { display: flex; justify-content: flex-end; align-items: center; gap: clamp(14px, 1.8vw, 28px); }
.site-header__time { font-family: var(--mono); font-size: var(--fs-micro); letter-spacing: .04em; color: var(--ink-3); }
.menu-btn { display: none; }

/* mobile menu sheet */
.menu-sheet {
  position: fixed; inset: 0; z-index: 60; background: var(--paper);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--header-h) + var(--s-6)) var(--margin) calc(var(--s-6) + env(safe-area-inset-bottom));
  opacity: 0; visibility: hidden; transition: opacity 420ms var(--ease), visibility 0s 420ms;
}
.menu-sheet.is-open { opacity: 1; visibility: visible; transition: opacity 420ms var(--ease); }
.menu-sheet__close { position: absolute; top: 0; right: var(--margin); height: var(--header-h); font-size: var(--fs-xs); letter-spacing: .16em; }
.menu-sheet ol { display: grid; gap: var(--s-4); }
.menu-sheet li { overflow: hidden; }
.menu-sheet a { display: flex; align-items: baseline; gap: var(--s-4); font-family: var(--medium); font-size: 15px; line-height: 1.5; letter-spacing: .18em; font-weight: 500; transform: translateY(105%); transition: transform 700ms var(--ease); }
.menu-sheet a small { font-family: var(--mono); font-size: var(--fs-micro); letter-spacing: .04em; color: var(--ink-3); }
.menu-sheet.is-open a { transform: none; }
.menu-sheet.is-open li:nth-child(2) a { transition-delay: 60ms; }
.menu-sheet.is-open li:nth-child(3) a { transition-delay: 120ms; }
.menu-sheet.is-open li:nth-child(4) a { transition-delay: 180ms; }
.menu-sheet.is-open li:nth-child(5) a { transition-delay: 240ms; }
.menu-sheet.is-open li:nth-child(6) a { transition-delay: 300ms; }
.menu-sheet__foot { display: flex; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; font-size: var(--fs-xs); }

/* ---- footer ------------------------------------------------------------ */
.signoff { padding: var(--s-9) var(--margin) var(--s-7); text-align: center; position: relative; }
.signoff__line { display: block; }
.signoff__line span { display: inline-block; }
.signoff__cta { margin-top: var(--s-6); display: inline-flex; }

.site-footer { padding: var(--s-7) var(--margin) calc(var(--s-5) + env(safe-area-inset-bottom)); border-top: 1px solid var(--rule); font-size: var(--fs-xs); letter-spacing: .14em; }
.site-footer__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: var(--s-6); }
.site-footer__col { grid-column: span 3; display: grid; align-content: start; gap: var(--s-2); }
.site-footer__col h3 { font-size: var(--fs-xs); font-weight: 500; color: var(--ink-3); margin-bottom: var(--s-2); }
.site-footer__col li::before { content: '▸'; margin-right: .5em; font-size: .8em; color: var(--ink-3); }
.site-footer__base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-7); color: var(--ink-3); }
.site-footer__mark { width: min(100%, 440px); margin-top: var(--s-7); opacity: .92; }

/* ---- page veil --------------------------------------------------------- */
.veil { position: fixed; inset: 0; z-index: 200; background: var(--paper); pointer-events: none; opacity: 1; transition: opacity 700ms var(--ease); }
.is-ready .veil { opacity: 0; }
.is-leaving .veil { opacity: 1; transition-duration: 320ms; }

/* ---- cursor ------------------------------------------------------------ */
.cursor { position: fixed; top: 0; left: 0; z-index: 300; pointer-events: none; mix-blend-mode: difference; opacity: 0; transition: opacity 300ms; }
.cursor.is-on { opacity: 1; }
.cursor__dot { position: absolute; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: #fff; transition: transform 400ms var(--ease); }
.cursor__label { position: absolute; transform: translate(14px, -50%); font-size: var(--fs-xs); letter-spacing: .18em; color: #fff; white-space: nowrap; opacity: 0; transition: opacity 250ms; }
.cursor.has-label .cursor__dot { transform: scale(2); }
.cursor.has-label .cursor__label { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---- reveal ------------------------------------------------------------ */
.js [data-reveal] { opacity: 0; transform: translateY(10px); transition: opacity var(--t-mid) var(--ease), transform var(--t-mid) var(--ease); transition-delay: var(--d, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="mask"] { opacity: 1; transform: none; clip-path: inset(100% 0 0 0); transition: clip-path 1100ms var(--ease); transition-delay: var(--d, 0ms); }
.js [data-reveal="mask"].is-in { clip-path: inset(0 0 0 0); }
.js [data-reveal="mask"] img { transform: scale(1.08); transition: transform 1600ms var(--ease); transition-delay: var(--d, 0ms); }
.js [data-reveal="mask"].is-in img { transform: none; }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; }
.split .w > span { display: inline-block; transform: translateY(105%); transition: transform 900ms var(--ease); transition-delay: calc(var(--i, 0) * 45ms + var(--d, 0ms)); }
.split.is-in .w > span { transform: none; }

/* ---- media frame ------------------------------------------------------- */
.frame { position: relative; overflow: hidden; background: var(--wash); }
.frame img, .frame video { width: 100%; height: 100%; object-fit: cover; }
.frame--34 { aspect-ratio: 3 / 4; }
.frame--45 { aspect-ratio: 4 / 5; }
.frame--916 { aspect-ratio: 9 / 16; }
.img-fade { opacity: 0; transition: opacity 700ms var(--ease); }
.img-fade.is-loaded { opacity: 1; }

.caption { display: flex; justify-content: space-between; gap: var(--s-3); margin-top: var(--s-3); font-size: var(--fs-xs); letter-spacing: .14em; }

/* ---- page title block -------------------------------------------------- */
.page-head { padding: calc(var(--header-h) + clamp(32px, 5vw, 80px)) var(--margin) var(--s-6); }
.page-head__top { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-4); margin-bottom: var(--s-5); font-size: var(--fs-xs); letter-spacing: .16em; color: var(--ink-3); }
.page-head__title { max-width: 44ch; }
.page-head__lead { margin-top: var(--s-6); max-width: 40ch; }

/* =========================================================================
   HOME
   ========================================================================= */
.hero { position: relative; min-height: 100svh; min-height: 100vh; padding: var(--header-h) var(--margin) var(--s-6); display: grid; place-items: center; overflow: hidden; }
.hero { min-height: clamp(520px, 88vh, 940px); }
@supports (min-height: 100svh) { .hero { min-height: clamp(520px, 88svh, 940px); } }
.hero__field { position: absolute; inset: var(--header-h) 0 0 0; pointer-events: none; }
.hero__item { position: absolute; width: var(--w, 9vw); left: var(--x); top: var(--y); pointer-events: auto; will-change: transform; touch-action: none; cursor: grab; transform: translate3d(calc(var(--px, 0px) + var(--dx, 0px)), calc(var(--py, 0px) + var(--dy, 0px)), 0); }
.hero__item.is-dragging { cursor: grabbing; }
.hero__item.is-dragging .hero__float { animation-play-state: paused; }
.hero__item .frame video { width: 100%; height: 100%; object-fit: cover; }
.hero__item img, .hero__item video { -webkit-user-drag: none; user-select: none; }
.float__label { white-space: nowrap; overflow: visible; }
.hero__item .frame { aspect-ratio: var(--ar, 3/4); }
.hero__item .t-micro { display: block; margin-bottom: 6px; color: var(--ink-2); }
.hero__item a { display: block; }
.hero__float { animation: float var(--fd, 9s) ease-in-out infinite alternate; animation-delay: var(--fdl, 0s); }
@keyframes float { from { transform: translateY(-6px); } to { transform: translateY(6px); } }
.hero__center { position: relative; z-index: 2; text-align: center; display: grid; justify-items: center; gap: var(--s-5); max-width: 520px; }
.hero__foot { position: absolute; left: var(--margin); right: var(--margin); bottom: calc(var(--s-5) + env(safe-area-inset-bottom)); display: flex; justify-content: space-between; align-items: end; font-size: var(--fs-xs); letter-spacing: .16em; z-index: 2; }
.hero__scroll { display: inline-flex; align-items: center; gap: 10px; }
.hero__scroll i { display: block; width: 1px; height: 28px; background: var(--ink); transform-origin: top; animation: scrollline 2.4s var(--ease) infinite; }
@keyframes scrollline { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

.manifesto__title { text-align: center; max-width: 22ch; margin: 0 auto; letter-spacing: .22em; }
.manifesto__meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px var(--s-5); color: var(--ink-3); font-size: var(--fs-xs); letter-spacing: .16em; }

/* services */
.services { padding: var(--section) var(--margin) 0; position: relative; }
.services__list { border-top: 0; }
.service { border-bottom: 1px solid var(--rule); }
.service__row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: baseline; padding: clamp(14px, 1.6vw, 22px) 0; transition: padding var(--t-mid) var(--ease); }
.service__no { grid-column: 1 / span 1; font-family: var(--mono); font-size: var(--fs-micro); letter-spacing: .04em; color: var(--ink-3); }
.service__title { grid-column: 2 / span 6; font-family: var(--medium); font-weight: 500; font-size: var(--fs-l); letter-spacing: .16em; line-height: 1.4; transition: transform var(--t-mid) var(--ease), color var(--t-fast); }
.service__text { grid-column: 9 / span 3; }
.service__go { grid-column: 12 / span 1; justify-self: end; font-size: var(--fs-xs); opacity: 0; transform: translateX(-6px); transition: opacity var(--t-fast), transform var(--t-fast) var(--ease); }
.services__list:hover .service__title { color: var(--ink-3); }
.services__list .service:hover .service__title { color: var(--ink); transform: translateX(12px); }
.service:hover .service__go { opacity: 1; transform: none; }
.services__preview { position: fixed; top: 0; left: 0; z-index: 40; width: clamp(140px, 13vw, 220px); aspect-ratio: 3/4; pointer-events: none; opacity: 0; transform: translate3d(-50%, -50%, 0) scale(.92); transition: opacity 300ms var(--ease); overflow: hidden; }
.services__preview.is-on { opacity: 1; }
.services__preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 350ms var(--ease); }
.services__preview img.is-active { opacity: 1; }
@media (hover: none) { .services__preview { display: none; } .service__go { opacity: 1; transform: none; } }

/* selected folders on home */
.selected { padding: var(--section) var(--margin) 0; }

/* speculative strip */
.specstrip { padding: var(--section) 0 0; }
.specstrip__head { padding: 0 var(--margin); }
.specstrip__track { display: flex; gap: var(--s-3); padding: 0 var(--margin); overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch; cursor: grab; }
.specstrip__track::-webkit-scrollbar { display: none; }
.specstrip__track.is-drag { cursor: grabbing; scroll-snap-type: none; }
.sheet {
  flex: 0 0 auto; scroll-snap-align: start; background: var(--object); border: 1px solid var(--object-line);
  padding: 14px 14px 12px; display: grid; gap: 10px; width: clamp(260px, 30vw, 440px);
  transition: transform 600ms var(--ease);
}
.sheet:hover { transform: translateY(-4px); }
.sheet__frames { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.sheet__frames .frame { aspect-ratio: 3/4; }
.sheet__frames .frame span { position: absolute; left: 4px; bottom: 3px; font-family: var(--mono); font-size: 8px; color: #fff; mix-blend-mode: difference; letter-spacing: .04em; }
.sheet__meta { display: flex; justify-content: space-between; gap: 12px; font-size: var(--fs-xs); letter-spacing: .14em; }
/* film sheet: a looping reel beside two frames */
.sheet--film { width: clamp(300px, 36vw, 520px); }
.sheet--film .sheet__frames { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; aspect-ratio: 1.2 / 1; }
.sheet--film .sheet__frames .frame { aspect-ratio: auto; height: 100%; }
.sheet--film .frame--film { grid-row: 1 / span 2; background: #111; }
.sheet--film .frame--film video { width: 100%; height: 100%; object-fit: cover; }
.sheet--film .frame--film span { left: 6px; bottom: 5px; color: #fff; mix-blend-mode: normal; letter-spacing: .14em; }

/* about: statement on the left, two frames on the right */
.about { padding: var(--section) var(--margin) 0; }
.about__body { grid-column: 1 / span 6; display: grid; gap: var(--s-5); align-content: start; }
.about__statement { max-width: 46ch; }
.about__img { grid-column: 8 / span 2; }
.about__img--b { grid-column: 11 / span 2; margin-top: var(--s-8); }

/* digital humans teaser */
.dh-teaser { padding: var(--section) var(--margin) 0; }
.dh-teaser__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: var(--s-5); }
.dh-teaser__text { grid-column: 1 / span 4; }
.dh-teaser__body { grid-column: 1 / span 4; }
.dh-teaser__cast { grid-column: 6 / span 7; grid-row: 1 / span 3; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; align-items: start; }
.dh-teaser__item { display: grid; gap: 6px; }
.dh-teaser__item:nth-child(2n) { margin-top: var(--s-6); }
.dh-teaser__item .frame { transition: transform 700ms var(--ease); }
.dh-teaser__item:hover .frame { transform: translateY(-6px); }

/* journal teaser */
.drift { padding: var(--section) 0 0; overflow: hidden; }
.drift__head { padding: 0 var(--margin); }
.drift__row { display: flex; gap: var(--gutter); width: max-content; animation: drift 80s linear infinite; }
.drift:hover .drift__row { animation-play-state: paused; }
.drift__item { width: clamp(140px, 14vw, 230px); }
.drift__item:nth-child(3n+2) { margin-top: var(--s-7); width: clamp(120px, 11vw, 180px); }
.drift__item:nth-child(4n+3) { margin-top: var(--s-5); }
@keyframes drift { to { transform: translateX(-50%); } }

/* =========================================================================
   WORK · FOLDERS
   ========================================================================= */
.work-bar { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-4); flex-wrap: wrap; padding: 0 var(--margin) var(--s-4); border-bottom: 1px solid var(--rule); margin: 0 var(--margin); padding-left: 0; padding-right: 0; font-size: var(--fs-xs); letter-spacing: .16em; }
.filters { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.filter { color: var(--ink-3); transition: color var(--t-fast); display: inline-flex; align-items: center; gap: 6px; }
.filter::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: currentColor; transform: scale(0); transition: transform var(--t-fast) var(--ease); }
.filter:hover { color: var(--ink); }
.filter.is-active { color: var(--ink); }
.filter.is-active::before { transform: scale(1); }
.filter sup { font-family: var(--mono); font-size: 8px; letter-spacing: 0; color: var(--ink-3); margin-left: 2px; }
.view-toggle { display: flex; gap: 14px; }
.view-toggle button { color: var(--ink-3); }
.view-toggle button[aria-pressed="true"] { color: var(--ink); }

.drawer { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: clamp(20px, 3vw, 56px); row-gap: clamp(64px, 7vw, 120px); padding: clamp(64px, 7vw, 112px) var(--margin) 0; }
.drawer--home { padding: var(--s-7) 0 0; }
.drawer.is-list { display: none; }

.folder-cell { position: relative; transition: opacity 500ms var(--ease), transform 500ms var(--ease); }
.folder-cell:nth-child(4n+2) { margin-top: clamp(24px, 4vw, 72px); }
.folder-cell:nth-child(4n+4) { margin-top: clamp(12px, 2vw, 36px); }
.folder-cell.is-filtered { opacity: .12; pointer-events: none; transform: scale(.97); }

.folder {
  --tone: var(--folder-paper);
  --label: var(--ink);
  --tab-x: 8%;
  --tilt: 0deg;
  position: relative; display: block; width: 100%; aspect-ratio: 1.32 / 1;
  transform: rotate(var(--tilt)); perspective: 1400px; text-align: left;
  transition: transform 700ms var(--ease);
}
.folder:hover, .folder:focus-visible { transform: rotate(0deg) translateY(-4px); }
.folder__back {
  position: absolute; inset: 9% 0 0 0; background: var(--tone); border-radius: 2px 6px 4px 4px;
  box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 18px 40px -28px rgba(30,30,28,.35);
}
.folder__back::before {
  content: ''; position: absolute; bottom: 100%; left: var(--tab-x); width: 34%; height: 12.5%;
  background: var(--tone); border-radius: 6px 6px 0 0;
  clip-path: polygon(6% 0, 94% 0, 100% 100%, 0 100%);
}
.folder__tabtext { position: absolute; bottom: calc(100% + 3%); left: calc(var(--tab-x) + 3.4%); font-family: var(--mono); font-size: var(--fs-micro); letter-spacing: .04em; color: var(--ink-3); }
.folder__sheet {
  position: absolute; left: 6%; right: 6%; top: 12%; bottom: 6%; background: #fff; border-radius: 1px;
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
  transition: transform 800ms var(--ease);
}
/* documents stand well out of the folder; they rise further on hover */
.folder__sheet--a { transform: translateY(-26%) rotate(-2deg); left: 9%; right: 22%; overflow: hidden; padding: 3.5%; box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 10px 22px -16px rgba(0,0,0,.35); }
.folder__sheet--a img, .folder__sheet--b img { width: 100%; height: 100%; object-fit: cover; object-position: center 28%; }
.folder__sheet--b { transform: translateY(-17%) rotate(3deg); left: 50%; right: 7%; top: 16%; overflow: hidden; padding: 3.5% 3.5% 9%; box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 10px 22px -16px rgba(0,0,0,.35); }
.folder__sheet--c { transform: translateY(-9%) rotate(-.6deg); left: 30%; right: 12%; padding: 6% 7%; display: grid; align-content: start; gap: 6%; background: #fbfaf7; }
.folder__sheet--c i { display: block; height: 1px; background: #e4e3df; }
.folder__sheet--c i:nth-child(1) { width: 60%; background: #d6d4ce; }
.folder__sheet--c i:nth-child(3) { width: 80%; }
.folder__front {
  position: absolute; left: 0; right: 0; bottom: 0; height: 82%;
  background: var(--tone); border-radius: 3px 3px 4px 4px;
  transform-origin: 50% 100%; transform: rotateX(0deg);
  transition: transform 800ms var(--ease), box-shadow 800ms var(--ease);
  box-shadow: 0 -1px 0 rgba(255,255,255,.6) inset, 0 -10px 24px -18px rgba(0,0,0,.25);
  display: flex; flex-direction: column; justify-content: space-between; padding: 7% 7% 6%;
  color: var(--label);
}
.folder__front::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(180deg, rgba(255,255,255,.35), rgba(255,255,255,0) 30%); pointer-events: none; }
.folder__label { display: grid; gap: 4px; }
.folder__name { font-size: var(--fs-s); letter-spacing: .14em; line-height: 1.35; max-width: 20ch; }
.folder__ind { font-size: var(--fs-xs); letter-spacing: .16em; opacity: .55; }
.folder__foot { display: flex; justify-content: space-between; align-items: end; font-family: var(--mono); font-size: var(--fs-micro); letter-spacing: .04em; opacity: .6; }
.folder__holes { position: absolute; left: 4%; top: 22%; bottom: 22%; display: none; flex-direction: column; justify-content: space-between; }
.folder__holes i { width: 7px; height: 7px; border-radius: 50%; background: #fff; box-shadow: inset 0 1px 1px rgba(0,0,0,.12); }

.folder:hover .folder__sheet--a, .folder.is-peek .folder__sheet--a { transform: translateY(-40%) rotate(-3.5deg) translateX(-4%); }
.folder:hover .folder__sheet--b, .folder.is-peek .folder__sheet--b { transform: translateY(-30%) rotate(5deg) translateX(5%); }
.folder:hover .folder__sheet--c, .folder.is-peek .folder__sheet--c { transform: translateY(-18%) rotate(-1deg); }
.folder:hover .folder__front, .folder.is-peek .folder__front { transform: rotateX(-14deg); box-shadow: 0 -1px 0 rgba(255,255,255,.6) inset, 0 -16px 30px -14px rgba(0,0,0,.28); }

/* tones */
.folder--stone { --tone: var(--folder-stone); }
.folder--graphite { --tone: var(--folder-graphite); --label: #f3f2ee; }
.folder--graphite .folder__tabtext { color: var(--ink-2); }
.folder--sleeve .folder__back { background: #f1f0ec; }
.folder--sleeve .folder__back::before { background: #f1f0ec; }
.folder--sleeve .folder__front {
  background: linear-gradient(160deg, rgba(255,255,255,.62), rgba(246,246,243,.38));
  -webkit-backdrop-filter: blur(5px) saturate(115%); backdrop-filter: blur(5px) saturate(115%);
  box-shadow: 0 0 0 1px rgba(255,255,255,.75) inset, 0 0 0 1px rgba(0,0,0,.05), 0 -10px 24px -18px rgba(0,0,0,.18);
  padding-left: 13%;
}
.folder--sleeve .folder__front::after { background: linear-gradient(115deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,0) 28%, rgba(255,255,255,0) 62%, rgba(255,255,255,.3) 78%, rgba(255,255,255,0) 90%); }

.folder--sleeve .folder__holes { display: flex; }
.folder--sleeve .folder__holes i { background: rgba(255,255,255,.9); }

.folder-cell__caption { display: flex; justify-content: space-between; gap: var(--s-3); margin-top: var(--s-4); font-size: var(--fs-xs); letter-spacing: .14em; color: var(--ink-3); }

/* index list view */
.index-list { display: none; padding: var(--s-6) var(--margin) 0; }
.index-list.is-on { display: block; }
.index-list__row { display: grid; grid-template-columns: 1fr 5fr 3fr 2fr 1fr; gap: var(--gutter); padding: 14px 0; border-bottom: 1px solid var(--rule); align-items: baseline; width: 100%; text-align: left; transition: padding var(--t-mid) var(--ease), color var(--t-fast); }
.index-list__row:hover { padding-left: 12px; }
.index-list:hover .index-list__row { color: var(--ink-3); }
.index-list:hover .index-list__row:hover { color: var(--ink); }
.index-list__row .name { font-family: var(--medium); font-size: var(--fs-s); letter-spacing: .14em; font-weight: 500; }

/* =========================================================================
   OPEN FOLDER · DESK
   ========================================================================= */
.desk { position: fixed; inset: 0; z-index: 100; visibility: hidden; }
.desk.is-open { visibility: visible; }
.desk__bg { position: absolute; inset: 0; background: var(--paper); opacity: 0; transition: opacity 500ms var(--ease); }
.desk.is-open .desk__bg { opacity: 1; }
.desk__scroll { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.desk__bar { position: sticky; top: 0; z-index: 5; height: var(--header-h); display: flex; justify-content: space-between; align-items: center; padding: 0 var(--margin); font-size: var(--fs-xs); letter-spacing: .16em; opacity: 0; transition: opacity 400ms var(--ease) 300ms; background: linear-gradient(var(--paper) 60%, transparent); }
.desk.is-open .desk__bar { opacity: 1; }
.desk__inner { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); padding: var(--s-4) var(--margin) var(--s-8); min-height: calc(100% - var(--header-h)); align-items: start; }

.desk__folder { grid-column: 1 / span 7; position: relative; perspective: 2200px; }
.desk__interior {
  --tone: var(--folder-paper);
  position: relative; background: var(--tone); border-radius: 3px 8px 6px 6px; padding: clamp(18px, 3vw, 48px);
  min-height: min(76vh, 820px); box-shadow: 0 30px 70px -50px rgba(30,30,28,.45);
  display: grid; gap: clamp(32px, 4vw, 64px); align-content: start;
}
.desk__interior::before { content: ''; position: absolute; bottom: 100%; left: var(--tab-x, 8%); width: 26%; height: 28px; background: var(--tone); border-radius: 6px 6px 0 0; clip-path: polygon(5% 0, 95% 0, 100% 100%, 0 100%); }
.desk__interior.tone-stone { --tone: var(--folder-stone); }
.desk__interior.tone-graphite { --tone: #3c3c3a; color: #f3f2ee; }
.desk__interior.tone-graphite .t-micro, .desk__interior.tone-graphite .muted { color: #a9a8a2; }
.desk__interior.tone-sleeve { --tone: #f1f0ec; }
.desk__cover {
  position: absolute; inset: 0; z-index: 4; background: var(--cover-tone, var(--folder-paper)); border-radius: 3px 8px 6px 6px;
  transform-origin: 0 50%; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  display: flex; flex-direction: column; justify-content: space-between; padding: clamp(18px, 3vw, 48px);
  box-shadow: 0 0 0 1px rgba(0,0,0,.02), 0 20px 50px -30px rgba(0,0,0,.35);
}
.desk__cover .t-l { max-width: 24ch; }
.desk__cover.tone-graphite { color: #f3f2ee; }
.desk__cover.tone-sleeve { background: rgba(248,248,246,.7); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }

.mod { position: relative; }
.mod__head { display: flex; justify-content: space-between; margin-bottom: var(--s-3); font-size: var(--fs-xs); letter-spacing: .16em; }
.mod__head .t-micro { color: inherit; opacity: .55; }

/* hero frame inside */
.mod-hero { display: grid; grid-template-columns: 5fr 7fr; gap: var(--gutter); align-items: end; }
.mod-hero .frame { aspect-ratio: 3/4; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.mod-hero__meta { display: grid; gap: var(--s-2); align-content: end; padding-bottom: 4px; }

/* contact sheet */
.contact { background: #fdfcfa; color: var(--ink); padding: 14px 14px 10px; box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 16px 32px -24px rgba(0,0,0,.3); transform: rotate(var(--r, -.6deg)); }
.contact__grid { display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); gap: 6px; }
.contact__cell { position: relative; cursor: zoom-in; }
.contact__cell .frame { aspect-ratio: 3/4; }
.contact__cell span { display: block; font-family: var(--mono); font-size: 8px; letter-spacing: .04em; color: var(--ink-3); margin-top: 3px; }
.contact__cell.is-pick .pencil { position: absolute; inset: -12% -16% -4% -16%; pointer-events: none; }
.pencil path { fill: none; stroke: var(--ink); stroke-width: 1.2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1200ms var(--ease) 900ms; }
.desk.is-ready .pencil path { stroke-dashoffset: 0; }
.contact__foot { display: flex; justify-content: space-between; margin-top: 8px; font-family: var(--mono); font-size: 8px; letter-spacing: .06em; color: var(--ink-3); }

/* photobooth strip */
.strips { display: flex; gap: clamp(16px, 3vw, 40px); align-items: flex-start; flex-wrap: wrap; }
.strip { background: #fff; padding: 8px 8px 22px; width: clamp(96px, 11vw, 150px); display: grid; gap: 6px; box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 20px 30px -24px rgba(0,0,0,.35); transform: rotate(var(--r, 1.5deg)); position: relative; cursor: zoom-in; }
.strip .frame { aspect-ratio: 4/5; }
.strip::after { content: attr(data-stamp); position: absolute; bottom: 6px; left: 8px; right: 8px; font-family: var(--mono); font-size: 7px; letter-spacing: .06em; color: var(--ink-3); }
.strip:nth-child(2) { --r: -2deg; margin-top: 28px; }
.strip:nth-child(3) { --r: .8deg; margin-top: 8px; }
.strips__note { align-self: flex-end; max-width: 26ch; }

/* instant prints */
.prints { position: relative; display: flex; flex-wrap: wrap; gap: 0; padding: 12px 0 24px; }
.print { position: relative; background: #fff; padding: 7px 7px 30px; width: clamp(120px, 14vw, 210px); box-shadow: 0 1px 2px rgba(0,0,0,.1), 0 24px 34px -26px rgba(0,0,0,.4); transform: rotate(var(--r)); margin: var(--m, 0); cursor: zoom-in; transition: transform 500ms var(--ease); }
.print:hover { transform: rotate(0deg) translateY(-6px) scale(1.03); z-index: 3; }
.print .frame { aspect-ratio: 1 / 1.08; }
.print figcaption { position: absolute; left: 9px; right: 9px; bottom: 8px; font-family: var(--mono); font-size: 8px; letter-spacing: .06em; color: var(--ink-3); display: flex; justify-content: space-between; }
.print__tape { position: absolute; top: -9px; left: 50%; width: 44%; height: 16px; transform: translateX(-50%) rotate(var(--tr, -3deg)); background: rgba(236, 232, 220, .78); box-shadow: 0 0 0 1px rgba(0,0,0,.02); }

/* scattered frames */
.frames { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--gutter); row-gap: clamp(24px, 3vw, 44px); }
.frames__item { cursor: zoom-in; }
.frames__item .t-micro { display: block; margin-bottom: 5px; color: inherit; opacity: .6; }
.frames__item:nth-child(1) { grid-column: 1 / span 2; }
.frames__item:nth-child(2) { grid-column: 4 / span 2; margin-top: 28%; }
.frames__item:nth-child(3) { grid-column: 2 / span 2; }
.frames__item:nth-child(4) { grid-column: 5 / span 2; margin-top: 14%; }
.frames__item:nth-child(5) { grid-column: 1 / span 2; margin-top: -8%; }
.frames__item:nth-child(6) { grid-column: 3 / span 2; margin-top: 22%; }
.frames__text { grid-column: 3 / span 3; align-self: center; text-align: justify; }

/* film */
.films { display: flex; gap: clamp(16px, 3vw, 40px); align-items: flex-start; flex-wrap: wrap; }
.film { background: #121211; padding: 10px; color: #cfcdc7; transform: rotate(var(--r, .4deg)); box-shadow: 0 24px 40px -28px rgba(0,0,0,.6); width: min(100%, 300px); }
.films--land .film { width: 100%; }
.film__screen { position: relative; aspect-ratio: 9/16; background: #000; overflow: hidden; }
.films--land .film__screen { aspect-ratio: 16/9; }
.film__screen img, .film__screen video { width: 100%; height: 100%; object-fit: cover; }
.film__screen img { opacity: .55; filter: grayscale(.3); }
.film__play { position: absolute; inset: 0; display: grid; place-items: center; font-size: var(--fs-xs); letter-spacing: .2em; color: #fff; }
.film__bar { display: flex; justify-content: space-between; margin-top: 8px; font-family: var(--mono); font-size: 8px; letter-spacing: .08em; }
.film__holes { display: flex; justify-content: space-between; margin: 0 0 6px; }
.film__holes i, .film__holes--b i { width: 8px; height: 5px; background: #2b2b29; border-radius: 1px; }
.film__holes--b { display: flex; justify-content: space-between; margin-top: 6px; }

/* index card */
.desk__card { grid-column: 9 / span 4; position: sticky; top: calc(var(--header-h) + 8px); }
.card {
  position: relative; background: var(--object); border: 1px solid var(--object-line); padding: clamp(18px, 2vw, 28px);
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 24px 50px -40px rgba(0,0,0,.35);
}
.card__hole { position: absolute; top: 12px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: #fff; box-shadow: inset 0 1px 2px rgba(0,0,0,.15); }
.card__top { display: flex; justify-content: space-between; align-items: start; margin-bottom: var(--s-6); font-size: var(--fs-xs); letter-spacing: .16em; }
.card__title { margin-bottom: var(--s-5); }
.card__table { border: 1px solid #cfcdc6; }
.card__row { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid #cfcdc6; }
.card__row:last-child { border-bottom: 0; }
.card__cell { display: flex; align-items: baseline; gap: 8px; padding: 10px 10px 8px; min-height: 46px; }
.card__cell + .card__cell { border-left: 1px solid #cfcdc6; }
.card__cell--full { grid-column: 1 / -1; }
.card__k { font-size: 8.5px; letter-spacing: .16em; color: var(--ink-3); white-space: nowrap; }
.card__v { font-family: var(--medium); font-weight: 500; font-size: 11px; letter-spacing: .14em; line-height: 1.4; }
.card__desc { margin-top: var(--s-5); }
.card__disclosure { margin-top: var(--s-4); padding-top: var(--s-3); border-top: 1px dashed #d4d2cb; font-size: 9px; letter-spacing: .12em; color: var(--ink-2); line-height: 1.6; }
.card__ref { margin-top: var(--s-5); display: flex; justify-content: space-between; align-items: end; font-size: 8.5px; letter-spacing: .16em; color: var(--ink-3); }
.card__nav { display: flex; justify-content: space-between; margin-top: var(--s-5); font-size: var(--fs-xs); letter-spacing: .16em; }
.desk__card .card { opacity: 0; transform: translateX(40px) rotate(1.5deg); transition: opacity 700ms var(--ease) 650ms, transform 900ms var(--ease) 650ms; }
.desk.is-ready .desk__card .card { opacity: 1; transform: rotate(.4deg); }

.desk [data-out] { opacity: 0; transform: translateY(18px) rotate(var(--r, 0deg)); transition: opacity 700ms var(--ease), transform 900ms var(--ease); transition-delay: calc(700ms + var(--o, 0) * 90ms); }
.desk.is-ready [data-out] { opacity: 1; transform: translateY(0) rotate(var(--r, 0deg)); }
.desk.is-closing [data-out], .desk.is-closing .desk__card .card, .desk.is-closing .desk__bar { transition-delay: 0ms !important; transition-duration: 300ms; }
.desk.is-closing .desk__bg { transition-delay: 200ms; }

/* =========================================================================
   JOURNAL
   ========================================================================= */
.tagbar { position: sticky; top: 0; z-index: 30; display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); padding: 14px var(--margin); background: var(--header-bg); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); font-size: var(--fs-xs); letter-spacing: .16em; transition: top 520ms var(--ease); }
.has-header .tagbar { top: var(--header-h); }
.has-header.header-hidden .tagbar { top: 0; }
.tagbar__tags { display: flex; gap: 4px 18px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.tagbar__tags::-webkit-scrollbar { display: none; }
.tagbar__tags button { white-space: nowrap; color: var(--ink-3); transition: color var(--t-fast); }
.tagbar__tags button:hover, .tagbar__tags button.is-active { color: var(--ink); }
.tagbar__tags button.is-active::before { content: '● '; font-size: 6px; vertical-align: 2px; }
.tagbar__count { font-family: var(--mono); font-size: var(--fs-micro); letter-spacing: .04em; color: var(--ink-3); white-space: nowrap; }

.masonry { display: flex; gap: var(--gutter); padding: var(--s-6) var(--margin) 0; align-items: flex-start; }
.masonry__col { flex: 1 1 0; min-width: 0; display: grid; gap: clamp(28px, 3.4vw, 56px); }
.jcard { display: block; width: 100%; text-align: left; transition: opacity 500ms var(--ease), transform 600ms var(--ease); }
.jcard.is-hidden { display: none; }
.jcard.is-enter { opacity: 0; transform: translateY(14px); }
.jcard__media { position: relative; overflow: hidden; background: var(--wash); cursor: zoom-in; }
.jcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1200ms var(--ease), opacity 700ms var(--ease); }
.jcard:hover .jcard__media img { transform: scale(1.025); }
.jcard__cap { display: grid; gap: 3px; margin-top: 10px; text-align: center; }
.jcard__cap .t-micro { color: var(--ink-3); }
.jcard__title { font-size: var(--fs-xs); letter-spacing: .16em; }
.jcard__tags { font-size: 8.5px; letter-spacing: .14em; color: var(--ink-3); }
.jcard--note { background: var(--wash); padding: clamp(22px, 2.4vw, 36px); display: grid; gap: var(--s-6); aspect-ratio: 4/5; align-content: space-between; }
.jcard--note p { font-family: var(--medium); font-weight: 500; font-size: var(--fs-l); letter-spacing: .14em; line-height: 1.6; }
.jcard--index { border: 1px solid var(--object-line); background: var(--object); padding: 14px; display: grid; gap: 10px; }
.jcard--index .frame { aspect-ratio: 4/3; }
.jcard--index dl { display: grid; grid-template-columns: auto 1fr; border-top: 1px solid #d9d7d0; }
.jcard--index dt, .jcard--index dd { padding: 6px 0; border-bottom: 1px solid #d9d7d0; font-size: 8.5px; letter-spacing: .14em; }
.jcard--index dt { color: var(--ink-3); padding-right: 12px; }
.jcard--index dd { font-family: var(--medium); font-size: 10px; letter-spacing: .14em; font-weight: 500; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 150; background: var(--paper); display: grid; grid-template-rows: var(--header-h) 1fr auto; opacity: 0; visibility: hidden; transition: opacity 400ms var(--ease), visibility 0s 400ms; }
.lightbox.is-open { opacity: 1; visibility: visible; transition: opacity 400ms var(--ease); }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; padding: 0 var(--margin); font-size: var(--fs-xs); letter-spacing: .16em; }
.lightbox__stage { position: relative; display: grid; place-items: center; padding: 0 clamp(48px, 8vw, 140px); min-height: 0; }
.lightbox__stage img { max-height: calc(100vh - var(--header-h) - 96px); max-height: calc(100svh - var(--header-h) - 96px); width: auto; max-width: 100%; object-fit: contain; transition: opacity 300ms var(--ease), transform 500ms var(--ease); }
.lightbox__stage img.is-swap { opacity: 0; transform: translateY(8px); }
.lightbox__prev, .lightbox__next { position: absolute; top: 0; bottom: 0; width: 30%; font-size: var(--fs-xs); letter-spacing: .16em; display: flex; align-items: center; padding: 0 var(--margin); color: var(--ink-3); transition: color var(--t-fast); }
.lightbox__prev { left: 0; justify-content: flex-start; }
.lightbox__next { right: 0; justify-content: flex-end; }
.lightbox__prev:hover, .lightbox__next:hover { color: var(--ink); }
.lightbox__cap { display: flex; justify-content: center; gap: var(--s-5); padding: var(--s-4) var(--margin) calc(var(--s-4) + env(safe-area-inset-bottom)); font-size: var(--fs-xs); letter-spacing: .16em; flex-wrap: wrap; text-align: center; }

/* =========================================================================
   STUDIO / DIGITAL HUMANS / CONTACT / LEGAL
   ========================================================================= */
.split-block { padding: var(--section) var(--margin) 0; }
.split-block__left { grid-column: 1 / span 4; }
.split-block__right { grid-column: 6 / span 6; display: grid; gap: var(--s-5); }

.svc-detail { border-top: 1px solid var(--rule); padding: var(--s-6) 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: var(--s-4); }
.svc-detail__no { grid-column: 1 / span 1; }
.svc-detail__title { grid-column: 2 / span 5; }
.svc-detail__body { grid-column: 7 / span 4; display: grid; gap: var(--s-4); }
.svc-detail__list li { padding: 6px 0; border-bottom: 1px solid var(--rule); font-size: var(--fs-xs); letter-spacing: .14em; }
.svc-detail__img { grid-column: 11 / span 2; }

.method { padding: var(--section) var(--margin) 0; }
.method__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gutter); }
.method__step { border-top: 1px solid var(--ink); padding-top: var(--s-4); display: grid; gap: var(--s-4); align-content: start; }

.dh-hero { padding: calc(var(--header-h) + clamp(32px, 5vw, 80px)) var(--margin) 0; }
.dh-hero__grid { align-items: start; }
.dh-hero__title { grid-column: 1 / span 7; }
.dh-hero__img { grid-column: 9 / span 3; }
.dh-hero__lead { grid-column: 1 / span 5; margin-top: var(--s-6); }
.dh-steps { padding: var(--section) var(--margin) 0; }
.dh-steps__list { counter-reset: s; }
.dh-step { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); border-top: 1px solid var(--rule); padding: var(--s-5) 0; align-items: baseline; }
.dh-step__no { grid-column: 1 / span 1; }
.dh-step__title { grid-column: 2 / span 5; }
.dh-step__text { grid-column: 8 / span 4; }
.casting { padding: var(--section) var(--margin) 0; }
.casting__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--gutter); row-gap: var(--s-6); }
.casting__item { cursor: zoom-in; }
.casting__item:nth-child(6n+2) { margin-top: var(--s-7); }
.casting__item:nth-child(6n+4) { margin-top: var(--s-5); }
.casting__item:nth-child(6n+6) { margin-top: var(--s-7); }

.contact-page { padding: calc(var(--header-h) + clamp(32px, 5vw, 80px)) var(--margin) 0; }
.contact-page__left { grid-column: 1 / span 5; display: grid; gap: var(--s-6); align-content: start; }
.contact-page__right { grid-column: 7 / span 6; }
.form { display: grid; gap: var(--s-5); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-size: var(--fs-xs); letter-spacing: .16em; color: var(--ink-3); }
.field input, .field textarea, .field select {
  font: inherit; font-family: var(--light); font-weight: 200; font-size: 13px; letter-spacing: .08em; color: var(--ink);
  border: 0; border-bottom: 1px solid var(--rule); background: transparent; padding: 8px 0 10px; border-radius: 0; outline: none; transition: border-color var(--t-fast); width: 100%;
  -webkit-appearance: none; appearance: none;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.chips legend { margin-bottom: 8px; padding: 0; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 7px 12px; border: 1px solid var(--rule); font-size: var(--fs-xs); letter-spacing: .14em; cursor: pointer; transition: border-color var(--t-fast), background var(--t-fast), color var(--t-fast); }
.chip input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip input:focus-visible + span { outline: 1px solid var(--ink); outline-offset: 2px; }
.btn-box { display: inline-flex; align-items: center; gap: 14px; padding: 14px 22px; border: 1px solid var(--ink); font-size: var(--fs-xs); letter-spacing: .18em; transition: background var(--t-fast), color var(--t-fast); }
.btn-box:hover { background: var(--ink); color: var(--paper); }
.form__note { font-size: 9px; letter-spacing: .12em; color: var(--ink-3); max-width: 60ch; line-height: 1.6; }
.form__status { font-size: var(--fs-xs); letter-spacing: .14em; min-height: 1.5em; }

.legal { padding: calc(var(--header-h) + clamp(32px, 5vw, 80px)) var(--margin) 0; }
.legal__nav { grid-column: 1 / span 3; position: sticky; top: calc(var(--header-h) + 24px); align-self: start; display: grid; gap: 8px; font-size: var(--fs-xs); letter-spacing: .16em; }
.legal__body { grid-column: 5 / span 7; }
.legal__body h2 { font-family: var(--medium); font-weight: 500; font-size: var(--fs-l); letter-spacing: .14em; line-height: 1.5; margin: var(--s-8) 0 var(--s-5); }
.legal__body h2:first-child { margin-top: 0; }
.legal__body h3 { font-size: var(--fs-xs); letter-spacing: .16em; margin: var(--s-6) 0 var(--s-3); }
.legal__body p, .legal__body li { font-family: var(--light); font-weight: 200; font-size: var(--fs-body); letter-spacing: .08em; line-height: 1.85; color: var(--ink-2); max-width: 64ch; }
.legal__body p + p { margin-top: var(--s-3); }
.legal__body ul { margin: var(--s-3) 0; display: grid; gap: 4px; }
.legal__body li::before { content: '· '; color: var(--ink-3); }
.legal__body a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* cookie banner */
.cookie { position: fixed; z-index: 140; left: var(--margin); bottom: calc(var(--margin) + env(safe-area-inset-bottom)); width: min(420px, calc(100vw - 2 * var(--margin))); background: var(--paper); border: 1px solid var(--rule); box-shadow: 0 30px 60px -40px rgba(0,0,0,.35); padding: 20px; display: grid; gap: 14px; font-size: var(--fs-xs); letter-spacing: .14em; transform: translateY(20px); opacity: 0; visibility: hidden; transition: opacity 500ms var(--ease), transform 500ms var(--ease), visibility 0s 500ms; }
.cookie.is-open { opacity: 1; transform: none; visibility: visible; transition: opacity 500ms var(--ease), transform 500ms var(--ease); }
.cookie__head { display: flex; justify-content: space-between; }
.cookie p { font-family: var(--light); font-weight: 200; font-size: 11px; letter-spacing: .08em; line-height: 1.6; color: var(--ink-2); }
.cookie__prefs { display: none; gap: 0; border-top: 1px solid var(--rule); }
.cookie.show-prefs .cookie__prefs { display: grid; }
.cookie__pref { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.switch { position: relative; width: 30px; height: 16px; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch i { position: absolute; inset: 0; border: 1px solid var(--ink-3); border-radius: 10px; transition: background var(--t-fast), border-color var(--t-fast); }
.switch i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 10px; height: 10px; border-radius: 50%; background: var(--ink-3); transition: transform var(--t-fast) var(--ease), background var(--t-fast); }
.switch input:checked + i { background: var(--ink); border-color: var(--ink); }
.switch input:checked + i::after { transform: translateX(14px); background: #fff; }
.switch input:disabled + i { opacity: .5; }
.cookie__actions { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; }

/* 404 */
.notfound { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: var(--margin); }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 1279px) {
  .drawer { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .folder-cell:nth-child(n) { margin-top: 0; }
  .folder-cell:nth-child(3n+2) { margin-top: clamp(24px, 4vw, 64px); }
}

@media (max-width: 1023px) {
  .site-header__nav, .site-header__time { display: none; }
  .menu-btn { display: inline-block; }
  .site-header { grid-template-columns: 1fr auto 1fr; }
  .service__title { grid-column: 2 / span 10; }
  .service__text { grid-column: 2 / span 9; margin-top: var(--s-2); }
  .service__go { grid-column: 12; }
  .about__body { grid-column: 1 / span 12; }
  .about__img { grid-column: 1 / span 5; margin-top: var(--s-6); }
  .about__img--b { grid-column: 8 / span 4; margin-top: var(--s-8); }
  .dh-teaser__text, .dh-teaser__body { grid-column: 1 / -1; }
  .dh-teaser__cast { grid-column: 1 / -1; grid-row: auto; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: var(--s-4); }
  .dh-teaser__item:nth-child(2n) { margin-top: 0; }
  .dh-teaser__item:nth-child(3n+2) { margin-top: var(--s-6); }
  .site-footer__col { grid-column: span 6; }
  .split-block__left { grid-column: 1 / span 12; margin-bottom: var(--s-6); }
  .split-block__right { grid-column: 1 / span 12; }
  .svc-detail__title { grid-column: 2 / span 11; }
  .svc-detail__body { grid-column: 2 / span 7; }
  .svc-detail__img { grid-column: 10 / span 3; }
  .method__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--s-6); }
  .legal__nav { display: none; }
  .legal__body { grid-column: 1 / span 12; }
}

@media (max-width: 899px) {
  .drawer { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .folder-cell:nth-child(n) { margin-top: 0; }
  .folder-cell:nth-child(2n) { margin-top: clamp(32px, 6vw, 64px); }
  .desk__folder, .desk__card { grid-column: 1 / -1; }
  .desk__card { position: relative; top: 0; margin-top: var(--s-7); }
  .desk__interior { min-height: 0; }
  .contact-page__left, .contact-page__right { grid-column: 1 / -1; }
  .contact-page__right { margin-top: var(--s-7); }
  .dh-hero__title { grid-column: 1 / -1; }
  .dh-hero__img { grid-column: 4 / -1; margin-top: var(--s-6); }
  .dh-hero__lead { grid-column: 1 / -1; }
  .dh-step__title { grid-column: 2 / span 11; }
  .dh-step__text { grid-column: 2 / span 10; margin-top: var(--s-3); }
  .casting__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .casting__item:nth-child(n) { margin-top: 0; }
  .casting__item:nth-child(3n+2) { margin-top: var(--s-6); }
  .index-list__row { grid-template-columns: 1fr 6fr 4fr; }
  .index-list__row > :nth-child(4), .index-list__row > :nth-child(5) { display: none; }
}

@media (max-width: 599px) {
  :root { --header-h: 56px; }
  .hero__item { --w: 22vw !important; left: var(--mx); top: var(--my); }
  .hero__item:nth-child(n+6) { display: none; }
  .hero__center { max-width: 78vw; }
  .floats { height: 64px; }
  .floats__item .frame { max-height: 40px; }
  .theme-btn span { display: none; }
  .theme-btn i { width: 12px; height: 12px; }
  .site-header__logo { width: 124px; }
  .site-header__right { gap: 14px; }
  .manifesto__meta { flex-direction: column; gap: 6px; align-items: center; }
  .drawer { grid-template-columns: 1fr; row-gap: 96px; padding-top: 64px; }
  .folder-cell:nth-child(n) { margin-top: 0; width: 86%; }
  .folder-cell:nth-child(2n) { margin-left: auto; }
  .work-bar { flex-direction: column; align-items: flex-start; }
  .mod-hero { grid-template-columns: 1fr; }
  .mod-hero .frame { width: 70%; }
  .contact__grid { --cols: 3 !important; }
  .frames { grid-template-columns: repeat(4, 1fr); }
  .frames__item:nth-child(n) { grid-column: span 2; margin-top: 0; }
  .frames__item:nth-child(2n) { margin-top: 18%; }
  .frames__text { grid-column: 1 / -1; }
  .print { width: 42vw; }
  .strip { width: 26vw; }
  .about__img { grid-column: 1 / span 6; }
  .about__img--b { grid-column: 8 / span 5; margin-top: var(--s-7); }
  .sheet--film { width: 82vw; }
  .sheet { width: 74vw; }
  .film { width: min(100%, 240px); }
  .site-footer__col { grid-column: 1 / -1; }
  .form__row { grid-template-columns: 1fr; }
  .svc-detail__body { grid-column: 2 / -1; }
  .svc-detail__img { grid-column: 2 / span 6; }
  .method__grid { grid-template-columns: 1fr; }
  .casting__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .casting__item:nth-child(n) { margin-top: 0; }
  .casting__item:nth-child(2n) { margin-top: var(--s-6); }
  .lightbox__stage { padding: 0 var(--s-4); }
  .lightbox__prev, .lightbox__next { width: 50%; align-items: flex-end; padding-bottom: var(--s-3); }
  .page-head__title { max-width: none; }
}

/* =========================================================================
   REDUCED MOTION
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0ms !important; }
  .js [data-reveal], .js [data-reveal="mask"] { opacity: 1; transform: none; clip-path: none; }
  .split .w > span { transform: none; }
  .drift__row { animation: none; }
}

/* Project filtering and keyboard controls in the journal. */
.journal-project-filter {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.journal-project-filter select {
  max-width: min(14rem, 55vw);
  min-height: 2.25rem;
  border: 1px solid var(--rule, #e4e3df);
  border-radius: 0;
  padding: .3rem .6rem;
  background: var(--paper);
  color: inherit;
  font: inherit;
}
button.jcard__media {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
}
.journal-empty { grid-column: 1 / -1; margin: 1.5rem 0; }


/* =========================================================================
   V3 · notes, boards, map, fields, language, sign-off
   ========================================================================= */
@font-face { font-family: 'Hand'; src: url('../fonts/ReenieBeanie.ttf') format('truetype'); font-weight: 400; font-display: swap; }

main > section, .page-head, .signoff { position: relative; }

/* Paragraphs: sentence case, justified, compact leading */
.t-body, .t-m, .legal__body p, .legal__body li, .cookie p, .card__desc, .frames__text, .strips__note, .page-head__lead, .board__text {
  text-transform: none; text-align: justify; text-align-last: left; text-justify: inter-word; hyphens: auto; -webkit-hyphens: auto;
}
.t-body { font-size: 12px; letter-spacing: .015em; line-height: 1.55; }
.t-m { font-size: 13px; letter-spacing: .015em; line-height: 1.55; }
.legal__body p, .legal__body li { font-size: 12px; letter-spacing: .015em; line-height: 1.6; }
.cookie p { font-size: 12px; letter-spacing: .015em; line-height: 1.5; }
.intro__statement, .about__statement { text-align: justify; text-align-last: left; }

/* links never stretch into long lines */
.link { justify-self: start; align-self: start; width: fit-content; }

/* header tools */
.lang-btn { font-size: var(--fs-xs); letter-spacing: .16em; }
.theme-btn { display: inline-grid; place-items: center; width: 22px; height: 22px; color: var(--ink); }
.theme-btn svg { width: 15px; height: 15px; animation: asterisk 14s linear infinite, asteriskTone 9s ease-in-out infinite; }
.theme-btn:hover svg { animation-duration: 3s, 9s; }
.theme-btn.is-spin svg { animation: asteriskSpin 700ms var(--ease), asteriskTone 9s ease-in-out infinite; }
@keyframes asterisk { to { transform: rotate(360deg); } }
@keyframes asteriskSpin { from { transform: rotate(0deg) scale(.6); } to { transform: rotate(180deg) scale(1); } }
@keyframes asteriskTone { 0%, 100% { color: var(--ink); } 25% { color: #b4472f; } 50% { color: #2f4b8c; } 75% { color: #8b7a35; } }
.menu-sheet__tools { display: inline-flex; gap: 18px; align-items: center; }

/* hand notes */
.hand {
  position: absolute; left: var(--x, 0); top: var(--y, 0); z-index: 3; pointer-events: none;
  font-family: 'Hand', 'Segoe Print', 'Bradley Hand', cursive; font-size: clamp(20px, 1.7vw, 26px); line-height: 1;
  letter-spacing: .02em; text-transform: none; color: var(--ink-2); white-space: nowrap;
  transform: rotate(var(--r, -3deg)); transform-origin: left center;
}
.hand--static { position: relative; display: inline-block; left: auto; top: auto; margin: var(--s-6) var(--margin) 0; }
.hand__arrow { position: absolute; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.hand__arrow--down { width: 16px; height: 34px; left: 40%; top: 100%; margin-top: 4px; }
.hand__arrow--up { width: 16px; height: 34px; left: 40%; bottom: 100%; margin-bottom: 4px; }
.hand__arrow--right { width: 40px; height: 16px; left: 100%; top: 30%; margin-left: 8px; }
.hand__arrow--left { width: 40px; height: 16px; right: 100%; top: 30%; margin-right: 8px; }

/* intro: manifesto left, statement right */
.intro { padding: var(--section) var(--margin) var(--s-7); }
.intro__left { grid-column: 1 / span 5; display: grid; gap: var(--s-4); align-content: start; }
.intro .manifesto__title { text-align: left; margin: 0; max-width: 18ch; }
.intro .manifesto__meta { justify-content: flex-start; }
.intro__statement { grid-column: 7 / span 6; }

/* about lead */
.about__lead { max-width: 56ch; }

/* floating field in the page heads */
.page-head--field { min-height: clamp(420px, 40vw, 600px); }
.page-head--field > :not(.page-field):not(.hand):not(.pin) { position: relative; z-index: 2; max-width: 44%; }
.page-field { position: absolute; top: calc(var(--header-h) + 12px); right: var(--margin); bottom: 0; width: 54%; }
.page-field .hero__item { --w: 7vw; }

/* board: frames connected by threads */
.board { padding: var(--section) var(--margin) 0; }
.board__scroll { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; margin: 0 calc(var(--margin) * -1); padding: 0 var(--margin); }
.board__scroll::-webkit-scrollbar { display: none; }
.board__canvas { position: relative; min-width: 1080px; height: clamp(760px, 62vw, 920px); }
.board__canvas--studio { height: clamp(720px, 56vw, 860px); }
.board__lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 1; }
.board__line { stroke-width: 1; fill: none; vector-effect: non-scaling-stroke; }
.board__line--a { stroke: #b4472f; opacity: .75; }
.board__line--b { stroke: #2f4b8c; opacity: .75; }
.board__intro { position: absolute; left: 0; top: 0; width: 21%; display: grid; gap: 10px; z-index: 2; }
.board__sub { font-family: var(--light); font-weight: 200; font-style: italic; font-size: 12px; letter-spacing: .06em; text-transform: none; color: var(--ink-2); }
.board__legend { display: grid; gap: 6px; margin-top: 10px; font-size: var(--fs-xs); letter-spacing: .14em; }
.board__legend li { display: flex; align-items: center; gap: 10px; }
.board__key { display: inline-block; width: 22px; height: 1px; transform: rotate(-24deg); }
.board__key--a { background: #b4472f; }
.board__key--b { background: #2f4b8c; }
.board__node {
  position: absolute; z-index: 2; display: grid; gap: 6px; cursor: grab; touch-action: none; user-select: none;
  transform: translate3d(var(--dx, 0px), var(--dy, 0px), 0) rotate(var(--r, 0deg));
  transition: box-shadow 300ms var(--ease);
}
.board__node.is-dragging { cursor: grabbing; }
.board__node .frame { display: block; background: var(--wash); box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 18px 30px -22px rgba(0,0,0,.45); }
.board__node.is-dragging .frame { box-shadow: 0 2px 4px rgba(0,0,0,.08), 0 30px 46px -24px rgba(0,0,0,.55); }
.board__node img, .board__node video { width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; pointer-events: none; }
.board__cap { color: var(--ink-2); }
.board__node--sheet .board__sheet { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 8px; background: var(--object); border: 1px solid var(--object-line); box-shadow: 0 18px 30px -22px rgba(0,0,0,.45); }
.board__node--sheet .board__sheet .frame { aspect-ratio: 3/4; box-shadow: none; }
.board__node--note { padding: 12px 14px 14px; background: var(--object); border: 1px solid var(--object-line); color: #2a2a28; box-shadow: 0 18px 30px -22px rgba(0,0,0,.4); gap: 6px; }
.board__node--note strong { font-weight: 500; font-size: var(--fs-xs); letter-spacing: .16em; }
.board__node--note .t-micro { color: #9c9b96; }
.board__text { font-family: var(--light); font-weight: 200; font-size: 12px; line-height: 1.45; color: #5f5f5b; }
.board__canvas .hand { z-index: 3; }

/* world map */
.worldmap { padding: var(--section) var(--margin) 0; }
.map { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: center; }
.map__list { grid-column: 1 / span 3; display: grid; border-top: 1px solid var(--rule); }
.map__list li { display: grid; grid-template-columns: 34px 1fr; column-gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--rule); cursor: default; font-size: var(--fs-xs); letter-spacing: .16em; transition: padding var(--t-fast) var(--ease), color var(--t-fast); }
.map__list li .muted { grid-column: 2; font-size: 9px; }
.map__list li.is-on { padding-left: 10px; }
.map__list:hover li:not(.is-on) { color: var(--ink-3); }
.map__wrap { grid-column: 4 / span 9; }
.map__svg { width: 100%; height: auto; overflow: visible; }
.map__dots circle { fill: var(--ink-3); opacity: .45; }
.map__arc { fill: none; stroke: #b4472f; stroke-width: .16; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: .8; transition: stroke-dashoffset 1800ms var(--ease); }
.map.is-in .map__arc { stroke-dashoffset: 0; }
.map__mk { cursor: pointer; outline: none; }
.map__star line { stroke: var(--ink); stroke-width: .42; stroke-linecap: round; }
.map__hit { fill: transparent; }
.map__pulse { fill: #b4472f; opacity: .22; transform-box: fill-box; transform-origin: center; animation: mapPulse 2.6s ease-out infinite; }
.map__label { font-family: var(--medium); font-size: 1.15px; letter-spacing: .16em; text-transform: uppercase; fill: var(--ink); opacity: 0; transition: opacity 300ms var(--ease); }
.map__mk.is-on .map__label, .map__mk:focus .map__label { opacity: 1; }
.map__mk.is-on .map__star line { stroke: #b4472f; }
.map.is-in .map__label { opacity: .9; }
@keyframes mapPulse { 0% { transform: scale(.4); opacity: .5; } 100% { transform: scale(2.2); opacity: 0; } }

/* sign-off: one large film, text on the left */
.signoff { text-align: left; padding: var(--section) var(--margin) var(--s-7); display: grid; gap: var(--s-4); }
.signoff__head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-4); }
.signoff__title { max-width: 30ch; }
.signoff__film { position: relative; aspect-ratio: 16 / 9; max-height: 86vh; width: 100%; overflow: hidden; background: #111; }
.signoff__film video { width: 100%; height: 100%; object-fit: cover; }
.signoff__cap { position: absolute; left: 14px; bottom: 12px; color: #fff; }

/* index card: smaller, tighter, justified */
.card { padding: clamp(16px, 1.6vw, 22px); }
.card__top { margin-bottom: var(--s-4); font-size: 9px; }
.card__title { font-size: 12px; letter-spacing: .18em; line-height: 1.4; margin-bottom: var(--s-3); }
.card__cell { padding: 7px 8px 6px; min-height: 34px; gap: 6px; }
.card__k { font-size: 7.5px; }
.card__v { font-size: 9.5px; letter-spacing: .14em; line-height: 1.3; }
.card__desc { margin-top: var(--s-4); font-size: 11.5px; line-height: 1.5; color: var(--ink-2); }
.card__disclosure { font-size: 8.5px; line-height: 1.5; }
.card__ref { margin-top: var(--s-4); font-size: 8px; }
.mod-hero__meta .t-l { font-size: 12px; }
.desk__cover .t-l { font-size: 12px; }

/* responsive */
@media (max-width: 1023px) {
  .intro__left, .intro__statement { grid-column: 1 / -1; }
  .intro__statement { margin-top: var(--s-5); }
  .map__list { grid-column: 1 / -1; margin-bottom: var(--s-5); grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gutter); }
  .map__wrap { grid-column: 1 / -1; }
  .page-head--field { min-height: 0; }
  .page-head--field > :not(.page-field):not(.hand):not(.pin) { max-width: none; }
  .page-field { position: relative; top: auto; right: auto; width: 100%; height: 300px; margin-top: var(--s-5); }
  .page-field .hero__item { --w: 16vw; left: var(--mx); top: var(--my); }
}
@media (max-width: 599px) {
  .hand { font-size: 19px; }
  .hand[style*="--x:7"], .hand[style*="--x:8"] { left: auto; right: var(--margin); }
  .board__canvas { min-width: 980px; height: 820px; }
  .board__scroll::after { content: ''; }
  .signoff__head { flex-direction: column; }
  .signoff__film { aspect-ratio: 4 / 5; }
  .page-field { height: 240px; }
  .page-field .hero__item { --w: 21vw; }
  .theme-btn { width: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .map__arc { stroke-dashoffset: 0; }
  .theme-btn svg { animation: none; }
}
/* ===== V4 · hero cover (two frames side by side) + switch to the scattered field ===== */
/* shorter than the screen: the next section already shows underneath */
.hero { min-height: 0; height: 86vh; }
@supports (height: 100svh) { .hero { height: 86svh; } }
.hero { min-height: 520px; max-height: 1400px; }
.hero__cover { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); z-index: 1; overflow: hidden; background: #1a1714; transition: opacity 700ms var(--ease), visibility 0s 0s; }
.hero__cover::after { content: ''; position: absolute; inset: 0 0 auto 0; height: calc(var(--header-h) * 2.2); background: linear-gradient(rgba(10, 8, 6, .26), rgba(10, 8, 6, 0)); pointer-events: none; }
.hero__panel { position: relative; display: block; overflow: hidden; }
.hero__panel img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; -webkit-user-drag: none; }

.hero__switch { position: absolute; z-index: 4; bottom: calc(clamp(16px, 2.6vh, 32px) + env(safe-area-inset-bottom)); right: var(--margin); display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px 9px 12px; border-radius: 999px; font-size: var(--fs-xs); letter-spacing: .16em; text-transform: uppercase; color: #fff; border: 1px solid rgba(255, 255, 255, .7); background: rgba(20, 16, 12, .18); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: color 500ms var(--ease), background 500ms var(--ease), border-color 500ms var(--ease); cursor: pointer; }
.hero__switch i { position: relative; width: 12px; height: 12px; }
.hero__switch i::before, .hero__switch i::after { content: ''; position: absolute; width: 5px; height: 5px; border: 1px solid currentColor; }
.hero__switch i::before { left: 0; top: 0; }
.hero__switch i::after { right: 0; bottom: 0; }
.hero__switch:focus-visible { outline: 1px solid currentColor; outline-offset: 3px; }
.hero[data-mode="field"] .hero__switch { color: var(--ink); border-color: var(--line, rgba(0,0,0,.2)); background: color-mix(in srgb, var(--paper) 70%, transparent); }
.hero[data-mode="field"] .hero__switch i::before { left: 0; top: 3px; }
.hero[data-mode="field"] .hero__switch i::after { right: 0; bottom: 3px; }

/* the switch is a plain cross-fade: nothing slides or zooms */
.hero[data-mode="field"] .hero__cover { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 700ms var(--ease), visibility 0s 700ms; }
.hero__field { transition: opacity 700ms var(--ease); }
.hero[data-mode="cover"] .hero__field { opacity: 0; visibility: hidden; pointer-events: none; }
.hero[data-mode="cover"] > .hand, .hero[data-mode="cover"] .hero__foot { opacity: 0; visibility: hidden; }
.hero > .hand, .hero__foot { transition: opacity 600ms var(--ease); }
.hero.no-anim *, .hero.no-anim { transition: none !important; }

/* header over the cover: transparent, white type */
.site-header.is-over { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; color: #fff; }
.site-header.is-over a, .site-header.is-over button, .site-header.is-over .site-header__time { color: #fff; }
.site-header.is-over .site-header__logo img { filter: brightness(0) invert(1); }
.site-header.is-over a::after { background: #fff; }

@media (max-width: 599px) {
  .hero { height: 78svh; min-height: 460px; }
  .hero__panel img { object-position: 50% 24%; }
  .hero__switch { padding: 8px 12px 8px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__cover, .hero__field, .hero > .hand, .hero__foot, .hero__switch { transition-duration: 1ms !important; }
}
/* short note cards: flush left, justified text would open holes */
.board .board__text { text-align: left; hyphens: manual; -webkit-hyphens: manual; }
.page-head--field { min-height: clamp(300px, 26vw, 420px); }

/* ===== pinned details: crops of the work taped around the site ===== */
.pin { position: absolute; left: var(--x); top: var(--y); z-index: 4; width: var(--w, 110px); margin: 0; padding: 6px 6px 8px; background: #fbf9f5; box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 10px 24px -12px rgba(0,0,0,.35); transform: translate(var(--dx, 0px), var(--dy, 0px)) rotate(var(--r, -3deg)); cursor: grab; touch-action: none; user-select: none; }
.pin.is-dragging { cursor: grabbing; box-shadow: 0 2px 4px rgba(0,0,0,.1), 0 22px 40px -14px rgba(0,0,0,.45); }
.pin img { display: block; width: 100%; height: auto; aspect-ratio: var(--ar, 1 / 1); object-fit: cover; -webkit-user-drag: none; pointer-events: none; }
.pin__tape { position: absolute; left: 50%; top: -9px; width: 46%; height: 17px; transform: translateX(-50%) rotate(-3deg); background: rgba(232, 224, 205, .78); box-shadow: 0 1px 1px rgba(0,0,0,.06); }
.pin__cap { display: block; margin-top: 6px; font-family: 'Hand', 'Segoe Print', cursive; font-size: 15px; line-height: 1.05; color: #4a4540; text-transform: none; letter-spacing: .01em; }
@media (max-width: 1023px) { .pin { --w: 92px !important; } }
@media (max-width: 599px) {
  .pin { display: none; }
  .pin--m { display: block; --w: 78px !important; left: auto; right: var(--margin); }
  .pin__cap { font-size: 13px; }
}
.hand.is-off, .pin.is-off { display: none !important; }
.hero__switch::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: swDot 1.8s ease-in-out infinite; }
@keyframes swDot { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .hero__switch::before { animation: none; } }
/* where we work: intro above the map */
.worldmap__intro { margin: var(--s-5) 0 var(--s-6); row-gap: var(--s-4); align-items: start; }
.worldmap__lead { grid-column: 1 / span 5; }
.worldmap__body { grid-column: 7 / span 5; }
@media (max-width: 1023px) { .worldmap__lead, .worldmap__body { grid-column: 1 / -1; } }
.label-row + .svc-detail { border-top: 0; }

/* ===== sign-off: full-bleed closing film, handwritten lines on top, footer in white at the bottom ===== */
.signoff { padding: 0; display: block; }
.signoff__film { position: relative; width: 100%; aspect-ratio: auto; max-height: none; min-height: max(100vh, 56.25vw); display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; background: #111; color: #fff; }
@supports (min-height: 100svh) { .signoff__film { min-height: max(100svh, 56.25vw); } }
.signoff__film > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.signoff__film::before, .signoff__film::after { content: ''; position: absolute; left: 0; right: 0; z-index: 1; pointer-events: none; }
.signoff__film::before { top: 0; height: 34%; background: linear-gradient(rgba(10, 8, 6, .38), rgba(10, 8, 6, 0)); }
.signoff__film::after { bottom: 0; height: 62%; background: linear-gradient(to top, rgba(10, 8, 6, .72), rgba(10, 8, 6, .3) 55%, rgba(10, 8, 6, 0)); }
.signoff__head { position: relative; z-index: 2; display: grid; justify-items: start; gap: 6px; padding: clamp(28px, 5vw, 72px) var(--margin) 0; }
.signoff__title, .signoff__cta { font-family: 'Hand', 'Segoe Print', cursive; font-weight: 400; text-transform: none; letter-spacing: .01em; color: #fff; line-height: 1; }
.signoff__title { font-size: clamp(30px, 3.6vw, 58px); max-width: none; transform: rotate(-2deg); transform-origin: left center; }
.signoff__cta { font-size: clamp(22px, 2.2vw, 34px); transform: rotate(-2deg); transform-origin: left center; margin-left: .4em; }
.signoff__cta .arrow { display: inline-block; transition: transform 400ms var(--ease); }
.signoff__cta:hover .arrow { transform: translateX(6px); }
.signoff__cap { position: absolute; z-index: 2; top: clamp(28px, 5vw, 72px); right: var(--margin); left: auto; bottom: auto; color: rgba(255, 255, 255, .85); }
.site-footer--over { position: relative; z-index: 2; border-top: 0; color: #fff; background: transparent; padding-top: var(--s-8); }
.site-footer--over a, .site-footer--over button, .site-footer--over li { color: #fff; }
.site-footer--over .site-footer__col h3, .site-footer--over .site-footer__base, .site-footer--over .site-footer__col li::before { color: rgba(255, 255, 255, .7); }
.site-footer--over .link::after { background: #fff; }
.site-footer--over .site-footer__base { border-top: 1px solid rgba(255, 255, 255, .28); padding-top: var(--s-4); }
@media (max-width: 599px) {
  .signoff__film { min-height: 100svh; }
  .signoff__cap { position: relative; top: auto; right: auto; padding: 8px var(--margin) 0; }
}
/* journal notes: handwritten */
.jcard--note p { font-family: 'Hand', 'Segoe Print', cursive; font-weight: 400; text-transform: none; letter-spacing: .01em; line-height: 1.12; font-size: clamp(24px, 2.1vw, 34px); text-align: left; hyphens: manual; color: var(--ink); }
.signoff__title { font-size: clamp(20px, 1.7vw, 26px); }
.signoff__cta { font-size: clamp(18px, 1.4vw, 22px); margin-left: .2em; }

/* journal project filter: dropdown in the tag-bar type */
.pfilter { position: relative; flex: none; font-size: var(--fs-xs); letter-spacing: .16em; text-transform: uppercase; }
.pfilter__btn { display: inline-flex; align-items: center; gap: 10px; padding: 4px 0; color: var(--ink); cursor: pointer; }
.pfilter__k { color: var(--ink-3); }
.pfilter__v { max-width: 18ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pfilter__chev { width: 6px; height: 6px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform 300ms var(--ease); }
.pfilter.is-open .pfilter__chev { transform: translateY(1px) rotate(-135deg); }
.pfilter__list { position: absolute; right: 0; top: calc(100% + 10px); z-index: 40; min-width: 210px; padding: 8px 0; background: var(--paper); border: 1px solid var(--rule); box-shadow: 0 18px 40px -24px rgba(0,0,0,.3); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity 260ms var(--ease), transform 260ms var(--ease), visibility 0s 260ms; }
.pfilter.is-open .pfilter__list { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.pfilter__list button { display: block; width: 100%; text-align: left; padding: 8px 18px; color: var(--ink-3); letter-spacing: .16em; text-transform: uppercase; font-size: var(--fs-xs); transition: color var(--t-fast); }
.pfilter__list button:hover, .pfilter__list button:focus-visible { color: var(--ink); outline: none; }
.pfilter__list button[aria-selected="true"] { color: var(--ink); }
.pfilter__list button[aria-selected="true"]::before { content: '● '; font-size: 6px; vertical-align: 2px; }
@media (max-width: 599px) { .pfilter__k { display: none; } .pfilter__list { min-width: 180px; } }
.jcard--note p { font-size: clamp(20px, 1.7vw, 26px); color: var(--ink-2); line-height: 1.1; transform: rotate(-3deg); transform-origin: left center; max-width: 18ch; }
.jcard--note:nth-of-type(2n) p { transform: rotate(2deg); }
.signoff__head .signoff__cta { margin-top: 2px; display: inline-block; }
/* sign-off lines: always written crooked, like a note */
.signoff__title { transform: rotate(-4deg); }
.signoff__head .signoff__cta { transform: rotate(-3deg) translateX(14px); margin-top: 6px; }

/* ===== V5 · mobile round, pastel stars, simple sign-off, folder header ===== */
/* pastel light-blue stars everywhere (no more orange) */
:root { --star: #8fc3e6; --star-soft: #bcdcf2; }
@keyframes asteriskTone { 0%, 100% { color: var(--star); } 50% { color: #6fb0dc; } }
.theme-btn svg { color: var(--star); }
.map__arc { stroke: var(--star); opacity: 1; stroke-width: .2; }
.map__pulse { fill: var(--star); opacity: .4; }
.map__star line { stroke: #6fb0dc; }
.map__mk.is-on .map__star line { stroke: var(--ink); }
.board__line--a { stroke: var(--star); opacity: 1; }
.board__key--a { background: var(--star); height: 1.5px; }

/* manifesto in grey */
.manifesto__title, .intro .manifesto__title { color: var(--ink-3); }

/* "click me": handwritten, with a smiling face that changes colour */
.hero__switch { font-family: 'Hand', 'Segoe Print', cursive; text-transform: none; letter-spacing: .01em; font-size: clamp(19px, 1.5vw, 24px); line-height: 1; gap: 9px; padding: 6px 16px 6px 7px; }
.hero__switch::before { display: none; }
.hero__face { width: 30px; height: 30px; flex: none; transition: transform 500ms cubic-bezier(.34, 1.56, .64, 1); }
.hero__face circle { fill: #2b2724; }
.hero__face .hero__face-bg { fill: var(--face, #a9d3ee); stroke: rgba(0, 0, 0, .12); stroke-width: .8; transition: fill 400ms var(--ease); }
.hero__face path { fill: none; stroke: #2b2724; stroke-width: 1.8; stroke-linecap: round; }
.hero__switch:hover .hero__face { transform: rotate(-12deg) scale(1.06); }
.hero__switch.is-pop .hero__face { animation: facePop 520ms cubic-bezier(.34, 1.56, .64, 1); }
@keyframes facePop { 0% { transform: scale(.8) rotate(0); } 60% { transform: scale(1.18) rotate(14deg); } 100% { transform: scale(1) rotate(0); } }
@media (prefers-reduced-motion: reduce) { .hero__switch.is-pop .hero__face { animation: none; } }

/* sign-off without the film: two crooked handwritten lines, then the footer */
.signoff { padding: clamp(56px, 8vw, 120px) var(--margin) clamp(28px, 4vw, 56px); display: block; background: none; text-align: left; }
.signoff__head { position: static; padding: 0; display: grid; justify-items: start; gap: 6px; }
.signoff__title, .signoff__cta { color: var(--ink-2); }
.signoff__title { font-size: clamp(22px, 1.9vw, 30px); }
.signoff__head .signoff__cta { font-size: clamp(19px, 1.5vw, 24px); }
.site-footer { padding: var(--s-6) var(--margin) calc(var(--s-4) + env(safe-area-inset-bottom)); }
.site-footer__base { margin-top: var(--s-5); }
@media (max-width: 1023px) { .site-footer__col { grid-column: span 4; } }
/* phones: footer columns side by side, compact */
@media (max-width: 599px) {
  .site-footer { padding-top: var(--s-5); font-size: 10px; letter-spacing: .1em; }
  .site-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 14px; row-gap: 0; }
  .site-footer__col { grid-column: auto; gap: 6px; }
  .site-footer__col:first-child li:nth-child(n+2) { display: none; }
  .site-footer__col:first-child li a { word-break: break-all; }
  .site-footer__col h3 { margin-bottom: 2px; font-size: 10px; }
  .site-footer__col li::before { display: none; }
  .site-footer__base { margin-top: var(--s-4); flex-direction: row; gap: 4px 12px; font-size: 9px; line-height: 1.5; }
}

/* mobile header: menu · logo · asterisk + contact; the language lives in the menu */
@media (max-width: 1023px) {
  .site-header__right > .lang-btn { display: none; }
}

/* mobile hero: one frame only */
@media (max-width: 599px) {
  .hero__cover { grid-template-columns: 1fr; }
  .hero__cover .hero__panel:nth-child(2) { display: none; }
  .hero__panel img { object-position: 50% 20%; }
  .hero__switch { font-size: 19px; padding: 5px 14px 5px 6px; }
  .hero__face { width: 26px; height: 26px; }
}

/* board intro above the board on phones and small tablets */
.board__intro--out { position: static; width: auto; max-width: 52ch; margin-bottom: var(--s-5); }

/* pinned details also on tablets and phones, smaller */
@media (max-width: 1023px) { .pin { display: block; --w: 84px !important; } }
@media (max-width: 599px) {
  .pin, .pin--m { display: block; --w: 70px !important; left: var(--x); right: auto; padding: 4px 4px 6px; }
  .pin__cap { font-size: 12px; margin-top: 4px; }
  .pin__tape { height: 13px; top: -7px; }
}

/* world map: on phones the names are in the list, the map shows only the stars */
@media (max-width: 599px) {
  .map__list { display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid var(--rule); margin-bottom: var(--s-4); }
  .map__list li { display: flex; align-items: baseline; gap: 6px; flex: 0 0 50%; padding: 10px 0; }
  .map__list li .muted { display: none; }
  .map__wrap { margin: 0 calc(var(--margin) * -.5); }
  .map__label { display: none; }
  .map__star line { stroke-width: .7; }
  .map__pulse { r: 2.4; }
}
@media (min-width: 600px) and (max-width: 1023px) {
  .map__list li .muted { font-size: 8px; }
}

/* Digital Humans: the character creation list starts without a line */
.dh-steps .dh-step:first-child { border-top: 0; }

/* folders: the site header stays on top, solid, the folder bar sits under it */
body.is-desk .site-header { z-index: 110; transform: none; background: var(--paper); -webkit-backdrop-filter: none; backdrop-filter: none; color: var(--ink); }
body.is-desk .site-header a, body.is-desk .site-header button { color: var(--ink); }
body.is-desk .site-header .site-header__logo img { filter: none; }
[data-theme="dark"] body.is-desk .site-header .site-header__logo img { filter: invert(1); }
body.is-desk .menu-sheet { z-index: 120; }
.desk__scroll { padding-top: var(--header-h); }
.desk__bar { top: 0; height: 44px; background: var(--paper); border-bottom: 1px solid var(--rule); }
.film__play { font-family: inherit; }
.masonry__col { grid-template-columns: minmax(0, 1fr); }
.masonry__col > * { min-width: 0; }
/* click me: no pill, no fill; a line-drawn smiley, white on the cover, black on the scattered frames */
.hero__switch, .hero[data-mode="field"] .hero__switch { border: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; padding: 4px 0; color: #fff; }
.hero[data-mode="field"] .hero__switch { color: var(--ink); }
.hero__face circle { fill: currentColor; }
.hero__face .hero__face-bg { fill: none; stroke: currentColor; stroke-width: 1.6; }
.hero__face path { stroke: currentColor; }
.hero__switch, .hero__face * { transition: color 400ms var(--ease), stroke 400ms var(--ease), fill 400ms var(--ease); }
@media (max-width: 599px) { .hero__switch { padding: 4px 0; } }
.board__sub { font-style: normal; }
@media (max-width: 599px) {
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 18px; }
  .site-footer__col:first-child { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
  .site-footer__col:first-child h3 { margin: 0; }
  .site-footer__col:first-child li a { word-break: normal; }
  .site-footer__col button.link { text-align: left; }
}
.desk__bar .link { align-self: center; }
.desk__bar [data-desk-close]:focus:not(:focus-visible) { outline: none; }
/* scattered mode: the switch sits above the "scroll · AI creative studio" line, never on it */
.hero[data-mode="field"] .hero__switch { bottom: calc(var(--s-5) + 30px + env(safe-area-inset-bottom)); }
@media (max-width: 599px) { .hero > .hand { left: 34%; top: 33%; } }
/* pins that found no free corner on phones and tablets: their own strip of white */
.pin-row { position: relative; display: flex; justify-content: flex-end; gap: 28px; padding: 22px 6% 10px; clear: both; }
.pin-row .pin.pin--flow { position: relative; left: auto; top: auto; right: auto; flex: none; }
.pin-row:nth-of-type(odd) { justify-content: flex-start; }
/* ===== footer: horizontal, every group on one line ===== */
.site-footer { padding: var(--s-5) var(--margin) calc(var(--s-4) + env(safe-area-inset-bottom)); }
.site-footer__grid, .site-footer__grid[class] { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 40px; }
.site-footer__col, .site-footer__col:first-child { grid-column: auto; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; }
.site-footer__col h3, .site-footer__col:first-child h3 { margin: 0; font-size: inherit; }
.site-footer__col ul { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer__col li::before { display: none; }
.site-footer__col:first-child li:nth-child(n+2) { display: list-item; }
.site-footer__col:first-child li:nth-child(2), .site-footer__col:first-child li:nth-child(4) { display: none; }
.site-footer__base { margin-top: var(--s-4); padding-top: var(--s-3); border-top: 1px solid var(--rule); }
@media (max-width: 1023px) {
  .site-footer__grid, .site-footer__grid[class] { flex-direction: column; gap: 10px; }
}
@media (max-width: 599px) {
  .site-footer { padding-top: var(--s-4); font-size: 10px; letter-spacing: .1em; }
  .site-footer__col, .site-footer__col:first-child { gap: 4px 12px; }
  .site-footer__col h3 { min-width: 52px; }
  .site-footer__col ul { gap: 4px 12px; }
  .site-footer__base { margin-top: var(--s-3); flex-direction: row; gap: 2px 12px; font-size: 9px; }
}
.site-footer__col { flex-wrap: nowrap; }
.site-footer__col ul { flex: 1 1 auto; min-width: 0; }
@media (max-width: 599px) { .site-footer__col h3 { flex: none; width: 52px; min-width: 0; } }
.site-footer__col:first-child { flex-wrap: nowrap; }
/* folder cover in its own proportions when the image is landscape: never a tight crop of a wide frame */
.mod-hero--land { grid-template-columns: 1fr; align-items: start; }
.mod-hero--land .frame { aspect-ratio: var(--ar); width: 100%; }
@media (max-width: 599px) { .mod-hero--land .frame { width: 100%; } }
.desk__inner { padding-top: var(--s-5); }
/* smile: hand-drawn, small, no circle */
.hero__face { width: 22px; height: 19px; }
.hero__face path { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 599px) { .hero__face { width: 20px; height: 17px; } }
/* language: chosen in the cookie banner, changeable in the footer and the menu */
.lang-pick { display: inline-flex; gap: 14px; }
.lang-pick .link { color: var(--ink-3); }
.lang-pick .link[aria-current="true"] { color: var(--ink); }
.lang-pick .link[aria-current="true"]::after { transform: scaleX(1); }
.cookie__lang { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
/* phones: the cookie banner slides up from the bottom edge, full width, no border */
@media (max-width: 599px) {
  .cookie { left: 0; right: 0; bottom: 0; width: 100%; border: 0; border-radius: 0; padding: 20px var(--margin) calc(18px + env(safe-area-inset-bottom)); box-shadow: 0 -12px 40px -18px rgba(0, 0, 0, .22); transform: translateY(100%); opacity: 1; }
  .cookie.is-open { transform: none; }
}
/* languages in colour: the chosen one marked in pastel blue, like a highlighter */
.lang-pick .link { color: var(--ink-2); padding: 2px 4px; }
.lang-pick .link::after { display: none; }
.lang-pick .link:hover { color: #3d8fcc; }
.lang-pick .link[aria-current="true"] { color: #2f7fbf; background: linear-gradient(transparent 52%, var(--star-soft) 52%, var(--star-soft) 92%, transparent 92%); }
@media (max-width: 599px) { .site-footer__col h3 { width: 72px; } }
/* footer languages in black: the colour stays only in the cookie banner */
.site-footer .lang-pick .link, .site-footer .lang-pick .link:hover { color: var(--ink-3); background: none; }
.site-footer .lang-pick .link[aria-current="true"] { color: var(--ink); background: none; }
.hero__scroll i { display: none; }

/* phones: the board is a vertical thread as wide as the screen, no sideways scroll */
@media (max-width: 599px) {
  .board__scroll { overflow: visible; margin: 0; padding: 0; }
  .board__canvas, .board__canvas--studio { min-width: 0; width: 100%; }
  .board__node .board__cap { font-size: 9px; }
  .board__node--note { padding: 10px 12px 12px; }
}
@media (max-width: 599px) { .view-toggle { display: none; } }
/* tablets and phones: the floating frames of the page heads sit in fixed slots, never on each other */
@media (max-width: 1023px) {
  .page-field { height: 440px; }
  .page-field .hero__item:nth-child(1) { left: 2% !important; top: 0 !important; }
  .page-field .hero__item:nth-child(2) { left: 38% !important; top: 6% !important; }
  .page-field .hero__item:nth-child(3) { left: 74% !important; top: 0 !important; }
  .page-field .hero__item:nth-child(4) { left: 22% !important; top: 54% !important; }
  .page-field .hero__item:nth-child(5) { left: 60% !important; top: 58% !important; }
}
@media (max-width: 599px) {
  .page-field { height: 330px; }
  .page-field .hero__item { --w: 22vw !important; }
}
@media (min-width: 600px) and (max-width: 1023px) {
  .page-field { height: 400px; }
  .page-field .hero__item { --w: 14vw !important; }
}
/* never break words with a hyphen: whole words wrap to the next line */
*, *::before, *::after { hyphens: manual !important; -webkit-hyphens: manual !important; overflow-wrap: normal; word-break: normal; }
@media (max-width: 1023px) { .menu-btn { justify-self: start; text-align: left; padding-left: 0; margin-left: 0; } .site-header__right > a:last-child { padding-right: 0; margin-right: 0; } }
.site-header__right .link, .site-header .menu-btn { align-self: center; line-height: 1; padding-top: 2px; padding-bottom: 2px; }
/* the cover frames always fill the whole hero, on every browser (no dark strip under the photo on iPhone) */
.hero__cover { background: transparent; grid-template-rows: 100%; }
.hero__panel { height: 100%; min-height: 0; }
.hero__panel img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero__panel picture { position: absolute; inset: 0; display: block; }
@media (max-width: 599px) { .hero__panel img { object-position: 74% 50%; } }
/* no grey box when a link or a service is pressed: only the text turns light grey */
html, body, a, button, [role="button"], label, summary { -webkit-tap-highlight-color: transparent; }
a:focus:not(:focus-visible), button:focus:not(:focus-visible) { outline: none; background: none; }
.service__row:active, .service__row:active *, .svc-detail:active .svc-detail__title, a:active, button:active { color: var(--ink-3) !important; }
.service__row:active { background: none; }
