/* ————————————————————————————————————————————————————————————
   rownarts. — the working file
   tokens → base → layout → sections → craft mode → motion
   ———————————————————————————————————————————————————————————— */

/* ····· fonts ····· */

@font-face {
  font-family: 'Clash Display';
  src: url('/assets/fonts/ClashDisplay-Variable.woff2') format('woff2');
  font-weight: 200 700;
  font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('/assets/fonts/Satoshi-Variable.woff2') format('woff2');
  font-weight: 300 900;
  font-display: swap;
}
@font-face {
  font-family: 'Fragment Mono';
  src: url('/assets/fonts/FragmentMono-Regular-latin.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}
@font-face {
  font-family: 'Fragment Mono';
  src: url('/assets/fonts/FragmentMono-Italic-latin.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}

/* ····· tokens ····· */

:root {
  --paper: #FAFAF7;
  --ink: #0E0E12;
  --ultra: #1B29FF;
  --ultra-deep: #0F1CE0;
  --ikb: #002FA7;
  --redline: #F03D33;
  --mist: #ECECE6;
  --grey: #55555C;

  --font-display: 'Clash Display', 'Avenir Next', 'Helvetica Neue', 'Hiragino Kaku Gothic ProN', 'PingFang SC', sans-serif;
  --font-body: 'Satoshi', -apple-system, 'Segoe UI', 'Hiragino Sans', 'PingFang SC', sans-serif;
  --font-mono: 'Fragment Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --gutter: clamp(1rem, 2vw, 1.5rem);
  --edge: clamp(1.25rem, 4.5vw, 4.5rem);
  --maxw: 90rem;
  --sec-gap: clamp(7rem, 14vw, 13rem);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 0.25s;
  --t-base: 0.7s;
  --t-slow: 1.05s;
}

/* ····· base ····· */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 420;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--ultra); color: var(--paper); }

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

ul, ol { list-style: none; }

:focus-visible {
  outline: 2px solid var(--ultra);
  outline-offset: 3px;
  border-radius: 1px;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.container {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--edge);
}

.skip {
  position: fixed;
  top: 0.75rem; left: 0.75rem;
  z-index: 2000;
  padding: 0.5rem 0.875rem;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-300%);
  transition: transform var(--t-fast) var(--ease);
}
.skip:focus-visible { transform: none; outline-color: var(--redline); }

/* ····· header ····· */

.site-head {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.1rem;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-fast) ease;
}
.site-head.is-scrolled { border-bottom-color: var(--mist); }

.wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: -0.015em;
  line-height: 1;
}
.dot { color: var(--ultra); }

.site-nav { display: flex; gap: clamp(1.25rem, 3vw, 2.5rem); }
.site-nav a {
  font-weight: 500;
  font-size: 0.9375rem;
  position: relative;
}
.site-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 1.5px;
  background: var(--ultra);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-fast) var(--ease);
}
.site-nav a:hover::after { transform: scaleX(1); }

.head-tools { display: flex; align-items: center; gap: 0.75rem; }

.craft-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.8rem;
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: 2px;
  color: var(--ink);
  cursor: pointer;
  transition: background var(--t-fast) ease, color var(--t-fast) ease, border-color var(--t-fast) ease;
}
.craft-btn:hover { border-color: var(--ultra); color: var(--ultra); }
.craft-btn[aria-pressed="true"] {
  background: var(--redline);
  border-color: var(--redline);
  color: #fff;
}

/* language menu */
.lang { position: relative; }
.lang summary {
  list-style: none;
  cursor: pointer;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--mist);
  border-radius: 2px;
  text-transform: uppercase;
  transition: border-color var(--t-fast) ease;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover { border-color: var(--ink); }
.lang-list {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  min-width: 11rem;
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 2px;
  box-shadow: 0 12px 32px rgba(14, 14, 18, 0.12);
  padding: 0.4rem;
  z-index: 200;
}
.lang-list a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.45rem 0.65rem;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 2px;
}
.lang-list a:hover { background: var(--mist); }
.lang-list a[aria-current] { color: var(--ultra); }
.lang-list a[aria-current]::after { content: '●'; font-size: 0.5rem; }
.lang-list .mono { color: var(--grey); text-transform: uppercase; }

/* ····· hero ····· */

