/* ============================================================
   Meng Shan Tsai — portfolio site
   Shared design system
   ============================================================ */

/* ---- Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,200;0,6..72,300;0,6..72,400;0,6..72,500;1,6..72,300;1,6..72,400&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&display=swap');

/* ============================================================
   Tokens
   ============================================================ */
:root {
  /* Type families */
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Helvetica Neue', Helvetica, Arial, sans-serif;

  /* Palette — Paper (default) */
  --paper:   #f7f4ee;
  --paper-2: #f1ece3;
  --ink:     #232020;
  --ink-2:   #4a4540;
  --muted:   #8c857c;
  --line:    color-mix(in oklab, var(--ink) 14%, transparent);
  --line-2:  color-mix(in oklab, var(--ink) 8%, transparent);

  /* Per-project accent (overridden on detail pages) */
  --accent:  #232020;
  --accent-bg: #f7f4ee;

  /* Metrics */
  --maxw: 1500px;
  --gutter: clamp(20px, 5vw, 76px);
  --nav-h: 68px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --reveal-dur: 1100ms;
  --reveal-shift: 16px;
}

/* Theme: Ivory (brighter, cooler white) */
html[data-theme="ivory"] {
  --paper:   #fcfbf9;
  --paper-2: #f4f2ee;
  --ink:     #1c1a19;
  --ink-2:   #46423e;
  --muted:   #948d84;
  --accent-bg: #fcfbf9;
}

/* Theme: Dark gallery */
html[data-theme="dark"] {
  --paper:   #16140f;
  --paper-2: #1f1c16;
  --ink:     #ece7dd;
  --ink-2:   #b7b0a4;
  --muted:   #7d766a;
  --line:    color-mix(in oklab, var(--ink) 16%, transparent);
  --line-2:  color-mix(in oklab, var(--ink) 9%, transparent);
  --accent:  #ece7dd;
  --accent-bg: #16140f;
}

/* Serif tweak */
html[data-serif="cormorant"] { --serif: 'Cormorant Garamond', Georgia, serif; }

/* Calm motion */
html[data-motion="calm"] { --reveal-dur: 600ms; --reveal-shift: 8px; }

/* ============================================================
   Reset / base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 700ms var(--ease), color 700ms var(--ease);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

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

/* ============================================================
   Type
   ============================================================ */
.serif { font-family: var(--serif); font-weight: 300; }
.display {
  font-family: var(--serif);
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: 0.005em;
}
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
}
.mono {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.caption {
  font-family: var(--sans);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--ink-2);
  line-height: 1.55;
}
.lede {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(20px, 2.5vw, 31px);
  line-height: 1.42;
  letter-spacing: 0.002em;
}
.lede em { font-style: italic; }

/* ============================================================
   Layout
   ============================================================ */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.bleed { width: 100%; }
.section { padding-block: clamp(64px, 11vw, 160px); }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.spacer-s { height: clamp(28px, 5vw, 56px); }
.spacer-m { height: clamp(48px, 8vw, 96px); }
.spacer-l { height: clamp(80px, 13vw, 180px); }

.grid { display: grid; gap: clamp(14px, 2vw, 28px); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-12 { grid-template-columns: repeat(12, 1fr); }
@media (max-width: 860px) {
  .cols-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .cols-2, .cols-3 { grid-template-columns: 1fr; }
}

/* ============================================================
   Top navigation
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding-inline: var(--gutter);
  mix-blend-mode: normal;
  transition: transform 500ms var(--ease), background-color 500ms var(--ease),
              backdrop-filter 500ms var(--ease), border-color 500ms var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-solid {
  background: color-mix(in oklab, var(--paper) 80%, transparent);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border-bottom-color: var(--line-2);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav__brand {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 17px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.nav__links { display: flex; gap: clamp(18px, 2.6vw, 40px); align-items: center; }
.nav__links a {
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
  position: relative;
  padding-block: 4px;
  transition: color 300ms var(--ease);
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform 420ms var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { transform: scaleX(1); }
.nav__links a[aria-current="page"] { color: var(--ink); }
@media (max-width: 600px) {
  .nav__links { gap: 16px; }
  .nav__links a.hide-sm { display: none; }
}

/* ============================================================
   Buttons / links
   ============================================================ */
.link-u {
  font-family: var(--sans); font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase; display: inline-flex; align-items: center; gap: 9px;
  padding-bottom: 3px; border-bottom: 1px solid var(--line);
  transition: border-color 300ms var(--ease), gap 300ms var(--ease);
}
.link-u:hover { border-color: var(--ink); gap: 14px; }
.link-u .arr { transition: transform 360ms var(--ease); }
.link-u:hover .arr { transform: translateX(4px); }

.btn {
  font-family: var(--sans); font-size: 11.5px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--paper); background: var(--ink);
  padding: 14px 26px; border: 1px solid var(--ink); border-radius: 0;
  display: inline-flex; align-items: center; gap: 10px;
  transition: background-color 320ms var(--ease), color 320ms var(--ease);
}
.btn:hover { background: transparent; color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }

/* ============================================================
   Placeholders (drop-in for real imagery)
   ============================================================ */
.ph {
  position: relative; width: 100%; overflow: hidden;
  background: var(--paper-2);
  background-image:
    repeating-linear-gradient(135deg,
      color-mix(in oklab, var(--ink) 5%, transparent) 0 1px,
      transparent 1px 11px);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
}
.ph::after {
  content: ""; position: absolute; inset: 12px;
  border: 1px solid var(--line-2);
}
/* once a real image fills the placeholder, drop the inset frame line */
.ph:has(img)::after { display: none; }
.ph__label {
  position: relative; z-index: 1;
  font-family: var(--sans); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; text-align: center; line-height: 1.7;
  padding: 0 18px; max-width: 80%; color: var(--ink-2);
}
.ph__label .dim { color: var(--muted); display: block; font-size: 10px; margin-top: 6px; letter-spacing: 0.2em; }
.ph--portrait  { aspect-ratio: 3 / 4; }
.ph--tall      { aspect-ratio: 2 / 3; }
.ph--landscape { aspect-ratio: 4 / 3; }
.ph--wide      { aspect-ratio: 16 / 9; }
.ph--ultra     { aspect-ratio: 21 / 9; }
.ph--square    { aspect-ratio: 1 / 1; }
.ph--phone     { aspect-ratio: 9 / 19.5; }
.ph--fill      { height: 100%; }

/* a softly tinted placeholder variant for accent contexts */
.ph--accent {
  background-color: color-mix(in oklab, var(--accent) 12%, var(--paper-2));
  background-image:
    repeating-linear-gradient(135deg,
      color-mix(in oklab, var(--accent) 14%, transparent) 0 1px,
      transparent 1px 11px);
}

/* ============================================================
   Reveal / motion
   ============================================================ */
.js .reveal {
  opacity: 0;
  transform: translateY(var(--reveal-shift));
  transition: opacity var(--reveal-dur) var(--ease),
              transform var(--reveal-dur) var(--ease);
  will-change: opacity, transform;
}
.js .reveal.is-in { opacity: 1; transform: none; }
/* safety: after the entrance has had time to play, lock to final state with no
   transition — guarantees content is visible even in contexts that throttle/pause
   CSS animations (e.g. offscreen iframes). Invisible to real users. */
.js .reveal.settled { opacity: 1 !important; transform: none !important; transition: none !important; }
.js .reveal[data-d="1"] { transition-delay: 90ms; }
.js .reveal[data-d="2"] { transition-delay: 180ms; }
.js .reveal[data-d="3"] { transition-delay: 270ms; }
.js .reveal[data-d="4"] { transition-delay: 360ms; }
.js .reveal[data-d="5"] { transition-delay: 450ms; }

/* image cover-up reveal (curtain) */
.js .uncover { position: relative; }
.js .uncover::before {
  content: ""; position: absolute; inset: 0; z-index: 2;
  background: var(--paper);
  transform: scaleY(1); transform-origin: bottom;
  transition: transform 1100ms var(--ease);
}
.js .uncover.is-in::before { transform: scaleY(0); }
.js .uncover.settled::before { transform: scaleY(0) !important; transition: none !important; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js .uncover::before { display: none; }
}

.parallax-inner { will-change: transform; }

/* ============================================================
   Footer
   ============================================================ */
.foot {
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding-block: clamp(56px, 9vw, 120px) 40px;
}
.foot__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { .foot__top { grid-template-columns: 1fr; gap: 44px; } }
.foot__cta {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(34px, 6vw, 78px); line-height: 1.02; letter-spacing: 0.004em;
}
.foot__cta a { display: inline-block; transition: opacity 300ms var(--ease); }
.foot__cta a:hover { opacity: 0.55; }
.foot__col h4 {
  margin: 0 0 16px; font-family: var(--sans); font-weight: 400;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
}
.foot__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot__col a { font-size: 14px; color: var(--ink-2); transition: color 260ms var(--ease); }
.foot__col a:hover { color: var(--ink); }
.foot__base {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  margin-top: clamp(48px, 8vw, 96px); flex-wrap: wrap;
}
.foot__base .mono { color: var(--muted); }

