  /* ------------------------------------------------------------------
     Tokens — dark take on the Cargo "Graphic F901" template
  ------------------------------------------------------------------ */
  :root {
    --bg: #050506;                             /* rich black */
    --swatch-1: rgba(255, 255, 255, 0.66);  /* body text   */
    --swatch-2: rgba(255, 255, 255, 0.74);  /* headings    */
    --swatch-3: rgba(255, 255, 255, 0.5);
    --swatch-4: rgba(255, 255, 255, 0.36);  /* captions    */
    --swatch-5: rgba(255, 255, 255, 0.16);  /* rules       */
    --pad: 2rem;
    --gutter: 1rem;
    --font: "Archivo", "Noto Sans Thai", "Helvetica Neue", Arial, sans-serif;   /* close free match for Roc Grotesk */
  }

  * { box-sizing: border-box; }
  html {
    /* Cargo's base size = 1.44% of viewport height (measured on the reference) */
    /* Cargo's base = 1.44vh; capped by width so narrow/tall windows don't balloon,
       and clamped so it stays readable on small laptops and sane on big screens. */
    font-size: clamp(12.25px, calc(min(1.44vh, 0.95vw) + 1.25px), 17.25px);   /* +1.25px for everything */
    background: var(--bg);
    scroll-behavior: smooth;
  }
  /* Lenis smooth scrolling (site.js); its own easing replaces the CSS one */
  html.lenis, html.lenis body { height: auto; }
  .lenis.lenis-smooth { scroll-behavior: auto !important; }
  .lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
  .lenis.lenis-stopped { overflow: hidden; }
  body {
    margin: 0;
    background: var(--bg);
    color: var(--swatch-1);
    font-family: var(--font);
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: 0.02em;
    font-variant-numeric: oldstyle-nums;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  ::selection { background: rgba(255,255,255,.7); color: #050506; }

  a { color: inherit; text-decoration: none; }
  a:hover { opacity: .6; }
  a:active { opacity: .7; }

  h2 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: var(--swatch-2);
  }
  .th { font-weight: 400; }          /* Thai subtitle under a heading */
  p { margin: 0 0 1.25em; }
  i, em { font-style: italic; }

  hr {
    background: var(--swatch-5);
    border: 0;
    height: 1px;
    margin: 0 0 2rem;
  }

  .caption {
    font-size: 1.1rem;
    color: var(--swatch-4);
    line-height: 1.25;
    margin-top: .8em;
  }

  /* ------------------------------------------------------------------
     Pages + column sets (6-col for nav/index, 12-col for projects)
  ------------------------------------------------------------------ */
  .page { padding: var(--pad); }
  .cols {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    column-gap: var(--gutter);
    align-items: start;
  }
  .cols-12 {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gutter);
    align-items: start;
  }
  .c1 { grid-column: 1; } .c2 { grid-column: 2; } .c3 { grid-column: 3; }
  .c4 { grid-column: 4; } .c5 { grid-column: 5; } .c6 { grid-column: 6; }
  .span-2 { grid-column: span 2; }
  .span-6 { grid-column: span 6; }
  .span-8 { grid-column: span 8; }

  /* Header */
  .nav h2 a { display: block; }
  .nav-gap { height: 11.5rem; }
  .index .entry { margin-bottom: 1.375rem; }
  .index .entry:last-child { margin-bottom: 0; }
  .index .meta { color: var(--swatch-1); }

  /* Project pages */
  .project { scroll-margin-top: 0; }
  .project .info .lede { font-style: italic; }
  .project .info .tags { color: var(--swatch-4); }
  .project .info .num { margin-top: 1.25em; }
  .project .info dl { margin: 0 0 1.25em; }
  .project .info dt { color: var(--swatch-4); }
  .project .info dd { margin: 0 0 .5em; }

  /* ------------------------------------------------------------------
     Galleries
  ------------------------------------------------------------------ */
  .grid {
    display: grid;
    grid-template-columns: repeat(var(--columns, 3), minmax(0, 1fr));
    gap: 0 .5rem;
    align-items: start;
  }
  .grid figure { margin: 0 0 1.2em; }
  .stack figure { margin: 0 0 1.2em; }
  figure { margin: 0; }
  .media img,
  .media video {
    display: block;
    width: 100%;
    height: auto;
    background: #0c0c0d;
  }
  .zoomable { cursor: zoom-in; }

  .sound-btn {
    font: inherit;
    color: var(--swatch-4);
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    letter-spacing: inherit;
  }
  .sound-btn:hover { color: var(--swatch-1); }

  /* Slideshow (cursor-zone navigation, like Cargo's gallery-slideshow) */
  .slideshow { position: relative; user-select: none; }
  .slideshow .slides { position: relative; }
  .slideshow .slide {
    display: none;
    margin: 0;
  }
  .slideshow .slide.active { display: block; animation: fade .5s ease; }
  .slideshow .zone {
    position: absolute;
    top: 0; bottom: 0;
    width: 50%;
    z-index: 2;
  }
  .slideshow .zone.prev { left: 0;  cursor: w-resize; }
  .slideshow .zone.next { right: 0; cursor: e-resize; }
  .slideshow .slide img { max-height: 80vh; width: auto; max-width: 100%; }
  .slideshow .count { color: var(--swatch-4); }
  @keyframes fade { from { opacity: 0; } to { opacity: 1; } }

  /* About */
  .about .bio p { margin: 0; text-indent: 2em; }
  .about .bio p:first-child { text-indent: 0; }

  /* Footer */
  footer.page { padding-top: 4rem; }

  /* ------------------------------------------------------------------
     Quick view (lightbox)
  ------------------------------------------------------------------ */
  .quick-view {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: var(--bg);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--pad);
  }
  .quick-view.open { display: flex; animation: fade .2s ease; }
  .quick-view img {
    max-width: 100%;
    max-height: calc(100vh - 6rem);
    object-fit: contain;
    display: block;
  }
  .quick-view .qv-cap { color: var(--swatch-4); margin-top: .8em; text-align: center; min-height: 1.25em; }
  .quick-view .qv-zone { position: absolute; top: 0; bottom: 0; width: 50%; }
  .quick-view .qv-zone.prev { left: 0;  cursor: w-resize; }
  .quick-view .qv-zone.next { right: 0; cursor: e-resize; }
  .quick-view .qv-close {
    position: absolute; top: var(--pad); right: var(--pad);
    z-index: 2; cursor: pointer;
  }
  body.no-scroll { overflow: hidden; }

  /* ------------------------------------------------------------------
     Mobile — columns stack (Cargo's mobile-stack) and type scales up
  ------------------------------------------------------------------ */
  /* Phones + tablets: one fixed base so text is the same size on every device
     (body 13.2px, headings 15.6px) */
  @media (max-width: 900px) {
    html { font-size: 13.25px; }
    :root { --pad: 16px; }
    .cols, .cols-12 { display: block; }
    .cols > *, .cols-12 > * { margin-bottom: 1.375rem; }
    .cols > :empty { display: none; }
    .cols-12 > *, footer .cols > * { grid-column: auto !important; }

    .grid { --columns: 2 !important; }
    .slideshow .slide img { max-height: none; width: 100%; }
    footer .cols { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem var(--gutter); }
    footer .cols > * { margin: 0; }
  }

  /* ------------------------------------------------------------------
     Index work cards — three layouts: one / two / three
  ------------------------------------------------------------------ */
  .card {
    display: grid;
    gap: 1.5rem .5rem;   /* row gap only shows on multi-row cards (e.g. Diage) */
    align-items: start;
  }
  /* Equal column widths, natural photo heights (Cargo-style, never all equal).
     Add style="--r:1/1" on an <img> to crop that one photo to a set ratio. */
  .card.one   { grid-template-columns: 1fr; }
  .card.two   { grid-template-columns: repeat(2, 1fr); }
  .card.three { grid-template-columns: repeat(3, 1fr); }
  .card figure { margin: 0; }
  .card .full { grid-column: 1 / -1; }   /* spans the whole card (wide video) */
  .card .thumb { display: block; overflow: hidden; background: #0c0c0d; }
  .card .thumb:hover { opacity: 1; }
  .card .thumb img,
  .card .thumb video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: var(--r, auto);
    object-fit: cover;
    transition: opacity .25s ease, transform .6s ease;
  }
  .card .thumb:hover img,
  .card .thumb:hover video { opacity: .75; }

  /* Index: masked slide-up reveal (site.js adds .reveal, then .in on scroll).
     The frame opens upward from its bottom edge while the image inside rises
     into place; thumbs in one card follow each other by --i. */
  .card .thumb.reveal {
    clip-path: inset(100% 0 0 0);
    transition: clip-path 1.1s cubic-bezier(.77, 0, .18, 1);
    transition-delay: calc(var(--i, 0) * .12s);
  }
  .card .thumb.reveal img,
  .card .thumb.reveal video {
    transform: translateY(30%);
    transition: opacity .25s ease, transform 1.3s cubic-bezier(.22, 1, .36, 1);
    transition-delay: 0s, calc(var(--i, 0) * .12s);
  }
  .card .thumb.reveal.in { clip-path: inset(0 0 0 0); }
  .card .thumb.reveal.in img,
  .card .thumb.reveal.in video { transform: none; }


  /* Work (detail) pages */
  .dim { color: var(--swatch-4); }
  .page-rule { margin: 0 var(--pad); }
  .work-page .project { padding-top: 2rem; }
  /* Previous / Next sit over the image column */
  .work-nav .prev { grid-column: 5 / span 4; }
  .work-nav .next { grid-column: 9 / -1; text-align: right; }
  .work-nav a { display: inline-block; }

  /* Landing: the index header (nav + list) fills the first screen */
  body:not(.work-page) > header#top {
    min-height: 100vh;
    min-height: 100svh;
  }

  /* ------------------------------------------------------------------
     Sticky site nav (after masakiwatanabe.com): fixed text, no bar,
     inverted against whatever scrolls underneath (difference blend)
  ------------------------------------------------------------------ */
  html { scroll-padding-top: 56px; }
  .site-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 50;                       /* under the quick view (100) */
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: baseline;
    padding: 20px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #d6d6d6;                    /* soft white; difference turns it dark over light images */
    mix-blend-mode: difference;
    pointer-events: none;              /* only the links catch clicks */
  }
  .site-nav a { pointer-events: auto; color: inherit; }
  .site-nav a:hover { opacity: .55; }
  .site-nav .sep { margin: 0 .35em; }
  .site-nav .left   { justify-self: start; }
  .site-nav .left .name { margin-right: 20px; }
  /* the page you are on is greyed out, so the places you can go stand out */
  .site-nav a[aria-current] { opacity: .3; }
  .site-nav a[aria-current]:hover { opacity: .5; }
  .site-nav .menu .sep { opacity: .3; margin: 0 .4em; }
  .site-nav .center { justify-self: center; }
  .site-nav .right  { justify-self: end; grid-column: -2 / -1; }   /* always the last column, even with no centre */
  /* push page content below the bar */
  body > header.page { padding-top: calc(var(--pad) + 34px); }

  .site-nav .right .menu { display: none; }
  .site-nav .right { text-align: right; }

  /* Small laptops / landscape tablets: drop the role so the bar fits one line */
  @media (max-width: 1200px) and (min-width: 901px) {
    .site-nav { grid-template-columns: auto 1fr; column-gap: 24px; }
    .site-nav .center { justify-self: end; }
    .site-nav .right { display: none; }
    .site-nav:not(:has(.center)) .right { display: block; }   /* no filter on this page: room for the role */
  }

  /* Phones + portrait tablets (as on masakiwatanabe.com mobile):
     name left, WORKS / ABOUT right, links pinned along the bottom;
     still see-through with the difference blend */
  .site-nav-bottom { display: none; }
  @media (max-width: 900px) {
    .site-nav {
      grid-template-columns: 1fr auto;
      padding: calc(16px + env(safe-area-inset-top)) 16px 16px;
      font-size: 14px;
    }
    .site-nav .center { display: none; }
    .site-nav .left .menu { display: none; }
    .site-nav .right .role { display: none; }
    .site-nav .right .menu { display: inline; }
    .site-nav .left .name { margin-right: 0; }

    .site-nav-bottom {
      position: fixed;
      left: 0; right: 0; bottom: 0;
      z-index: 50;
      display: flex;
      justify-content: space-between;
      padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
      font-size: 14px;
      font-weight: 600;
      line-height: 1;
      letter-spacing: .05em;
      text-transform: uppercase;
      color: #d6d6d6;
      mix-blend-mode: difference;
      pointer-events: none;
    }
    .site-nav-bottom a { pointer-events: auto; color: inherit; }
    footer.page { padding-bottom: calc(var(--pad) + 40px) !important; }

    body > header.page { padding-top: calc(var(--pad) + 36px); }
    html { scroll-padding-top: 52px; }
  }

  /* ------------------------------------------------------------------
     Works page — all works in a 5-up grid (after masakiwatanabe.com/works):
     each thumb sits centred in an equal box at its own shape,
     uppercase title + small tag centred underneath
  ------------------------------------------------------------------ */
  .works { padding: 74px 20px 20px; }
  .works .posts {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 60px 3.4vw;
  }
  .works .post { display: block; text-align: center; color: var(--swatch-2); }
  .works .post[hidden] { display: none; }
  .works .post:hover { opacity: 1; }
  .works .post-thumb {
    aspect-ratio: 6 / 5;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .works .post-thumb img,
  .works .post-thumb video {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: opacity .25s ease;
  }
  .works .post-thumb video { width: 100%; }
  .works .post:hover .post-thumb img,
  .works .post:hover .post-thumb video { opacity: .7; }
  .works .post-title,
  .works .post-tag {
    margin: 0;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .works .post-title {
    margin-top: 1.4em;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .05em;
    line-height: 1.2;
  }
  .works .post-tag {
    font-size: 12px;
    letter-spacing: .1em;
    line-height: 1.4;
    color: var(--swatch-4);
  }
  .works-page footer.page { padding-top: 6rem; }

  /* active filter: a small dot above the word */
  .site-nav .center a { position: relative; }
  .site-nav .center a.active::before {
    content: "";
    position: absolute;
    left: 50%; top: -6px;
    width: 3px; height: 3px;
    margin-left: -1.5px;
    border-radius: 50%;
    background: currentColor;
  }

  @media (max-width: 1200px) { .works .posts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
  @media (max-width: 900px)  {
    .works { padding: 64px 16px 16px; }
    .works .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 16px; }
    .works .post-title { font-size: 13px; }
    .works .post-tag { font-size: 11px; }
    .works-page .works { padding-top: 70px; }
  }

  /* Works page: footer stays at the bottom of the window even when a
     filter leaves only a few works, and lines up with the 5-up grid */
  body.works-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100svh;
  }
  .works-page .works { flex: 1 0 auto; }
  .works-page footer.page { padding: 6rem 20px 20px; }
  .works-page footer .cols {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    column-gap: 3.4vw;
  }
  .works-page footer .c1 { grid-column: 1; }
  .works-page footer .c3 { grid-column: 2; }
  .works-page footer .c4 { grid-column: 3; }
  .works-page footer .c6 { grid-column: 5; justify-self: end; }
  @media (max-width: 1200px) and (min-width: 901px) {
    .works-page footer .cols { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .works-page footer .c6 { grid-column: 4; }
  }
  @media (max-width: 900px) {
    .works-page footer.page { padding: 4rem 16px 16px; }
    .works-page footer .cols { grid-template-columns: 1fr 1fr; column-gap: 16px; }
    .works-page footer .cols > * { grid-column: auto !important; justify-self: start; }
  }

  /* ------------------------------------------------------------------
     Two-part works (two artists / two pieces at one event): A / B labels
  ------------------------------------------------------------------ */
  .parts { margin: 0 0 1.25em; }
  .parts-head { color: var(--swatch-4); }
  .part-key {
    display: inline-block;
    min-width: 1.5em;
    font-weight: 600;
    color: var(--swatch-2);
  }
  .caption .part-key { color: var(--swatch-2); }
  .part-title {
    border-top: 1px solid var(--swatch-5);
    padding-top: 1rem;
    margin-top: 2.5rem;
  }
  .part-title.first { border-top: 0; padding-top: 0; margin-top: 0; }
  .part-title .sub { font-weight: 400; color: var(--swatch-4); }

  /* Works page: one event with two works = one normal cell that holds both.
     .stack: A across the top, B fills the rest below  (Freshmen Night)
     .split: A left, B right as two tall panels          (Diage) */
  .works .post-thumb.duo { display: grid; gap: 6px; align-items: stretch; }
  .works .duo > div { min-width: 0; min-height: 0; overflow: hidden; }
  .works .duo img,
  .works .duo video {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
  }
  .works .duo.stack { grid-template-rows: auto minmax(0, 1fr); }
  .works .duo.stack .duo-a video,
  .works .duo.stack .duo-a img { height: auto; object-fit: contain; }   /* keep the full wide KV */
  .works .duo.split { grid-template-columns: 1fr 1fr; }

  /* ------------------------------------------------------------------
     About page — links column left, bio + CV right
  ------------------------------------------------------------------ */
  .about-wrap {
    display: grid;
    grid-template-columns: minmax(0, 26%) minmax(0, 1fr);
    column-gap: 6vw;
    padding: 74px 30px 0;
    align-items: start;
  }
  .about-side { position: sticky; top: 74px; }
  .bio-label {
    margin: 0 0 .4em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--swatch-2);
  }
  .link-list { list-style: none; margin: 0; padding: 0; }
  .link-list a {
    display: flex;
    align-items: center;
    gap: .55em;
    padding: .9em 0;
    border-bottom: 1px solid var(--swatch-5);
    letter-spacing: .02em;
  }
  .link-list .lower { text-transform: none; letter-spacing: .02em; }
  .link-list svg {
    width: 1em; height: 1em; flex: none;
    fill: none; stroke: currentColor; stroke-width: 1.2;
  }
  .link-list svg .dot { fill: currentColor; stroke: none; }

  .portrait { margin: 3.5rem 0 0; width: 72%; }
  .portrait img { display: block; width: 100%; height: auto; }
  .portrait-empty {
    aspect-ratio: 3 / 4;
    display: flex; align-items: center; justify-content: center;
    border: 1px dashed var(--swatch-5);
    color: var(--swatch-4);
    text-transform: uppercase; letter-spacing: .05em;
  }

  .about-main { max-width: 62em; }
  .bio p { margin: 0 0 1.25em; }
  .bio-name { font-size: 1.25em; font-weight: 600; color: var(--swatch-2); }
  .cv { margin-top: 3.5rem; }
  .cv h3 { margin: 0 0 1.4em; font-size: 1em; font-weight: 600; color: var(--swatch-2); }
  .cv p { margin: 0; }
  .cv .cv-year { margin-top: 1.25em; font-weight: 600; color: var(--swatch-2); }
  .cv h3 + .cv-year { margin-top: 0; }
  .cv .cv-role { display: block; margin: .15em 0 .7em; color: var(--swatch-4); }   /* role under a project */
  .cv a { text-decoration: underline; text-decoration-color: var(--swatch-5); text-underline-offset: .2em; }

  /* About: Exhibition & Events — ruled table with an inverted header row */
  .cv-table { width: 100%; border-collapse: collapse; font-size: .9em; line-height: 1.35; }
  .cv-table th, .cv-table td { padding: .3em .6em .3em 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--swatch-5); }
  .cv-table th { background: none; color: var(--swatch-4); font-weight: 400; font-size: var(--t-label); text-transform: uppercase; letter-spacing: .07em; padding-left: .4em; border-bottom-color: var(--swatch-4); }   /* header = grey label over a line, like the years */
  .cv-table td:first-child { padding-left: .4em; white-space: nowrap; color: var(--swatch-3); font-variant-numeric: tabular-nums; }
  .cv-table th:first-child { width: 7em; }
  .cv-table th:last-child { width: 38%; }
  .cv-table td:last-child { color: var(--swatch-3); }
  .cv-table a { text-decoration: none; color: var(--swatch-1); }
  .cv-table a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--swatch-4); }
  @media (max-width: 600px) {
    /* phones: role drops under the title instead of a squeezed third column */
    .cv-table th:last-child { display: none; }
    .cv-table tr { display: grid; grid-template-columns: 4.5em 1fr; border-bottom: 1px solid var(--swatch-5); }
    .cv-table th, .cv-table td { border-bottom: 0; }
    .cv-table thead { display: none; }   /* phones: no Period / Title header row */
    .cv-table td:last-child { grid-column: 2; padding-top: 0; }
  }

  @media (max-width: 900px) {
    .about-wrap { grid-template-columns: 1fr; row-gap: 3rem; padding: 64px 16px 0; }
    .about-side { position: static; }
    .portrait { width: 60%; margin-top: 2.5rem; }
  }

  /* Headings in braces: {Practice} {Contact} — add class="brace" to any heading */
  .brace::before { content: "{"; }
  .brace::after  { content: "}"; }

  /* .stack.wide: two ultra-wide videos as full-width strips, centred (Freshmen Night) */
  .works .duo.stack.wide { grid-template-rows: auto auto; align-content: center; }
  .works .duo.stack.wide video,
  .works .duo.stack.wide img { height: auto; object-fit: contain; }

  /* Index card: tall photo on the left spanning two stacked items on the right */
  .card.mosaic { grid-template-columns: 2fr 3fr; grid-template-rows: auto 1fr; }   /* videos sit together at the top */
  .card.mosaic .tall { grid-row: span 2; }

  /* ------------------------------------------------------------------
     Work pages: "More Work" — two-column masonry in the image column
  ------------------------------------------------------------------ */
  .more-work { padding-top: 7rem; }
  .mw-col { grid-column: 5 / -1; }
  .mw-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-top: 1.2rem;
    border-top: 1px solid var(--swatch-5);
    margin-bottom: 1rem;
  }
  .mw-head h3 { margin: 0; font-size: 1rem; font-weight: 600; color: var(--swatch-3); }
  .mw-head a { font-size: 1rem; color: var(--swatch-4); }
  .mw-head a:hover { color: var(--swatch-1); opacity: 1; }
  .mw-grid { columns: 4; column-gap: .6rem; }
  .mw-card { display: block; break-inside: avoid; margin-bottom: 1.2rem; text-align: center; }
  .mw-card:hover { opacity: 1; }
  .mw-card img, .mw-card video { display: block; width: 100%; height: auto; opacity: .45; filter: saturate(.6); transition: opacity .3s ease, filter .3s ease; }
  .mw-card:hover img, .mw-card:hover video { opacity: 1; filter: none; }
  .mw-title { margin: .6em 0 0; font-size: .85rem; color: var(--swatch-4); transition: color .3s ease; }
  .mw-card:hover .mw-title { color: var(--swatch-1); }

  /* Work pages (desktop): title + description pin together while the
     gallery scrolls. site.js gives both columns the same height and top
     (--pin-h, --pin-top), so a description taller than the screen scrolls
     with the page until its end is visible, and both columns pin and
     release as one. */
  @media (min-width: 901px) {
    .work-page #work .cols-12 > .span-2 {
      position: sticky;
      top: var(--pin-top, 64px);
      min-height: var(--pin-h, 0);
    }
  }

  @media (max-width: 900px) {
    .work-nav { display: flex !important; justify-content: space-between; }
    .work-nav > * { margin: 0 !important; }
    .mw-col { grid-column: auto; }
    .mw-grid { columns: 3; }
  }

  /* Work pages: hover Previous / Next to preview that work */
  .work-nav a { position: relative; }
  .work-nav a:hover { opacity: 1; }
  .peek {
    position: absolute;
    top: calc(100% + 12px);
    z-index: 30;
    width: 220px;
    padding: 8px;
    background: var(--bg);
    border: 1px solid var(--swatch-5);
    text-align: left;
    opacity: 0;
    transform: translateY(-4px);
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  .work-nav .prev .peek { left: 0; }
  .work-nav .next .peek { right: 0; }
  .peek img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
  .peek-title { display: block; margin-top: .6em; font-weight: 600; color: var(--swatch-2); line-height: 1.2; }
  .peek-tag {
    display: block; margin-top: .2em;
    font-size: .75em; text-transform: uppercase; letter-spacing: .05em;
    color: var(--swatch-4);
  }
  @media (hover: hover) {
    .work-nav a:hover .peek,
    .work-nav a:focus-visible .peek { opacity: 1; transform: none; }
  }
  @media (hover: none) { .peek { display: none; } }

  /* About: expertise in three groups; main focus bright, supporting skills dim */
  .expertise { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem 2rem; }
  .expertise p { margin: 0; color: var(--swatch-4); }
  .expertise .ex-group {
    margin-bottom: .6em;
    font-size: .75em; text-transform: uppercase; letter-spacing: .08em;
    color: var(--swatch-4);
  }
  .expertise .focus { color: var(--swatch-2); font-weight: 600; }
  @media (max-width: 600px) { .expertise { grid-template-columns: 1fr 1fr; } }

  /* Index footer: on the same 12-col grid as the projects
     (name = title column 1, links = description column 3, nav = image column 5) */
  .site-foot { padding-top: 8rem; }
  .foot-links, .foot-bottom {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gutter);
    align-items: start;
  }
  .foot-links { padding-bottom: 3rem; border-bottom: 1px solid var(--swatch-5); }
  .foot-name { margin: 0; grid-column: 1 / span 2; font-weight: 600; color: var(--swatch-2); }
  .foot-links ul { list-style: none; margin: 0; padding: 0; grid-column: span 2; }
  .foot-links li { margin: 0 0 .9em; font-size: var(--t-body); }
  .foot-links a { display: inline-block; }   /* email may break only at the <wbr> before @ */
  .foot-links a { color: var(--swatch-3); }
  .foot-links a::before { content: "↘ "; color: var(--swatch-4); }
  .foot-links a:hover { color: var(--swatch-1); opacity: 1; }
  .foot-links a.hl { color: var(--swatch-1); font-weight: 600; }
  .foot-bottom { padding-top: 1.2rem; font-size: .9em; color: var(--swatch-4); }
  .foot-bottom > * { grid-column: span 2; }
  .foot-bottom a { color: var(--swatch-4); }
  @media (max-width: 900px) {
    .foot-links, .foot-bottom { grid-template-columns: 1fr 1fr; row-gap: 1rem; }
    .foot-links > *, .foot-bottom > * { grid-column: auto; }
    .foot-name { grid-column: 1 / -1; margin-bottom: 1.4rem; }   /* the name stands apart from the link groups */
    /* bottom line: © and place on the left, Top ↑ at the right end, one row */
    .foot-bottom { display: flex; align-items: baseline; gap: 0 .8rem; flex-wrap: wrap; font-size: .85em; }
    .foot-bottom > a { margin-left: auto; }
  }

  /* Works page filter on phones: centred under the top bar */
  .works-filter { display: none; }
  @media (max-width: 900px) {
    .works-filter {
      display: block;
      text-align: center;
      margin: 0 0 2.5rem;
      font-size: 13px;
      font-weight: 600;
      letter-spacing: .05em;
      text-transform: uppercase;
      color: var(--swatch-2);
    }
    .works-filter .sep { margin: 0 .7em; }
    .works-filter a { position: relative; color: var(--swatch-3); }
    .works-filter a.active { color: var(--swatch-1); }
    .works-filter a.active::before {
      content: ""; position: absolute; left: 50%; top: -8px;
      width: 3px; height: 3px; margin-left: -1.5px; border-radius: 50%;
      background: currentColor;
    }
    .works-page .works { padding-top: 76px; }
  }

  /* Index: "Selected Works" + category picker */
  .sel-intro p { margin: .5em 0 0; color: var(--swatch-4); }
  .pick-all { text-decoration: underline; text-underline-offset: .2em; color: var(--swatch-3) !important; }
  .pick-all:hover { color: var(--swatch-1) !important; }
  /* filtered state */
  .entry { transition: opacity .25s ease; }

  /* Categories with no works yet */
  .entry.soon { color: var(--swatch-4); }
  .empty-cat { display: none; }
  .empty-cat p { margin: 0; padding: 2rem 0 4rem; color: var(--swatch-4); }
  .empty-cat .brace { font-weight: 600; color: var(--swatch-2); }
  .works-empty { display: none; grid-column: 1 / -1; text-align: center; color: var(--swatch-4); padding: 4rem 0; }
  .works-empty.show { display: block; }

  /* ------------------------------------------------------------------
     Index landing: four equal bands (intro/name + three categories)
  ------------------------------------------------------------------ */
  .landing {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: var(--gutter);
    align-items: start;
  }
  .landing .nav-gap { grid-column: 1 / -1; }
  .band { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--gutter); }
  .landing .entry { margin-bottom: 1.375rem; }
  .landing .meta { color: var(--swatch-1); }
  .landing button {
    font: inherit; color: inherit; letter-spacing: inherit; text-align: left;
    background: none; border: 0; padding: 0; cursor: pointer;
  }
  .landing .pick { position: relative; transition: opacity .2s ease; }
  .landing .pick::after {
    content: ""; display: block; width: 0; height: 1px; margin-top: .35em;
    background: currentColor; transition: width .25s ease;
  }
  .landing .pick:hover { opacity: .6; }
  .landing .pick.active::after { width: 100%; }
  body[data-filter] .landing .pick:not(.active) { opacity: .35; }

  @media (max-width: 900px) {
    /* phones: intro, name, then per category: heading, reel strip, list */
    .landing { grid-template-columns: 1fr; row-gap: 0; }
    .landing > * { grid-column: 1 / -1 !important; grid-row: auto !important; }
    .landing .nav-gap { display: none; }
    .landing .sel-intro { order: 1; margin-bottom: 1.6rem; }
    .landing .who { order: 2; margin-bottom: 2.4rem; }
    .landing .band-head.b1 { order: 3; }  .landing .reel.b1 { order: 4; }  .landing .band.b1 { order: 5; }
    .landing .band-head.b2 { order: 6; }  .landing .reel.b2 { order: 7; }  .landing .band.b2 { order: 8; }
    .landing .band-head.b3 { order: 9; }  .landing .reel.b3 { order: 10; } .landing .band.b3 { order: 11; }
    .landing .band-head {
      padding-top: 1rem;
      border-top: 1px solid var(--swatch-5);
      margin-bottom: 1rem;
    }
    .landing .band-head .roman + br { display: none; }
    .landing .band-head .roman { margin-right: .45em; }
    .landing .band { grid-template-columns: 1fr 1fr; margin-bottom: 1.4rem; }
    .landing .entry { margin-bottom: 1.2rem; }
    body:not(.work-page) > header#top { min-height: 0; }
    .landing .reel { position: relative; margin: 0 0 1.2rem !important; aspect-ratio: 16 / 9; }
    .landing .reel > * { opacity: 0; }
    .landing .reel > .on { opacity: .8; }

    /* bottom bar: solid fade so it never sits on top of text */
    .site-nav-bottom {
      mix-blend-mode: normal;
      color: var(--swatch-2);
      background: linear-gradient(to top, var(--bg) 55%, transparent);
      padding-top: 28px;
    }
  }

  /* Index category filter: show only the chosen category's works, dim the other list entries */
  body[data-filter="exhibition"]   .project:not([data-cat="exhibition"]):not([data-also~="exhibition"]),
  body[data-filter="live"]         .project:not([data-cat="live"]):not([data-also~="live"]),
  body[data-filter="illustration"] .project:not([data-cat="illustration"]):not([data-also~="illustration"]) { display: none; }
  body[data-filter="exhibition"]   .entry:not([data-cat="exhibition"]),
  body[data-filter="live"]         .entry:not([data-cat="live"]),
  body[data-filter="illustration"] .entry:not([data-cat="illustration"]) { opacity: .25; }

  /* ------------------------------------------------------------------
     Index landing: each category is a box with a showreel behind it
  ------------------------------------------------------------------ */
  @media (min-width: 901px) {
    .landing { grid-template-rows: auto auto auto; }
    .landing .sel-intro    { grid-column: 1; grid-row: 1; }
    .landing .band-head.b1, .landing .band.b1, .landing .reel.b1 { grid-column: 2; }
    .landing .band-head.b2, .landing .band.b2, .landing .reel.b2 { grid-column: 3; }
    .landing .band-head.b3, .landing .band.b3, .landing .reel.b3 { grid-column: 4; }
    .landing .band-head { grid-row: 1; }
    .landing .nav-gap   { grid-row: 2; }
    .landing .who, .landing .band { grid-row: 3; }
    .landing .reel { grid-row: 1 / 4; align-self: stretch; margin: -1.2rem -1rem -2.4rem; }
    .landing .band-head, .landing .band { position: relative; z-index: 1; pointer-events: none; }
    .landing .band-head button, .landing .band a { pointer-events: auto; }
  }
  .landing .reel {
    position: relative;
    z-index: 0;
    overflow: hidden;
    background: #0b0b0c;
    border: 1px solid var(--swatch-5);
    cursor: pointer;
  }
  .landing .reel::after {               /* darken toward the text so it stays readable */
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(5,5,6,.75), rgba(5,5,6,.35) 45%, rgba(5,5,6,.8));
    transition: opacity .4s ease;
  }
  .landing .reel > img,
  .landing .reel > video {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.2s ease;
  }
  .landing .reel > .on { opacity: .55; }
  .landing .reel:hover > .on,
  .landing .band-head:hover ~ .reel > .on { opacity: .8; }
  body[data-filter] .landing .reel { opacity: .35; transition: opacity .3s ease; }
  body[data-filter="exhibition"]   .landing .reel.b1,
  body[data-filter="live"]         .landing .reel.b2,
  body[data-filter="illustration"] .landing .reel.b3 { opacity: 1; }
  @media (max-width: 900px) { .landing .reel::after { background: rgba(5,5,6,.2); } }

  /* Index default ("view all"): only featured works (max 5, data-featured) */
  body:not([data-filter]) .project[data-cat]:not([data-featured]) { display: none; }   /* index only: work pages have no data-cat */

  /* Landing (desktop): category boxes become full-height panels that
     fill the screen edge to edge, top to bottom, like a split showreel */
  @media (min-width: 901px) {
    body:not(.work-page) > header#top {
      display: flex;
      flex-direction: column;
      padding-bottom: 0;
    }
    body:not(.work-page) > header#top > .landing {
      flex: 1;
      grid-template-rows: auto minmax(8rem, 1fr) auto 4rem;
    }
    .landing .reel {
      grid-row: 1 / -1;
      margin: calc(-1 * (var(--pad) + 34px)) calc(var(--gutter) / -2) 0;
      border: 0;
      border-left: 1px dashed var(--swatch-5);
    }
    .landing .reel.b3 { margin-right: calc(-1 * var(--pad)); }
    .landing .band-head, .landing .band { padding: 0 1rem; }
    .landing .reel::after {
      background: linear-gradient(to bottom, rgba(5,5,6,.55), rgba(5,5,6,.25) 40%, rgba(5,5,6,.7));
    }
    .landing .reel > .on { opacity: .6; }
  }

  /* Landing panels expand on hover (and stay open for the picked category) */
  @media (min-width: 901px) and (hover: hover) {
    .landing {
      grid-template-columns: 1fr 1fr 1fr 1fr;
      transition: grid-template-columns .6s cubic-bezier(.2,.7,.2,1);
    }
    .landing:has(.b1:hover),
    body[data-filter="exhibition"] .landing:not(:has(.b2:hover, .b3:hover))   { grid-template-columns: .85fr 1.8fr .8fr .8fr; }
    .landing:has(.b2:hover),
    body[data-filter="live"] .landing:not(:has(.b1:hover, .b3:hover))         { grid-template-columns: .85fr .8fr 1.8fr .8fr; }
    .landing:has(.b3:hover),
    body[data-filter="illustration"] .landing:not(:has(.b1:hover, .b2:hover)) { grid-template-columns: .85fr .8fr .8fr 1.8fr; }
    /* the open panel shows its reel brighter; the others dim */
    .landing:has(.b1:hover) .reel:not(.b1) > .on,
    .landing:has(.b2:hover) .reel:not(.b2) > .on,
    .landing:has(.b3:hover) .reel:not(.b3) > .on { opacity: .3; }
    .landing:has(.b1:hover) .reel.b1 > .on,
    .landing:has(.b2:hover) .reel.b2 > .on,
    .landing:has(.b3:hover) .reel.b3 > .on { opacity: .85; }
    .landing .band .entry { white-space: nowrap; }
  }

  /* Landing: works lists as vertical carousels (site.js builds .band-track
     with the list twice and loops it) — desktop and phones */
  .landing .band.carousel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 17rem;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
            mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
  }
  .band-col { min-width: 0; overflow: hidden; }
  .band-track { will-change: transform; }
  .band-track .entry { margin: 0 !important; padding-bottom: 1.6rem; }
  /* the work being pointed at slides to the middle; the rest step back */
  .band.carousel.has-focus .entry { opacity: .3; }
  .band.carousel.has-focus .entry.focus { opacity: 1; }
  @media (max-width: 900px) {
    .landing .band.carousel { height: 12rem; padding-bottom: 0; margin-bottom: 1.2rem; }
  }

  /* Showreel: every visual fills its panel edge to edge (cover) */
  .landing .reel > .fg { object-fit: cover; inset: 0; top: 0; left: 0; width: 100%; height: 100%; }
  .landing .reel > .bg { display: none; }

  /* Typography after masakiwatanabe.com (Roc Grotesk): wide, light, evenly spaced */
  body { font-stretch: 108%; letter-spacing: .03em; }
  h2, .bio-name, .mw-head h3, .cv h3 { font-weight: 500; }
  .site-nav, .site-nav-bottom, .works-filter { font-weight: 400; font-stretch: 115%; letter-spacing: .05em; }
  .works .post-title { font-weight: 400; font-stretch: 115%; letter-spacing: .05em; }
  .works .post-tag   { font-stretch: 115%; letter-spacing: .06em; }

  /* Phones: each category's reel sits BEHIND its heading + list (full-bleed panel) */
  @media (max-width: 900px) {
    .landing .sel-intro      { grid-row: 1 !important; }
    .landing .who            { grid-row: 2 !important; }
    .landing .band-head.b1   { grid-row: 3 !important; }  .landing .band.b1 { grid-row: 4 !important; }
    .landing .band-head.b2   { grid-row: 5 !important; }  .landing .band.b2 { grid-row: 6 !important; }
    .landing .band-head.b3   { grid-row: 7 !important; }  .landing .band.b3 { grid-row: 8 !important; }
    .landing .reel.b1 { grid-row: 3 / 5 !important; }
    .landing .reel.b2 { grid-row: 5 / 7 !important; }
    .landing .reel.b3 { grid-row: 7 / 9 !important; }
    .landing .reel {
      aspect-ratio: auto;
      align-self: stretch;
      margin: 0 calc(-1 * var(--pad)) !important;
      border: 0;
      border-top: 1px solid var(--swatch-5);
    }
    .landing .reel::after { background: linear-gradient(to bottom, rgba(5,5,6,.6), rgba(5,5,6,.35) 40%, rgba(5,5,6,.75)); }
    .landing .reel > .on { opacity: .6; }
    .landing .band-head, .landing .band { position: relative; z-index: 1; pointer-events: none; }
    .landing .band-head button, .landing .band a { pointer-events: auto; }
    .landing .band-head { border-top: 0; margin: 0; padding: 1.2rem 0 9rem; }   /* room to see the reel */
    .landing .band { margin: 0; padding-bottom: 1.6rem; }
  }

  /* ==================================================================
     Type hierarchy
       Display  — category headings, work titles (large, medium, tight)
       Body     — descriptions (regular; lede a step larger)
       Label    — details, years, numbers, tags (small caps-style, grey, tracked)
       Caption  — under images (small, grey)
  ================================================================== */
  :root {
    --t-display: 2.1rem;
    --t-title:   1.75rem;
    --t-lede:    1.2rem;
    --t-body:    1rem;
    --t-label:   .8rem;
  }
  .label-style,
  .caption, .tags, .meta, .entry h2, .sel-intro p, .roman,
  .project .info, .cv .cv-year, .ex-group {
    letter-spacing: .07em;
  }

  /* Landing */
  .sel-intro h2 { font-size: var(--t-body); font-weight: 500; }   /* same as the work titles below */
  .sel-intro p  { font-size: var(--t-label); text-transform: uppercase; color: var(--swatch-4); line-height: 1.5; }
  .landing .band-head h2 {
    font-size: var(--t-display); font-weight: 500; line-height: 1.02;
    letter-spacing: -.01em; font-stretch: 112%;
  }
  .landing .roman {
    display: block; margin-bottom: .6rem;
    font-size: .95rem; font-weight: 400; color: var(--swatch-3);
    letter-spacing: .12em; font-stretch: 100%;
  }
  .landing .roman + br { display: none; }
  .landing .entry h2 { font-size: var(--t-label); font-weight: 400; color: var(--swatch-4); margin-bottom: .25em; }
  .landing .entry a  { font-size: var(--t-body); font-weight: 500; color: var(--swatch-1); line-height: 1.2; }
  .landing .meta     { font-size: var(--t-label); text-transform: uppercase; color: var(--swatch-4); }
  .landing .who h2   { font-size: 1.15rem; font-weight: 500; }

  /* Project sections (index + work pages) */
  .project .span-2 > h2:not(.th) {
    font-size: var(--t-title); font-weight: 500; line-height: 1.08;
    letter-spacing: -.01em; font-stretch: 110%;
    color: var(--swatch-1);
  }
  .project .span-2 > h2.th { font-size: 1rem; font-weight: 400; color: var(--swatch-3); margin-top: .5em; }
  .project .info {
    font-size: var(--t-label); text-transform: uppercase; color: var(--swatch-3); line-height: 1.6;
  }
  .project .info p, .project .info dl {
    font-size: var(--t-body); text-transform: none; letter-spacing: .02em;
    color: var(--swatch-1); line-height: 1.45;
  }
  .project .info .lede { font-size: var(--t-lede); font-style: normal; line-height: 1.35; color: var(--swatch-2); }
  .project .info dt { font-size: var(--t-label); text-transform: uppercase; letter-spacing: .07em; color: var(--swatch-4); }
  .project .info .tags { font-size: var(--t-label); color: var(--swatch-4); }
  .project .info .num  { color: var(--swatch-4); }
  .parts { text-transform: none; }
  .parts .parts-head { font-size: var(--t-label); text-transform: uppercase; }
  .part-title { font-size: 1.25rem; font-weight: 500; }

  /* Captions */
  .caption { font-size: var(--t-label); text-transform: uppercase; color: var(--swatch-4); line-height: 1.5; }
  .caption .part-key { color: var(--swatch-2); }

  /* About */
  .bio-name { font-size: 1.25rem; font-weight: 500; }
  .bio p { font-size: var(--t-lede); line-height: 1.45; }
  .cv h3 { font-size: 1.25rem; font-weight: 500; color: var(--swatch-1); }
  .cv .cv-year { font-size: var(--t-label); text-transform: uppercase; color: var(--swatch-4); margin-top: 1.4em; }

  @media (max-width: 900px) {
    :root { --t-display: 1.8rem; --t-title: 1.6rem; --t-label: .88rem; }
    .landing .roman { display: inline; margin: 0 .5em 0 0; }
  }

  /* Simplified: only three text styles — Title, Body, Label.
     The lede reads as normal body text; the Thai subtitle is body-sized. */
  .project .info .lede { font-size: var(--t-body); line-height: 1.45; color: var(--swatch-1); font-style: normal; }
  .project .span-2 > h2.th { font-size: var(--t-body); color: var(--swatch-3); }
  .bio p { font-size: var(--t-body); }
  .project .info p, .project .info dl { color: var(--swatch-1); }

  /* Index projects: one type label under the title; the description column
     starts level with the title */
  .project .span-2 > .kind {
    margin: 1.1em 0 0; font-size: var(--t-label); text-transform: uppercase;
    letter-spacing: .07em; color: var(--swatch-4);
  }
  .project .info > :first-child { margin-top: 0; }

  /* Prev/Next hover preview — styled like a captioned image, not a boxed card */
  .peek {
    width: 200px;
    padding: 0 0 .5rem;
    border: 0;
    background: var(--bg);
    box-shadow: 0 0 0 .5rem var(--bg);   /* thin dark margin so it reads over images */
  }
  .peek img { aspect-ratio: 4 / 3; }
  .peek-title {
    margin-top: .7em;
    font-size: var(--t-label); font-weight: 400;
    text-transform: uppercase; letter-spacing: .07em;
    color: var(--swatch-2); line-height: 1.4;
  }
  .peek-tag {
    margin-top: 0;
    font-size: var(--t-label);
    letter-spacing: .07em;
    color: var(--swatch-4);
  }

  /* Works filter: animated underline instead of a dot */
  .site-nav .center a.active::before,
  .works-filter a.active::before { content: none; }
  .site-nav .center a,
  .works-filter a {
    position: relative;
    background-image: linear-gradient(currentColor, currentColor);
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0% 1px;
    padding-bottom: 3px;
    transition: background-size .35s cubic-bezier(.2,.7,.2,1), color .2s ease;
  }
  .site-nav .center a:hover,
  .works-filter a:hover { background-size: 100% 1px; opacity: 1; }
  .site-nav .center a.active,
  .works-filter a.active { background-size: 100% 1px; }
  .works-filter a, .site-nav .center a { display: inline-block; white-space: nowrap; }
  .site-nav .center { margin-bottom: -3px; }   /* underline room must not make this bar taller than on other pages */
  @media (max-width: 900px) {
    .works-filter { font-size: 12px; letter-spacing: .04em; }
    .works-filter .sep { margin: 0 .45em; }
  }

  /* TH / EN toggle — bottom right, styled like the top bar (difference blend) */
  .lang-toggle {
    position: fixed;
    right: 20px;
    bottom: calc(20px + env(safe-area-inset-bottom));
    z-index: 60;
    padding: 0;
    background: none;
    border: 0;
    cursor: pointer;
    font: inherit;
    font-size: 15px;
    font-stretch: 115%;
    line-height: 1;
    letter-spacing: .05em;
    color: #d6d6d6;
    mix-blend-mode: difference;
  }
  .lang-toggle .sep { margin: 0 .35em; opacity: .5; }
  .lang-toggle [data-l] { opacity: .45; transition: opacity .2s ease; }
  .lang-toggle [data-l].on { opacity: 1; }
  .lang-toggle:hover [data-l] { opacity: .8; }
  .lang-toggle:hover [data-l].on { opacity: 1; }
  html[lang="th"] body { line-height: 1.45; }

  /* Phones: TH / EN takes CONTACT's place in the bottom bar */
  @media (max-width: 900px) {
    .site-nav-bottom a[href^="mailto:"] { visibility: hidden; }
    .lang-toggle {
      right: auto;
      left: 50%;
      transform: translateX(-50%);
      bottom: calc(16px + env(safe-area-inset-bottom));
      font-size: 14px;
      font-weight: 600;
      mix-blend-mode: normal;
      color: var(--swatch-2);
    }
  }

  /* ------------------------------------------------------------------
     Work pages — text side (after korborvor.com):
     kicker · title · details block (bilingual labels) | 01 EN · 02 TH
  ------------------------------------------------------------------ */
  .sl { color: var(--swatch-4); margin: 0 .15em; }
  .w-head .w-kicker {
    margin: 0 0 .9rem;
    font-size: var(--t-label); text-transform: uppercase; letter-spacing: .07em;
    color: var(--swatch-3);
  }
  .w-meta { margin: 2rem 0 1.5rem; border-top: 1px solid var(--swatch-5); }
  .w-meta dt {
    margin: 0; padding-top: .8rem;
    font-size: var(--t-label); text-transform: uppercase; letter-spacing: .07em;
    color: var(--swatch-4);
  }
  .w-meta dd {
    margin: .25rem 0 0; padding-bottom: .8rem;
    border-bottom: 1px solid var(--swatch-5);
    font-size: var(--t-body); color: var(--swatch-1); line-height: 1.4;
  }
  .w-head .tags {
    margin: 0;
    font-size: var(--t-label); text-transform: uppercase; letter-spacing: .07em;
    color: var(--swatch-4);
  }
  .project .info.w-text { text-transform: none; letter-spacing: .02em; }
  .w-text .w-sec {
    margin: 0 0 .9rem;
    font-size: var(--t-label); text-transform: uppercase; letter-spacing: .07em;
    color: var(--swatch-3);
  }
  .w-text .w-sec span { color: var(--swatch-4); margin-right: .6em; }
  .w-text .w-sec ~ .w-sec { margin-top: 2.4rem; padding-top: 1.2rem; border-top: 1px solid var(--swatch-5); }
  .w-text p:not(.w-sec) { font-size: var(--t-body); color: var(--swatch-1); line-height: 1.5; }
  .w-text .num { margin-top: 2rem; font-size: var(--t-label); color: var(--swatch-4); letter-spacing: .07em; }
  .w-meta dd .alt { display: block; margin-top: .15rem; color: var(--swatch-3); }
  /* Work pages: EN/TH copies of the same text; i18n.js sets <html lang>,
     so the TH / EN toggle shows only one of them. */
  html[lang="th"] .l-en, html:not([lang="th"]) .l-th { display: none; }
  .w-text .w-thtitle { font-size: var(--t-body); font-weight: 500; color: var(--swatch-2); margin: 0 0 .8rem; }

  /* Work pages on phones: main image/video first, then text, then the gallery */
  .w-hero { display: none; }
  @media (max-width: 900px) {
    #work > .cols-12 > .w-hero { display: block; margin: 0 0 1.6rem; }
    .w-hero img, .w-hero video { display: block; width: 100%; height: auto; }
    #work .hero-src { display: none; }
  }

  /* Index: email + Instagram as icons */
  .who-icons { display: inline-flex; gap: .9em; margin-top: .3em; }
  .who-icons a { display: inline-flex; color: var(--swatch-2); }
  .who-icons a:hover { color: var(--swatch-1); opacity: 1; }
  .who-icons svg { width: 1.4rem; height: 1.4rem; fill: none; stroke: currentColor; stroke-width: 1.2; }
  .who-icons svg .dot { fill: currentColor; stroke: none; }

  /* About expertise grouped like the index categories */
  .expertise .ex-group {
    font-size: 1.15rem; text-transform: none; letter-spacing: -.005em;
    font-weight: 500; color: var(--swatch-1); margin-bottom: .9em; line-height: 1.15;
  }
  .expertise .ex-num {
    display: block; margin-bottom: .45em;
    font-size: var(--t-label); font-weight: 400; letter-spacing: .12em; color: var(--swatch-3);
  }
  .expertise p:not(.ex-group) { margin-bottom: .25em; }

  /* Category icons (from Identity & resume.ai), in place of I / II / III */
  .cat-icon { display: inline-block; width: 1.9rem; height: 1.9rem; fill: currentColor; vertical-align: -.35em; }
  .expertise .ex-num .cat-icon { width: 1.5rem; height: 1.5rem; }
  /* small icon in front of each work's category label */
  .cat-icon.sm { width: 1.25em; height: 1.25em; margin-right: .55em; vertical-align: -.28em; }

  /* Icon motion: the hexagon and square turn one step (60° / 90°, so they land
     on the same shape) with ease-in-out, then rest; the circles breathe. */
  @media (prefers-reduced-motion: no-preference) {
    .cat-icon { transform-origin: 50% 50%; animation: 3.2s cubic-bezier(.65, 0, .35, 1) infinite; }
    .cat-icon.ic-hex    { animation-name: icon-turn-60; }
    .cat-icon.ic-square { animation-name: icon-turn-90; animation-delay: .5s; }
    .cat-icon.ic-circle { animation: none; }   /* the ring keeps its size; only the core pulses */
    .cat-icon.ic-circle .core {
      transform-box: fill-box; transform-origin: 50% 50%;
      animation: icon-breathe 3.2s cubic-bezier(.65, 0, .35, 1) .25s infinite;
    }
  }
  @keyframes icon-turn-60 { 0%, 15% { transform: rotate(0); }   55%, 100% { transform: rotate(60deg); } }
  @keyframes icon-turn-90 { 0%, 15% { transform: rotate(0); }   55%, 100% { transform: rotate(90deg); } }
  @keyframes icon-breathe { 0%, 100% { transform: scale(1); }  50% { transform: scale(.55); } }

  /* Index: Capabilities block + "Selected Works" heading before the projects.
     Label sits in the title column; the lists start where the images do. */
  .capabilities { padding-top: 0; padding-bottom: 3rem; }
  .capabilities h2 { margin: 0; font-size: var(--t-body); font-weight: 500; color: var(--swatch-1); }   /* = {Selected Works} */
  .cap-list {
    grid-column: 5 / -1;
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gutter);
  }
  .cap-group p { margin: 0; font-size: var(--t-body); font-weight: 500; line-height: 1.55; color: var(--swatch-1); }   /* = work titles */
  .cap-group .cap-head {
    margin-bottom: .9em; font-size: var(--t-label); text-transform: uppercase;
    letter-spacing: .07em; color: var(--swatch-4);
  }
  /* slide-in (site.js wraps each line in .cap-line): the line glides in from
     the left behind a mask, staggered by --d */
  .cap-anim .cap-mask { overflow: hidden; }
  .cap-anim .cap-line {
    display: inline-block;
    transform: translateX(-105%);
    opacity: 0;
    transition: transform .9s cubic-bezier(.22, 1, .36, 1), opacity .5s ease;
    transition-delay: var(--d, 0s);
  }
  .cap-anim.in .cap-line { transform: none; opacity: 1; }
  /* desktop: the same four columns as the landing above, each group under its
     category band and inset like the band text */
  @media (min-width: 901px) {
    .capabilities .cols-12 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .capabilities .cols-12 > .span-2 { grid-column: 1; }
    .cap-list { display: contents; }
    .cap-group { padding: 0 1rem; }
  }
  @media (max-width: 900px) {
    /* phones: the three groups side by side in one row */
    .cap-list { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 12px; }
    /* same type sizes as the landing lists (titles = body, heads = label) */
    .cap-group .cap-head { line-height: 1.4; }
    .cap-group .cap-head .cat-icon { display: block; margin-bottom: .45em; }
  }
  @media (max-width: 600px) {
    /* "Live Visuals & Stage" takes two lines here: give every head that room
       (icon + two lines) so the three lists start level */
    .cap-group .cap-head { min-height: 4.5em; }
  }

  /* Custom cursor (site.js): dot → category icon over a work, plus an action
     label. Difference blend keeps it readable over images and black alike. */
  html.has-cursor, html.has-cursor * { cursor: none !important; }
  .cursor {
    position: fixed; left: 0; top: 0; z-index: 9999; pointer-events: none;
    mix-blend-mode: difference; color: #fff;
    opacity: 0; transition: opacity .25s ease;
  }
  .cursor.on { opacity: 1; }
  .cursor-mark { position: absolute; left: 0; top: 0; }
  .cursor-dot, .cursor .cat-icon {
    position: absolute; left: 0; top: 0;
    transition: opacity .3s ease, scale .35s cubic-bezier(.65, 0, .35, 1);
  }
  .cursor-dot {
    width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: currentColor;
  }
  .cursor .cat-icon {
    width: 24px; height: 24px; margin: -12px 0 0 -12px; vertical-align: 0;
    opacity: 0; scale: .4;
  }
  .cursor.is-action:not(.is-cat) .cursor-dot { scale: 1.6; }
  .cursor.is-cat .cursor-dot { opacity: 0; scale: .4; }
  .cursor.is-cat .cat-icon { opacity: 1; scale: 1; }
  .cursor.down .cursor-mark { scale: .8; }
  .cursor-mark { transition: scale .15s ease; }
  .cursor-label {
    position: absolute; left: 22px; top: 0; transform: translate(-6px, -50%);
    white-space: nowrap; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em;
    font-stretch: 110%; line-height: 1;
    opacity: 0; transition: opacity .25s ease, transform .35s cubic-bezier(.65, 0, .35, 1);
  }
  .cursor.is-cat .cursor-label { left: 26px; }
  .cursor.is-action .cursor-label { opacity: 1; transform: translate(0, -50%); }
  /* over "{ See more }": the dot swells into a disc that inverts the text under it */
  .cursor.is-blob:not(.is-cat) .cursor-dot { scale: 6; transition: opacity .3s ease, scale .5s cubic-bezier(.22, 1, .36, 1); }
  .cursor.is-blob .cursor-label { opacity: 0; }
  /* Expertise: list items rest dimmed; hovering a category lights up only its items */
  .expertise > div { cursor: default; }
  .expertise > div p:not(.ex-group) { color: var(--swatch-4); transition: color .3s ease; }
  .expertise > div:hover p:not(.ex-group) { color: var(--swatch-1); }
  .expertise > div:hover p.focus { color: #fff; }
  @media (hover: none) { .expertise > div p:not(.ex-group) { color: var(--swatch-2); } }

/* About: bio opening animation (site.js adds .intro while it plays) */
.bio.intro .bio-name { overflow: hidden; }
.bio.intro .bio-name .brace,
.bio.intro .ln-in {
  display: block; transform: translateY(110%);
  animation: bio-rise 1s cubic-bezier(.22, 1, .36, 1) var(--d, 0s) forwards;
}
.bio.intro-wait p, .bio.intro-wait .bio-name { visibility: hidden; }
.bio.intro .ln { display: block; overflow: hidden; padding-bottom: .15em; margin-bottom: -.15em; }
.bio.intro .ln-in { white-space: nowrap; }
.bio.intro .bio-name .brace { display: inline-block; }
@keyframes bio-rise { to { transform: none; } }
.about-page .bio .bio-name { margin: 0 0 .9em; }

/* Index landing: hovered work's picture/video over its category's showreel */
.landing .reel > .peek-media {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .45s ease;
}
.landing .reel > .peek-media.on { opacity: .9; }
.landing .reel.peeking > .fg.on { opacity: 0 !important; transition: opacity .45s ease; }

/* Curtain: opening sequence + page transitions (site.js). html.curtain-on is
   set in <head> so the page never flashes before the curtain is up. */
html.curtain-on::after {
  content: ""; position: fixed; inset: 0; z-index: 10000; background: #000;
}
.curtain {
  position: fixed; inset: 0; z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  background: #000; color: #e6e6e6;          /* pure black under the grain */
  pointer-events: all; will-change: transform;
  contain: strict; backface-visibility: hidden;   /* its own GPU layer: the slide never repaints the page */
  overflow: hidden;                 /* keeps the oversized grain layer inside the curtain */
}
.curtain-line {
  display: flex; overflow: hidden; padding: .08em .1em .14em;
  font-size: clamp(2.2rem, 6.2vw, 6.5rem); font-weight: 500; font-stretch: 112%;
  letter-spacing: -.01em; line-height: 1; white-space: nowrap;
}
.curtain-ch { display: inline-block; will-change: transform; }
/* film grain over the curtain (tile made in site.js as --grain); it jumps
   to a new offset a few times a second so it flickers like film */
.curtain::after,
html.curtain-on::before {
  content: ""; position: absolute; inset: -15%;   /* just enough overscan for the jitter; a 4x-screen layer was heavy on the GPU */
  background-image: var(--grain, none);
  opacity: .2; pointer-events: none;
  animation: grain .6s steps(6) infinite;
}
html.curtain-on::before { position: fixed; z-index: 10001; }
@keyframes grain {                  /* offsets stay inside the 15% overscan (11% of 1.3x = 14.3%) */
  0%   { transform: translate(0, 0); }
  17%  { transform: translate(-8%, 5%); }
  33%  { transform: translate(6%, -9%); }
  50%  { transform: translate(-4%, 11%); }
  67%  { transform: translate(10%, 3%); }
  83%  { transform: translate(-11%, -6%); }
  100% { transform: translate(3%, 8%); }
}
.cursor { z-index: 10001; }

/* Phones: the landing fits one screen — intro + name side by side on top,
   then the three categories as three equal panels (reel behind heading + list) */
@media (max-width: 900px) {
  body:not(.work-page) > header#top {
    height: 100vh; height: 100svh;
    display: flex; flex-direction: column;
    padding-bottom: 0;              /* no empty strip before Capabilities */
  }
  /* the last panel's reel runs under the bottom bar; its list stops above it */
  .landing .band.b3 { padding-bottom: calc(52px + env(safe-area-inset-bottom)) !important; }
  body:not(.work-page) > header#top > .landing {
    flex: 1; min-height: 0;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
    column-gap: var(--gutter);
  }
  .landing .sel-intro { grid-column: 1 !important; grid-row: 1 !important; margin: 0 0 .9rem; }
  .landing .who       { grid-column: 2 !important; grid-row: 1 !important; margin: 0 0 .9rem; text-align: right; }
  .landing .band-head.b1 { grid-row: 2 !important; }  .landing .band.b1 { grid-row: 3 !important; }
  .landing .band-head.b2 { grid-row: 4 !important; }  .landing .band.b2 { grid-row: 5 !important; }
  .landing .band-head.b3 { grid-row: 6 !important; }  .landing .band.b3 { grid-row: 7 !important; }
  .landing .reel.b1 { grid-row: 2 / 4 !important; }
  .landing .reel.b2 { grid-row: 4 / 6 !important; }
  .landing .reel.b3 { grid-row: 6 / 8 !important; }
  .landing .band-head .brace br { display: none; }

  /* immersive: each category's reel runs edge to edge across the screen,
     the three panels meeting at a hairline; text keeps its roomy inset */
  .landing .sel-intro, .landing .who { margin-bottom: 1.1rem; }
  /* clear space under the top nav, so the nav links read as their own (clickable) row */
  .landing .sel-intro, .landing .who { margin-top: 1.4rem; }
  /* the top nav and bottom bar already have About: phones keep only the icons here */
  .landing .who > a[href="about.html"], .landing .who > a[href="about.html"] + br { display: none; }
  .landing .who .who-icons { margin-top: 0; }
  .landing .reel {
    margin: 0 calc(-1 * var(--pad)) !important;
    border: 0;
    border-top: 1px solid var(--swatch-5);
  }
  .landing .band-head { margin-top: 0; padding: 1.1rem 12px .6rem; }
  .landing .band-head h2 { font-size: 1.25rem; }
  .landing .band,
  .landing .band.carousel { height: auto; min-height: 0; align-self: stretch; margin: 0; padding: 1.4rem 12px .6rem; }
  .landing .band-track .entry { padding-bottom: 1.3rem; }
  .landing .entry h2 { display: none; }            /* index numbers: clutter at this size */
}
/* phones with reduced motion (no carousel): the static list also keeps to the left half */
@media (max-width: 900px) and (prefers-reduced-motion: reduce) {
  .landing .band { grid-template-columns: 1fr; width: 50%; overflow: hidden; }
}
/* phones: the wide, short reel panels crop each visual top and bottom;
   --pos-m (set per item in index.html) keeps faces and subjects in frame */