.hero {
  position: relative;
  padding-top: clamp(4rem, 10vh, 8rem);
  padding-bottom: var(--sec-gap);
}

/* the flow field draws behind the headline, weighted to the empty right side */
.hero-field {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(130% 130% at 82% 4%, #000 30%, transparent 74%);
  mask-image: radial-gradient(130% 130% at 82% 4%, #000 30%, transparent 74%);
}

.chip-field { top: 0.5rem; right: 0; }

.hero-title .line + .line .line-in { color: var(--ultra); }
.hero-title .line + .line .dot { color: var(--ink); }

.eyebrow {
  color: var(--grey);
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3rem, 8.6vw, 8.25rem);
  line-height: 1.02;
  letter-spacing: -0.022em;
  max-width: 14ch;
}
.hero-title .line { display: block; overflow: clip; }
.hero-title .line-in { display: block; padding-bottom: 0.06em; margin-bottom: -0.06em; }

.hero-low {
  display: grid;
  grid-template-columns: 1fr minmax(0, 33rem);
  gap: 2rem var(--gutter);
  align-items: end;
  margin-top: clamp(2.5rem, 5vw, 4.5rem);
}
.hero-meta { color: var(--grey); align-self: end; }
.hero-right { display: grid; gap: 2rem; }

.lede {
  font-size: clamp(1.125rem, 1.6vw, 1.3125rem);
  line-height: 1.6;
  font-weight: 440;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 560;
  font-size: 0.9875rem;
  padding: 0.85rem 1.5rem;
  border-radius: 2px;
  transition: background var(--t-fast) ease, color var(--t-fast) ease,
              border-color var(--t-fast) ease, transform var(--t-fast) var(--ease);
}
.btn-solid { background: var(--ultra); color: #fff; }
.btn-solid:hover { background: var(--ultra-deep); transform: translateY(-2px); }
.btn-line { border: 1px solid var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn .arr { transition: transform var(--t-fast) var(--ease); }
.btn-line:hover .arr { transform: translateY(3px); }

.craft-hint {
  margin-top: clamp(3rem, 7vw, 5rem);
  color: var(--grey);
}
.craft-hint::before {
  content: '';
  display: inline-block;
  width: 2.5rem; height: 1px;
  background: var(--redline);
  vertical-align: middle;
  margin-right: 0.75rem;
}

/* ····· sections (shared) ····· */

.sec { padding-bottom: var(--sec-gap); scroll-margin-top: 4.75rem; }

.sec-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }

.sec-path {
  color: var(--ultra);
  margin-bottom: 1rem;
}

.sec-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.1rem, 4.8vw, 4.3rem);
  line-height: 1.05;
  letter-spacing: -0.018em;
}

.sec-intro {
  margin-top: 1.25rem;
  font-size: 1.125rem;
  color: var(--grey);
}

/* ····· work ····· */

.work-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(3rem, 7vw, 5.5rem) var(--gutter);
}

.work-card { position: relative; }
.work-card:nth-child(4n+1) { grid-column: 1 / span 7; }
.work-card:nth-child(4n+2) { grid-column: 9 / span 4; align-self: end; }
.work-card:nth-child(4n+3) { grid-column: 2 / span 4; }
.work-card:nth-child(4n+4) { grid-column: 7 / span 6; }

.work-cover {
  position: relative;
  overflow: clip;
  border-radius: 2px;
  background: var(--mist);
  aspect-ratio: 3 / 2;
}
.work-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: scale var(--t-slow) var(--ease);
}
.work-card:hover .work-cover img { scale: 1.035; }

