/* PSR Construction Sdn Bhd — design system
   Palette read off the client's own wordmark: the gold is #FFC000 exactly.
   Two surfaces only (concrete ink / warm paper); the gold is the single accent.
   The doubled rule under every heading is the wordmark's own underline, reused
   as the structural motif of the whole site. */

:root {
  --ink:        #14120F;
  --ink-2:      #1D1A15;
  --ink-3:      #2A251E;
  --paper:      #F3EFE8;
  --paper-2:    #E7E1D6;
  --gold:       #FFC000;
  --gold-deep:  #A67400;   /* the same hue, dark enough to pass AA on paper */

  --on-ink:     #F3EFE8;
  --on-ink-mut: rgba(243,239,232,.62);
  --on-paper:   #14120F;
  --on-paper-mut: rgba(20,18,15,.62);

  --line-ink:   rgba(243,239,232,.16);
  --line-paper: rgba(20,18,15,.14);

  --serif: "Bodoni Moda", "Times New Roman", Georgia, serif;
  --sans:  "Archivo", "Helvetica Neue", Arial, sans-serif;

  /* nine sizes, ratio 6.6 — deliberately narrow */
  --t-display: clamp(3.4rem, 9vw, 8rem);
  --t-h1:      clamp(2.4rem, 6.4vw, 5.6rem);
  --t-h2:      clamp(1.8rem, 3.4vw, 2.9rem);
  --t-h3:      1.375rem;
  --t-lead:    clamp(1.15rem, 1.7vw, 1.5rem);
  --t-body:    1.0625rem;
  --t-small:   0.9375rem;
  --t-label:   0.875rem;
  --t-index:   clamp(1.1rem, 2vw, 1.5rem);

  --gut: clamp(1.25rem, 5vw, 5rem);
  --band: clamp(4.5rem, 9vw, 9rem);
  --max: 1560px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,.84,.34,1);

  /* Corners: enough to stop a plate reading as a hard rectangle, not enough to
     turn architectural photography into an app card. One token, one line to change. */
  --r-plate: 6px;
  --r-ui: 4px;

  /* Depth on paper only. A photograph on a warm ground should read as a print
     laid on the page; on the ink ground a shadow does nothing, so there is none. */
  --shadow-plate:  0 20px 44px -26px rgba(20,18,15,.50), 0 2px 8px -5px rgba(20,18,15,.16);
  --shadow-lift:   0 34px 66px -30px rgba(20,18,15,.58), 0 5px 14px -8px rgba(20,18,15,.20);
  --shadow-nav:    0 12px 34px -22px rgba(20,18,15,.55);
}