/* ============================================================
   Tweaks panel (vanilla, persisted across pages)
   ============================================================ */
.tw-toggle {
  position: fixed; right: 18px; bottom: 18px; z-index: 80;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--ink); color: var(--paper); border: none;
  font-family: var(--serif); font-size: 17px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 22px color-mix(in oklab, var(--ink) 26%, transparent);
  transition: transform 320ms var(--ease);
}
.tw-toggle:hover { transform: scale(1.07) rotate(8deg); }
.tw-panel {
  position: fixed; right: 18px; bottom: 74px; z-index: 81;
  width: 268px; padding: 20px; background: var(--paper);
  border: 1px solid var(--line); box-shadow: 0 18px 50px color-mix(in oklab, var(--ink) 22%, transparent);
  transform: translateY(10px) scale(0.98); opacity: 0; pointer-events: none;
  transition: opacity 280ms var(--ease), transform 280ms var(--ease);
}
.tw-panel.is-open { opacity: 1; transform: none; pointer-events: auto; }
.tw-panel h5 {
  margin: 0 0 4px; font-family: var(--sans); font-weight: 400;
  font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
}
.tw-group { margin-top: 18px; }
.tw-seg { display: flex; gap: 6px; margin-top: 9px; }
.tw-seg button {
  flex: 1; padding: 8px 6px; background: transparent; border: 1px solid var(--line);
  font-family: var(--sans); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-2); transition: all 240ms var(--ease);
}
.tw-seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tw-panel__title {
  font-family: var(--serif); font-size: 16px; letter-spacing: 0.04em;
  margin: 0 0 2px; font-weight: 400;
}
.tw-note { font-size: 10.5px; color: var(--muted); letter-spacing: 0.04em; margin-top: 16px; line-height: 1.5; }

@media print {
  .nav, .tw-toggle, .tw-panel, .foot__cta { display: none !important; }
}

/* ============================================================
   PAGE MODULE — Hero (home)
   ============================================================ */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: calc(var(--nav-h) + 24px);
  padding-bottom: clamp(28px, 5vw, 64px);
  position: relative;
}
.hero__inner { width: 100%; }
.hero .eyebrow { display: block; margin-bottom: clamp(20px, 4vw, 40px); }
.hero__name {
  font-size: clamp(58px, 13.5vw, 210px);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 0;
}
.hero__name-2 { display: inline-block; padding-left: 0.06em; }
.hero__meta {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 40px;
  margin-top: clamp(28px, 5vw, 60px); flex-wrap: wrap;
}
.hero__statement { max-width: 30ch; margin: 0; }
.hero__loc { color: var(--muted); white-space: nowrap; }
.hero__scroll {
  position: absolute; left: var(--gutter); bottom: clamp(28px, 5vw, 64px);
  display: none;
}
@media (min-width: 900px) {
  .hero { justify-content: center; }
  .hero__scroll { display: flex; align-items: center; gap: 12px; color: var(--muted); }
  .hero__scroll-line {
    width: 56px; height: 1px; background: var(--line);
    position: relative; overflow: hidden;
  }
  .hero__scroll-line::after {
    content: ""; position: absolute; inset: 0; background: var(--ink);
    transform: translateX(-100%); animation: scrollline 2.6s var(--ease) infinite;
  }
}
@keyframes scrollline { 0%{transform:translateX(-100%)} 55%{transform:translateX(0)} 100%{transform:translateX(100%)} }
@media (prefers-reduced-motion: reduce) { .hero__scroll-line::after { animation: none; } }

/* ============================================================
   PAGE MODULE — Statement
   ============================================================ */
.statement__grid { align-items: start; }
.statement__k { grid-column: 1 / 4; padding-top: 10px; }
.statement__body { grid-column: 5 / 13; }
@media (max-width: 760px) {
  .statement__k { grid-column: 1 / -1; margin-bottom: 22px; }
  .statement__body { grid-column: 1 / -1; }
}

/* ============================================================
   PAGE MODULE — Work index (home)
   ============================================================ */