@media (max-width: 900px) {
  .landing .reel > .fg { object-position: var(--pos-m, 50% 50%); }
}
/* phones: the section dividers on the index run edge to edge, like the landing panels */
@media (max-width: 900px) {
  body:not(.work-page) main > .page { padding-left: 28px; padding-right: 28px; }   /* text sits in from the edge */
  body:not(.work-page) main > .page > hr { margin-left: -28px; margin-right: -28px; }
}
/* phones (index): the pictures lead — no description text under the title */
@media (max-width: 900px) {
  body:not(.work-page) .project .info { display: none; }
  body:not(.work-page) .project .cols-12 > .span-2:first-child { margin-bottom: 1rem; }
}
/* phones (index): pictures a little larger (three-up cards become two-up)
   and always shown at their own full ratio, never cropped */
@media (max-width: 900px) {
  /* three-up cards: two balanced masonry columns (pictures stack down each
     column at full ratio, so no picture is left alone beside an empty gap) */
  body:not(.work-page) .card.three { display: block; column-count: 2; column-gap: 8px; }
  body:not(.work-page) .card.three > figure { break-inside: avoid; margin-bottom: 8px; }
  /* pictures are the focus: they run close to the screen edges (16px margin),
     the first picture of a three-up card spans the full width, and the tags stay but tiny */
  body:not(.work-page) .project .card { margin-left: -12px; margin-right: -12px; row-gap: 8px; }   /* 16px from the screen edge */
  body:not(.work-page) .card.three > figure:first-child { column-span: all; }
  /* two-picture cards: both full width, so every project's lead pictures are the same size */
  body:not(.work-page) .card.two { grid-template-columns: 1fr; }
  body:not(.work-page) .card .caption {
    margin-top: 3px; font-size: 9px; letter-spacing: .08em; color: var(--swatch-5);
  }
  /* Freshmen Night: its two LED-wall videos are ~4.3:1, so the card stacks full width */
  body:not(.work-page) .card.mosaic { grid-template-columns: 1fr; grid-template-rows: auto; }
  body:not(.work-page) .card.mosaic .tall { grid-row: auto; }
  body:not(.work-page) .card .thumb img,
  body:not(.work-page) .card .thumb video { aspect-ratio: auto !important; }
}