/* cross-document fade between pages where the browser supports it */
@view-transition { navigation: auto; }

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  /* clip, not hidden: overflow-x:hidden computes overflow-y to auto, which makes
     the element a scroll container and silently kills every position:sticky
     inside it. clip guards the same overflow without creating one. */
  overflow-x: hidden; overflow-x: clip;
  overscroll-behavior-x: none; max-width: 100%;
  -webkit-text-size-adjust: 100%; scroll-behavior: smooth;
}
body {
  margin: 0; width: 100%; max-width: 100%; position: relative;
  overflow-x: hidden; overflow-x: clip; overscroll-behavior-x: none;
  background: var(--paper); color: var(--on-paper);
  font-family: var(--sans); font-size: var(--t-body); line-height: 1.65;
  font-weight: 400; letter-spacing: .002em;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  /* content must never depend on an observer firing */
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .rl > span { transform: none !important; }
  [data-parallax] { transform: none !important; }
  .drawer a { opacity: 1 !important; transform: none !important; }
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--gold); color: #14120F; padding: .75rem 1.25rem; font-weight: 600;
}
.skip:focus { left: 0; }
.vh {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- ground ---------- */
.ink   { background: var(--ink);   color: var(--on-ink); }
.paper { background: var(--paper); color: var(--on-paper); }
.ink .mut   { color: var(--on-ink-mut); }
.paper .mut { color: var(--on-paper-mut); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.band { padding: var(--band) 0; }
.band--tight { padding: clamp(3rem,5vw,4.5rem) 0; }

/* ---------- the doubled rule (from the wordmark) ---------- */
.rule { position: relative; padding-top: 11px; }
.rule::before, .rule::after {
  content: ""; position: absolute; left: 0; right: 0; background: currentColor;
}
.rule::before { top: 0; height: 3px; }
.rule::after  { top: 6px; height: 1px; }
.rule--gold::before, .rule--gold::after { background: var(--gold); }
.rule--short::before, .rule--short::after { right: auto; width: 68px; }

.label {
  font-size: var(--t-label); letter-spacing: .18em; text-transform: uppercase;
  font-weight: 600; font-feature-settings: "tnum";
}
.label--gold { color: var(--gold); }
.paper .label--gold { color: var(--gold-deep); }

/* ---------- wordmark ---------- */
.brand { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1; }
.brand__word {
  font-family: var(--serif); font-weight: 700; font-size: 1.9rem; line-height: 1.05;
  letter-spacing: .04em; color: var(--gold);
}
.brand__rules { margin-top: 5px; }
.brand__rules i { display: block; background: var(--gold); }
.brand__rules i:first-child { height: 3px; }
.brand__rules i:last-child  { height: 1px; margin-top: 3px; }
.brand__sub {
  margin-top: 7px; font-size: var(--t-label); letter-spacing: .2em; text-transform: uppercase;
  color: var(--on-ink-mut);
}
.nav--solid .brand__sub, .paper .brand__sub { color: var(--on-paper-mut); }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 90;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.1rem var(--gut);
  transition: background .35s var(--ease), border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav--solid {
  background: rgba(243,239,232,.96); border-bottom-color: var(--line-paper);
  backdrop-filter: saturate(140%) blur(10px); padding-top: .8rem; padding-bottom: .8rem;
}
.nav--solid .brand__word { color: var(--gold-deep); }
.nav--solid .brand__rules i { background: var(--gold-deep); }
.nav--solid .nav__link { color: var(--on-paper); }
.nav--solid .burger span { background: var(--on-paper); }

.nav__links { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2.25rem); }
.nav__link {
  text-decoration: none; color: var(--on-ink); font-size: var(--t-small);
  letter-spacing: .04em; padding: .35rem 0; position: relative;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px;
  background: var(--gold); transition: right .4s var(--ease);
}
.nav__link:hover::after, .nav__link[aria-current="page"]::after { right: 0; }

.burger {
  display: none; background: none; border: 0; padding: .5rem; cursor: pointer;
  width: 44px; height: 44px; align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.burger span { display: block; width: 24px; height: 2px; background: var(--on-ink); transition: transform .3s var(--ease), opacity .3s var(--ease); }
.nav--open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav--open .burger span:nth-child(2) { opacity: 0; }
.nav--open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.drawer {
  position: fixed; inset: 0; z-index: 89; background: var(--ink); color: var(--on-ink);
  display: flex; flex-direction: column; justify-content: center; padding: 0 var(--gut);
  opacity: 0; pointer-events: none; transition: opacity .35s var(--ease);
}
.drawer.open { opacity: 1; pointer-events: auto; }
.drawer a {
  text-decoration: none; font-family: var(--serif); font-size: clamp(2rem, 8vw, 3rem);
  padding: .35em 0; border-bottom: 1px solid var(--line-ink);
}
.drawer a:last-of-type { border-bottom: 0; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden;
        background: var(--ink); color: var(--on-ink); }
.hero .mut { color: rgba(243,239,232,.88); }   /* over a photograph, .62 alpha fails AA */
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(15,13,11,.58) 0%, rgba(15,13,11,.20) 32%, rgba(15,13,11,.70) 62%, rgba(15,13,11,.92) 82%, rgba(15,13,11,.97) 100%);
}
.hero__inner { position: relative; width: 100%; padding: 0 var(--gut) clamp(2.5rem, 6vw, 5rem); }
.hero__grid { max-width: var(--max); margin: 0 auto; }
.hero h1 {
  font-family: var(--serif); font-size: var(--t-h1); line-height: 1.02;
  letter-spacing: -.015em; max-width: 26ch; margin: 1.1rem 0 0;
  /* At display size Bodoni picks its high-contrast optical size and the W's left strokes go to
     hairlines. A small optical size keeps them solid, and 800 keeps the line bold. */
  font-weight: 800;
  font-variation-settings: "opsz" 18;
}
.hero__meta {
  display: flex; flex-wrap: wrap; gap: 1.25rem 2.5rem; align-items: baseline;
  margin-top: clamp(1.75rem, 3.5vw, 3rem);
}
.hero__credit { margin-left: auto; text-align: right; color: var(--on-ink); }
.hero__scroll {
  position: absolute; left: var(--gut); bottom: 0; width: 1px; height: 54px; background: var(--line-ink);
  overflow: hidden;
}
.hero__scroll::after {
  content: ""; position: absolute; inset: 0; background: var(--gold);
  animation: drip 2.6s var(--ease) infinite;
}
@keyframes drip { 0% { transform: translateY(-100%);} 55%,100% { transform: translateY(100%);} }