/* scroll-linked drift on covers where the browser supports it (0 KB of JS) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .work-cover img, .case-cover img, .studio-desk img {
      scale: 1.09;
      animation: cover-drift linear both;
      animation-timeline: view();
      animation-range: entry 0% exit 100%;
    }
    .work-card:hover .work-cover img { scale: 1.12; }
  }
}
@keyframes cover-drift {
  from { transform: translateY(3.2%); }
  to   { transform: translateY(-3.2%); }
}

.work-info { padding-top: 1.25rem; }

.work-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  display: inline-block;
  transition: color var(--t-fast) ease;
}
.work-card:hover .work-name { color: var(--ultra); }

.work-what { font-weight: 500; margin-top: 0.25rem; }

.work-line {
  color: var(--grey);
  font-size: 0.9575rem;
  margin-top: 0.6rem;
  max-width: 34rem;
}

.work-link { display: block; }

.work-visit {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  color: var(--ultra);
}
.work-visit .arr { transition: transform var(--t-fast) var(--ease); }
.work-card:hover .work-visit .arr { transform: translateX(0.3em); }

.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.9rem;
  margin-top: 0.9rem;
  color: var(--grey);
}
.work-tags .year { margin-left: auto; color: var(--ink); }
.work-tags .live { color: var(--ultra); }
.work-tags .live::after {
  content: '';
  display: inline-block;
  width: 0.34em;
  height: 0.34em;
  margin-left: 0.45em;
  vertical-align: 0.12em;
  border-radius: 50%;
  background: var(--ultra);
}
.work-tags li:not(.year)::before { content: '·'; margin-right: 0.9rem; color: var(--mist); }
.work-tags li:first-child::before { content: none; }

/* ····· process: one file, four states ····· */

.proc {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.proc-visual {
  grid-column: 2;
  grid-row: 1;
  position: sticky;
  top: clamp(5rem, 12vh, 6.5rem);
}

.proc-panel {
  background: #fff;
  border: 1px solid var(--mist);
  border-radius: 3px;
  box-shadow: 0 24px 60px rgba(14, 14, 18, 0.07);
  padding: 1rem 1.1rem 1.1rem;
}

.proc-file {
  display: flex;
  justify-content: space-between;
  color: var(--grey);
  border-bottom: 1px solid var(--mist);
  padding-bottom: 0.8rem;
}
.proc-file [data-proc-file] { color: var(--ink); }
.proc-count b { color: var(--ultra); font-weight: 400; }

.pv { display: block; width: 100%; height: auto; }

.proc-track { height: 2px; background: var(--mist); margin-top: 0.9rem; }
.proc-track i {
  display: block;
  height: 100%;
  background: var(--ultra);
  transform-origin: left;
  transform: scaleX(calc((var(--n, 0) + 1) / 4));
  transition: transform 0.5s var(--ease);
}

/* the four states crossfade; strokes redraw when a state takes over */
.pv-s {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s ease, transform 0.55s var(--ease);
}
.pv-s .d { stroke-dasharray: 1; stroke-dashoffset: 1; }
.proc[data-step="0"] .pv-s[data-s="0"],
.proc[data-step="1"] .pv-s[data-s="1"],
.proc[data-step="2"] .pv-s[data-s="2"],
.proc[data-step="3"] .pv-s[data-s="3"] { opacity: 1; transform: none; }
.proc[data-step="0"] .pv-s[data-s="0"] .d,
.proc[data-step="1"] .pv-s[data-s="1"] .d,
.proc[data-step="2"] .pv-s[data-s="2"] .d,
.proc[data-step="3"] .pv-s[data-s="3"] .d {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.9s var(--ease) 0.2s;
}
.proc[data-step="3"] .pv-ring {
  transform-box: fill-box;
  transform-origin: center;
  animation: pv-pulse 2.2s ease-out infinite;
}
@keyframes pv-pulse {
  0%   { transform: scale(0.55); opacity: 0.5; }
  70%  { transform: scale(1.3); opacity: 0; }
  100% { transform: scale(1.3); opacity: 0; }
}

.proc-steps {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  gap: clamp(4rem, 14vh, 8rem);
  padding-block: clamp(1rem, 6vh, 3rem) clamp(1rem, 4vh, 2rem);
}

.proc-step {
  max-width: 30rem;
  min-height: 36vh;
  display: grid;
  align-content: center;
}
html.js .proc-step { opacity: 0.35; transition: opacity 0.45s ease; }
html.js .proc-step.is-active, html.js .proc.no-io .proc-step { opacity: 1; }

.proc-label { color: var(--ultra); margin-bottom: 0.9rem; }
.proc-head {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 2.6vw, 2.25rem);
  letter-spacing: -0.012em;
  line-height: 1.12;
}
.proc-text { margin-top: 0.8rem; color: var(--grey); }

/* ····· marquee: studio beliefs ····· */

