/* Skin: Monopo-Saigon design system (style-library/monopo-saigon.md)
   SK Design — radical monochrome editorial: paper #ffffff · ink #000000 · felt gray #6d6d6d
   Inter (Roobert substitute) at weights 300/400/600 · hairline #000 rules · 0px corners
   everywhere except full-pill 75px buttons · patient cubic-bezier(0.19,1,0.22,1) motion.
   Interface stays strictly black/white/gray; the room photography behind the index is the
   page's single chromatic gesture. Legacy variable names kept — frozen inline HTML uses
   --gold / --ink-soft / --line, so those slots are re-mapped by role, not renamed. */

:root {
  --paper: #ffffff;            /* canvas */
  --ink: #000000;              /* primary ink */
  --ink-soft: #6d6d6d;         /* muted / quiet annotations */
  --gold: #6d6d6d;             /* legacy accent slot -> quiet annotation gray */
  --gold-bright: #ffffff;      /* legacy bright slot -> paper on dark surfaces */
  --line: #000000;             /* hairline rule on light surfaces */
  --line-lit: rgba(255, 255, 255, 0.3); /* hairline on dark surfaces */
  --serif: "Inter", "Helvetica Neue", Arial, sans-serif;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.19, 1, 0.22, 1);
}

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

html { scroll-behavior: smooth; }
html.noanim { scroll-behavior: auto; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.58;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

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

/* ---------- type ---------- */

h1, h2, h3, .serif {
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: normal;
}

h1 { font-size: clamp(2.7rem, 7.5vw, 6.8rem); line-height: 0.98; }
h2 { font-size: clamp(2rem, 4.6vw, 3.9rem); font-weight: 300; line-height: 1.1; }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.9rem); line-height: 1.2; }

h1 em, h2 em, h3 em, .goldital {
  font-style: normal;
  font-weight: 300;
  color: inherit;
}

p { max-width: 62ch; }

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.58;
  color: var(--ink-soft);
  max-width: 52ch;
}

.smallcaps {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* text links — hairline ink underline, quiet color shift */
.tlink {
  background-image: linear-gradient(var(--ink), var(--ink));
  background-repeat: no-repeat;
  background-size: 100% 1px;
  background-position: 0 100%;
  padding-bottom: 2px;
  transition: color 0.4s ease, background-size 0.8s var(--ease);
}
.tlink:hover { color: var(--ink-soft); background-size: 32% 1px; }

/* ghost pill button — the system's one expressive radius (75px) */
.dashlink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-style: normal;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1;
  padding: 11px 33px;
  border: 1px solid var(--ink);
  border-radius: 75px;
  min-height: 44px;
  transition: border-color 0.8s var(--ease), letter-spacing 0.8s var(--ease), color 0.4s ease;
}
.dashlink::before { content: none; }
.dashlink:hover { border-color: rgba(0, 0, 0, 0.45); letter-spacing: 0.02em; color: var(--ink); }

/* ---------- fixed reveal stage (signature mechanic) ---------- */

.stage { position: fixed; inset: 0; z-index: 0; background: var(--paper); overflow: hidden; }
.stage-img { position: absolute; inset: 0; opacity: 0; }
.stage-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); }
.stage-scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.55); opacity: 0; }

html.anim .stage-img { transition: opacity 0.8s var(--ease); }
html.anim .stage-img img { transition: transform 1.25s var(--ease); }
html.anim .stage-scrim { transition: opacity 0.8s var(--ease); }

.stage-img.on { opacity: 1; }
.stage-img.on img { transform: scale(1); }
.stage-scrim.on { opacity: 1; }

/* everything after the hero rides above the stage on paper */
.masthead, .hero { position: relative; z-index: 1; }
.sheet { position: relative; z-index: 1; background: var(--paper); }

/* lit state — full-bleed photo behind the index; text flips to paper */
html.anim body.lit .masthead,
html.anim body.lit .hero { transition: color 0.4s ease; }
body.lit .masthead, body.lit .hero { color: var(--paper); }
body.lit .hero .lede, body.lit .hero .index-note { color: rgba(255, 255, 255, 0.82); }
body.lit .masthead { border-color: var(--line-lit); }
body.lit .masthead .mast-nav a { color: var(--paper); }
body.lit .index .row { border-color: var(--line-lit); }
body.lit .row-loc, body.lit .row-no { color: rgba(255, 255, 255, 0.7); }
body.lit .hero h1 em { color: inherit; }
body.lit .index-more { color: rgba(255, 255, 255, 0.8); }

