@import url('../shared/presentation.css');
/* Direction C02 — Commission.
   A dark editorial press for a studio that wants commissions: every view has a
   real URL, and the signature control shows a photograph the way a client would
   print it. Built on current platform features with explicit fallbacks:
   cross-document view transitions, speculation rules, scroll-driven animation,
   CSS carousel markers, popover + anchor positioning, container queries,
   @starting-style, ::details-content, :has(), @layer, color-mix. */

@layer base, layout, components, placements, motion, responsive;

@font-face {
  font-family: Bodoni;
  src: url('fonts/bodoni-moda-latin.woff2') format('woff2-variations');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Bodoni;
  src: url('fonts/bodoni-moda-latin-italic.woff2') format('woff2-variations');
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}
/* Korean faces are text subsets: they carry only the characters this study
   renders (see README). New Korean copy falls back to the system font. */
@font-face {
  font-family: Myeongjo;
  src: url('fonts/nanum-myeongjo-800.woff2') format('woff2');
  font-weight: 700 900;
  font-display: swap;
}
@font-face {
  font-family: NotoKR;
  src: url('fonts/noto-sans-kr-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url('../direction-02/fonts/manrope-400.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Barlow;
  src: url('../direction-02/fonts/barlow-condensed-700.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}

@layer base {
  :root {
    --ink: #0c0c0d;
    --paper: #efebe4;
    --muted: #9c968c;
    --accent: #ff5a33;
    --sheet: #f6f3ee;
    --sheet-ink: #14110d;
    --line: #2b2b2d;
    --display: Bodoni, Myeongjo, Georgia, serif;
    --sans: Manrope, 'Doit Korean', NotoKR, 'Doit Korean','Apple SD Gothic Neo', sans-serif;
    --label: Barlow, NotoKR, sans-serif;
    --gutter: clamp(18px, 3.4vw, 72px);
    --head: 66px;
    --ease: cubic-bezier(.22, 1, .36, 1);
    --measure: 62ch;
    color-scheme: dark;
    interpolate-size: allow-keywords;
    accent-color: var(--accent);
  }

  @view-transition { navigation: auto }

  * { box-sizing: border-box }
  html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head) + 16px) }
  body {
    margin: 0;
    background: var(--ink);
    color: var(--paper);
    font: 15px/1.7 var(--sans);
    /* Hangul has no italic cut here; never let the browser slant it. */
    font-synthesis-style: none;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }
  h1, h2, h3, p, figure, dl, dd, fieldset, pre { margin: 0 }
  fieldset { border: 0; padding: 0 }
  ul, ol { margin: 0; padding: 0; list-style: none }
  a { color: inherit; text-decoration: none }
  img { display: block; width: 100%; height: auto }
  button, input, select, textarea { font: inherit; color: inherit }
  ::selection { background: var(--accent); color: var(--ink) }
  :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px }
  [hidden] { display: none !important }

  h1, h2, .display { font-family: var(--display); font-weight: 500; text-wrap: balance; letter-spacing: -.015em }
  p { text-wrap: pretty }
  em { font-style: italic }

  .eyebrow {
    font: 700 10px/1.4 var(--label);
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 9px;
  }
  .eyebrow a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px }
  .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none }
  .section-title {
    font: 700 11px/1.4 var(--label);
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--muted);
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
    margin-bottom: clamp(20px, 3vw, 40px);
  }
  .skip { position: fixed; z-index: 90; left: 14px; top: -120px; background: var(--paper); color: var(--ink); padding: 13px 20px }
  .skip:focus { top: 12px }

  .button {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 50px; padding: 0 26px; border: 0; border-radius: 999px;
    background: var(--accent); color: #170c08; cursor: pointer;
    font: 700 12px/1 var(--label); letter-spacing: .12em; text-transform: uppercase;
    transition: transform .35s var(--ease), background .35s var(--ease);
  }
  .button:hover { transform: translateY(-2px); background: color-mix(in oklab, var(--accent) 82%, var(--paper)) }
  .button.big { min-height: 58px; padding: 0 34px; font-size: 13px }
  .button.ghost { background: transparent; color: var(--paper); border: 1px solid var(--line) }
  .button.ghost:hover { background: #ffffff12 }
  .text-link {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
    font-size: 13px; color: var(--paper);
    border-bottom: 1px solid color-mix(in oklab, var(--paper) 40%, transparent);
  }
  .text-link:hover { color: var(--accent); border-color: var(--accent) }
}

