/*
 * experiment-ref-6017708.css — visual-system experiment (branch experiment/ref-6017708-mobile-final)
 *
 * Applies ONLY when the companion script adds `html.x67`. Everything is scoped
 * under `.x67`, so nothing here can leak into the untouched Readymag render.
 * To revert: remove the two `data-experiment="ref-6017708"` tags from the page
 * files and delete this file + the JS.
 *
 * TYPE HIERARCHY (one family, one weight — Jun's self-hosted `wtqc`, Helvetica fallback, 400)
 *   T1 identity     34px  gzjd 100 (Jun's NHG_Header face), accent blue, "jeon jun"  .x67-brand
 *   T2 nav          14px  lowercase (global + contextual, as authored)   .x67-nav li
 *   T3 heading      22px  lowercase when plain Latin (page / project / artwork titles)  .x67-head h1, .x67-about-bio h1
 *   T4 statement    22px  as authored; all-caps Latin sources -> lowercase              .x67-statement (.x67-lc)
 *   T5 body         14px  as authored (bio, descriptions, CV rows)       .x67-body, .x67-about-text, .x67-cv
 *   T6 caption      14px  lowercase (grid titles); KR subtitle as authored  figcaption .x67-cap-title / .x67-cap-sub
 *   T7 label        12px  lowercase, muted (section labels, metadata keys, material/date lines, attribution)
 *                                                                        .x67-label, .x67-meta dt, .x67-meta-line
 *   T8 meta value   14px  lowercase (case metadata values, contact links) .x67-head .x67-meta dd, .x67-contact
 *   Quote (About)   22px  as authored, muted                             .x67-about-quote
 * Source strings are never edited; casing is CSS text-transform only.
 *
 * NAV: fixed slots at the same top-left position on every page —
 *   identity    jeon jun (y 40) · descriptor (y 63: blank / move ideas with people / based in seoul, korea)
 *   global      creative (y 98) / art (y 121), active section marked with the blue dot
 *   contextual  works / about inside the current section
 */

html.x67 {
  --x67-pad: 40px;
  --x67-gap: 24px;
  --x67-blank: clamp(260px, 38vh, 440px);
  --x67-ink: #000;
  --x67-muted: #6f6f6f;
  --x67-accent: #003DE5;
  --x67-bg: #fff;
  --x67-font: "wtqc", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --x67-fs: 14px;       /* T1 T2 T5 T6 T8 */
  --x67-fs-lg: 22px;    /* T3 T4 quote */
  --x67-fs-sm: 12px;    /* T7 */
  --x67-col: 1440px;
  --x67-gal: 1200px;
}

/* Neutralise the Readymag runtime on experiment pages (it is still loaded,
   just not shown). Reversible: drop the html class and it all comes back. */
html.x67, html.x67 body {
  overflow: auto !important;
  height: auto !important;
  width: auto !important;
  cursor: auto !important;
  background: var(--x67-bg) !important;
  margin: 0;
}
html.x67 #root, html.x67 #mags, html.x67 #service-pages, html.x67 .popups,
html.x67 #tmp, html.x67 #fake {
  display: none !important;
}

/* ---------- frame ---------- */
.x67-root {
  font-family: var(--x67-font);
  font-size: var(--x67-fs);
  font-weight: 400;
  line-height: 1.45;
  color: var(--x67-ink);
  background: var(--x67-bg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  box-sizing: border-box;
}
.x67-root *, .x67-root *::before, .x67-root *::after { box-sizing: inherit; font-weight: 400; }
.x67-root a { color: inherit; text-decoration: none; }
.x67-root a:hover { color: var(--x67-accent); }
.x67-root img { display: block; max-width: 100%; }
.x67-root p, .x67-root h1, .x67-root h2, .x67-root ul, .x67-root dl, .x67-root figure, .x67-root blockquote { margin: 0; padding: 0; }
.x67-root ul { list-style: none; }

/* ---------- T3 / T6 / T7 / T8 casing rules ----------
   Labels, metadata keys, material/date lines and contact links are lowercased by role.
   Headings, captions, metadata values and all-caps statements get `.x67-lc` from the
   script only when the string is plain Latin, so Greek, Hangul and symbols stay as authored. */
.x67-label, .x67-meta-line, .x67-meta dt, .x67-contact { text-transform: lowercase; }
.x67-lc { text-transform: lowercase; }

/* ---------- nav: global + contextual ---------- */
.x67-nav {
  position: absolute;
  top: var(--x67-pad);
  left: var(--x67-pad);
  z-index: 2;
  font-size: var(--x67-fs);
}
.x67-nav li { display: block; line-height: 1.5; }
.x67-nav li + li { margin-top: 2px; }
.x67-nav .x67-brand { margin-bottom: 14px; }
.x67-nav .x67-tag { color: var(--x67-muted); margin: -12px 0 14px; }
.x67-nav .x67-nav-context { margin-top: 18px; }
.x67-nav a { position: relative; display: inline-block; }
/* tiny blue accent: current section (global) and current page (contextual) */
.x67-nav li.is-active a::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--x67-accent);
}

/* ---------- deliberate blank upper zone ---------- */
.x67-main { padding: var(--x67-blank) var(--x67-pad) calc(var(--x67-pad) * 3); }