/* Index: "{ See more }" to all works, after the last project — small,
   centred and grey like the other brace headings.
   Scrolling in: the line rises out of a mask. Idle: the braces breathe
   apart now and then. Hover: the braces open outward, the words brighten. */
.see-more { padding-top: 3rem; padding-bottom: 0; text-align: center; }
.see-more > hr { margin: 4rem 0 0; }   /* the divider closes the section, before the footer */
.see-more-link {
  display: inline-block;
  font-size: 1.4rem; font-weight: 400; line-height: 1.4;
  color: var(--swatch-3);
  transition: color .4s ease;
}
.see-more-link:hover { opacity: 1; color: var(--swatch-1); }
.sm-mask { display: inline-block; overflow: hidden; vertical-align: bottom; padding: 0 .8em; margin: 0 -.8em; }   /* side room so the braces never clip */
.sm-text { display: inline-flex; align-items: baseline; }
.sm-b { display: inline-block; transition: transform .5s cubic-bezier(.65, 0, .35, 1); }
.sm-word { margin: 0 .35em; }
.see-more-link:hover .sm-b:first-child { transform: translateX(-.45em); }
.see-more-link:hover .sm-b:last-child  { transform: translateX(.45em); }

/* letter roll on hover (site.js splits the words into .sm-ch letters):
   each letter slides up and out as its copy rolls in from below, one after
   another. The original words stay in .sm-src for screen readers and TH/EN. */