@layer layout {
  main { display: block }
  .site-header {
    position: sticky; top: 0; z-index: 40;
    display: flex; align-items: center; gap: clamp(14px, 3vw, 48px);
    height: var(--head); padding: 0 var(--gutter);
    background: color-mix(in srgb, var(--ink) 86%, transparent);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
  }
  .wordmark { display: flex; align-items: baseline; gap: 8px; min-height: 44px; align-self: center }
  .wordmark span { font: 700 25px/1 var(--display); letter-spacing: .02em }
  .wordmark i { font: 700 9px/1 var(--label); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); font-style: normal }
  .site-nav { display: flex; gap: clamp(12px, 2vw, 30px); margin-left: auto }
  .site-nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; color: var(--muted) }
  .site-nav a:hover { color: var(--paper) }
  .site-nav a[aria-current='page'] { color: var(--paper) }
  .site-nav a[aria-current='page']::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); margin-right: 7px }

  .quick-open {
    display: inline-flex; align-items: center; gap: 9px; min-height: 42px; padding: 0 18px;
    border: 1px solid var(--line); border-radius: 999px; background: transparent; cursor: pointer;
    font: 700 10px/1 var(--label); letter-spacing: .14em; text-transform: uppercase;
    anchor-name: --quick;
  }
  .quick-open:hover { border-color: var(--accent); color: var(--accent) }
  @media (prefers-reduced-motion: no-preference) { .quick-open .dot { animation: pulse 2.6s infinite } }

  .reading-progress {
    position: fixed; inset: var(--head) auto auto 0; z-index: 39;
    height: 2px; width: 100%; transform-origin: 0 50%; transform: scaleX(0);
    background: var(--accent);
  }
  @media (prefers-reduced-motion: no-preference) {
    .reading-progress { animation: progress linear both; animation-timeline: scroll(root block) }
  }
  @media (prefers-reduced-motion: reduce) { .reading-progress { display: none } }

  .site-footer { padding: clamp(60px, 8vw, 140px) var(--gutter) 34px; border-top: 1px solid var(--line); margin-top: clamp(60px, 9vw, 150px) }
  .footer-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 30px }
  .footer-lead { font: 500 clamp(40px, 6.4vw, 108px)/.98 var(--display); letter-spacing: -.02em }
  .footer-lead em { color: var(--accent) }
  .footer-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px }
  .footer-bottom {
    display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center;
    margin-top: clamp(40px, 6vw, 90px); padding-top: 22px; border-top: 1px solid var(--line);
    font: 700 10px/1.6 var(--label); letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  }
  .footer-bottom a:hover { color: var(--paper) }
  .disclaimer { margin-top: 20px; font-size: 11px; line-height: 1.85; color: var(--muted); max-width: 90ch }

  .hero {
    display: grid; gap: clamp(26px, 4vw, 70px);
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    align-items: center;
    padding: clamp(24px, 4vw, 70px) var(--gutter) clamp(40px, 6vw, 90px);
    min-height: calc(100svh - var(--head));
  }
  .hero-copy { max-width: 620px }
  .hero h1 { display: grid; gap: clamp(10px, 1.4vw, 20px); margin: clamp(14px, 2vw, 26px) 0 }
  .hero h1 .en { font-size: clamp(50px, 7.4vw, 118px); line-height: .9; font-weight: 500; font-variation-settings: 'opsz' 96 }
  .hero h1 .en em { color: var(--accent) }
  .hero h1 .ko { font-family: Myeongjo, var(--sans); font-weight: 800; font-size: clamp(19px, 2.2vw, 34px); line-height: 1.3; letter-spacing: -.02em; color: var(--muted) }
  .hero-line { color: var(--muted); font-size: 14px; max-width: 46ch }
  .hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: clamp(20px, 3vw, 38px) }

  .kinds, .selected, .process, .page-work, .page-studio, .page-brief, .page-project { padding: clamp(50px, 7vw, 120px) var(--gutter) 0 }
  .section-head { display: grid; gap: 14px; padding-bottom: clamp(24px, 3vw, 46px); border-bottom: 1px solid var(--line) }
  .section-head h2 { font-size: clamp(32px, 4.6vw, 72px); line-height: .98 }
  .section-head h2 em { color: var(--accent) }
  .section-note { color: var(--muted); font-size: 13px; max-width: var(--measure) }

  .page-head { display: grid; gap: 16px; padding-bottom: clamp(26px, 4vw, 54px); border-bottom: 1px solid var(--line) }
  .page-head h1 { font-size: clamp(42px, 6.4vw, 104px); line-height: .96 }
  .page-head h1 em { color: var(--accent) }
  .page-lead { color: var(--muted); max-width: var(--measure); font-size: 14px }
}