/* ---------- headings (T3) and metadata (T7 / T8) ---------- */
.x67-head { max-width: 960px; }
.x67-head h1 { font-size: var(--x67-fs-lg); line-height: 1.3; }
.x67-head .x67-meta { margin-top: 28px; }
.x67-head .x67-meta-line { margin-top: 10px; }
.x67-meta {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  column-gap: var(--x67-gap);
  row-gap: 4px;
  max-width: 760px;
}
.x67-meta dt { font-size: var(--x67-fs-sm); color: var(--x67-muted); padding-top: 2px; }
.x67-meta dd { margin: 0; }
.x67-meta-line { font-size: var(--x67-fs-sm); color: var(--x67-muted); line-height: 1.5; }
.x67-label { font-size: var(--x67-fs-sm); color: var(--x67-muted); margin-bottom: 12px; }

/* ---------- statements and body (T4 / T5) ---------- */
.x67-statement { font-size: var(--x67-fs-lg); line-height: 1.35; max-width: 40em; }
.x67-body { max-width: 34em; }
.x67-text .x67-statement + .x67-statement { margin-top: 0; }
.x67-text .x67-statement + .x67-body, .x67-text .x67-body + .x67-body, .x67-text .x67-label + .x67-body { margin-top: 10px; }
.x67-after { margin-top: 12px; }

/* ---------- grids: Selected and Art index (T6 captions) ---------- */
.x67-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px var(--x67-gap);
}
.x67-head + .x67-grid { margin-top: 72px; }
.x67-cell { display: block; }
.x67-cell .x67-img a { display: block; height: 100%; }
.x67-cell .x67-img {
  aspect-ratio: 438 / 280;   /* Jun's existing preview ratio */
  overflow: hidden;
  background: #f2f2f2;
}
.x67-cell img { width: 100%; height: 100%; object-fit: cover; }
.x67-cell figcaption { margin-top: 10px; line-height: 1.4; }
.x67-cap-title { display: block; }
.x67-cap-sub { display: block; color: var(--x67-muted); text-transform: none; }

/* ---------- media frames ---------- */
.x67-frame { position: relative; overflow: hidden; background: #f2f2f2; }
.x67-frame img { width: 100%; height: 100%; object-fit: cover; }
.x67-frame.is-contain { background: #fff; }
.x67-frame.is-contain img { object-fit: contain; }
.x67-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.x67-root img.is-missing { visibility: hidden; }
.x67-video-link { display: block; padding: 16px; color: var(--x67-muted); }
.x67-slides img { position: absolute; inset: 0; opacity: 0; transition: opacity var(--x67-fade, 0.5s) linear; }
.x67-slides img.is-on { opacity: 1; }
.x67-slides img:first-child { position: relative; }
@media (prefers-reduced-motion: reduce) { .x67-slides img { transition: none; } }

/* ---------- creative case study: editorial rhythm ---------- */
.x67-col { max-width: var(--x67-col); }
.x67-root .x67-bleed { margin-left: calc(-1 * var(--x67-pad)); margin-right: calc(-1 * var(--x67-pad)); }
.x67-bleed img { width: 100%; height: auto; }
.x67-case > * + * { margin-top: 32px; }                          /* image after image */
.x67-case > .x67-head + * { margin-top: 96px; }                  /* header -> hero */
.x67-case > .x67-section, .x67-case > .x67-row.is-text { margin-top: 120px; }   /* into a statement */
.x67-case > .x67-section + .x67-media, .x67-case > .x67-section + .x67-row,
.x67-case > .x67-row.is-text + .x67-media, .x67-case > .x67-row.is-text + .x67-row { margin-top: 48px; }   /* statement -> image */
.x67-half { max-width: calc(50% - var(--x67-gap) / 2); }
.x67-row { display: grid; gap: var(--x67-gap); align-items: start; }
.x67-row > .x67-section, .x67-row > .x67-media { margin-top: 0; }
.x67-row .x67-statement { max-width: none; }
.x67-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.x67-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.x67-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.x67-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

/* ---------- art detail: rendered with the archive shell (see the final block below) ---------- */

/* ---------- About / Art About: profile grid ---------- */
.x67-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--x67-gap); }
.x67-about .x67-frame { max-width: 440px; }
.x67-about-quote blockquote { font-size: var(--x67-fs-lg); line-height: 1.35; color: var(--x67-muted); max-width: 22em; }
.x67-about-quote .x67-meta-line { margin-top: 18px; color: var(--x67-ink); }
.x67-about-bio h1 { font-size: var(--x67-fs-lg); line-height: 1.3; }
.x67-about-tag { margin-top: 6px; color: var(--x67-muted); }
.x67-about-text { margin-top: 28px; max-width: 34em; }
.x67-about-text p + p { margin-top: 0.9em; }
.x67-about-list { margin-top: 120px; }
.x67-about-list .x67-label { margin-bottom: 20px; }
.x67-meta-wide { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); column-gap: var(--x67-gap); row-gap: 10px; max-width: none; }
.x67-meta-wide dt { font-size: var(--x67-fs); color: var(--x67-ink); text-transform: none; padding-top: 0; }
.x67-contact li + li { margin-top: 4px; }
.x67-contact a { border-bottom: 1px solid currentColor; }
.x67-contact a:hover { border-color: var(--x67-accent); }
.x67-cv-row { margin-top: 8px; }
.x67-cv-row:first-child { margin-top: 0; }
.x67-cv-year { color: var(--x67-muted); }

/* (the mobile system lives in the MOBILE PRODUCTION PASS block at the end of this file) */