/* ---------- the editorial grid ----------
   Twelve columns, and things are placed on ODD spans on purpose. A page where
   every element starts and ends on the same two edges reads as a form, not as
   a monograph. Placement is written inline per section so the composition is
   legible where you are reading it. */
.g12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 clamp(1rem, 2.2vw, 2.25rem); }
@media (max-width: 899px) {
  .g12 { grid-template-columns: minmax(0, 1fr); }
  .g12 > * { grid-column: 1 / -1 !important; }
}

/* Run a plate off one edge of the page. Deliberately NOT 100vw: vw includes the
   scrollbar, so a vw-based bleed overhangs the document by ~7px and shows up as
   a real horizontal overflow. 100% here is the section's width, which is the
   body content width, scrollbar already excluded. The padded side lines up with
   .wrap exactly; the other side has no padding, so the plate runs off. */
.edge { width: 100%; }
.edge--r { padding-left:  max(var(--gut), calc((100% - var(--max)) / 2 + var(--gut))); padding-right: 0; }
.edge--l { padding-right: max(var(--gut), calc((100% - var(--max)) / 2 + var(--gut))); padding-left: 0; }

/* Two parts that do not share a baseline and are not the same width. */
.offset { display: grid; gap: clamp(2rem, 4vw, 3.5rem); }
@media (min-width: 900px) {
  .offset { grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); align-items: start; }
  .offset--wide-left { grid-template-columns: minmax(0, 1.22fr) minmax(0, .78fr); }
  .offset--drop-left  > :first-child { padding-top: clamp(3rem, 9vw, 10rem); }
  .offset--drop-right > :last-child  { padding-top: clamp(3rem, 9vw, 10rem); }
}

/* push a block down out of line with its neighbour */
.drop  { margin-top: clamp(2.5rem, 7vw, 7rem); }
.drop--s { margin-top: clamp(1.5rem, 4vw, 3.5rem); }
@media (max-width: 899px) { .drop, .drop--s { margin-top: 0; } }

/* numbers hang outside the column they label, the way a plate number does */
.hang { position: relative; }
@media (min-width: 900px) {
  .hang > .hang__no {
    position: absolute; left: -4.25rem; top: .35em; width: 3rem; text-align: right;
  }
}
.hang__no { font-size: var(--t-label); letter-spacing: .1em; font-feature-settings: "tnum"; opacity: .55; }

/* ---------- section head ---------- */
.head { display: grid; grid-template-columns: minmax(0,1fr); gap: 1.5rem; margin-bottom: clamp(2.5rem,5vw,4rem); }
@media (min-width: 900px) { .head { grid-template-columns: 17rem minmax(0,1fr); gap: clamp(2rem,5vw,5rem); } }
.head h2 {
  font-family: var(--serif); font-size: var(--t-h2); line-height: 1.08;
  letter-spacing: -.012em; max-width: 20ch;
}
.head p { font-size: var(--t-lead); line-height: 1.5; max-width: 46ch; margin: 1.1rem 0 0; }

/* ---------- statement ---------- */
.statement {
  font-family: var(--serif); font-size: var(--t-h2); line-height: 1.18;
  letter-spacing: -.01em; max-width: 22ch;
  font-variation-settings: "opsz" 18;   /* the same W, the same hairline problem */
}
.statement--big { font-size: var(--t-h1); line-height: 1.04; max-width: 15ch; }
.figure { position: relative; }
.figure img { width: 100%; border-radius: var(--r-plate); }
/* an italic serif caption, hung under the left edge of its own plate */
.figure figcaption {
  margin-top: .9rem; font-size: var(--t-small); color: var(--on-paper-mut);
  font-family: var(--serif); font-style: italic; letter-spacing: .01em;
  display: flex; gap: 1rem 2rem; justify-content: space-between; flex-wrap: wrap;
}
.ink .figure figcaption { color: var(--on-ink-mut); }
/* a plate that runs off the right edge keeps its caption inside the page */
.edge--r figcaption { padding-right: var(--gut); }
.edge--l figcaption { padding-left: var(--gut); }

.split { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.split--end { align-items: end; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1.15fr; } }
.split--flip > :first-child { order: 2; }
@media (max-width: 899px) { .split--flip > :first-child { order: 0; } }