@layer components {
  /* Quick commission panel: popover in the top layer, anchored to its button. */
  .quick-brief {
    position: fixed; inset: auto; margin: 0;
    width: min(420px, calc(100vw - 24px));
    padding: 22px; border: 1px solid var(--line); border-radius: 18px;
    background: #141416; color: var(--paper);
    box-shadow: 0 30px 70px #000000a8;
    opacity: 0; translate: 0 -8px;
    transition: opacity .3s var(--ease), translate .3s var(--ease), display .3s allow-discrete, overlay .3s allow-discrete;
  }
  .quick-brief:popover-open { opacity: 1; translate: 0 }
  @starting-style { .quick-brief:popover-open { opacity: 0; translate: 0 -8px } }
  @supports (anchor-name: --a) {
    .quick-brief { position-anchor: --quick; top: calc(anchor(bottom) + 12px); right: anchor(right); left: auto }
  }
  @supports not (anchor-name: --a) {
    .quick-brief { top: calc(var(--head) + 12px); right: var(--gutter) }
  }
  .quick-brief::backdrop { background: #00000055 }
  .quick-kinds { display: grid; gap: 2px; margin: 16px 0 18px }
  .quick-kinds a { display: grid; gap: 3px; padding: 13px 14px; border-radius: 12px; background: #ffffff08 }
  .quick-kinds a:hover { background: color-mix(in oklab, var(--accent) 18%, transparent) }
  .quick-kinds b { font-size: 14px }
  .quick-kinds span { font-size: 12px; color: var(--muted) }
  .quick-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px }

  /* Commission kinds */
  .kind-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: clamp(24px, 3vw, 44px) }
  .kind-card { container-type: inline-size; position: relative; display: grid; gap: 10px; align-content: start; padding: clamp(22px, 2.4vw, 38px); background: var(--ink); min-height: 250px; transition: background .4s var(--ease) }
  .kind-card:hover, .kind-card:focus-visible { background: #17171a }
  .kind-en { font: 700 10px/1 var(--label); letter-spacing: .16em; text-transform: uppercase; color: var(--accent) }
  .kind-card b { font: 500 clamp(24px, 2.4vw, 36px)/1.1 var(--display) }
  .kind-line { font-size: 13.5px }
  .kind-detail { font-size: 12.5px; color: var(--muted) }
  .kind-card .go { position: absolute; right: clamp(18px, 2vw, 30px); bottom: clamp(18px, 2vw, 30px); font-size: 20px; color: var(--accent); transition: transform .35s var(--ease) }
  .kind-card:hover .go { transform: translateX(6px) }
  @container (min-width: 360px) {
    .kind-card { gap: 12px; padding-right: 70px }
  }

  /* Work cards */
  .work-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: clamp(18px, 2.4vw, 40px); margin-top: clamp(24px, 3vw, 46px) }
  .work-grid.wide { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)) }
  .work-card { container-type: inline-size }
  .work-card a { display: grid; gap: 14px }
  .work-frame { display: block; overflow: hidden; aspect-ratio: 4 / 5; background: #1a1a1c }
  .work-frame img { width: 100%; height: 100%; object-fit: cover; transition: scale .8s var(--ease) }
  .work-card a:hover .work-frame img, .work-card a:focus-visible .work-frame img { scale: 1.035 }
  .work-meta { display: grid; gap: 5px }
  .work-meta b { font: 500 clamp(19px, 1.8vw, 26px)/1.15 var(--display) }
  .work-kind { font: 700 9.5px/1 var(--label); letter-spacing: .15em; text-transform: uppercase; color: var(--accent) }
  .work-use { font-size: 12.5px; color: var(--muted) }
  .work-count { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--line); font: 700 9.5px/1 var(--label); letter-spacing: .14em; color: var(--muted) }
  .work-count i { font-size: 15px; font-style: normal; color: var(--paper); transition: transform .35s var(--ease) }
  .work-card a:hover .work-count i { transform: translateX(5px) }

  /* Process */
  .steps { margin-top: clamp(20px, 3vw, 40px) }
  .step { border-bottom: 1px solid var(--line) }
  .step summary {
    display: grid; grid-template-columns: 58px minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px; align-items: baseline;
    padding: clamp(18px, 2vw, 30px) 0; cursor: pointer; list-style: none;
  }
  .step summary::-webkit-details-marker { display: none }
  .step-number { font: 700 11px/1 var(--label); letter-spacing: .14em; color: var(--accent) }
  .step summary b { font: 500 clamp(22px, 2.6vw, 40px)/1.05 var(--display) }
  .step-line { color: var(--muted); font-size: 13px }
  .step-body { padding: 0 0 clamp(20px, 2.4vw, 34px) 74px; max-width: var(--measure); color: var(--muted); font-size: 13.5px }
  .step::details-content {
    block-size: 0; overflow: hidden;
    transition: block-size .45s var(--ease), content-visibility .45s allow-discrete;
  }
  .step[open]::details-content { block-size: auto }
  .step:hover summary b { color: var(--accent) }

  /* Work index */
  .filter-tabs { display: flex; flex-wrap: wrap; gap: 8px }
  .filter-tabs a {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
    border: 1px solid var(--line); border-radius: 999px;
    font: 700 10px/1 var(--label); letter-spacing: .13em; text-transform: uppercase; color: var(--muted);
  }
  .filter-tabs a:hover { color: var(--paper); border-color: var(--paper) }
  .filter-tabs a[aria-current='page'] { background: var(--paper); color: var(--ink); border-color: var(--paper) }
  .result-count { font: 700 10px/1 var(--label); letter-spacing: .14em; color: var(--muted) }
  .cta-band {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
    margin-top: clamp(40px, 6vw, 90px); padding: clamp(26px, 3vw, 46px); border: 1px solid var(--line); border-radius: 20px;
  }
  .cta-band p { font: 500 clamp(21px, 2.4vw, 34px)/1.2 var(--display) }

  /* Project */
  .project-head h1 { font-size: clamp(46px, 7.4vw, 124px); line-height: .94 }
  .project-line { font: italic 500 clamp(20px, 2.2vw, 32px)/1.2 var(--display); color: var(--accent) }
  .project-facts { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(18px, 3vw, 60px); margin-top: 10px }
  .project-facts p { color: var(--muted); font-size: 14px; max-width: var(--measure) }
  .project-facts dl { display: grid; gap: 10px; align-content: start }
  .project-facts div { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line) }
  .project-facts dt { font: 700 9.5px/1.6 var(--label); letter-spacing: .14em; text-transform: uppercase; color: var(--muted) }
  .project-facts dd { margin: 0; font-size: 13px }
  .project-stage, .project-frames, .project-cta, .more-work { padding-top: clamp(44px, 6vw, 96px) }

  /* Frames: a CSS carousel where the browser supports it, a snap strip elsewhere. */
  .frames {
    display: flex; gap: clamp(12px, 1.6vw, 26px);
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
    padding-bottom: 14px; scrollbar-width: thin;
  }
  .frame-item { flex: 0 0 min(80vw, 480px); scroll-snap-align: start }
  .frame-item a { display: grid; gap: 10px }
  .frame-item img { width: 100%; height: auto; background: #1a1a1c }
  .frame-label { display: flex; align-items: center; justify-content: space-between; font: 700 9.5px/1 var(--label); letter-spacing: .14em; color: var(--muted) }
  .frame-item a:hover .frame-label { color: var(--paper) }
  .frame-label i { font-size: 14px; font-style: normal; color: var(--accent) }
  @supports selector(::scroll-marker) {
    .frames { scroll-marker-group: after; anchor-name: --frames }
    .frames::scroll-marker-group { display: flex; gap: 10px; justify-content: center; padding-top: 18px }
    .frame-item::scroll-marker {
      content: ''; width: 9px; height: 9px; border-radius: 50%;
      border: 1px solid var(--muted); cursor: pointer;
    }
    .frame-item::scroll-marker:target-current { background: var(--accent); border-color: var(--accent) }
    .frames::scroll-button(*) {
      position: absolute; top: 2px; width: 40px; height: 40px; border-radius: 50%;
      border: 1px solid var(--line); background: transparent; color: var(--paper); cursor: pointer;
    }
    .frames::scroll-button(*):disabled { opacity: .3 }
    .frames::scroll-button(left) { content: '\2190'; right: 52px }
    .frames::scroll-button(right) { content: '\2192'; right: 0 }
    .project-frames { position: relative }
  }

  .project-cta { display: grid; gap: 18px; justify-items: start; border-top: 1px solid var(--line); margin-top: clamp(30px, 4vw, 60px) }
  .project-cta > p:first-child { font: 500 clamp(26px, 3.4vw, 52px)/1.1 var(--display); padding-top: clamp(30px, 4vw, 60px) }
  .project-cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px }
  .source-note { font-size: 11px; color: var(--muted) }
  .source-note a { text-decoration: underline; text-underline-offset: 3px }

  /* Frame page */
  .page-frame { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100svh; padding: 0 }
  .frame-head, .frame-foot { display: flex; align-items: center; gap: 18px; padding: 14px var(--gutter) }
  .frame-head { border-bottom: 1px solid var(--line) }
  .frame-head h1 { font-size: clamp(20px, 2.4vw, 30px); line-height: 1.1; margin-top: 4px }
  .frame-count { margin-left: auto; font: 700 12px/1 var(--label); letter-spacing: .14em }
  .frame-count span { color: var(--muted) }
  .frame-close { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; font: 700 10px/1 var(--label); letter-spacing: .14em }
  .frame-close:hover { background: var(--paper); color: var(--ink) }
  .frame-stage { position: relative; overflow: auto; padding: clamp(10px, 2vw, 28px) var(--gutter); overscroll-behavior: contain }
  .frame-stage img {
    position: absolute; inset: clamp(10px, 2vw, 28px) var(--gutter); margin: auto;
    max-width: 100%; max-height: 100%; width: auto; height: auto; cursor: zoom-in;
  }
  .frame-stage.is-zoomed { cursor: grab }
  .frame-stage.is-zoomed img {
    position: static; margin: 0; max-width: none; max-height: none;
    width: var(--zoom-width, 150%); cursor: zoom-out;
  }
  .frame-foot { border-top: 1px solid var(--line) }
  .frame-move { display: flex; gap: 10px }
  .frame-nav { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50% }
  .frame-nav:hover { background: var(--paper); color: var(--ink) }
  .frame-nav.is-disabled { opacity: .3 }
  .frame-caption { flex: 1; font-size: 12px; color: var(--muted); text-align: center }
  .zoom { min-height: 46px; padding: 0 20px; border: 1px solid var(--line); border-radius: 999px; background: transparent; cursor: pointer; font: 700 10px/1 var(--label); letter-spacing: .13em }
  .zoom:hover { border-color: var(--accent); color: var(--accent) }

  /* Studio */
  .studio-process, .studio-space { padding-top: clamp(44px, 6vw, 96px) }
  .process-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line) }
  .process-row { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 16px; padding: clamp(18px, 2.2vw, 32px); background: var(--ink) }
  .process-row b { font: 500 clamp(20px, 2.2vw, 30px)/1.1 var(--display); display: block; margin-bottom: 6px }
  .process-row p { color: var(--muted); font-size: 13px; max-width: var(--measure) }
  .studio-space { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: clamp(22px, 4vw, 70px); align-items: start }
  .studio-space .section-title { grid-column: 1 / -1 }
  .space-line { font: 500 clamp(24px, 3vw, 44px)/1.15 var(--display); margin-bottom: 18px }
  .space-body p { color: var(--muted); font-size: 13.5px; max-width: var(--measure) }
  .space-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 26px }
  .space-figure img { aspect-ratio: 4 / 5; object-fit: cover }
  .space-figure figcaption { margin-top: 10px; font-size: 11px; color: var(--muted) }

  /* Brief */
  .brief-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); gap: clamp(24px, 4vw, 70px); padding-top: clamp(30px, 4vw, 60px) }
  .brief-form { display: grid; gap: 24px; align-content: start }
  .brief-form legend, .brief-form label { font: 700 10px/1.6 var(--label); letter-spacing: .14em; text-transform: uppercase; color: var(--muted) }
  .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px }
  .chips input { position: absolute; opacity: 0; width: 1px; height: 1px }
  .chips label {
    display: inline-flex; align-items: center; min-height: 46px; padding: 0 18px; cursor: pointer;
    border: 1px solid var(--line); border-radius: 999px; color: var(--paper); text-transform: none; letter-spacing: 0;
    font: 400 13px/1 var(--sans);
  }
  .chips input:checked + label { background: var(--paper); color: var(--ink); border-color: var(--paper) }
  .chips input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 3px }
  .field { display: grid; gap: 8px }
  .field input, .field select, .field textarea {
    min-height: 50px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 12px;
    background: #121214; color: var(--paper); font-size: 15px; width: 100%;
  }
  .field textarea { field-sizing: content; min-height: 90px; resize: vertical }
  .field input::placeholder, .field textarea::placeholder { color: #6f6a63 }
  .field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { border-color: var(--accent) }
  .privacy-note { font-size: 12px; color: var(--muted); border-left: 2px solid var(--accent); padding-left: 14px }
  .brief-preview { position: sticky; top: calc(var(--head) + 20px); align-self: start; border: 1px solid var(--line); border-radius: 20px; padding: clamp(20px, 2.4vw, 32px); background: #101012 }
  .brief-preview h2 { font: 700 10px/1.6 var(--label); letter-spacing: .14em; text-transform: uppercase; color: var(--muted) }
  #brief-output {
    margin: 16px 0 20px; padding: 18px; border-radius: 14px; background: #ffffff08;
    font: 400 13.5px/1.9 var(--sans); white-space: pre-wrap; word-break: break-word; min-height: 150px;
  }
  .brief-actions { display: flex; flex-wrap: wrap; gap: 12px }
  .copy-status { min-height: 20px; margin-top: 10px; font-size: 12px; color: var(--accent) }
}