.marquee {
  overflow: clip;
  border-block: 1px solid var(--mist);
  padding-block: clamp(1.1rem, 2.2vw, 1.7rem);
  margin-bottom: var(--sec-gap);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marq 56s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-row { display: flex; flex: none; }
.marquee-row li {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.7rem, 3.4vw, 2.8rem);
  letter-spacing: -0.012em;
  white-space: nowrap;
}
.marquee-row li::after {
  content: '·';
  color: var(--ultra);
  margin-inline: clamp(1.2rem, 2.6vw, 2rem);
}
@keyframes marq { to { transform: translateX(-50%); } }

/* ····· capabilities ····· */

.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gutter);
}

.cap-col {
  border-top: 1px solid var(--ink);
  padding-top: 1.5rem;
  padding-right: clamp(0rem, 2vw, 2rem);
}

.cap-glyph {
  display: block;
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 1.2rem;
  color: var(--ink);
}
.cap-glyph svg { width: 100%; height: 100%; }
.cap-glyph .d { stroke-dasharray: 1; stroke-dashoffset: 1; }
.reveal.is-in .cap-glyph .d {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s var(--ease) 0.25s;
}
html.no-js .cap-glyph .d, html.no-js .pv-s .d { stroke-dashoffset: 0; }

.cap-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.375rem;
  letter-spacing: -0.01em;
}

.cap-text { margin-top: 0.9rem; color: var(--grey); font-size: 0.9875rem; }

.cap-list { margin-top: 1.5rem; display: grid; gap: 0.55rem; color: var(--grey); }
.cap-list li::before { content: '— '; color: var(--ultra); }

/* ····· studio ····· */

.studio-text {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.375rem, 2.6vw, 2.125rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
  max-width: 52rem;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.principles {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--mist);
  border-left: 1px solid var(--mist);
}
.principle {
  border-bottom: 1px solid var(--mist);
  border-right: 1px solid var(--mist);
  padding: clamp(1.5rem, 3vw, 2.5rem);
}
.principle h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.008em;
}
.principle p { margin-top: 0.7rem; color: var(--grey); font-size: 0.9875rem; }

.studio-desk {
  position: relative;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
.studio-desk picture { display: block; overflow: clip; border-radius: 2px; }
.studio-desk img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  background: var(--mist);
}
.studio-desk figcaption { margin-top: 0.75rem; color: var(--grey); }
.studio-desk .chip-br { bottom: auto; top: 0.75rem; right: 0.75rem; translate: none; }

.studio-proof {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  font-size: 1.125rem;
  font-weight: 500;
}
.studio-proof .proof-key { border-bottom: 2px solid var(--redline); padding-bottom: 2px; }

/* ····· contact ····· */