/* ---------- award ---------- */
.award { position: relative; overflow: hidden; }
.award__media { position: absolute; inset: 0; }
.award__media img { width: 100%; height: 100%; object-fit: cover; }
.award__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(15,13,11,.94) 0%, rgba(15,13,11,.78) 42%, rgba(15,13,11,.32) 100%);
}
.award__inner { position: relative; }
.citation { max-width: 34rem; }
/* the award seal, lifted off the certificate the client sent */
.seal {
  width: clamp(7.5rem, 11vw, 10.5rem); height: auto; margin-bottom: 1.5rem;
  filter: drop-shadow(0 14px 28px rgba(0,0,0,.45));
}
.citation h2 {
  font-family: var(--serif); font-size: var(--t-h2); line-height: 1.06; margin: 1.25rem 0 0;
}
.citation dl { margin: 2rem 0 0; display: grid; grid-template-columns: 8.5rem minmax(0,1fr); gap: .1rem 1.5rem; }
.citation dt { font-size: var(--t-label); letter-spacing: .14em; text-transform: uppercase; color: var(--on-ink-mut); padding: .6rem 0; }
.citation dd { margin: 0; padding: .6rem 0; font-size: var(--t-small); border-top: 1px solid var(--line-ink); }
.citation dt + dd { border-top: 1px solid var(--line-ink); }
.citation dt { border-top: 1px solid var(--line-ink); }

/* ---------- project ledger (the one scroll idea) ---------- */
.ledger { display: grid; gap: clamp(2rem,4vw,4rem); }
@media (min-width: 1000px) { .ledger { grid-template-columns: minmax(0,1fr) minmax(0,.82fr); align-items: stretch; gap: clamp(2.5rem,5vw,5rem); } }

.ledger__list { border-top: 1px solid var(--line-paper); }
.ink .ledger__list { border-top-color: var(--line-ink); }
.ledger__row {
  display: grid; grid-template-columns: 3.25rem minmax(0,1fr) auto; gap: 1rem 1.25rem;
  align-items: baseline; padding: clamp(1.1rem,2vw,1.6rem) 0;
  border-bottom: 1px solid var(--line-paper);
  text-decoration: none; position: relative; transition: color .3s var(--ease);
}
.ink .ledger__row { border-bottom-color: var(--line-ink); }
.ledger__row::before {
  content: ""; position: absolute; left: -1.25rem; right: -1.25rem; top: 0; bottom: 0;
  background: var(--paper-2); opacity: 0; transition: opacity .35s var(--ease); z-index: -1;
}
.ledger__row:hover::before, .ledger__row.is-active::before { opacity: 1; }
.ledger__no { font-size: var(--t-label); letter-spacing: .1em; color: var(--on-paper-mut); font-feature-settings: "tnum"; }
.ink .ledger__no, .ink .ledger__meta { color: var(--on-ink-mut); }
.ink .ledger__row::before { background: var(--ink-3); }
.ink .ledger__row:hover .ledger__name, .ink .ledger__row.is-active .ledger__name { color: var(--gold); }
.ledger__name { font-family: var(--serif); font-size: var(--t-index); line-height: 1.15; }
.ledger__meta { font-size: var(--t-small); color: var(--on-paper-mut); text-align: right; }
.ledger__row:hover .ledger__name, .ledger__row.is-active .ledger__name { color: var(--gold-deep); }

/* The index, not a table. Two lines per entry and no second column, so the
   right side stays ragged; the plate number hangs outside the rule. */
@media (min-width: 1000px) {
  .ledger__list { margin-left: 4.5rem; }
  .ledger__row {
    grid-template-columns: minmax(0, 1fr); gap: .3rem;
    padding: clamp(1.2rem, 2.2vw, 1.8rem) 0;
  }
  .ledger__no { position: absolute; left: -4.5rem; top: clamp(1.4rem, 2.5vw, 2.1rem); }
  .ledger__name { font-size: clamp(1.35rem, 2.4vw, 2.1rem); letter-spacing: -.01em; }
  .ledger__meta {
    text-align: left; font-family: var(--serif); font-style: italic;
    font-size: var(--t-small); letter-spacing: .01em;
  }
  .ledger__row::before { left: -1.75rem; right: -1.75rem; }
}

.ledger__stage {
  /* stretched grid area, fixed-height sticky child: without the stretch the
     plate's own box ends at row six and the rest of the index has a void beside it */
  position: sticky; top: 5.5rem; height: min(78vh, 46rem);
  overflow: hidden; background: var(--paper-2); border-radius: var(--r-plate);
}
.ledger__stage img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.04); transition: opacity .55s var(--ease), transform .9s var(--ease);
}
.ledger__stage img.on { opacity: 1; transform: scale(1); }
@media (max-width: 999px) { .ledger__stage { display: none; } }