/* ---------- masthead (invisible persistence — no chrome) ---------- */

.masthead { border-bottom: 0; }
.mast-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 20px clamp(20px, 4vw, 56px) 14px;
}
.mast-side { flex: 1 1 0; min-width: 0; }
.mast-side:last-child { text-align: right; }
.mast-brand {
  flex: 0 0 auto;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-height: 44px;
  text-align: center;
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1;
}
.mast-brand .mast-sub {
  display: block;
  font-family: var(--sans);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 6px;
  color: var(--ink-soft);
}
.mast-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0 clamp(14px, 2.4vw, 34px);
  border-top: 0;
  padding: 0 12px;
}
body.lit .mast-nav { border-color: var(--line-lit); }
.mast-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.4s ease;
}
.mast-nav a:hover { color: var(--ink-soft); }
.mast-nav a[aria-current="page"] { font-weight: 600; }
body.lit .masthead .mast-nav a:hover { color: rgba(255, 255, 255, 0.7); }

@media (max-width: 640px) {
  .mast-side { display: none; }
  .mast-top { justify-content: center; }
}

/* ---------- hero + project index ---------- */

.hero {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: clamp(40px, 6vh, 84px) max(clamp(20px, 4vw, 56px), calc((100% - 1078px) / 2)) clamp(40px, 5vh, 64px);
}
.hero h1 { max-width: 11em; }
.hero .lede { margin-top: clamp(18px, 2.5vh, 30px); }

/* one-line named quote inside the hero (proof above the fold) */
.hero-quote {
  margin-top: clamp(14px, 2vh, 22px);
  font-family: var(--sans);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
}
.hero-quote .q-by {
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-left: 0.9em;
  white-space: nowrap;
}
body.lit .hero .q-by { color: rgba(255, 255, 255, 0.7); }

.index-note {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-top: clamp(20px, 2.5vh, 36px);
  padding-bottom: 10px;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.8rem;
  color: var(--ink-soft);
}
.index-note .hint-tap { display: none; }
@media (hover: none) { .index-note .hint-hover { display: none; } .index-note .hint-tap { display: inline; } }

.index { display: block; }
.index .row {
  display: flex;
  align-items: baseline;
  gap: clamp(12px, 2vw, 28px);
  border-top: 1px solid var(--line);
  padding: clamp(7px, 1vh, 14px) 4px;
}
.index .row:last-child { border-bottom: 1px solid var(--line); }
.row-no {
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.72rem;
  color: var(--ink-soft);
  flex: 0 0 2.2em;
}
.row-name {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(1.7rem, 4.6vw, 4.1rem);
  line-height: 1.05;
  letter-spacing: normal;
  transition: color 0.4s ease;
}
.row-loc {
  margin-left: auto;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: right;
  white-space: nowrap;
}

/* hover choreography: siblings dim, active holds full ink */
html.anim .index .row { transition: opacity 0.8s var(--ease), border-color 0.4s ease; }
.index:hover .row, .index.armed-mode .row { opacity: 0.35; }
.index .row:hover, .index .row.armed { opacity: 1; }
.index a.row:hover .row-name, .index .row.armed .row-name {
  font-style: normal;
  font-weight: 300;
  color: inherit;
}
.index .row.armed .row-loc::after { content: "  ·  open →"; letter-spacing: 0.08em; }

.index-flat .row-name { color: var(--ink-soft); }
.index-more {
  margin-top: 16px;
  font-family: var(--sans);
  font-style: normal;
  font-size: 1rem;
  line-height: 1.58;
  max-width: 46em;
  color: var(--ink-soft);
}

/* ---------- sections (one rhythm rule sitewide, contained at 1078px) ---------- */

section { padding: clamp(64px, 9vw, 140px) max(clamp(20px, 4vw, 56px), calc((100% - 1078px) / 2)); }

.folio {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-bottom: clamp(36px, 5vw, 64px);
  color: var(--ink-soft);
}
.folio .n { font-family: var(--sans); font-style: normal; font-size: 0.72rem; }