.sec-contact {
  position: relative;
  overflow: clip;
  background: var(--ikb);
  color: var(--paper);
  padding-block: var(--sec-gap) calc(var(--sec-gap) * 0.7);
}
.contact-field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(105deg, transparent 32%, #000 62%);
  mask-image: linear-gradient(105deg, transparent 32%, #000 62%);
}
.sec-contact .container { position: relative; }
.sec-contact .sec-path { color: rgba(250, 250, 247, 0.65); }
.sec-contact .sec-title { color: #fff; }
.sec-contact :focus-visible { outline-color: var(--paper); }

.contact-mail {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.75rem, 5.4vw, 5rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  display: inline-block;
  color: #fff;
  border-bottom: 3px solid rgba(250, 250, 247, 0.35);
  transition: border-color var(--t-fast) ease;
  overflow-wrap: anywhere;
}
.contact-mail:hover { border-bottom-color: #fff; }

.contact-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 1rem 2.5rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  color: rgba(250, 250, 247, 0.85);
}
.booking {
  border: 1px solid rgba(250, 250, 247, 0.4);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
}

/* ····· footer ····· */

.site-foot {
  background: var(--ikb);
  color: rgba(250, 250, 247, 0.85);
  border-top: 1px solid rgba(250, 250, 247, 0.22);
  padding-block: clamp(2.5rem, 5vw, 4rem);
}
.site-foot :focus-visible { outline-color: var(--paper); }

.foot-grid {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 2.5rem clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

.wordmark-foot { color: #fff; }
.wordmark-foot .dot { color: rgba(250, 250, 247, 0.6); }

.foot-label { color: rgba(250, 250, 247, 0.55); margin-bottom: 0.9rem; }

.foot-langs ul {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 0.5rem 2rem;
}
.foot-langs a { font-size: 0.9375rem; }
.foot-langs a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.foot-langs a[aria-current] { color: #fff; }
.foot-langs a[aria-current]::after { content: ' ●'; font-size: 0.55rem; vertical-align: 2px; }

.foot-colophon { max-width: 26rem; font-size: 0.9375rem; }
.foot-rights { margin-top: 1.25rem; color: rgba(250, 250, 247, 0.55); }

/* ····· case pages ····· */

.case-hero {
  padding-top: clamp(3rem, 7vh, 5.5rem);
  padding-bottom: clamp(2rem, 4vw, 3.5rem);
}
.path-back { transition: color var(--t-fast) ease; }
.path-back:hover { color: var(--ink); }

.case-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3rem, 9vw, 7.5rem);
  line-height: 1;
  letter-spacing: -0.022em;
  margin-top: 1rem;
}
.case-title .line { display: block; overflow: clip; }
.case-title .line-in { display: block; padding-bottom: 0.08em; margin-bottom: -0.08em; }

.case-head-low {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 2.5rem;
  margin-top: 1.5rem;
}
.case-what { font-size: clamp(1.125rem, 1.6vw, 1.3125rem); font-weight: 500; }
.case-meta { display: flex; flex-wrap: wrap; gap: 0.4rem 0.9rem; color: var(--grey); }
.case-meta .year { color: var(--ink); }
.case-meta li:not(.year):not(:first-child)::before { content: '· '; color: var(--mist); }

.case-live {
  flex-basis: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.4rem;
  color: var(--ultra);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.35em;
}
.case-live .arr { transition: transform var(--t-fast) var(--ease); }
.case-live:hover .arr { transform: translate(0.2em, -0.2em); }

.case-cover {
  position: relative;
  padding-bottom: var(--sec-gap);
}
.case-cover picture { display: block; overflow: clip; border-radius: 2px; }
.case-cover img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  background: var(--mist);
}
.case-cover .chip-br { bottom: calc(var(--sec-gap) + 0.75rem); right: calc(var(--edge) + 0.75rem); translate: none; }

.case-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 2.5rem var(--gutter);
  padding-top: 1.5rem;
  border-top: 1px solid var(--ink);
}
.case-label { color: var(--ultra); margin-bottom: 1rem; }
.case-text { color: var(--grey); max-width: 34rem; }

.case-stats { display: grid; gap: 1.25rem; }
.case-stats .stat { display: grid; gap: 0.1rem; }
.stat-n {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.75rem, 2.6vw, 2.375rem);
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.stat-l { color: var(--grey); font-size: 0.9375rem; }

.case-closing {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  line-height: 1.4;
  letter-spacing: -0.008em;
  max-width: 44rem;
  margin-top: clamp(3rem, 6vw, 5rem);
}

.case-detail { padding-bottom: var(--sec-gap); }
.case-detail-inner { max-width: 56rem; }
.case-detail img { border-radius: 2px; background: var(--mist); }
.case-detail figcaption { margin-top: 0.75rem; color: var(--grey); }

.case-body { padding-bottom: var(--sec-gap); }

.case-next { padding-bottom: var(--sec-gap); }
.next-link {
  display: grid;
  gap: 0.4rem;
  border-top: 1px solid var(--ink);
  padding-top: 1.5rem;
}
.next-label { color: var(--ultra); }
.next-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.2rem, 5.4vw, 4.5rem);
  letter-spacing: -0.018em;
  line-height: 1.05;
  transition: color var(--t-fast) ease;
}
.next-name .arr {
  display: inline-block;
  margin-left: 0.25em;
  transition: transform var(--t-fast) var(--ease);
}
.next-link:hover .next-name { color: var(--ultra); }
.next-link:hover .arr { transform: translateX(0.15em); }
.next-what { color: var(--grey); }

/* ····· 404 ····· */

.err-page {
  min-height: 72vh;
  display: grid;
  align-content: center;
}
.err-code {
  font-family: var(--font-mono);
  color: var(--redline);
  margin-bottom: 1.5rem;
}
.err-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 7vw, 6rem);
  letter-spacing: -0.02em;
  line-height: 1.02;
  max-width: 16ch;
}
.err-note { margin-top: 1.5rem; color: var(--grey); max-width: 34rem; }
.err-cta { margin-top: 2.5rem; }

/* ····· scroll ruler ····· */