/* the mobile fallback: each row carries its own thumbnail */
.ledger__thumb { display: none; }
@media (max-width: 999px) {
  .ledger__row { grid-template-columns: 5.5rem minmax(0,1fr); grid-template-areas: "no name" "thumb meta"; }
  .ledger__no { grid-area: no; }
  .ledger__name { grid-area: name; }
  .ledger__meta { grid-area: meta; text-align: left; align-self: center; }
  .ledger__thumb { grid-area: thumb; display: block; aspect-ratio: 4/3; overflow: hidden; border-radius: var(--r-plate); }
  .ledger__thumb img { width: 100%; height: 100%; object-fit: cover; }
}

/* ---------- capability list ---------- */
.caps { display: grid; gap: 0 clamp(2rem,5vw,5rem); border-top: 1px solid var(--line-ink); }
@media (min-width: 760px) { .caps { grid-template-columns: 1fr 1fr; } }
.caps li {
  display: flex; align-items: baseline; gap: 1.25rem;
  padding: clamp(.9rem,1.6vw,1.15rem) 0; border-bottom: 1px solid var(--line-ink);
}
.caps b { font-weight: 400; font-size: var(--t-label); color: var(--gold); letter-spacing: .1em; font-feature-settings: "tnum"; }

/* ---------- cards ---------- */
.cards { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
@media (min-width: 720px)  { .cards--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } }

/* Plates: three photographs of different sizes that do not sit on one baseline.
   Placement and offset are set inline per plate, on the 12-column grid. */
.plates { display: grid; gap: clamp(2rem, 4vw, 3rem) 0; }
@media (min-width: 900px) {
  .plates { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 clamp(1rem, 2.2vw, 2.25rem); align-items: start; }
}
/* the inline grid-column placements are a desktop composition; below the
   breakpoint every plate is full width or it hangs off the screen */
@media (max-width: 899px) { .plates > * { grid-column: 1 / -1 !important; } }