/* ---------- the placement stage ---------- */
@layer placements {
  .stage { display: grid; gap: 16px; align-content: center; container-type: inline-size }
  .stage-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px }
  .placement-switch { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px }
  .placement-switch legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%) }
  .placement-switch input { position: absolute; opacity: 0; width: 1px; height: 1px }
  .placement-switch label {
    display: inline-flex; align-items: baseline; gap: 7px; min-height: 40px; padding: 0 16px; cursor: pointer;
    border-radius: 999px; color: var(--muted); transition: background .3s var(--ease), color .3s var(--ease);
  }
  .placement-switch label b { font-size: 13px; font-weight: 400 }
  .placement-switch label span { font: 700 9px/1 var(--label); letter-spacing: .12em; text-transform: uppercase; opacity: .7 }
  .placement-switch label:hover { color: var(--paper) }
  .placement-switch input:checked + label { background: var(--paper); color: var(--ink) }
  .placement-switch input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px }
  .stage-note { font: 700 9px/1.5 var(--label); letter-spacing: .12em; text-transform: uppercase; color: var(--muted) }

  .page { display: grid; gap: 12px }
  .sheet {
    /* Size from a target height so a wide placement never crops the subject:
       the width follows the ratio and only shrinks when the column is narrower. */
    --rw: 4; --rh: 5;
    --sheet-h: min(62svh, 660px);
    position: relative; overflow: hidden; background: var(--sheet); color: var(--sheet-ink);
    aspect-ratio: var(--rw) / var(--rh);
    width: min(100%, calc(var(--sheet-h) * var(--rw) / var(--rh)));
    margin-inline: auto;
    transition: width .5s var(--ease), aspect-ratio .5s var(--ease);
  }
  .hero .sheet { --sheet-h: min(72svh, 800px) }
  .sheet img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover }
  .chrome { display: none }
  .page-caption { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font: 700 9.5px/1 var(--label); letter-spacing: .13em; text-transform: uppercase; color: var(--muted) }
  .page-caption .mark { padding: 4px 8px; border: 1px solid var(--line); border-radius: 4px; color: var(--accent) }
  .page-caption span:last-child { margin-left: auto }

  .stage-picker { display: flex; gap: 8px }
  .stage-picker button { flex: 1; padding: 0; border: 1px solid var(--line); background: none; cursor: pointer; overflow: hidden; aspect-ratio: 3 / 4; max-height: 74px }
  .stage-picker img { width: 100%; height: 100%; object-fit: cover; opacity: .48; transition: opacity .3s var(--ease) }
  .stage-picker button:hover img, .stage-picker button[aria-selected='true'] img { opacity: 1 }
  .stage-picker button[aria-selected='true'] { border-color: var(--accent) }
  .stage-link { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; align-self: start; font-size: 13px; border-bottom: 1px solid var(--line) }
  .stage-link:hover { color: var(--accent); border-color: var(--accent) }

  /* COVER — the photograph under a masthead. */
  .stage:has(#pl-cover:checked) .sheet { --rw: 3; --rh: 4 }
  .stage:has(#pl-cover:checked) .chrome-cover { display: block }
  .chrome-cover { position: absolute; inset: 0; color: #fff }
  .chrome-cover::before { content: ''; position: absolute; inset: 0; background: linear-gradient(#00000099, #0000 34%, #0000 54%, #000000a6) }
  .masthead {
    position: absolute; top: clamp(12px, 3cqi, 30px); left: 0; right: 0; text-align: center;
    font: 700 clamp(44px, 19cqi, 150px)/.86 var(--display); letter-spacing: .01em;
    font-variation-settings: 'opsz' 96;
  }
  .issue { position: absolute; top: clamp(8px, 2cqi, 18px); right: clamp(12px, 3cqi, 26px); font: 700 clamp(7px, 1.2cqi, 10px)/1 var(--label); letter-spacing: .18em; text-transform: uppercase }
  .cover-lines { position: absolute; left: clamp(12px, 3cqi, 30px); bottom: clamp(14px, 3cqi, 32px); display: grid; gap: clamp(4px, .8cqi, 9px) }
  .cover-lines li { font: 400 clamp(11px, 2.1cqi, 19px)/1.25 var(--sans); max-width: 22ch }
  .cover-lines b { display: block; font: 700 clamp(7px, 1.1cqi, 10px)/1.6 var(--label); letter-spacing: .2em; color: var(--accent) }

  /* SPREAD — the photograph opposite a text page. */
  .stage:has(#pl-spread:checked) .sheet { --rw: 3; --rh: 2 }
  .stage:has(#pl-spread:checked) .sheet img { left: 50%; width: 50% }
  .stage:has(#pl-spread:checked) .chrome-spread { display: block }
  .chrome-spread { position: absolute; inset: 0 50% 0 0; background: var(--sheet) }
  .chrome-spread::after { content: ''; position: absolute; top: 0; bottom: 0; right: 0; width: 26px; background: linear-gradient(90deg, #0000, #00000026) }
  .spread-text { position: absolute; inset: clamp(14px, 4cqi, 46px); display: grid; align-content: center; gap: clamp(6px, 1.4cqi, 16px) }
  .kicker { font: 700 clamp(7px, 1.1cqi, 10px)/1 var(--label); letter-spacing: .2em; color: color-mix(in oklab, var(--sheet-ink) 62%, var(--sheet)) }
  .spread-title { font: 500 clamp(20px, 5.4cqi, 60px)/1.02 var(--display); letter-spacing: -.02em }
  .spread-title em { color: #a32f14 }
  .spread-body { font: 400 clamp(8px, 1.5cqi, 14px)/1.75 var(--sans); color: color-mix(in oklab, var(--sheet-ink) 74%, var(--sheet)); max-width: 34ch }
  .folio { font: 700 clamp(7px, 1.1cqi, 10px)/1 var(--label); letter-spacing: .16em; color: color-mix(in oklab, var(--sheet-ink) 55%, var(--sheet)); margin-top: clamp(6px, 1.4cqi, 16px) }

  /* CAMPAIGN — the photograph as a brand key visual. */
  .stage:has(#pl-campaign:checked) .sheet { --rw: 16; --rh: 9 }
  .stage:has(#pl-campaign:checked) .chrome-campaign { display: block }
  .chrome-campaign { position: absolute; inset: 0; color: #fff }
  .chrome-campaign::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #000000a6, #0000 62%) }
  .lockup { position: absolute; left: clamp(14px, 4cqi, 54px); top: clamp(14px, 4cqi, 48px); font: 700 clamp(20px, 4.6cqi, 54px)/.9 var(--display); letter-spacing: .02em }
  .lockup span { display: block; font: 700 clamp(7px, 1cqi, 11px)/1 var(--label); letter-spacing: .34em; margin-top: 6px }
  .campaign-line { position: absolute; left: clamp(14px, 4cqi, 54px); bottom: clamp(30px, 6cqi, 72px); font: italic 500 clamp(14px, 3.4cqi, 40px)/1.1 var(--display); max-width: 16ch }
  .legal { position: absolute; left: clamp(14px, 4cqi, 54px); bottom: clamp(12px, 3cqi, 34px); font: 700 clamp(6px, .9cqi, 9px)/1 var(--label); letter-spacing: .16em; text-transform: uppercase; opacity: .8 }
}

@layer motion {
  @keyframes pulse { 0%, 100% { opacity: 1 } 50% { opacity: .25 } }
  @keyframes progress { to { transform: scaleX(1) } }
  @keyframes rise { from { opacity: 0; transform: translateY(26px) } to { opacity: 1; transform: none } }
  @keyframes hero-weight {
    from { font-variation-settings: 'opsz' 96, 'wght' 500 }
    to { font-variation-settings: 'opsz' 20, 'wght' 700 }
  }

  @media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .section-head, .work-card, .kind-card, .process-row, .cta-band, .space-figure {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 8% cover 26%;
    }
    .hero h1 {
      animation: hero-weight linear both;
      animation-timeline: scroll(root block);
      animation-range: 0 60svh;
    }
  }
  }

  /* Cross-document transitions: the opened photograph keeps its place. */
  ::view-transition-group(*) { animation-duration: .5s; animation-timing-function: var(--ease) }
  ::view-transition-old(root) { animation: none; opacity: 1 }
  ::view-transition-new(root) { animation: none }

  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto }
    @view-transition { navigation: none }
    *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; animation-timeline: none !important }
  }
}

@layer responsive {
  @media (max-width: 1100px) {
    .hero { grid-template-columns: minmax(0, 1fr); min-height: 0 }
    .hero-copy { max-width: none }
    .brief-body, .studio-space, .project-facts { grid-template-columns: minmax(0, 1fr) }
    .brief-preview { position: static }
  }

  @media (max-width: 760px) {
    :root { --head: 58px }
    .site-nav { display: none }
    .quick-open { margin-left: auto }
    .hero { padding-top: 18px }
    .hero h1 { font-size: 15vw }
    .sheet { --sheet-h: min(52svh, 520px) }
    .stage-head { gap: 10px }
    .placement-switch { width: 100%; justify-content: space-between; overflow-x: auto; flex-wrap: nowrap }
    .placement-switch label { padding: 0 12px; flex-direction: column; align-items: center; gap: 2px; justify-content: center }
    .step summary { grid-template-columns: 40px minmax(0, 1fr); row-gap: 6px }
    .step-line { grid-column: 2 }
    .step-body { padding-left: 56px }
    .frame-item { flex-basis: 86vw }
    .frame-head h1 { font-size: 19px }
    .frame-caption { display: none }
    .footer-lead { font-size: 13vw }
    .process-row { grid-template-columns: 40px minmax(0, 1fr); gap: 10px }
    .page-caption span:last-child { margin-left: 0 }
  }

  @media (prefers-contrast: more) {
    :root { --muted: #c7c2ba; --line: #565659 }
  }
}

/* Proposal detail pass — 2026-10-06. Composition remains direction-specific. */
 .hero-copy .ko{line-height:1.6!important;letter-spacing:-.03em!important}.body,.hero-copy>p,.step-body,.space-body p{font-size:15px;line-height:1.95}.button{font-size:12px}.step summary b{line-height:1.7}.page-caption p{font-size:12px}.brief-form label,.brief-form legend{font-size:12px;letter-spacing:.02em}.privacy-note,.disclaimer{font-size:12px;line-height:1.9}.project-line{font-size:15px;line-height:1.95}.placement-switch button:focus-visible{outline-offset:3px}.studio-space figcaption{font-size:11px;line-height:1.8}
@media(max-width:760px){.body,.hero-copy>p,.step-body,.space-body p,.project-line{font-size:13px}.privacy-note,.disclaimer{font-size:11px}.hero-copy .ko{font-size:20px;max-width:20ch}}