.ruler {
  position: fixed;
  right: 0.9rem;
  top: 50%;
  translate: 0 -50%;
  width: 10px;
  height: min(40vh, 320px);
  z-index: 90;
  background-image: linear-gradient(to bottom, rgba(14, 14, 18, 0.22) 1px, transparent 1px);
  background-size: 100% calc(100% / 12);
  border-bottom: 1px solid rgba(14, 14, 18, 0.22);
}
.ruler::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: calc(var(--p, 0) * (100% - 12px));
  height: 12px;
  background: var(--ultra);
}
html[data-craft="on"] .ruler::after { background: var(--redline); }
html.no-js .ruler { display: none; }
@media (max-width: 60em), (hover: none) { .ruler { display: none; } }

/* ····· craft mode ····· */

.craft-grid {
  position: fixed;
  inset: 0;
  z-index: 900;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--t-fast) ease;
}
html[data-craft="on"] .craft-grid { opacity: 1; }

.craft-grid::before {           /* 8pt baseline */
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(27, 41, 255, 0.10) 0 1px,
    transparent 1px 8px
  );
}
.craft-cols {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
  height: 100%;
}
.craft-cols i {
  background: rgba(240, 61, 51, 0.045);
  border-inline: 1px solid rgba(240, 61, 51, 0.22);
}

[data-chip-host] { position: relative; }

.chip {
  position: absolute;
  z-index: 910;
  padding: 0.2rem 0.5rem;
  background: #fff;
  border: 1px solid var(--redline);
  border-radius: 2px;
  color: var(--redline);
  font-size: 0.625rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity var(--t-fast) ease, transform var(--t-fast) var(--ease);
}
html[data-craft="on"] .chip { opacity: 1; transform: none; }

.chip-tl { top: -0.6rem; left: 0; transform-origin: bottom left; }
.chip-bl { bottom: -0.35rem; left: 0; }
.chip-br { bottom: -0.35rem; right: 0; }
.chip-tr { top: -0.6rem; right: 0; }
.chip-tl, .chip-tr { translate: 0 -100%; }
.chip-bl, .chip-br { translate: 0 100%; }
.work-cover .chip-br { bottom: 0.75rem; right: 0.75rem; translate: none; }

.craft-hud {
  position: fixed;
  left: 1rem; bottom: 1rem;
  z-index: 950;
  background: var(--ink);
  color: var(--paper);
  border-left: 3px solid var(--redline);
  border-radius: 2px;
  padding: 0.9rem 1.1rem;
  display: grid;
  gap: 0.3rem;
  font-size: 0.6875rem;
  max-width: 20rem;
  box-shadow: 0 16px 40px rgba(14, 14, 18, 0.35);
}
.craft-hud[hidden] { display: none; }
.hud-title { color: var(--redline); text-transform: uppercase; letter-spacing: 0.08em; }
.hud-exit { color: rgba(250, 250, 247, 0.55); margin-top: 0.3rem; }
.hud-swatches { display: flex; align-items: center; gap: 0.4rem; }
.hud-swatches i {
  width: 0.7rem; height: 0.7rem;
  border-radius: 2px;
  background: var(--s);
  border: 1px solid rgba(250, 250, 247, 0.35);
}

/* ····· motion ····· */

html.js .anim {
  opacity: 0;
  transform: translateY(16px);
}
html.js .anim-line { transform: translateY(115%); }

html.js.is-ready .anim {
  opacity: 1;
  transform: none;
  transition: opacity var(--t-base) ease, transform var(--t-base) var(--ease);
  transition-delay: calc(var(--i) * 95ms);
}
html.js.is-ready .anim-line {
  transform: none;
  transition: transform var(--t-slow) var(--ease);
  transition-delay: calc(var(--i) * 95ms);
}

html.js .reveal {
  opacity: 0;
  transform: translateY(26px);
}
html.js .reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity var(--t-base) ease, transform var(--t-base) var(--ease);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .anim, html.js .anim-line, html.js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .work-cover img, .btn, .btn .arr { transition: none; }
  .marquee-track { animation: none; }
  .pv-s, .proc-track i { transition: none; }
  html.js .proc-step { opacity: 1; transition: none; }
  .pv-s .d, .cap-glyph .d { stroke-dashoffset: 0 !important; transition: none !important; }
  .proc[data-step="3"] .pv-ring { animation: none; }
}

/* ····· responsive ····· */