.sm-rolled .sm-src {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.sm-letters { display: inline-flex; white-space: pre; }
.sm-ch { display: inline-block; overflow: hidden; height: 1.4em; line-height: 1.4; vertical-align: bottom; }
.sm-ch > span {
  display: block;
  transition: transform .6s cubic-bezier(.65, 0, .35, 1);
  transition-delay: calc(var(--i, 0) * 28ms);
}
.sm-ch > span::after { content: attr(data-ch); display: block; }
.see-more-link:hover .sm-ch > span { transform: translateY(-50%); }

/* scroll-in (site.js adds .sm-anim, then .in) */
.sm-anim .sm-text { transform: translateY(105%); transition: transform 1.1s cubic-bezier(.22, 1, .36, 1); }
.sm-anim.in .sm-text { transform: none; }
.sm-anim.in .see-more-link:not(:hover) .sm-b:first-child { animation: sm-breathe-l 3.2s ease-in-out 1.4s infinite; }
.sm-anim.in .see-more-link:not(:hover) .sm-b:last-child  { animation: sm-breathe-r 3.2s ease-in-out 1.4s infinite; }
@keyframes sm-breathe-l { 0%, 60%, 100% { transform: none; } 30% { transform: translateX(-.25em); } }
@keyframes sm-breathe-r { 0%, 60%, 100% { transform: none; } 30% { transform: translateX(.25em); } }
@media (max-width: 900px) { .see-more { padding-top: 2.5rem; } .see-more > hr { margin-top: 3rem; } }
/* About: the Capabilities block, same as the index (title = body size) */
.cv .cap-title { font-size: 1.25rem; font-weight: 500; color: var(--swatch-1); }
.cv .cap-list { grid-column: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gutter); }
.cv .cap-group { padding: 0; }
/* desktop / laptop: the intro and section headings keep their original, larger size */
@media (min-width: 901px) {
  .sel-intro h2, .capabilities h2 { font-size: 1.15rem; }
}
/* phones: the category icon sits in proportion with its heading (one cap-height-ish square) */
@media (max-width: 900px) {
  .landing .band-head .cat-icon { width: 1.2rem; height: 1.2rem; vertical-align: -.18em; }
  .landing .band-head .roman { margin-right: .4em; }
}
/* Khon: low-res (960px) clips sit two across on desktop instead of full width;
   on phones one across is already near their own size */