/* ---------- identity + descriptor slots (final, all routes) ----------
   Identity: Jun's "jeon jun" string in gzjd 100 (his NHG_Header face), 34px, accent blue —
   the selected V3 treatment. Its line box stays 21px so the slots below never move.
   Descriptor: 14px muted, same box on every page; blank (unpainted) on Home. */
.x67-nav .x67-brand a { font-family: "gzjd", var(--x67-font); font-weight: 100; font-size: 34px; color: var(--x67-accent); line-height: 21px; vertical-align: top; top: -6px; }   /* glyphs sit 6px up inside the fixed 21px box, clear of the descriptor */
.x67-nav .x67-brand a:hover { color: var(--x67-ink); }
.x67-nav .x67-brand.is-active a::before { top: calc(50% - 3px); }
.x67-nav .x67-tag.is-blank { visibility: hidden; }

/* ============================================================================
   CREATIVE CASE PAGES — STUDIO ARCHIVE (final; `.x67-archive` on all 12 EN/KR case routes)
   Selected by Jun from the auditions: detail option 3 (image-led studio archive) + NAV 2
   (site navigation scrolls away, sticky contents rail) + back-to-top option 1 (aligned
   triangle as the final rail row). Home, Creative index / About and every Art route are untouched.

   Type tokens — one family (Jun's self-hosted `wtqc`, Neue Haas Grotesk), one weight (400):
     title                22px / 1.25   ink       .x67-head h1
     lead (standalone)    22px / 1.25   ink       .x67-statement  — only a statement with no label and no body
     body + meta value    14px / 1.5    ink       .x67-body · .x67-meta dd
     nav                  14px / 1.5              .x67-nav (identity keeps the V3 slot and face)
     meta key, label,     12px / 1.4    muted     .x67-meta dt · .x67-label · .x67-meta-line · .x67-rail
     caption / credit
   Every explanatory prose block under a section label is body, whatever size its source widget
   carried. Source strings never change; casing is CSS text-transform only.
   ============================================================================ */
.x67-archive .x67-head h1, .x67-archive .x67-statement { font-size: 22px; line-height: 1.25; }
.x67-archive .x67-body, .x67-archive .x67-meta dd { font-size: 14px; line-height: 1.5; letter-spacing: normal; }
.x67-archive .x67-meta dt, .x67-archive .x67-label, .x67-archive .x67-meta-line, .x67-archive .x67-rail { font-size: 12px; line-height: 1.4; }
.x67-archive .x67-meta dt { padding-top: 2px; }        /* 12/1.4 key sits on the 14/1.5 value baseline */
.x67-archive .x67-label { margin-bottom: 10px; }
.x67-archive .x67-statement { max-width: 30em; }       /* ≈ 60 characters */
.x67-archive .x67-body { max-width: 34em; }            /* 476px ≈ 55–72 characters (EN), ≈ 34 characters (KR) */
.x67-archive .x67-text .x67-statement + .x67-body, .x67-archive .x67-text .x67-body + .x67-body, .x67-archive .x67-text .x67-label + .x67-body { margin-top: 8px; }
.x67-archive .x67-row .x67-statement { max-width: 30em; }
/* the un-mirrored GIFs (baseline exception) keep their place as a quiet 160px band */
.x67-archive .x67-frame:has(> img.is-missing) { width: 100%; height: 160px; }   /* definite width + height: the inline aspect-ratio no longer applies */

/* ---- prose flow (editorial line-break audit) ----
   Presentational source wraps are removed by the script; here the browser is asked to avoid
   stranded last lines and, for Korean, to break only between words. */
.x67-archive .x67-body, .x67-archive .x67-statement { text-wrap: pretty; }
.x67-archive .x67-keep { white-space: nowrap; }   /* last three words of a paragraph stay together */
.x67-archive:lang(ko) .x67-body, .x67-archive:lang(ko) .x67-statement, .x67-archive:lang(ko) .x67-label, .x67-archive:lang(ko) .x67-rail {
  word-break: keep-all; overflow-wrap: anywhere; line-break: strict;
}

/* ---- layout: sticky contents rail (160px, left) + image field bleeding to the right edge ---- */
html.x67.x67-sticky body { overflow: visible !important; }   /* body must not be a scroll container, or the rail cannot stick to the viewport */
.x67-archive .x67-main { display: grid; grid-template-columns: 160px minmax(0, 1fr); column-gap: var(--x67-gap); align-items: start; }
.x67-archive .x67-rail { position: sticky; top: var(--x67-pad); grid-column: 1; color: var(--x67-muted); counter-reset: x67s; }
.x67-archive .x67-rail li { counter-increment: x67s; display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: 4px; }
.x67-archive .x67-rail li + li { margin-top: 4px; }
.x67-archive .x67-rail li::before { content: counter(x67s, decimal-leading-zero); }
.x67-archive .x67-rail a { text-transform: lowercase; }
.x67-archive .x67-rail li.is-active, .x67-archive .x67-rail li.is-active a { color: var(--x67-ink); }
.x67-archive .x67-case { grid-column: 2; max-width: none; min-width: 0; }
.x67-archive .x67-head .x67-meta { margin-top: 20px; grid-template-columns: 120px minmax(0, 1fr); row-gap: 2px; }
.x67-archive .x67-case > .x67-head + * { margin-top: 72px; }
.x67-archive .x67-case > .x67-section, .x67-archive .x67-case > .x67-row.is-text { margin-top: 120px; }
.x67-archive .x67-case > .x67-section + .x67-media, .x67-archive .x67-case > .x67-section + .x67-row,
.x67-archive .x67-case > .x67-row.is-text + .x67-media, .x67-archive .x67-case > .x67-row.is-text + .x67-row { margin-top: 40px; }
.x67-archive .x67-case > * + * { margin-top: 12px; }
.x67-archive .x67-case > .x67-section + .x67-section, .x67-archive .x67-case > .x67-row.is-text + .x67-section { margin-top: 64px; }
.x67-archive .x67-case > .x67-media, .x67-archive .x67-case > .x67-row:not(.is-text) { margin-left: 0; margin-right: calc(-1 * var(--x67-pad)); }
.x67-archive .x67-case > .x67-media.x67-half { max-width: none; margin-right: 50%; }
.x67-archive .x67-row:not(.is-text) { gap: 12px; }
.x67-archive .x67-row.is-text { max-width: calc(2 * 660px + var(--x67-gap)); }