.card { text-decoration: none; display: block; }
.card__media { overflow: hidden; aspect-ratio: 4/3; background: var(--paper-2); border-radius: var(--r-plate); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card--tall .card__media { aspect-ratio: 4/5; }
.card--wide .card__media { aspect-ratio: 3/2; }
.card--sq   .card__media { aspect-ratio: 1/1; }
.card h3 { font-family: var(--serif); font-size: var(--t-h3); margin: 1.1rem 0 .35rem; line-height: 1.2; }
.card p { font-size: var(--t-small); color: var(--on-paper-mut); margin: 0; }
.ink .card p { color: var(--on-ink-mut); }

/* ---------- facts ---------- */
.facts { display: grid; gap: 0 clamp(2rem,5vw,4rem); border-top: 1px solid var(--line-paper); }
@media (min-width: 640px)  { .facts { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .facts { grid-template-columns: repeat(12, minmax(0,1fr)); gap: 0 clamp(1rem,2.2vw,2.25rem); border-top: 0; align-items: start; } }
.fact { padding: 1.5rem 0; border-bottom: 1px solid var(--line-paper); }
@media (min-width: 1000px) { .fact { border-top: 1px solid var(--line-paper); border-bottom: 0; padding-right: 1.5rem; } }
@media (max-width: 999px)  { .facts > .fact { grid-column: 1 / -1 !important; } }
.ink .facts, .ink .fact { border-color: var(--line-ink); }
.fact__k { font-family: var(--serif); font-size: clamp(2rem,3.4vw,2.75rem); line-height: 1; display: block; }
.fact__v { display: block; margin-top: .6rem; font-size: var(--t-small); color: var(--on-paper-mut); max-width: 24ch; }
.ink .fact__v { color: var(--on-ink-mut); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .75rem; text-decoration: none;
  border: 1px solid currentColor; padding: .85rem 1.6rem; font-size: var(--t-small);
  letter-spacing: .08em; text-transform: uppercase; white-space: normal; max-width: 100%;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn:hover { background: var(--gold); border-color: var(--gold); color: #14120F; }
.btn__arrow { transition: transform .3s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* ---------- contact ---------- */
.contact-grid { display: grid; gap: clamp(2rem,5vw,4.5rem); }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.1fr; } }
.field { display: block; margin-bottom: 1.5rem; }
.field span { display: block; font-size: var(--t-label); letter-spacing: .12em; text-transform: uppercase; margin-bottom: .55rem; color: var(--on-paper-mut); }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: var(--t-body); color: inherit;
  background: transparent; border: 0; border-bottom: 1px solid var(--line-paper);
  padding: .7rem 0; border-radius: 0;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 0; border-bottom-color: var(--gold-deep); }
.field textarea { resize: vertical; min-height: 7rem; }
.hp { position: absolute; left: -9999px; }
.pair { display: grid; gap: 0 1.5rem; }
@media (min-width: 560px) { .pair { grid-template-columns: 1fr 1fr; } }
.formnote { font-size: var(--t-small); color: var(--on-paper-mut); }
.formmsg { margin-top: 1.25rem; font-size: var(--t-small); }
.formmsg.ok  { color: var(--gold-deep); }
.formmsg.err { color: #9C2B1E; }

.deets { border-top: 1px solid var(--line-paper); }
.deets div { padding: 1.15rem 0; border-bottom: 1px solid var(--line-paper); display: grid; gap: .25rem 1.5rem; }
@media (min-width: 560px) { .deets div { grid-template-columns: 9rem minmax(0,1fr); } }
.deets dt { font-size: var(--t-label); letter-spacing: .12em; text-transform: uppercase; color: var(--on-paper-mut); }
.deets dd { margin: 0; }
.deets a { text-decoration: none; border-bottom: 1px solid var(--gold-deep); }
.ink .deets { border-top-color: var(--line-ink); }
.ink .deets div { border-bottom-color: var(--line-ink); }
.ink .deets dt { color: var(--on-ink-mut); }
.ink .deets a { border-bottom-color: var(--gold); }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: var(--on-ink); padding: clamp(3.5rem,6vw,6rem) 0 0; }
.footer__grid { display: grid; gap: clamp(2rem,4vw,3rem); }
@media (min-width: 760px)  { .footer__grid { grid-template-columns: repeat(2, minmax(0, 22rem)); } }
.footer h4 { font-size: var(--t-label); letter-spacing: .16em; text-transform: uppercase; color: var(--on-ink-mut); margin-bottom: 1.1rem; }
.footer li { padding: .3rem 0; font-size: var(--t-small); }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--gold); }
.footer__bottom {
  margin-top: clamp(3rem,5vw,4.5rem); border-top: 1px solid var(--line-ink);
  padding: 1.5rem 0; display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: space-between;
  font-size: 10px; letter-spacing: .04em; color: var(--on-ink-mut);
}

/* ---------- clearance under the fixed nav ----------
   The page title band used to supply this. Pages that now open on a full-bleed
   image want the image to run under the bar; a page that opens on text needs the
   clearance back. --navh is measured and published by psr.js on load and resize,
   so this never carries a guessed nav height; the fallback only has to hold until
   that runs, and for no-JS. */
.pad-nav { padding-top: calc(var(--navh, 5rem) + clamp(1.5rem, 3vw, 2.75rem)); }

/* ---------- reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- responsive nav ---------- */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .burger { display: flex; }
  .brand__sub { display: none; }
}
@media (max-width: 640px) {
  .hero__credit { margin-left: 0; text-align: left; }
  .btn { white-space: normal; max-width: 100%; }
}


/* ==========================================================================
   Motion, depth and hover craft
   One idea per surface: photographs drift slower than the page, plates lift
   off the paper, display lines wipe up from a mask. Everything here is off
   under prefers-reduced-motion, and nothing here carries content.
   ========================================================================== */

/* ---------- depth: a plate is a print laid on the paper ---------- */
.paper .figure img,
.paper .card__media,
.paper .ledger__stage,
.paper .ledger__thumb {
  box-shadow: var(--shadow-plate);
}
.paper .figure,
.paper .card {
  transition: transform .55s var(--ease-out), filter .55s var(--ease-out);
}
@media (hover: hover) {
  .paper .figure:hover,
  .paper .card:hover { transform: translateY(-5px); }
  .paper .figure:hover img,
  .paper .card:hover .card__media { box-shadow: var(--shadow-lift); }
}

/* on the ink ground there is no shadow to give; the frame does the work */
.ink .figure img,
.ink .card__media { box-shadow: none; }
.ink .card__media { outline: 1px solid var(--line-ink); outline-offset: -1px; }

/* ---------- hover: the image moves inside its frame, not the frame ---------- */
.card__media img,
.ledger__thumb img { transition: transform 1.1s var(--ease-out); }
@media (hover: hover) {
  .card:hover .card__media img,
  .ledger__row:hover .ledger__thumb img { transform: scale(1.045); }
}