@media (max-width: 900px) { .grid.video-grid { --columns: 1 !important; } }

/* Work pages: photos stacked on the left, a portrait video on the right filling the same height */
.split-video { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.2rem; align-items: stretch; }
.split-video > .pf-video { display: flex; flex-direction: column; margin: 0 0 1.2em; }
.split-video > .pf-video video { flex: 1 1 0; min-height: 0; height: 100%; object-fit: cover; }
.split-video figure { margin: 0 0 1.2em; }
/* Phones: if hiding the hero's original leaves one photo alone in its row, let it span the full width */
@media (max-width: 900px) { #work .grid > .hero-src:first-child + figure:last-child { grid-column: 1 / -1; } }

/* Laptop / desktop index: each project's name + description sit in the first
   column (under {Capabilities}), its pictures fill the rest from the Exhibition line */
@media (min-width: 901px) {
  body:not(.work-page) .project .cols-12 > .span-2:first-child { grid-column: 1 / 4; grid-row: 1; padding-right: 1.5rem; }   /* keeps long names off the pictures */
  body:not(.work-page) .project .cols-12 > .info { grid-column: 1 / 4; grid-row: 2; margin-top: 1.8rem; padding-right: 3rem; }
  body:not(.work-page) .project .info p {
    margin: 0 0 1.1em; font-size: var(--t-body); font-weight: 500; line-height: 1.7; letter-spacing: 0;
    color: var(--swatch-1); font-style: normal;
  }
  body:not(.work-page) .project .cols-12 > .span-8 { grid-column: 4 / -1; grid-row: 1 / span 3; }
  body:not(.work-page) .project .cols-12 { grid-template-rows: auto auto 1fr; }
}
/* laptop / desktop landing: the category headings sit a little lower inside their panels */
@media (min-width: 901px) {
  body:not(.work-page) .landing .band-head { padding-top: 2.6rem; }
  /* {Selected Works} drops to the same line as the category names */
  body:not(.work-page) .landing .sel-intro { padding-top: 3.5rem; display: flex; flex-direction: column-reverse; justify-content: flex-end; }   /* {Selected Works} on the category-name line */
  body:not(.work-page) .landing .sel-intro p { margin: 0 0 .5em; }   /* "Choose a category" sits above it */
  /* {Selected Works} at the same size and cut as the category names */
  body:not(.work-page) .landing .sel-intro h2 {
    font-size: var(--t-display); font-weight: 500; line-height: 1.02;
    letter-spacing: -.01em; font-stretch: 112%;
  }
}
/* Nav bar links: the same growing underline as the Works filter (hover draws it,
   the page you are on keeps it) */
.site-nav .left a, .site-nav .right a, .site-nav-bottom a {
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  padding-bottom: 3px; margin-bottom: -3px;     /* room for the line without moving the bar */
  transition: background-size .35s cubic-bezier(.2,.7,.2,1), opacity .2s ease;
}
.site-nav .left a:hover, .site-nav .right a:hover, .site-nav-bottom a:hover { background-size: 100% 1px; opacity: 1; }
.site-nav a[aria-current], .site-nav-bottom a[aria-current] { background-size: 100% 1px; }
.site-nav a[aria-current]:hover { opacity: .3; }
/* Phones, work pages: same rhythm as the index — the first picture of each gallery
   group spans the full width, the rest stack in two columns at their own ratio,
   with small dim tags (Khon's video grid keeps its own one-column layout) */
@media (max-width: 900px) {
  /* rows of two at one shared height: site.js sets each picture's share of the row (--w)
     from its ratio, so both keep their full shape and there are no gaps */
  .work-page #work .grid:not(.video-grid) { display: flex; flex-wrap: wrap; gap: 0 8px; align-items: flex-start; }
  .work-page #work .grid:not(.video-grid) > figure { width: var(--w, calc(50% - 4px)); margin: 0 0 10px; }
  .work-page #work .grid:not(.video-grid) > figure.m-full { width: 100%; }   /* the lead picture, and a last one that would sit alone */
  .work-page #work .media .caption { margin-top: 3px; font-size: 9px; letter-spacing: .08em; color: var(--swatch-5); }
  .work-page #work .grid:not(.video-grid) > figure .caption { margin-bottom: 6px; }
}
/* Nav: the page you are on is bright and underlined; the other places are dimmed
   and brighten on hover */
.site-nav a[aria-current], .site-nav a[aria-current]:hover { opacity: 1; }
.site-nav .menu a:not([aria-current]), .site-nav .left .name:not([aria-current]) { opacity: .4; }
.site-nav .menu a:not([aria-current]):hover, .site-nav .left .name:not([aria-current]):hover { opacity: 1; }
/* Work pages: "Overview" is a label like CLIENT / PARTNER and EXPERTISE above it */
.work-page .project .w-text p.w-sec {
  margin: 0 0 .35rem; font-size: var(--t-label); text-transform: uppercase;
  letter-spacing: .07em; line-height: 1.5; color: var(--swatch-4);
}

/* Work pages: roomier text column (rows breathe like a spec sheet) */
.work-page .w-head h2 { margin-bottom: .4rem; }
.work-page .w-meta { margin: 2.6rem 0 2rem; }
.work-page .w-meta dt { padding-top: 1.3rem; }
.work-page .w-meta dd { margin-top: .55rem; padding-bottom: 1.3rem; line-height: 1.6; }
.work-page .project .w-text p.w-sec { margin-bottom: 1rem; }
.work-page .w-text p:not(.w-sec) { line-height: 1.75; margin: 0 0 1.4em; }
@media (min-width: 901px) { .work-page .w-head, .work-page .info.w-text { padding-right: 1.6rem; } }
body.work-page .project .span-2.w-head > h2:not(.th) { font-size: clamp(1.8rem, 2.2vw, 2.5rem); line-height: 1; letter-spacing: -.015em; font-stretch: 110%; margin: 0 0 .8rem; overflow-wrap: break-word; }
body.work-page .w-head .w-kicker { margin-bottom: 1.4rem; }
@media (max-width: 900px) { body.work-page .project .span-2.w-head > h2:not(.th) { font-size: 2rem; } }
/* more air in the work-page text column */
body.work-page .w-meta { margin: 3.4rem 0 2.6rem; }
body.work-page .w-meta dt { padding-top: 2rem; }
body.work-page .w-meta dd { margin-top: .9rem; padding-bottom: 2rem; line-height: 1.75; }
body.work-page .project .w-text p.w-sec { margin-bottom: 1.6rem; }
body.work-page .w-text p:not(.w-sec) { line-height: 1.9; margin: 0 0 1.8em; }
@media (min-width: 901px) { body.work-page .w-head { padding-right: 1rem; } body.work-page .info.w-text { padding-right: 2.4rem; } }
body.work-page .w-meta dd.names-2 { columns: 2; column-gap: 1rem; }
@media (min-width: 901px) and (max-width: 1599px) { body.work-page .w-meta dd.names-2 { columns: 1; } }

/* Landing: running list in one column, each work on one larger line */
.landing .band.carousel { grid-template-columns: minmax(0,1fr); min-width: 0; }
.landing .band .entry { display: flex; align-items: baseline; gap: .45em; white-space: nowrap; min-width: 0; }
.landing .band .entry h2, .landing .band .entry > br, .landing .band .entry a br { display: none; }
.landing .band .entry a { font-size: 1.25rem; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.landing .band .entry .meta { flex: none; font-size: var(--t-label); color: var(--swatch-4); }
.landing .band-track .entry { padding-bottom: 2.1rem !important; }
@media (max-width: 900px) {
  .landing .band.carousel { width: auto; }
  .landing .band .entry a { font-size: 1.15rem; }
}

/* About: more air between lines and groups */
.about-page .bio p { line-height: 1.8; margin-bottom: 1.6em; }
.about-page .cv { margin-top: 3.6rem; }
.about-page .cv h3 { margin-bottom: 1.6em; }
.about-page .cv p { line-height: 1.8; }
.about-page .cv .cv-year { margin-top: 2.4em; margin-bottom: .4em; }
.about-page .cv h3 + .cv-year { margin-top: 0; }
.about-page .cap-group p { line-height: 2; }
.about-page .cap-group .cap-head { margin-bottom: .8em; }
.about-page .cv-table { line-height: 1.6; }
.about-page .cv-table th, .about-page .cv-table td { padding-top: .95em; padding-bottom: .95em; }
.about-page .link-list li { margin-bottom: .6em; }
.about-page .portrait { margin-top: 3rem; }

/* Index type system: four steps only
   Display  = category names, {Selected Works}, project titles
   Title    = 1.25rem: running-list works, {Capabilities}, About link
   Body     = var(--t-body): descriptions, capability items, Thai subtitles
   Label    = var(--t-label) uppercase grey: kickers, years, captions, small heads */
body:not(.work-page) .project .span-2 > h2:not(.th) { font-size: var(--t-display); line-height: 1.02; letter-spacing: -.01em; font-stretch: 112%; }
body:not(.work-page) .project .span-2 > h2.th { font-size: var(--t-body); font-weight: 500; color: var(--swatch-3); margin-top: .6em; }
body:not(.work-page) .capabilities h2 { font-size: 1.25rem; }
body:not(.work-page) .landing .who a { font-size: 1.25rem; }
body:not(.work-page) .project .info,
body:not(.work-page) .cap-group .cap-head,
body:not(.work-page) .landing .band .entry .meta,
body:not(.work-page) .project .caption { font-size: var(--t-label); font-weight: 400; letter-spacing: .07em; text-transform: uppercase; color: var(--swatch-4); }
body:not(.work-page) .cap-group p:not(.cap-head),
body:not(.work-page) .project .info p { font-size: var(--t-body); font-weight: 500; color: var(--swatch-1); }

/* Index (laptop): the category label sits at the bottom of the text column,
   on the line of the picture captions. Rows: title | Thai title | text | label */
@media (min-width: 901px) {
  body:not(.work-page) .project .cols-12 { grid-template-rows: auto auto auto 1fr; }
  body:not(.work-page) .project .cols-12 > .span-2:first-child { display: contents; }
  body:not(.work-page) .project .cols-12 > .span-2:first-child > * { grid-column: 1 / 4; padding-right: 1.5rem; }
  body:not(.work-page) .project .cols-12 > .span-2:first-child > h2:not(.th) { grid-row: 1; margin: 0; }
  body:not(.work-page) .project .cols-12 > .span-2:first-child > h2.th { grid-row: 2; }
  body:not(.work-page) .project .cols-12 > .span-2:first-child > br { display: none; }
  body:not(.work-page) .project .cols-12 > .span-2:first-child > .kind { grid-row: 4; align-self: end; margin: 0; }
  body:not(.work-page) .project .cols-12 > .info { grid-row: 3; }
  body:not(.work-page) .project .cols-12 > .span-8 { grid-row: 1 / span 4; }
}

/* Work pages keep the earlier, smaller text size */
html:has(body.work-page) { font-size: clamp(11px, min(1.44vh, 0.95vw), 16px); }
@media (max-width: 900px) {
  html:has(body.work-page) { font-size: 12px; }
  .work-page #work .media .caption { font-size: 8px; }
}

/* Scrollbar: thin, dark, in the site's greys */
@supports not selector(::-webkit-scrollbar) { html { scrollbar-width: thin; scrollbar-color: #fff var(--bg); } }
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-button { display: none; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #fff; border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: #fff; }
::-webkit-scrollbar-corner { background: var(--bg); }

/* Running-list works = capability items (body size) */
.landing .band .entry a { font-size: var(--t-body); letter-spacing: .033em; }
@media (max-width: 900px) { .landing .band .entry a { font-size: var(--t-body); } }
.landing .band-track .entry { padding-bottom: 1.6rem !important; }
@media (min-width: 901px) { .about-page .portrait { width: 66%; } }

/* One body style for paragraphs: the About page follows the index descriptions */
body:not(.work-page) .project .info p,
.about-page .bio p,
.about-page .cv p:not(.cv-year),
.about-page .cv-table { font-size: var(--t-body); font-weight: 500; line-height: 1.7; letter-spacing: 0; color: var(--swatch-1); }

/* About on phones: tighter lines and groups */
@media (max-width: 900px) {
  .about-page .bio p,
  .about-page .cv p:not(.cv-year),
  .about-page .cv-table { line-height: 1.45; }
  .about-page .bio p { margin-bottom: 1em; }
  .about-page .cap-group p { line-height: 1.5; }
  .about-page .cv { margin-top: 2.6rem; }
  .about-page .cv h3 { margin-bottom: 1.1em; }
  .about-page .cv .cv-year { margin-top: 1.4em; }
  .about-page .cv-table th, .about-page .cv-table td { padding-top: .55em; padding-bottom: .55em; }
  .about-page .link-list li { margin-bottom: 0; }
}
@media (max-width: 900px) {
  .landing .band .entry a { font-size: calc(var(--t-body) * .85); }
  .landing .band .entry .meta { font-size: calc(var(--t-label) * .9); }
  .landing .band-track .entry { padding-bottom: 1.15rem !important; }
}
/* phones: the running list shows two works at a time */
@media (max-width: 900px) {
  .landing .band.carousel { height: 6.4rem !important; min-height: 0 !important; padding-top: 0 !important; padding-bottom: 0 !important; margin: .9rem 0 1.1rem !important; align-self: start !important;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 75%, transparent); mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 75%, transparent); }
  .landing .band-track .entry { padding-bottom: 1.7rem !important; }
}
@media (max-width: 900px) {
  .landing .band.carousel { height: 4.4rem !important; align-self: end !important; margin: 0 0 1.6rem !important;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent); }
  .landing .band-track .entry { padding-bottom: .75rem !important; }
}
/* Works filter: always one line; the type shrinks on narrow phones */
@media (max-width: 900px) {
  .works-filter { white-space: nowrap; font-size: min(12px, 2.95vw); }
}

/* Computers: pictures zoom in a little on hover */
@media (hover: hover) and (min-width: 901px) {
  /* index cards */
  .card .thumb img, .card .thumb video { transition: opacity .25s ease, transform .9s cubic-bezier(.22, 1, .36, 1); }
  .card .thumb:hover img, .card .thumb:hover video,
  .card .thumb.reveal.in:hover img, .card .thumb.reveal.in:hover video { transform: scale(1.06); transition-delay: 0s; }
  /* works page */
  .works .post-thumb { overflow: hidden; }
  .works .post-thumb img, .works .post-thumb video { transition: opacity .25s ease, transform .9s cubic-bezier(.22, 1, .36, 1); }
  .works .post:hover .post-thumb img, .works .post:hover .post-thumb video { transform: scale(1.06); }
  /* work pages: the caption covers the bottom edge, the figure clips the rest */
  .work-page #work figure.media { overflow: hidden; }
  .work-page #work figure.media > img, .work-page #work figure.media > video { transition: transform .9s cubic-bezier(.22, 1, .36, 1); }
  .work-page #work figure.media:hover > img, .work-page #work figure.media:hover > video { transform: scale(1.04); }
  .work-page #work figure.media .caption { position: relative; z-index: 1; background: var(--bg); margin-top: 0; padding-top: .8em; }
}

/* Text appearing: slides up from behind a mask (site.js adds .tx, then .tx-in) */
.tx { transform: translateY(1.2em); clip-path: inset(-.3em -.3em 100% -.3em); }
.tx.tx-in.tx-done { clip-path: none; transition: none; }
.tx.tx-in { transform: none; clip-path: inset(-.3em -.3em -.3em -.3em);
  transition: transform .9s cubic-bezier(.22, 1, .36, 1) var(--tx-d, 0s), clip-path .9s cubic-bezier(.22, 1, .36, 1) var(--tx-d, 0s); }
@media (prefers-reduced-motion: reduce) { .tx { transform: none; clip-path: none; } }

/* Phones: the bottom bar's dark fade reaches past the screen edge, so pages
   scrolling under Safari's see-through toolbar (iOS 26) stay covered */
@media (max-width: 900px) {
  .site-nav-bottom { background: none !important; isolation: isolate; }
  .site-nav-bottom::before {
    content: ""; position: absolute; z-index: -1; pointer-events: none;
    left: 0; right: 0; top: 0; bottom: -160px;
    background: linear-gradient(to top, var(--bg) calc(100% - 40px), rgba(5,5,6,.85) calc(100% - 22px), transparent);
  }
}

/* Sound button: reads like the caption text (no border), speaker icon in front,
   sitting on the same baseline as the caption words */
.sound-btn { -webkit-appearance: none; appearance: none; outline: 0; box-shadow: none; border: 0 !important; border-radius: 0 !important;
  background: none !important; padding: 0 !important; margin: 0; display: inline; vertical-align: baseline;
  font: inherit; font-weight: inherit; text-transform: inherit; letter-spacing: inherit; line-height: inherit; color: var(--swatch-2) !important; }
.sound-btn svg { display: inline-block; width: 1.15em; height: 1.15em; vertical-align: -.22em; margin-right: .3em; }
.sound-btn span { vertical-align: baseline; }
.sound-btn:hover { color: #fff !important; }
.sound-btn.on { color: #fff !important; }

/* Footer arrows: plain text glyph, never the iOS emoji */
.foot-links a::before { content: "\2198\FE0E\00a0"; font-family: "Archivo", "Helvetica Neue", Arial, sans-serif; font-variant-emoji: text; }

/* Phones: About lives only in the bottom bar */
@media (max-width: 900px) {
  .site-nav .right .menu .sep, .site-nav .right .menu a[href$="about.html"] { display: none; }
}

/* Phones, index Capabilities: one group per row (label left, items right),
   so long names never squeeze into a narrow column */
@media (max-width: 900px) {
  .capabilities .cap-list, .cv .cap-list { display: grid; grid-template-columns: 1fr; row-gap: 1.6rem; }
  .capabilities .cap-group, .cv .cap-group { display: grid; grid-template-columns: 42% 1fr; column-gap: 12px; align-items: start; padding: 1.2rem 0 0; border-top: 1px solid var(--swatch-5); }
  .capabilities .cap-group:first-child, .cv .cap-group:first-child { border-top: 0; padding-top: 0; }
  .capabilities .cap-group .cap-head, .cv .cap-group .cap-head { grid-column: 1; grid-row: 1 / span 6; min-height: 0; margin: 0; }
  .capabilities .cap-group p:not(.cap-head), .cv .cap-group p:not(.cap-head) { grid-column: 2; margin: 0 0 .45em; }
}

/* Phones: captions (and the sound button inside them) stay tag-sized */
@media (max-width: 900px) {
  body:not(.work-page) .project .card .caption { font-size: 9px; letter-spacing: .08em; }
  .sound-btn { font-size: inherit !important; }
  .sound-btn svg { width: 1.1em; height: 1.1em; }
}
@media (max-width: 900px) {
  .work-page #work .w-hero .caption { margin-top: 3px; font-size: 8px; letter-spacing: .08em; color: var(--swatch-5); }
}

/* Phones: no {Selected Works} / icons row on the landing; the three reels get the room */
@media (max-width: 900px) {
  .landing .sel-intro, .landing .who { display: none !important; }
}

@media (max-width: 900px) { .landing .reel::after { z-index: 3; } }
@media (max-width: 900px) { .landing .reel { isolation: isolate; } }

/* Phones, landing entrance: each panel (reel, heading, list) rises from below its own edge */
@media (max-width: 900px) {
  .landing.m-enter .reel,
  .landing.m-enter .band-head,
  .landing.m-enter .band { transform: translateY(60px); clip-path: inset(100% 0 0 0); }
  .landing.m-enter.m-enter-in .reel,
  .landing.m-enter.m-enter-in .band-head,
  .landing.m-enter.m-enter-in .band { transform: none; clip-path: inset(0 0 0 0);
    transition: transform 1.1s cubic-bezier(.22, 1, .36, 1), clip-path 1.1s cubic-bezier(.77, 0, .18, 1); }
  .landing.m-enter-in .b2 { transition-delay: .14s !important; }
  .landing.m-enter-in .b3 { transition-delay: .28s !important; }
  .landing.m-enter-in .band-head { transition-delay: .1s; }
  .landing.m-enter-in .band-head.b2 { transition-delay: .24s !important; }
  .landing.m-enter-in .band-head.b3 { transition-delay: .38s !important; }
}