/* ---- back to top: the final rail row ----
   A 10×6 triangle in the number column of a fifth row (same 4px pitch); the whole 160×32 row is the
   hit area; muted at rest, accent on hover, 1px accent focus ring; aria-label "Back to top". */
.x67-top { position: relative; display: flex; box-sizing: border-box; width: 100%; height: 32px; margin: 0; padding: 9px 0 0 2px; border: 0; background: none; cursor: pointer; line-height: 0; color: var(--x67-muted); align-items: flex-start; justify-content: flex-start; }
.x67-top::before { content: ""; display: block; width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 6px solid currentColor; }
.x67-top-end { display: none; }        /* the end-of-page back-to-top row exists only on mobile (see the mobile block) */
.x67-top:hover, .x67-top-end:hover { color: var(--x67-accent); }
.x67-top:focus-visible { outline: 1px solid var(--x67-accent); outline-offset: 2px; }

/* ---- Art detail pages (final): same archive shell; reserved description slot ----
   `.x67-desc` is the empty slot for Jun's future artwork descriptions: it sits where the creative
   overview prose sits (top-left of the field, under the metadata), holds three body lines of
   space on the body measure, and contains nothing. The material / date line keeps the caption
   role (12px muted). With no source sections the rail is only the back-to-top row. */
.x67-archive-art .x67-head .x67-meta-line { margin-top: 10px; }
.x67-archive .x67-case > .x67-desc { max-width: 34em; min-height: 63px; margin-top: 72px; }   /* 3 × 21px body lines, head → slot rhythm */
.x67-archive .x67-case > .x67-desc + .x67-media, .x67-archive .x67-case > .x67-desc + .x67-row { margin-top: 40px; }   /* slot → first image, as section → image */

/* ============================================================================
   MOBILE PRODUCTION PASS — phone 320–767, tablet bridge 768–1023
   Desktop (≥1024px) is untouched: every rule below lives inside a max-width query.
   Below 1024 the portfolio uses one coherent system: the approved IA (identity ·
   descriptor · creative/art · works/about) compressed into a two-row sticky header
   with 44px touch targets, mobile type tokens, and a one-column (phone) or
   two-column (tablet) content layout. No horizontal overflow at any width.
   ============================================================================ */

/* ---------- below desktop: kill the export's fixed desktop canvas ----------
   The Readymag runtime writes `--min-desktop-width: 769px` inline on <html> at render time and its
   stylesheet applies it as a min-width whenever the runtime's own no-touch/desktop class is present
   (so it appears in a plain browser at 390px, and is suppressed under touch emulation — which is how
   it survived the first mobile pass). It propagates to html, body and every full-width child, making
   the document 769px wide at any phone width. Neutralise the variable and the min-width below 1024
   for every shell, including ones where the experiment layer does not activate. Desktop is untouched:
   the whole block sits inside a max-width query, and 769px is below 1024 anyway. */