/* ledger — editorial fact row (not a card grid) */
.ledger { display: grid; grid-template-columns: repeat(4, 1fr); border-left: 1px solid var(--line); }
.ledger > div { border-right: 1px solid var(--line); padding: 6px clamp(14px, 2vw, 30px); }
.ledger .big {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 1;
  color: var(--ink);
}
.ledger .big i { font-style: normal; color: var(--ink-soft); }
.ledger p { font-size: 0.85rem; line-height: 1.5; color: var(--ink-soft); margin-top: 10px; }
@media (max-width: 760px) {
  .ledger { grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
  .ledger > div { padding-block: 16px; border-bottom: 1px solid var(--line); }
}

/* split spreads */
.spread { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.spread.flip { grid-template-columns: 5fr 7fr; }
@media (max-width: 860px) { .spread, .spread.flip { grid-template-columns: 1fr; } }

figure.plate { position: relative; }
figure.plate img { width: 100%; height: auto; }
figure.plate figcaption {
  margin-top: 10px;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* pull quotes — whisper weight, no italics */
.pull {
  font-family: var(--sans);
  font-style: normal;
  font-weight: 300;
  font-size: clamp(1.5rem, 3.4vw, 2.9rem);
  line-height: 1.28;
  letter-spacing: normal;
  max-width: 24em;
}
.pull-cite {
  display: block;
  margin-top: 22px;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* before / after pairs */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 2.4vw, 32px); align-items: start; }
@media (max-width: 700px) { .pair { grid-template-columns: 1fr; } }
.pair .tab {
  font-family: var(--sans);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  color: var(--ink-soft);
  margin-bottom: 10px;
}
.pair .tab.after { color: var(--ink); }
.pair-caption {
  margin-top: 16px;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* process chapters */
.chapter { border-top: 1px solid var(--line); padding-block: clamp(30px, 4vw, 56px); display: grid; grid-template-columns: 130px 1fr; gap: clamp(16px, 3vw, 48px); }
@media (max-width: 700px) { .chapter { grid-template-columns: 1fr; } }
.chapter .no { font-family: var(--sans); font-style: normal; font-weight: 300; font-size: clamp(1.6rem, 3vw, 2.6rem); color: var(--ink-soft); line-height: 1; }
.chapter h3 { margin-bottom: 12px; }
.chapter p { color: var(--ink-soft); }
.scope { margin-top: 16px; font-family: var(--sans); font-style: normal; font-size: clamp(1rem, 1.6vw, 1.25rem); line-height: 1.7; max-width: 40em; }
.scope b { font-weight: 600; color: var(--ink); padding: 0 0.35em; }

/* testimonial wall */
.wall { columns: 2; column-gap: clamp(28px, 5vw, 72px); }
@media (max-width: 860px) { .wall { columns: 1; } }
.wall blockquote {
  break-inside: avoid;
  border-top: 1px solid var(--line);
  padding: 22px 0 30px;
  font-size: 0.98rem;
  line-height: 1.58;
  color: var(--ink-soft);
}
.wall blockquote p { max-width: none; }
.wall cite {
  display: block;
  margin-top: 14px;
  font-style: normal;
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* contact index rows */
.contact-rows .row-name { font-size: clamp(1.4rem, 4vw, 2.9rem); word-break: break-word; }

/* ---------- colophon footer (inverse section — pure black band) ---------- */

.colophon { position: relative; z-index: 1; background: var(--ink); color: var(--paper); padding: clamp(72px, 10vw, 150px) max(clamp(20px, 4vw, 56px), calc((100% - 1078px) / 2)) 40px; }
.colophon h2 { max-width: 10em; }
.colophon h2 em { color: inherit; }
.colophon .dashlink { color: var(--paper); border-color: var(--line-lit); margin-top: 34px; }
.colophon .dashlink:hover { color: var(--paper); border-color: var(--paper); }
.colo-grid { display: flex; flex-wrap: wrap; gap: 32px clamp(40px, 7vw, 110px); margin-top: clamp(48px, 7vw, 90px); }
.colo-grid .smallcaps { color: rgba(255, 255, 255, 0.55); display: block; margin-bottom: 12px; }
.colo-grid a { display: inline-flex; align-items: center; min-height: 40px; color: var(--paper); transition: color 0.4s ease; }
.colo-grid a:hover { color: rgba(255, 255, 255, 0.6); }
.colo-grid li { list-style: none; }
.colo-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  justify-content: space-between;
  border-top: 1px solid var(--line-lit);
  margin-top: clamp(48px, 6vw, 80px);
  padding-top: 22px;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- entrances (patient glide, staggered) ---------- */

html.anim .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 1.25s var(--ease),
    transform 1.25s var(--ease);
  transition-delay: var(--d, 0s);
}
html.anim .reveal.in { opacity: 1; transform: none; }

/* reduced motion / ?noanim — fully static, fully readable */
html.noanim *, html.noanim *::before, html.noanim *::after {
  transition: none !important;
  animation: none !important;
}