/* ---------- parallax: photographs drift slower than the page ---------- */
[data-parallax] {
  transform: scale(1.14);            /* the headroom the drift moves inside */
  will-change: transform;
}
/* The whole picture, not a slice of it: these bands used to
   be a fixed height with object-fit:cover, which cropped a 16:9 photo down to
   whatever the clamp allowed. Now the image sets the height and nothing is cut. */
.bandmedia { position: relative; overflow: hidden; line-height: 0; }
.bandmedia img { position: static; width: 100%; height: auto; display: block; }

/* ---------- display lines wipe up from a mask ---------- */
.rl {
  display: block; overflow: hidden;
  /* a clipped line box would cut the descenders off a big serif */
  padding-bottom: .09em; margin-bottom: -.09em;
}
.rl > span {
  display: block;
  transform: translateY(108%);
  transition: transform .95s var(--ease-out);
}
.rl.in > span { transform: none; }
.rl:nth-of-type(2) > span { transition-delay: .09s; }
.rl:nth-of-type(3) > span { transition-delay: .18s; }

/* ---------- nav gains real depth once it is over content ---------- */
.nav--solid { box-shadow: var(--shadow-nav); }

/* ---------- buttons: a fill that sweeps, a corner that is not square ---------- */
.btn {
  position: relative; overflow: hidden; z-index: 0; border-radius: var(--r-ui);
  transition: color .35s var(--ease), border-color .35s var(--ease),
              transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--gold);
  transform: scaleX(0); transform-origin: left center;
  transition: transform .45s var(--ease-out);
}
.btn:hover { background: none; border-color: var(--gold); color: #14120F; transform: translateY(-2px); }
.btn:hover::before { transform: scaleX(1); }
.paper .btn:hover { box-shadow: 0 12px 26px -18px rgba(20,18,15,.6); }

/* ---------- form fields ---------- */
.field input, .field textarea, .field select { border-radius: 0; }
.field input, .field textarea {
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.field input:focus, .field textarea:focus { background: rgba(20,18,15,.03); }

/* ---------- the drawer opens as a sequence, not a slab ---------- */
.drawer a {
  opacity: 0; transform: translateY(16px);
  transition: opacity .4s var(--ease), transform .55s var(--ease-out);
}
.drawer.open a { opacity: 1; transform: none; }
.drawer.open a:nth-child(1) { transition-delay: .06s; }
.drawer.open a:nth-child(2) { transition-delay: .11s; }
.drawer.open a:nth-child(3) { transition-delay: .16s; }
.drawer.open a:nth-child(4) { transition-delay: .21s; }
.drawer.open a:nth-child(5) { transition-delay: .26s; }
.drawer.open a:nth-child(6) { transition-delay: .31s; }

/* ---------- map frame ---------- */
.mapframe { border-radius: var(--r-plate); overflow: hidden; }
.paper .mapframe { box-shadow: var(--shadow-plate); }

/* ---------- project albums ----------
   A photo album site: the grid is the content, so the tiles are big and the
   type around them is small. Both the index tiles and the album tiles use the
   same 4:3 thumbnail, which is why a cover can never disagree with its album. */
.tiles {
  display: grid; gap: clamp(1.25rem, 2.5vw, 2rem);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
}
.tile { display: block; text-decoration: none; color: inherit; }
.tile__media {
  display: block; position: relative; overflow: hidden;
  border-radius: var(--r-plate); background: var(--paper-2);
  box-shadow: var(--shadow-plate); aspect-ratio: 4 / 3;
}
.tile__media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .7s var(--ease);
}
.tile:hover .tile__media img, .tile:focus-visible .tile__media img { transform: scale(1.045); }
.tile__empty { position: absolute; inset: 0; background:
  repeating-linear-gradient(45deg, var(--paper-2) 0 10px, transparent 10px 20px); }
.tile__body { display: block; padding-top: .9rem; }
.tile__body strong { display: block; font-family: var(--serif); font-size: 1.22rem; font-weight: 500; }
.tile__body .mut { display: block; font-size: var(--t-small); margin-top: .2rem; }
.tile__count {
  display: block; margin-top: .45rem; font-size: var(--t-label);
  letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep);
}