@media (max-width: 60em) {
  .work-card:nth-child(n) { grid-column: 1 / -1; }
  .work-card:nth-child(4n+2), .work-card:nth-child(4n+3) { grid-column: 2 / -2; }
  .cap-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .foot-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .case-grid { grid-template-columns: 1fr; }
  .case-stats { grid-template-columns: repeat(3, auto); justify-content: start; gap: 1rem 2.5rem; }

  /* process: the file sticks to the top, the story scrolls underneath */
  .proc { display: block; }
  .proc-visual {
    position: sticky;
    top: 4.2rem;
    z-index: 5;
    margin-bottom: 2.5rem;
  }
  .proc-panel { box-shadow: 0 18px 44px rgba(14, 14, 18, 0.14); }
  .pv { width: auto; max-width: 100%; max-height: 42svh; margin-inline: auto; }
  .proc-steps { padding-top: 0.5rem; gap: clamp(3.5rem, 10vh, 6rem); }
  .proc-step { max-width: none; }
}

@media (max-width: 45em) {
  .site-nav { display: none; }
  .hero-low { grid-template-columns: 1fr; }
  .hero-meta { order: 2; }
  .work-card:nth-child(4n+2), .work-card:nth-child(4n+3) { grid-column: 1 / -1; }
  .principles { grid-template-columns: 1fr; }
  .chip { display: none; }
  .craft-hud { max-width: calc(100vw - 2rem); }
}

/* ····· contact intake chat ····· */

.contact-chat { display: none; }
html.js .contact-chat {
  display: block;
  width: 100%;
  max-width: 52rem;
  min-width: 0;
  margin-top: clamp(3.5rem, 7vw, 6rem);
  padding-top: 1.25rem;
  border-top: 1px solid rgba(250, 250, 247, 0.65);
}
.contact-chat-label {
  color: var(--paper);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.contact-chat-intro { max-width: 42rem; margin-top: 0.75rem; color: var(--paper); }
.contact-chat-log {
  display: grid;
  gap: 1.25rem;
  max-height: 22rem;
  margin-top: 2rem;
  padding-block: 0.25rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: var(--paper) transparent;
}
.contact-chat-log[hidden] { display: none; }
.contact-chat-turn {
  display: grid;
  grid-template-columns: minmax(5.5rem, 8rem) minmax(0, 1fr);
  gap: 0.75rem var(--gutter);
  align-items: baseline;
}
.contact-chat-speaker { color: #DDE2FF; text-transform: uppercase; }
.contact-chat-turn p { min-width: 0; overflow-wrap: anywhere; color: #fff; }
.contact-chat-turn.is-visitor p { font-weight: 560; }
.contact-chat-turn.is-studio p { font-weight: 400; }
.contact-chat-turn.is-pending p { color: #DDE2FF; }
.contact-chat-form {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: end;
  min-width: 0;
  margin-top: 2rem;
  border-bottom: 1px solid var(--paper);
}
.contact-chat-form textarea {
  display: block;
  width: 100%;
  min-width: 0;
  max-height: 10rem;
  padding: 0.8rem 0;
  overflow-y: auto;
  resize: none;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  line-height: 1.5;
}
.contact-chat-form textarea::placeholder { color: #DDE2FF; opacity: 1; }
.contact-chat-form textarea:disabled { opacity: 0.75; }
.contact-chat-send,
.contact-chat-restart {
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--paper);
  cursor: pointer;
  text-transform: uppercase;
}
.contact-chat-send {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 0;
}
.contact-chat-send .arr { transition: transform var(--t-fast) var(--ease); }
.contact-chat-send:hover .arr { transform: translateX(3px); }
.contact-chat-send:disabled { cursor: default; opacity: 0.75; }
.contact-chat-privacy { margin-top: 0.75rem; color: #DDE2FF; }
.contact-chat-notice { margin-top: 1.5rem; color: var(--paper); }
.contact-chat-restart {
  margin-top: 1rem;
  padding-block: 0.35rem;
  border-bottom: 1px solid var(--paper);
}
.contact-chat-sr,
.contact-chat-trap {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 30em) {
  html.js .contact-chat { max-width: none; }
  .contact-chat-log { max-height: 16rem; }
  .contact-chat-turn { grid-template-columns: 1fr; gap: 0.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  .contact-chat-send .arr { transition: none; }
}