.work__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: clamp(28px, 4vw, 48px); }
.work__count { color: var(--muted); }
.work__layout { display: grid; grid-template-columns: 1fr; gap: 0; position: relative; }
@media (min-width: 980px) {
  .work__layout { grid-template-columns: 1fr 0.46fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
}
.work__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.work__row { border-bottom: 1px solid var(--line); }
.work__row a {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: baseline; gap: clamp(16px, 3vw, 44px);
  padding: clamp(20px, 2.6vw, 34px) 4px;
  transition: padding-left 460ms var(--ease), opacity 360ms var(--ease);
}
.work__no { color: var(--muted); }
.work__title {
  font-size: clamp(24px, 3.4vw, 48px); font-weight: 300; line-height: 1;
  transition: transform 460ms var(--ease);
}
.work__disc { white-space: nowrap; }
.work__year { color: var(--muted); }
@media (hover: hover) and (min-width: 980px) {
  .work__list:hover .work__row a { opacity: 0.4; }
  .work__row a:hover { opacity: 1; padding-left: 18px; }
  .work__row a:hover .work__title { transform: none; }
}
@media (max-width: 720px) {
  .work__row a { grid-template-columns: auto 1fr; row-gap: 6px; }
  .work__disc { grid-column: 2; white-space: normal; }
  .work__year { grid-column: 1; }
}

.work__preview { display: none; }
@media (min-width: 980px) {
  .work__preview { display: block; position: sticky; top: calc(var(--nav-h) + 40px); }
  .work__preview-stack { position: relative; aspect-ratio: 3 / 4; }
  .work__pv {
    position: absolute; inset: 0; opacity: 0; transition: opacity 620ms var(--ease);
  }
  .work__pv.is-on { opacity: 1; }
  .work__pv--img { background: var(--paper-2); }
  .work__pv--img img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .work__pv--contain { background: #2f3a23; }
  .work__pv--contain img { object-fit: contain; }
}

/* ============================================================
   PAGE MODULE — Featured spread
   ============================================================ */
.featured { padding-block: clamp(56px, 9vw, 130px); }
.featured__k { margin-bottom: clamp(22px, 3vw, 40px); }
.featured__media { width: 100%; overflow: hidden; }
.featured__media .parallax-inner { height: 100%; }
.featured__foot {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 40px;
  margin-top: clamp(28px, 4vw, 56px); flex-wrap: wrap;
}
.featured__txt { max-width: 56ch; }
.featured__title { font-size: clamp(40px, 6vw, 92px); margin: 0 0 18px; }
.featured__lede { margin: 0; max-width: 44ch; }
.featured__cta { white-space: nowrap; }

/* ============================================================
   Reusable image figure (drop-in replacement for .ph placeholders)
   ============================================================ */
.figframe { position: relative; width: 100%; overflow: hidden; background: var(--paper-2); }
.figframe--tall      { aspect-ratio: 2 / 3; }
.figframe--portrait  { aspect-ratio: 3 / 4; }
.figframe--landscape { aspect-ratio: 4 / 3; }
.figframe--square    { aspect-ratio: 1 / 1; }
.figframe--wide      { aspect-ratio: 16 / 9; }
.figframe--ultra     { aspect-ratio: 21 / 9; }
.figframe img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ============================================================
   PAGE MODULE — Project detail
   ============================================================ */
.proj { padding-top: var(--nav-h); }
.proj-head { padding-block: clamp(56px, 9vw, 130px) clamp(28px, 4vw, 56px); }
.proj-head__top {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 24px; flex-wrap: wrap; margin-bottom: clamp(28px, 5vw, 64px);
}
.proj-title {
  font-size: clamp(46px, 10vw, 168px); line-height: 0.94; margin: 0;
  letter-spacing: 0.005em;
}
.proj-head__grid {
  display: grid; grid-template-columns: 1fr; gap: clamp(28px, 4vw, 56px);
  margin-top: clamp(36px, 5vw, 64px);
}
@media (min-width: 860px) {
  .proj-head__grid { grid-template-columns: 1.3fr 0.7fr; gap: clamp(40px, 6vw, 100px); }
}
.proj-intro { max-width: 30ch; }
.proj-meta { display: grid; gap: 0; border-top: 1px solid var(--line); }
.proj-meta__row {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--line-2);
}
.proj-meta__k { font-family: var(--sans); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.proj-meta__v { font-family: var(--sans); font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }

/* full-bleed hero / media */
.proj-hero { width: 100%; overflow: hidden; }
.proj-hero .parallax-inner { height: 100%; }

/* generic detail section */
.proj-body { padding-block: clamp(48px, 8vw, 120px); }
.proj-section { padding-block: clamp(40px, 7vw, 100px); }
.proj-section--tight { padding-block: clamp(24px, 4vw, 56px); }

/* text block inside detail */
.proj-text { display: grid; grid-template-columns: 1fr; gap: clamp(20px, 3vw, 40px); }
@media (min-width: 860px) {
  .proj-text { grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
  .proj-text--offset { grid-template-columns: 0.4fr 1fr; }
}
.proj-text h3 { margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(24px, 3vw, 40px); line-height: 1.12; }
.proj-text p { margin: 0 0 1em; font-size: 15px; line-height: 1.62; color: var(--ink-2); max-width: 56ch; }
.proj-text p:last-child { margin-bottom: 0; }

/* figures */
.figure { margin: 0; }
.figure figcaption, .fig-cap {
  margin-top: 12px; font-family: var(--sans); font-size: 11px; letter-spacing: 0.06em;
  color: var(--muted); display: flex; justify-content: space-between; gap: 16px;
}
.figrow { display: grid; gap: clamp(14px, 2vw, 28px); }
.figrow--2 { grid-template-columns: 1fr 1fr; }
.figrow--3 { grid-template-columns: repeat(3, 1fr); }
.figrow--21 { grid-template-columns: 2fr 1fr; align-items: end; }
.figrow--12 { grid-template-columns: 1fr 2fr; align-items: end; }
@media (max-width: 720px) {
  .figrow--2, .figrow--3, .figrow--21, .figrow--12 { grid-template-columns: 1fr; }
}

/* pull quote */
.proj-quote { padding-block: clamp(70px, 12vw, 180px); text-align: center; }
.proj-quote p {
  font-family: var(--serif); font-weight: 300; font-style: italic;
  font-size: clamp(26px, 4.4vw, 64px); line-height: 1.16; margin: 0 auto; max-width: 18ch;
  letter-spacing: 0.004em;
}
.proj-quote cite { display: block; font-style: normal; margin-top: clamp(20px, 3vw, 36px); }

/* full-bleed colored / dark panels */
.panel { width: 100%; padding-block: clamp(56px, 10vw, 150px); }
.panel--accent { background: color-mix(in oklab, var(--accent) 16%, var(--paper)); }
.panel--accent-soft { background: color-mix(in oklab, var(--accent) 8%, var(--paper)); }
.panel--dark { background: #161412; color: #ece7dd; }
.panel--dark .proj-text p, .panel--dark .fig-cap, .panel--dark .figure figcaption { color: #b7b0a4; }
.panel--dark .eyebrow { color: #8c857c; }
.panel--ink { background: var(--accent); color: #fff; }

/* placeholders inside dark panels render dark */
.panel--dark .ph {
  background-color: #221f1b;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 11px);
  color: #cfc8bc;
}
.panel--dark .ph::after { border-color: rgba(255,255,255,0.12); }
.panel--dark .ph__label { color: #cfc8bc; }
.panel--dark .ph__label .dim { color: #8c857c; }
.panel--dark .swatch { border-color: rgba(255,255,255,0.15); }
.panel--dark .swatch__name { color: #ece7dd; }
.panel--ink .ph {
  background-color: rgba(0,0,0,0.14);
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,0.14) 0 1px, transparent 1px 11px);
  color: #fff;
}
.panel--ink .ph::after { border-color: rgba(255,255,255,0.3); }
.panel--ink .ph__label { color: #fff; }
.panel--ink .ph__label .dim { color: rgba(255,255,255,0.7); }
.panel--ink .eyebrow, .panel--ink .fig-cap, .panel--ink .figure figcaption { color: rgba(255,255,255,0.8); }
/* big specimen text */
.specimen {
  font-family: var(--serif); font-weight: 300; line-height: 0.9;
  font-size: clamp(60px, 16vw, 280px); letter-spacing: 0.01em; word-break: break-word;
}
.specimen--sans { font-family: var(--sans); font-weight: 700; letter-spacing: -0.01em; text-transform: uppercase; }
.az {
  font-family: var(--sans); font-weight: 700; text-transform: uppercase;
  font-size: clamp(30px, 7vw, 110px); line-height: 1.05; letter-spacing: 0.04em;
  word-spacing: 0.1em;
}

/* color swatches */
.swatches { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: clamp(12px, 1.5vw, 20px); }
.swatch { border: 1px solid var(--line-2); }
.swatch__chip { aspect-ratio: 4 / 3; width: 100%; }
.swatch__meta { padding: 12px 14px; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.swatch__name { font-family: var(--serif); font-size: 16px; font-weight: 400; }
.swatch__hex { font-family: var(--sans); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

/* next project */
.proj-next {
  border-top: 1px solid var(--line);
  padding-block: clamp(48px, 8vw, 120px);
}
.proj-next a { display: block; }
.proj-next__k { margin-bottom: 18px; }
.proj-next__row { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.proj-next__title {
  font-family: var(--serif); font-weight: 300; font-size: clamp(36px, 7vw, 110px);
  line-height: 1; transition: transform 500ms var(--ease), opacity 400ms var(--ease);
}
.proj-next a:hover .proj-next__title { transform: translateX(12px); }
.proj-next__arrow { font-family: var(--serif); font-size: clamp(30px, 5vw, 72px); transition: transform 500ms var(--ease); }
.proj-next a:hover .proj-next__arrow { transform: translateX(12px); }

/* ============================================================
   PAGE MODULE — About
   ============================================================ */
.about { padding-top: var(--nav-h); }
.about-head { padding-block: clamp(56px, 9vw, 130px) clamp(40px, 6vw, 80px); }
.about-statement {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(28px, 4.6vw, 64px); line-height: 1.18; letter-spacing: 0.004em;
  max-width: 22ch; margin: 0;
}
.about-statement em { font-style: italic; }
.about-grid { display: grid; grid-template-columns: 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (min-width: 860px) { .about-grid { grid-template-columns: 0.85fr 1.15fr; gap: clamp(48px, 8vw, 120px); } }
.about-portrait { position: sticky; top: calc(var(--nav-h) + 32px); }
.about-bio p { font-size: 16px; line-height: 1.7; color: var(--ink-2); margin: 0 0 1.2em; max-width: 60ch; }
.about-bio p:first-child { font-family: var(--serif); font-size: clamp(19px, 2vw, 24px); line-height: 1.5; color: var(--ink); }

.info-grid { display: grid; grid-template-columns: 1fr; gap: clamp(36px, 5vw, 64px); }
@media (min-width: 760px) { .info-grid { grid-template-columns: repeat(3, 1fr); } }
.info-col h4 { margin: 0 0 18px; font-family: var(--sans); font-weight: 400; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.info-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.info-col li { font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.info-col li span { color: var(--muted); display: block; font-size: 12px; }

.contact-block { display: grid; grid-template-columns: 1fr; gap: clamp(28px, 4vw, 48px); align-items: end; }
@media (min-width: 760px) { .contact-block { grid-template-columns: 1.4fr 1fr; } }
.contact-mail {
  font-family: var(--serif); font-weight: 300; font-size: clamp(28px, 5vw, 64px);
  line-height: 1.05; word-break: break-word;
}
.contact-mail a { transition: opacity 300ms var(--ease); }
.contact-mail a:hover { opacity: 0.55; }

/* ============================================================
   PAGE MODULE — Index (work list page)
   ============================================================ */
.index-head { padding-block: clamp(56px, 9vw, 130px) clamp(28px, 4vw, 48px); }
.index-title { font-size: clamp(48px, 11vw, 180px); line-height: 0.9; margin: 0; }
.index-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.index-row { border-bottom: 1px solid var(--line); }
.index-row a {
  display: grid; grid-template-columns: 64px 1fr auto auto;
  align-items: baseline; gap: clamp(16px, 3vw, 48px);
  padding: clamp(22px, 3vw, 40px) 4px;
  transition: padding-left 460ms var(--ease), background-color 460ms var(--ease);
}
.index-row a:hover { padding-left: 20px; }
.index-no { font-family: var(--sans); font-size: 12px; letter-spacing: 0.14em; color: var(--muted); }
.index-name { font-family: var(--serif); font-weight: 300; font-size: clamp(26px, 4vw, 56px); line-height: 1; }
.index-disc { font-family: var(--sans); font-size: 12.5px; color: var(--ink-2); white-space: nowrap; }
.index-year { font-family: var(--sans); font-size: 12px; letter-spacing: 0.1em; color: var(--muted); }
@media (max-width: 720px) {
  .index-row a { grid-template-columns: 40px 1fr; row-gap: 6px; }
  .index-disc { grid-column: 2; white-space: normal; }
  .index-year { grid-column: 1; }
}