@media (max-width: 1023px) {
  :root, html, html body {
    --min-desktop-width: 0px !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
  html { width: auto !important; }
  html body { width: auto !important; overflow-x: clip; }
}

/* ---------- below desktop: shared IA, touch, type, safe areas ---------- */
@media (max-width: 1023px) {
  html.x67 {
    --x67-fs: 15px;          /* readable body minimum */
    --x67-fs-lg: 20px;
    --x67-fs-sm: 12px;
    --x67-tap: 44px;         /* minimum touch target */
    --x67-head-h: 89px;      /* two 44px rows + 1px hairline */
  }
  /* body must not be a scroll container, or the sticky header cannot stick */
  html.x67, html.x67 body { overflow: visible !important; }
  .x67-root { overflow-x: clip; font-size: var(--x67-fs); line-height: 1.5; }   /* clip, not hidden: keeps position:sticky working */
  .x67-root, .x67-nav, .x67-main, .x67-col, .x67-case, .x67-gallery, .x67-grid, .x67-grid3, .x67-row {
    max-width: 100%; min-width: 0; box-sizing: border-box;
  }
  .x67-root img, .x67-root iframe { max-width: 100%; }

  /* ----- IA: one compact sticky header, both levels always visible -----
     row 1  jeon jun            creative   art      (identity + global section)
     row 2  based in seoul…     works      about    (descriptor + contextual page)
     Columns align; the rows carry the hierarchy — row 1 ink, row 2 muted. */
  .x67-nav {
    position: sticky; top: 0; left: auto; right: auto; z-index: 5;
    display: grid; grid-template-columns: auto auto auto minmax(0, 1fr);
    align-items: center; column-gap: 18px;
    padding-left: max(var(--x67-pad), env(safe-area-inset-left));
    padding-right: max(var(--x67-pad), env(safe-area-inset-right));
    background: var(--x67-bg); border-bottom: 1px solid #ececec;
    font-size: var(--x67-fs);
  }
  .x67-nav ul { display: contents; }
  .x67-nav li { display: flex; align-items: center; min-height: var(--x67-tap); margin: 0 !important; line-height: 1.2; }
  .x67-nav li a { display: flex; align-items: center; min-height: var(--x67-tap); min-width: var(--x67-tap); }
  .x67-nav .x67-brand { grid-row: 1; grid-column: 1; }
  .x67-nav .x67-tag { grid-row: 2; grid-column: 1; font-size: var(--x67-fs-sm); }
  .x67-nav .x67-nav-global li:nth-child(3) { grid-row: 1; grid-column: 2; }
  .x67-nav .x67-nav-global li:nth-child(4) { grid-row: 1; grid-column: 3; }
  .x67-nav .x67-nav-context li:nth-child(1) { grid-row: 2; grid-column: 2; }
  .x67-nav .x67-nav-context li:nth-child(2) { grid-row: 2; grid-column: 3; }
  .x67-nav .x67-nav-context a { font-size: 13px; color: var(--x67-muted); }
  .x67-nav .x67-nav-context li.is-active a { color: var(--x67-ink); }
  /* active marker: the blue dot leads its own label, optically centred on the text.
     Every switchable item reserves the same 14px marker gutter, so the label never moves between
     active and inactive states and the dot can be neither clipped at x 0 nor read as belonging to
     the row below (which is what putting it under the label caused). */
  .x67-nav .x67-nav-global li:nth-child(3) a,
  .x67-nav .x67-nav-global li:nth-child(4) a,
  .x67-nav .x67-nav-context a { padding-left: 14px; }
  .x67-nav li.is-active a::before {
    left: 0; right: auto; top: 50%; bottom: auto;
    transform: translateY(-50%);
    width: 6px; height: 6px;
    margin-top: -0.5px;                      /* lowercase x-height sits a touch above the line box centre */
  }
  .x67-nav .x67-brand a { font-size: 26px; line-height: 1; top: 0; }
  .x67-nav .x67-tag.is-blank { display: none; }

  /* ----- type: readable minimums, natural wrapping, word-safe Korean ----- */
  .x67-head { max-width: none; }
  .x67-head h1, .x67-about-bio h1 { font-size: var(--x67-fs-lg); line-height: 1.3; }
  .x67-statement, .x67-about-quote blockquote { font-size: 17px; line-height: 1.4; max-width: none; }
  .x67-body, .x67-about-text { font-size: var(--x67-fs); line-height: 1.6; }
  .x67-label, .x67-meta dt, .x67-meta-line { font-size: var(--x67-fs-sm); line-height: 1.4; }
  .x67-keep { white-space: normal; }        /* a 3-word tail must never force overflow on a narrow measure */
  .x67-root p, .x67-root h1, .x67-root dd, .x67-root li { text-wrap: pretty; }
  .x67-root:lang(ko) p, .x67-root:lang(ko) h1, .x67-root:lang(ko) dd, .x67-root:lang(ko) li,
  .x67-root:lang(ko) dt { word-break: keep-all; line-break: strict; overflow-wrap: anywhere; }

  /* ----- HOME: an intentional full-height composition, not an empty canvas -----
     identity at the top of the screen, the two section doors at the bottom; the
     deliberate emptiness between them is the composition. */
  .x67-root[data-kind="home"] .x67-nav { position: static; display: block; border-bottom: 0; padding-top: 0; padding-bottom: 0; }
  .x67-root[data-kind="home"] .x67-nav-global {
    display: flex; flex-direction: column; box-sizing: border-box;
    min-height: 100svh; min-height: 100dvh;
    padding: max(52px, calc(env(safe-area-inset-top) + 28px)) 0 max(44px, calc(env(safe-area-inset-bottom) + 28px));
  }
  .x67-root[data-kind="home"] .x67-brand { min-height: 0; }
  .x67-root[data-kind="home"] .x67-brand a { font-size: 46px; line-height: 1.05; min-height: 0; }
  .x67-root[data-kind="home"] .x67-brand.is-active a::before { display: none; }   /* we are on Home: the identity is the page */
  .x67-root[data-kind="home"] .x67-nav-global li:nth-child(3) { margin-top: auto !important; }
  .x67-root[data-kind="home"] .x67-nav-global li:nth-child(3) a,
  .x67-root[data-kind="home"] .x67-nav-global li:nth-child(4) a { font-size: 26px; min-height: 60px; padding-left: 20px; }
  .x67-root[data-kind="home"] .x67-nav li.is-active a::before { width: 7px; height: 7px; margin-top: -1px; }
  .x67-root[data-kind="home"] .x67-main { display: none; }   /* Home has no content widgets; the composition is the nav */

  /* ----- shared content adjustments ----- */
  .x67-main {
    padding-left: max(var(--x67-pad), env(safe-area-inset-left));
    padding-right: max(var(--x67-pad), env(safe-area-inset-right));
    padding-bottom: calc(var(--x67-pad) * 2 + env(safe-area-inset-bottom));
  }
  .x67-cell figcaption { margin-top: 10px; padding-bottom: 4px; min-height: 34px; }
  .x67-cap-title { font-size: var(--x67-fs); }
  .x67-cap-sub { font-size: var(--x67-fs-sm); }
  .x67-about .x67-frame { max-width: none; }
  .x67-contact li { display: flex; }
  .x67-contact a { display: inline-flex; align-items: center; min-height: var(--x67-tap); }
  .x67-archive .x67-head h1, .x67-archive .x67-statement { font-size: var(--x67-fs-lg); line-height: 1.3; }
  .x67-archive .x67-body, .x67-archive .x67-meta dd { font-size: var(--x67-fs); line-height: 1.6; }
  .x67-archive .x67-meta dt, .x67-archive .x67-label, .x67-archive .x67-meta-line, .x67-archive .x67-rail { font-size: var(--x67-fs-sm); line-height: 1.4; }
  .x67-archive .x67-case > .x67-section[id] { scroll-margin-top: calc(var(--x67-head-h) + 16px); }
}

/* ---------- tablet bridge: 768–1023 ---------- */
@media (min-width: 768px) and (max-width: 1023px) {
  html.x67 { --x67-pad: 32px; --x67-gap: 20px; --x67-blank: 56px; }
  .x67-main { padding-top: var(--x67-blank); }
  .x67-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px var(--x67-gap); }
  .x67-head + .x67-grid { margin-top: 48px; }
  .x67-grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .x67-about .x67-frame { grid-row: span 2; }
  .x67-archive .x67-main { padding-top: 32px; }   /* the rail is gone below 1024: one column, no track */
  .x67-archive .x67-row.is-text { grid-template-columns: minmax(0, 1fr) !important; }
  .x67-archive .x67-row.is-text > * + * { margin-top: 40px; }
  .x67-archive .x67-row.x67-cols-3:not(.is-text), .x67-archive .x67-row.x67-cols-4:not(.is-text),
  .x67-archive .x67-row.x67-cols-5:not(.is-text) { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .x67-archive .x67-case > .x67-section, .x67-archive .x67-case > .x67-row.is-text { margin-top: 72px; }
  .x67-meta-wide { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
  .x67-statement { max-width: 34em; }
  .x67-body, .x67-about-text { max-width: 40em; }
}

/* ---------- phone: ≤767 ---------- */
@media (max-width: 767px) {
  html.x67 { --x67-pad: 20px; --x67-gap: 14px; --x67-blank: 28px; }
  .x67-main { padding-top: calc(var(--x67-blank) + 8px); }
  .x67-body, .x67-about-text, .x67-statement { max-width: none; }

  /* ----- indexes: one column, whole cell tappable ----- */
  .x67-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .x67-head + .x67-grid { margin-top: 40px; }

  /* ----- About: one reading sequence (portrait → name/bio → quote → lists) ----- */
  .x67-grid3 { display: flex; flex-direction: column; gap: 28px; }
  .x67-about .x67-frame { order: 1; }
  .x67-about-bio { order: 2; }
  .x67-about-quote { order: 3; }
  .x67-about-quote blockquote { max-width: none; }
  .x67-about-text { margin-top: 20px; }
  .x67-about-list { margin-top: 56px; }
  .x67-meta { grid-template-columns: 92px minmax(0, 1fr); column-gap: 12px; }
  .x67-meta.x67-meta-wide { grid-template-columns: minmax(0, 1fr); row-gap: 2px; }
  .x67-meta-wide dt { color: var(--x67-muted); font-size: var(--x67-fs-sm); }
  .x67-meta-wide dd + dt { margin-top: 16px; }
  .x67-cv-row { gap: 2px; margin-top: 14px; }

  /* ----- archive details (creative + art): one column ----- */
  .x67-archive .x67-main { display: flex; flex-direction: column; align-items: stretch; padding-top: 16px; }
  .x67-archive .x67-rail, .x67-archive .x67-case { width: auto; min-width: 0; }
  .x67-archive .x67-case { order: 2; grid-column: auto; max-width: none; }
  .x67-archive .x67-head .x67-meta { grid-template-columns: 92px minmax(0, 1fr); column-gap: 12px; row-gap: 4px; margin-top: 16px; }
  .x67-archive .x67-case > .x67-head + * { margin-top: 40px; }
  .x67-archive .x67-case > .x67-section, .x67-archive .x67-case > .x67-row.is-text { margin-top: 56px; }
  .x67-archive .x67-case > .x67-section + .x67-media, .x67-archive .x67-case > .x67-section + .x67-row,
  .x67-archive .x67-case > .x67-row.is-text + .x67-media, .x67-archive .x67-case > .x67-row.is-text + .x67-row { margin-top: 24px; }
  .x67-archive .x67-case > .x67-section + .x67-section, .x67-archive .x67-case > .x67-row.is-text + .x67-section { margin-top: 40px; }
  .x67-archive .x67-case > * + * { margin-top: 10px; }
  /* media: edge to edge, never distorted; rows of many small images stay two-up */
  .x67-archive .x67-case > .x67-media, .x67-archive .x67-case > .x67-row:not(.is-text), .x67-root .x67-bleed {
    margin-left: calc(-1 * var(--x67-pad)); margin-right: calc(-1 * var(--x67-pad));
  }
  .x67-archive .x67-case > .x67-media.x67-half { max-width: none; width: auto; margin-right: calc(-1 * var(--x67-pad)); }
  .x67-archive .x67-row:not(.is-text) { grid-template-columns: minmax(0, 1fr) !important; gap: 10px; }
  .x67-archive .x67-row.x67-cols-3:not(.is-text), .x67-archive .x67-row.x67-cols-4:not(.is-text),
  .x67-archive .x67-row.x67-cols-5:not(.is-text) { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .x67-archive .x67-row.is-text { grid-template-columns: minmax(0, 1fr) !important; max-width: none; }
  .x67-archive .x67-row.is-text > * + * { margin-top: 40px; }
  .x67-half { max-width: none; width: auto; }

  /* the section rail and the end-of-page back-to-top control are handled once for both
     detail families in the ARCHIVE DETAIL block at the end of this file */

  /* Art detail: the reserved description slot stays in the DOM, but holds no empty space yet */
  .x67-archive-art .x67-case > .x67-desc { min-height: 0; max-width: none; margin-top: 0; }
  .x67-archive-art .x67-case > .x67-desc + .x67-media,
  .x67-archive-art .x67-case > .x67-desc + .x67-row { margin-top: 32px; }

  /* the un-mirrored GIFs stay the documented baseline exception: a quiet band, not a hole */
  .x67-archive .x67-frame:has(> img.is-missing) { height: 96px; }
}

/* ---------- ≤380: the tightest phones ---------- */
@media (max-width: 380px) {
  html.x67 { --x67-pad: 16px; }
  .x67-nav { column-gap: 12px; }
  .x67-nav .x67-brand a { font-size: 23px; }
  .x67-archive .x67-head .x67-meta, .x67-meta { grid-template-columns: 84px minmax(0, 1fr); }
}

/* ============================================================================
   ARCHIVE DETAIL BELOW DESKTOP — one centered content column, no rail (final)
   All 26 detail routes at every width under 1024px: the 14 Art routes
   (`.x67-archive-art`) and the 12 Creative case routes (`.x67-archive-case`).

   Desktop composes the field against a 160px contents rail and lets images bleed to the right
   viewport edge, with a lone portrait taking half the field. Carried below 1024 that reads as an
   arbitrary set of widths and offsets: an image flush to one edge and inset from the other, a
   half-width opener, proportional or 2-up rows — media aligned left with dead space on the right.
   Below 1024 every piece of media — frame, image, video iframe, slideshow, whole media row — is
   one box instead: the full content width, centered, with the same --x67-pad gutter left and
   right, 100% wide, block, aspect ratio preserved and never cropped (object-fit: contain).

   The numbered 01–0n section rail is a desktop device too. Below 1024 it is removed outright on
   both families (it was a horizontally scrolling strip on phones and a sticky column on the
   tablet bridge); the selected aligned triangle at the end of the page is the only control left.

   Desktop is untouched: every rule below lives inside the max-width query, and each one is a
   later, at-least-as-specific override of its desktop counterpart, so nothing leaks upward.
   ============================================================================ */
@media (max-width: 1023px) {
  /* One column: the rail stops being a grid track, so the content column IS the media width and
     both gutters are the page padding. */
  .x67-archive .x67-main { display: flex; flex-direction: column; align-items: stretch; }
  .x67-archive .x67-rail { display: none !important; }          /* no section rail below 1024 */
  .x67-archive .x67-case { order: 2; grid-column: auto; width: auto; max-width: 100%; min-width: 0; }
  /* the selected aligned triangle, at the end of the page, in the flow: a full-width 44px row */
  .x67-archive .x67-top-end {
    display: flex; order: 3; width: 100%; min-height: var(--x67-tap);
    margin-top: 40px; padding: 0 0 0 2px; border: 0; border-top: 1px solid #ececec; background: none;
    align-items: center; justify-content: flex-start; cursor: pointer; color: var(--x67-muted); line-height: 0;
  }
  .x67-archive .x67-top-end::before {
    content: ""; display: block; width: 0; height: 0;
    border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 6px solid currentColor;
  }
  .x67-archive .x67-top-end:hover { color: var(--x67-accent); }
  .x67-archive .x67-top-end:focus-visible { outline: 1px solid var(--x67-accent); outline-offset: 2px; }

  /* The media box: identical for a lone frame, a bleed hero, a half-width portrait and a media row.
     Desktop's negative margins, half-width cap, 50% offset and grid span are all neutralised. */
  .x67-archive .x67-case > .x67-media,
  .x67-archive .x67-case > .x67-row:not(.is-text),
  .x67-archive .x67-case > .x67-media.x67-half,
  .x67-archive .x67-case > .x67-media.x67-bleed,
  .x67-archive .x67-case .x67-bleed {
    box-sizing: border-box;
    width: 100%; max-width: 100%; min-width: 0;
    margin-left: 0; margin-right: 0;
    padding-left: 0; padding-right: 0;
    position: static; inset: auto; float: none; transform: none;
    grid-column: auto;
  }
  .x67-archive .x67-case > .x67-media { display: block; }
  /* one image per row: the proportional source columns are an inline style and the 2-up phone/tablet
     rules carry their own !important, so both need out-specifying here */
  .x67-archive .x67-case > .x67-row:not(.is-text),
  .x67-archive .x67-case > .x67-row.x67-cols-2:not(.is-text),
  .x67-archive .x67-case > .x67-row.x67-cols-3:not(.is-text),
  .x67-archive .x67-case > .x67-row.x67-cols-4:not(.is-text),
  .x67-archive .x67-case > .x67-row.x67-cols-5:not(.is-text) {
    display: grid; grid-template-columns: minmax(0, 1fr) !important; gap: var(--x67-gap);
  }
  .x67-archive .x67-case > .x67-row:not(.is-text) > * {
    grid-column: auto; box-sizing: border-box;
    width: 100%; max-width: 100%; min-width: 0; margin: 0; transform: none;
  }

  /* Frames: full content width, their own aspect ratio, never cropped and never distorted.
     The script writes the source ratio inline, so releasing it needs !important; `.x67-film`
     (a Vimeo embed) keeps it, because an iframe has no intrinsic size to be measured by. */
  .x67-archive .x67-frame {
    display: block; position: relative; box-sizing: border-box;
    width: 100%; max-width: 100%; min-width: 0;
    margin-left: 0; margin-right: 0; transform: none;
  }
  .x67-archive .x67-frame:not(.x67-film) { aspect-ratio: auto !important; height: auto; }
  .x67-archive .x67-case img {
    display: block; box-sizing: border-box;
    width: 100%; max-width: 100%; height: auto;
    object-fit: contain; object-position: 50% 50% !important;   /* the inline crop origin cannot offset a contained image */
    transform: none;
  }
  /* slideshow: the first slide sizes the box, the rest cross-fade over it at the same width */
  .x67-archive .x67-slides img { position: absolute; inset: 0; height: 100%; }
  .x67-archive .x67-slides img:first-child { position: relative; inset: auto; height: auto; }
  /* films: the declared ratio is kept and the player fills it exactly */
  .x67-archive .x67-frame.x67-film { height: auto; }
  .x67-archive .x67-frame.x67-film iframe {
    display: block; position: absolute; inset: 0;
    width: 100%; max-width: 100%; height: 100%; border: 0; transform: none;
  }
  /* the un-mirrored GIFs / frame sequences stay the documented baseline exception: a band, not a hole */
  .x67-archive .x67-frame:has(> img.is-missing) { height: 160px; }
}
@media (max-width: 767px) {
  .x67-archive .x67-frame:has(> img.is-missing) { height: 96px; }
}

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .x67-root *, .x67-root *::before { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* Preview feedback: quote role and typography-only Recognition. */
.x67-archive .x67-quote { font-family: var(--x67-font); font-weight: 400; font-style: normal; }
.x67-root .x67-recognitions { display: grid; gap: 6px; text-transform: none; }
.x67-recognition-row {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto;
  align-items: baseline; column-gap: 10px; padding: 6px 0;
  border-bottom: 1px solid #ececec; font-size: 14px; line-height: 1.5;
}
/* Creative detail metadata: one definition-list grammar at every width.
   Keep the established label/value columns and type assets. Space separates
   fields; awards are subrows within the same value column, not a second table.
   About's independent Recognition layout is intentionally scoped out. */
.x67-archive-case .x67-head .x67-meta {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  column-gap: 24px;
  row-gap: 14px;
  align-items: start;
}
.x67-archive-case .x67-head .x67-meta > dt { grid-column: 1; }
.x67-archive-case .x67-head .x67-meta > dd {
  grid-column: 2;
  min-width: 0;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}
.x67-archive-case .x67-meta .x67-recognitions { gap: 10px; }
.x67-archive-case .x67-meta .x67-recognition-row {
  display: block;
  padding: 0;
  border: 0;
  font-size: inherit;
  line-height: inherit;
}
.x67-archive-case .x67-meta .x67-award-result:not(:empty),
.x67-archive-case .x67-meta .x67-award-year { margin-inline-start: 0.6em; }
@media (max-width: 767px) {
  .x67-archive-case .x67-head .x67-meta {
    grid-template-columns: 92px minmax(0, 1fr);
    column-gap: 12px;
  }
}
@media (max-width: 380px) {
  .x67-archive-case .x67-head .x67-meta { grid-template-columns: 84px minmax(0, 1fr); }
}
.x67-sequence-control { position: absolute; z-index: 1; bottom: 4px; left: 16px; width: calc(100% - 32px); height: 44px; margin: 0; touch-action: pan-y; accent-color: #444; }
.x67-sequence-control[hidden] { display: none; }
.x67-sequence-control:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.x67-award-name, .x67-award-result { min-width: 0; overflow-wrap: anywhere; }
.x67-award-year { font-size: 12px; color: var(--x67-muted); font-variant-numeric: tabular-nums; }
@media (max-width: 1023px) {
  /* Only the triangle's explicit target is interactive; the surrounding row is not. */
  .x67-archive .x67-top-end {
    width: 44px; height: 44px; min-height: 44px; flex: 0 0 44px;
    align-self: center; margin: 40px auto 0; padding: 0; border: 0;
    justify-content: center; align-items: center; touch-action: pan-y;
  }
}
@media (max-width: 767px) {
  .x67-recognition-row, .x67-head .x67-recognition-row {
    grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px;
  }
  .x67-award-name { grid-column: 1; grid-row: 1; }
  .x67-award-result { grid-column: 1; grid-row: 2; }
  .x67-award-year { grid-column: 2; grid-row: 1; }
}