.album {
  display: grid; gap: clamp(.75rem, 1.6vw, 1.25rem);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
}
.album__tile {
  padding: 0; border: 0; background: none; cursor: zoom-in; display: block;
  border-radius: var(--r-ui); overflow: hidden; box-shadow: var(--shadow-plate);
  aspect-ratio: 4 / 3;
}
.album__tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s var(--ease); }
.album__tile:hover img, .album__tile:focus-visible img { transform: scale(1.05); }

/* Album footer nav. This was a flex row with space-between, so the middle
   button landed at a different x on every album: its position was set by how
   long the neighbouring project names were, and on the first and last project
   the empty prev/next slot collapsed and moved it again. A fixed three column
   grid makes the geometry identical everywhere, and the label truncates rather
   than wrapping the button onto two lines. */
.projnav {
  display: grid; grid-template-columns: 1fr auto 1fr;
  gap: .85rem 1.25rem; align-items: center;
}
.projnav > span { display: flex; min-width: 0; }
.projnav__prev { justify-content: flex-start; }
.projnav__all  { justify-content: center; }
.projnav__next { justify-content: flex-end; }
.projnav .btn { max-width: 100%; }
/* min-width:0 or the label refuses to shrink inside the flex button */
.projnav .btn__label {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
@media (max-width: 719px) {
  .projnav { grid-template-columns: 1fr; }
  .projnav > span { justify-content: stretch; }
  .projnav .btn { width: 100%; justify-content: center; }
  .projnav__prev:empty, .projnav__next:empty { display: none; }
}

/* ---------- lightbox ----------
   Full frame, uncropped: the whole point of the album is seeing the photograph,
   so the image is contained inside the viewport rather than filled to it. */
.lb {
  position: fixed; inset: 0; z-index: 200; display: none;
  background: rgba(20,18,15,.96); align-items: center; justify-content: center;
}
.lb[open], .lb.is-on { display: flex; }
.lb img { max-width: min(96vw, 1500px); max-height: 88vh; width: auto; height: auto; display: block; }
.lb__close, .lb__prev, .lb__next {
  position: absolute; background: none; border: 0; color: var(--on-ink);
  cursor: pointer; padding: 1rem; line-height: 1; font-size: 1.6rem;
}
.lb__close { top: .5rem; right: 1rem; }
.lb__prev { left: .25rem; top: 50%; transform: translateY(-50%); font-size: 2.2rem; }
.lb__next { right: .25rem; top: 50%; transform: translateY(-50%); font-size: 2.2rem; }
.lb__count {
  position: absolute; bottom: 1.1rem; left: 50%; transform: translateX(-50%);
  font-size: var(--t-label); letter-spacing: .14em; color: var(--on-ink-mut);
}
@media (max-width: 599px) { .lb__prev, .lb__next { font-size: 1.7rem; padding: .6rem; } }

/* a project with no photograph yet still holds its place on the wall */
.card__empty {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg,
    rgba(20,18,15,.05) 0 12px, transparent 12px 24px);
}
/* the media box is a <span> inside the <a>, so it needs display:block or
   aspect-ratio and the absolutely-placed empty state have nothing to sit in
   and a project with no photograph collapses to bare text */
.card__media { position: relative; display: block; }
.card__count {
  display: inline-block; margin-top: .3rem; font-size: var(--t-label);
  letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep);
}

/* Running copy: PSR's own About text, two short paragraphs set to read, not to decorate. */
.prose { max-width: 46ch; }
.prose p { margin: 0; font-size: var(--t-lead, 1.125rem); line-height: 1.6; }
.prose p + p { margin-top: 1.1em; }

/* ---------- the square project grid ----------
   Four across on a wide screen, stepping down so a square never gets smaller than a thumb can hit. */
.grid-sq {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.75rem, 3vw, 2.5rem) clamp(.9rem, 1.6vw, 1.4rem);
}
@media (max-width: 1199px) { .grid-sq { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 899px)  { .grid-sq { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 519px)  { .grid-sq { grid-template-columns: 1fr; } }
.grid-sq .card { grid-column: auto !important; }
.grid-sq .card h3 { font-size: clamp(1.05rem, 1.3vw, 1.25rem); margin-top: .85rem; }

/* About: the two photographs PSR asked for in place of the commitments block, side by side. */
.pair-photos { display: grid; gap: clamp(1rem, 2vw, 1.75rem); grid-template-columns: 1fr 1fr; }
@media (max-width: 719px) { .pair-photos { grid-template-columns: 1fr; } }
.pair-photos img { width: 100%; height: auto; display: block; border-radius: var(--r-plate); }
/* running copy on a dark band must be light */
.ink .prose p { color: var(--on-ink); }
