@import url('https://fonts.googleapis.com/css2?family=Sacramento&family=Anton&family=Bodoni+Moda:opsz,wght@6..96,400;6..96,500;6..96,600&family=Cormorant+Garamond:wght@300;400;500;600;700&family=Instrument+Serif:ital@0;1&family=Inter:wght@200;300;400;500;600;700&family=Space+Grotesk:wght@300;400;500;600&display=swap');

:root {
  /* Inter first — real Helvetica only exists on Apple devices, and Windows would
     otherwise silently substitute Arial. Helvetica kept as a fallback for Macs
     if Inter ever fails to load. */
  --wordmark: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  /* Must match the rendered height of .site-nav — the hero offsets itself by it.
     The 44px icon boxes are the tallest thing in the row, not the logo:
     44 + 14 padding top and bottom + 1px border. */
  --nav-h: 73px;
  --bg: #faf8f4;
  --bg-soft: #f2eee7;
  --ink: #1c1a17;
  --body: #423c34;
  --muted: #7a7266;
  --accent: #b8683a;
  --line: rgba(28,26,23,0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: var(--accent); color: #faf8f4; }

h1, h2, h3, .serif { font-family: 'Instrument Serif', serif; font-weight: 400; }

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

/* NAV — solid paper so content never runs under it */
header.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 5vw;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
/* Icon-only mark, matched to the social glyphs. It sits in the same 44px box so
   all three share a baseline and touch target; the mark is set marginally taller
   than 22px because its open form reads lighter than the two solid tiles. */
/* Mark plus wordmark. Width is auto now that text sits beside the icon — the
   fixed 44px box that matched the social glyphs would clip it. */
.site-nav .logo {
  display: inline-flex; align-items: center; gap: 12px;
  height: 44px; margin-left: -4px;
  transition: transform 0.25s ease;
}
.site-nav .logo img { display: block; height: 26px; width: auto; flex: 0 0 auto; }
.logo-text {
  font-family: 'Instrument Serif', Georgia, serif; font-weight: 400;
  font-size: 21px; line-height: 1; color: var(--ink);
  white-space: nowrap;
}
.site-nav .logo:hover { transform: translateY(-1px); }
.site-nav .logo:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.site-nav nav a {
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  position: relative; padding-bottom: 4px; color: var(--muted);
  transition: color 0.25s ease;
}
.site-nav nav a::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 1px;
  background: var(--accent); transition: width 0.3s ease;
}
.site-nav nav a:hover { color: var(--ink); }
.site-nav nav a:hover::after { width: 100%; }

/* Social icons — icon-only links, so each carries its label in aria-label and
   gets a touch target bigger than its 22px glyph. Deliberately unscoped: the
   same pair appears in the nav and again under the contact email, and scoping
   these to .site-nav is what made the contact copies render unstyled. */
.social-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  padding-bottom: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.social-link svg { width: 22px; height: 22px; display: block; }
.social-link::after { content: none; }
/* The icons carry their own brand colours now, so hover lifts and brightens
   rather than recolouring — a currentColor swap would fight the gradient. */
.social-link:hover { opacity: 0.82; transform: translateY(-1px); }
.social-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.site-nav nav { display: flex; align-items: center; gap: 4px; }
/* Only the last icon pulls flush to the page margin — otherwise the gap between
   the two icons collapses along with it. */
.site-nav nav .social-link:last-child { margin-right: -10px; }
/* Quick text links ahead of the icons. They share the nav link style above;
   the margins space them from each other and from the icon pair. */
.site-nav nav .nav-text { margin-right: 22px; }
.site-nav nav .nav-text + .social-link { margin-left: 6px; }
/* The header is fixed, so jump targets stop below it instead of under it. */
section[id] { scroll-margin-top: var(--nav-h); }
@media (max-width: 600px) {
  .site-nav nav .nav-text { margin-right: 12px; font-size: 11px; letter-spacing: 0.1em; }
  .site-nav nav .nav-text + .social-link { margin-left: 0; }
}

/* HERO — currently the photographic variant (see .hero.has-image below).
   To go back to the wordmark on plain paper, drop the "has-image" class and the
   <div class="hero-bg"></div> from .hero in index.html; the rules below go inert.
   The background file must be one you are cleared to publish AND one that lives
   outside /work/ — that path is password protected and 401s for a public
   visitor, so a photo referenced from there renders as an empty scrim. */
.hero {
  position: relative; overflow: hidden;
  margin-top: var(--nav-h);
  min-height: 62vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 100px 5vw;
}
.hero .eyebrow {
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 30px;
}
.hero h1 {
  font-family: var(--wordmark); font-weight: 300;
  text-transform: uppercase; letter-spacing: 0.2em;
  /* letter-spacing adds a trailing space that throws off optical centering */
  text-indent: 0.2em;
  font-size: clamp(23px, 5vw, 64px); line-height: 1.25;
  color: var(--ink); max-width: none;
}

/* TWO-LINE WORDMARK — an elegant serif name over a small plain sans label.
   Centring: letter-spacing appends a trailing space after the final letter but
   adds nothing before the first, so a centred line always drifts right of true
   centre. Correcting that with text-indent means guessing how the browser splits
   the indent under text-align:center — it does not divide the way you would
   predict. So instead each line is a flex item that shrink-wraps to its own
   width, and a negative margin-right cancels exactly one trailing letter-space.
   The centred box then equals the visible ink, at any tracking, with no
   magic numbers.

   The h1 font-size drives the NAME; DESIGN is sized as a fraction of it, so the
   two stay in proportion at every viewport. */
.hero h1.wordmark {
  letter-spacing: normal; text-indent: 0;
  line-height: 1;
  display: flex; flex-direction: column; align-items: center;
  font-size: clamp(34px, 7.6vw, 104px);
}
.hero h1.wordmark .wm-name,
.hero h1.wordmark .wm-word {
  letter-spacing: var(--ls);
  margin-right: calc(-1 * var(--ls));
}
/* Instrument Serif — the face already carrying every heading on the site, so the
   hero no longer introduces a typeface used nowhere else.
   Set in title case, not caps: the mixed-case letterforms are the point of this
   serif, and caps would throw away its lowercase entirely. */
.hero h1.wordmark .wm-name {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  text-transform: none;
  --ls: 0.005em;
  font-size: 1.02em;
  line-height: 1.02;
}
/* DESIGN does not try to span the name's width. At roughly a sixth of the size,
   matching that measure would need ~4em of tracking and the word would fall
   apart into loose letters. It sits as a small plain label instead —
   subordinate on purpose, which is what the size difference is for. */
.hero h1.wordmark .wm-word {
  /* Same serif as the name — one face across the whole lockup, per the mockup.
     DESIGN stays uppercase against the title-case name above it; that case
     contrast is what separates the two lines now that the tracking is closed up
     and both are set in the same face. */
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  text-transform: uppercase;
  font-size: 0.62em;
  --ls: 0.04em;
  margin-top: 0.1em;
}
.hero .sub {
  margin-top: 32px; font-size: 12px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted);
}

/* Photographic variant — inert until .has-image is added.
   Public copy of the 150 N Riverside bar, deliberately kept outside /work/ so it
   is actually reachable without the portfolio password. */
/* Cover layout: wordmark held high in the frame, location line dropped to the
   base. .hero-bg is absolutely positioned and so out of flex flow — the only
   flex children are the h1 and .sub, which is what lets margin-top:auto push
   the sub all the way down regardless of how tall the viewport is. */
.hero.has-image {
  min-height: calc(100vh - var(--nav-h));
  padding: 14vh 5vw 5.5vh;
  justify-content: flex-start;
}
.hero.has-image .sub { margin-top: auto; }
.hero.has-image .hero-bg {
  position: absolute; inset: 0;
  background-image: url('../images/hero-wrigley.jpg'); /* was hero-riverside.jpg (kept on disk) */
  background-size: cover; background-position: center;
}
/* Scrim: heavier top and bottom, lighter across the middle so the subject still
   reads through behind the wordmark. The extra stop at 62% holds contrast over
   the lit brass counter, which is the brightest band in this particular photo
   and sits directly behind the centred text. */
.hero.has-image .hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(16,13,10,0.62) 0%,
    rgba(16,13,10,0.44) 38%,
    rgba(16,13,10,0.52) 62%,
    rgba(16,13,10,0.68) 100%);
}
.hero.has-image > *:not(.hero-bg) { position: relative; }
.hero.has-image h1 { color: #fff; }
.hero.has-image .sub { color: rgba(255,255,255,0.88); }
/* A soft shadow rather than more scrim: the sub-line sits low on the lit marble
   floor, and darkening the whole photo enough to carry 12px type would flatten
   the thing worth showing. */
.hero.has-image h1,
.hero.has-image .sub { text-shadow: 0 1px 20px rgba(16,13,10,0.6); }
/* Photo-only hero: no text over the image, so the darkening scrim (which was
   only there to carry white type) goes too and the photograph shows as shot. */
.hero.photo-only .hero-bg::after { display: none; }

/* Visually hidden but still read by screen readers and search engines. */
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* LOCKED WORK PANEL — stands in for a gallery thumbnail on the public page */
.locked-frame {
  background: var(--bg-soft); border: 1px solid var(--line);
  height: 34vh; min-height: 230px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; text-align: center;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.project-card:hover .locked-frame { border-color: rgba(184,104,58,0.45); background: #f0eae1; }
.locked-frame svg { color: var(--accent); }
.locked-frame .lock-text {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink); line-height: 2;
}
.locked-frame .lock-text span { color: var(--muted); }

/* SECTIONS */
section { position: relative; padding: 130px 5vw; }
.section-label {
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 24px;
}

/* ABOUT */
/* Portrait column widened now that the facts list is gone — with nothing beneath
   it, a 360px image left the column looking short against the bio text. */
/* Photo and bio run top to bottom together: the row stretches to the height of
   the copy, and the portrait fills its column at that height (object-fit:
   cover). The crop is anchored a little above centre so the face and the
   skyline behind it stay in frame however tall the copy runs. */
/* Even split: a wider photo column crops less off the portrait's sides, and the
   wider copy column (no measure cap) makes the bio shorter, so the two meet at
   a lower common height. */
/* The portrait is never cropped: it shows whole at its own proportions, and the
   copy sits beside it from the top. */
.about-grid { display: grid; grid-template-columns: 1.14fr 1fr; gap: 56px; align-items: stretch; }
.about-grid .about-media { align-self: start; }
/* Copy runs the photo's full height: first line level with the photo's top,
   the footnote level with its bottom, spacing tightened so it fits. */
.about-grid .about-copy { display: flex; flex-direction: column; justify-content: space-between; }
.about-grid h2 { margin-bottom: 20px !important; }
.about-grid p.about-lede { margin-top: 22px !important; }
.about-grid p.about-cta { margin-top: 16px !important; }
.about-grid .about-footnote { margin-top: 16px !important; }
.about-grid .about-media { position: static; overflow: visible; aspect-ratio: auto !important; }
.about-grid .about-media .headshot {
  position: static !important; width: 100%; height: auto !important; object-fit: contain !important;
}
.about-grid .about-copy p { max-width: none; font-size: 16px; line-height: 1.75; }
.about-grid .about-copy p.about-lede { max-width: none; }
.about-grid .headshot {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 30%;
}
/* Start the copy flush with the photo's top edge — no stray margin above. */
.about-grid .about-copy > :first-child { margin-top: 0; }
.about-grid .about-copy > :last-child { margin-bottom: 0; }
.about-grid h2 { font-size: clamp(30px, 3.8vw, 46px); line-height: 1.25; margin-bottom: 30px; }
.about-grid p { font-size: 17px; line-height: 1.85; color: var(--body); max-width: 56ch; }
.about-grid p + p { margin-top: 20px; }

/* Pull-quote line — the one sentence the bio turns on. */
.about-grid p.about-lede {
  font-family: 'Instrument Serif', serif; font-style: italic;
  font-size: clamp(25px, 2.7vw, 36px); line-height: 1.3;
  color: var(--ink); max-width: 18ch;
  margin-top: 44px; margin-bottom: 6px;
}
.about-subhead {
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); margin-top: 50px; margin-bottom: 18px;
}
.about-grid .about-subhead + p { margin-top: 0; }
.about-grid p.about-cta { margin-top: 30px; }
.about-cta a { border-bottom: 1px solid var(--accent); }
/* Pink pulled from the print on Ania's T-shirt in the bio portrait (#B07385 at
   its midtone), deepened to #9A5A6E so 12px text still reads on the cream
   background (about 4.9:1 contrast). */
.about-footnote {
  margin-top: 36px; font-size: 12px; letter-spacing: 0.06em; color: #e0218a; /* Cosmopolitan magenta, as in .brand-cosmo */
}
.about-footnote a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* DESIGN PORTFOLIO — two tiles, centred heading */
.portfolio-head {
  font-family: 'Instrument Serif', serif; font-weight: 400;
  font-size: clamp(32px, 4.6vw, 62px); line-height: 1.15;
  text-align: center; margin-bottom: 70px;
}
.portfolio-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 46px;
  align-items: start;
}
.portfolio-tile { display: block; }
.tile-media {
  position: relative;
  overflow: hidden; background: var(--bg-soft);
  /* A fixed ratio rather than a height, so both tiles stay identical whatever
     their sources' proportions — one is an <img>, the other a CSS background
     with no intrinsic size at all. 16:9 matches the storefront photograph, so it
     seats uncropped; a taller box would cut the Reserve mark off the left pier. */
  aspect-ratio: 16 / 9;
}
.tile-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: filter 0.45s ease;
}

/* HOVER STATE — full colour at rest, desaturated under a grey wash on hover,
   with the overlay fading up over it. */
.tile-overlay {
  position: absolute; inset: 0; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  padding: 22px; text-align: center;
  background: rgba(48,45,41,0.5);
  opacity: 0; transition: opacity 0.35s ease;
}
.overlay-text {
  font-family: 'Instrument Serif', serif; font-style: italic;
  font-size: clamp(22px, 2.4vw, 34px); color: #fff;
  text-shadow: 0 1px 20px rgba(16,13,10,0.6);
}

/* Only devices that actually hover get the hidden-until-hover behaviour. On
   touch there is no hover, so the overlay stays visible — otherwise the password
   field would be unreachable on a phone. focus-within keeps it open for keyboard
   users tabbing into the field. */
@media (hover: hover) {
  .tile-media:hover img { filter: grayscale(1); }
  .tile-media:hover .tile-overlay,
  .tile-media:focus-within .tile-overlay { opacity: 1; }
  .tile-media:focus-within img { filter: grayscale(1); }
  .tile-residential:hover::before,
  .tile-residential:focus-within::before { filter: grayscale(1); }
}
@media (hover: none) {
  .tile-overlay { opacity: 1; }
}
.tile-label {
  margin-top: 20px; text-align: center;
  font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink);
}
a.portfolio-tile:hover .tile-label { color: var(--accent); }

/* The residential rendering rides in as a BACKGROUND rather than an <img>, so a
   missing file degrades to an empty panel instead of a broken-image icon.
   Drop the file at assets/images/residential.jpg and the tile fills itself in. */
/* The rendering sits on a ::before rather than on the element itself, so the
   greyscale filter hits only the picture and not the overlay text above it. */
.tile-residential { background-color: var(--bg-soft); }
.tile-residential::before {
  content: ''; position: absolute; inset: 0;
  background-image: url('../images/residential.jpg');
  background-size: cover;
  /* The rendering is 1.60 against the tile's 16:9, so cover trims about 11% of
     its height. Biased above centre to keep the eucalyptus chandelier intact and
     spend the loss on empty floor instead. */
  background-position: center 42%;
  transition: filter 0.45s ease;
}

/* PASSWORD FORM — see the note in assets/js/motion.js: this is a front door,
   not a lock. The real gate is the Cloudflare middleware on /work/. */
.pw-form { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; max-width: 300px; }
.pw-label {
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: #fff; text-shadow: 0 1px 14px rgba(16,13,10,0.6);
}
.pw-row { display: flex; align-items: stretch; gap: 8px; width: 100%; }
.pw-input {
  flex: 1 1 auto; min-width: 0;
  font-family: 'Space Grotesk', sans-serif; font-size: 14px; letter-spacing: 0.1em;
  padding: 10px 12px; color: var(--ink);
  background: rgba(250,248,244,0.94);
  border: 1px solid rgba(250,248,244,0.6); border-radius: 2px;
}
.pw-input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.pw-go {
  flex: 0 0 auto; width: 42px; cursor: pointer;
  font-size: 16px; color: var(--ink);
  background: rgba(250,248,244,0.94);
  border: 1px solid rgba(250,248,244,0.6); border-radius: 2px;
  transition: background 0.25s ease, color 0.25s ease;
}
.pw-go:hover { background: var(--accent); color: #faf8f4; }
.pw-go:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pw-msg {
  min-height: 1em; font-size: 12px; letter-spacing: 0.06em;
  color: #ffd9a8; text-shadow: 0 1px 14px rgba(16,13,10,0.7);
}

/* WORK / PROJECT CARDS */
.project-card {
  display: block; padding: 80px 0; border-top: 1px solid var(--line);
  cursor: pointer; position: relative;
}
.project-card:first-of-type { border-top: none; }
.project-card-inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: center; }
.project-card:nth-child(even) .project-card-inner { direction: rtl; }
.project-card:nth-child(even) .project-card-inner > * { direction: ltr; }
.project-card .frame { overflow: hidden; background: var(--bg-soft); }
.project-card .frame img {
  width: 100%; height: 58vh; object-fit: cover;
  transition: transform 0.8s cubic-bezier(.2,.7,.2,1);
}
.project-card:hover .frame img { transform: scale(1.05); }
.project-card .idx {
  font-family: 'Instrument Serif', serif; font-size: 13vw; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px var(--line);
  position: absolute; top: -30px; left: -10px; z-index: -1;
}
.project-card .tag { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.project-card h3 { font-size: clamp(30px, 4.2vw, 54px); line-height: 1.12; margin-bottom: 20px; }
.project-card p.desc { font-size: 16px; line-height: 1.8; color: var(--body); max-width: 46ch; margin-bottom: 26px; }
.project-card .loc { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 26px; }
.project-card .view-link { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 10px; }
.project-card .view-link .arrow { display: inline-block; transition: transform 0.3s ease; }
.project-card:hover .view-link .arrow { transform: translateX(8px); }

/* RECOGNITION — press quotes and awards.
   The outlined numeral reuses the motif from .project-card .idx so the section
   reads as part of the same system rather than a bolted-on badge. */
/* Set full width, no measure limit — this line is the section's only heading now
   that the numbered label is gone, so it carries the whole opening statement. */
.rec-head {
  font-family: 'Instrument Serif', serif; font-weight: 400;
  font-size: clamp(30px, 4.6vw, 62px); line-height: 1.18;
  max-width: none; margin-bottom: 96px;
}

/* Three press call-outs across one line, awards on their own row beneath.
   Rows are assigned explicitly rather than left to auto-placement, which would
   reflow the whole arrangement the moment any block changed height. */
.rec-stagger {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 46px;
  align-items: start;
}
.rec-stagger > * { min-width: 0; }
.rec-a { grid-column: 1; grid-row: 1; }            /* Cosmo, Wrigley  */
.rec-b { grid-column: 2; grid-row: 1; }            /* Cosmo, Michigan */
.rec-c { grid-column: 3; grid-row: 1; }            /* Architectural Digest */

/* A short accent rule heads each call-out instead of a full hairline — at a third
   of the width the hairline read as a table edge rather than a pull quote. */
.press-item::before {
  content: ''; display: block;
  width: 38px; height: 2px; background: var(--accent);
  margin-bottom: 22px;
}
/* Awards now sit under the experience timeline. The timeline's last row already
   carries a bottom rule, so this block gets clear space above it rather than a
   second rule stacked on the first. */
.awards-block { margin-top: 96px; }

/* One photo under each recognition, full column width. A shared 3:2 frame keeps
   the three in line with each other whatever shape the source image is. */
.press-photo { margin: 22px 0 0; aspect-ratio: 3 / 2; overflow: hidden; background: var(--bg-soft); }

/* Three equal columns, matched top to bottom: each photo (and its credit) fills
   its column's full width instead of shrink-wrapping, and the columns stretch
   to the tallest one with the link + photo pinned to the bottom — so the three
   links and three photos sit on the same lines however long each quote runs. */
.rec-stagger { align-items: stretch; }
.rec-stagger .press-item { display: flex; flex-direction: column; }
.rec-stagger .press-body { flex: 1; }
.rec-stagger .press-quote,
.rec-stagger .press-photo,
.rec-stagger .press-credit { align-self: stretch; width: 100%; }
.rec-stagger .press-quote { margin-bottom: 26px; }
.rec-stagger .press-body > .press-project:first-of-type { margin-top: auto; }
/* Columns without a link: the photo itself takes the slack, so all three photos
   still finish on the same line. */
.rec-stagger .press-quote + .press-photo { margin-top: auto; }
.press-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Experience follows Recognitions directly; the full section padding on both
   sides stacked into a ~260px gap. Recognitions' bottom padding alone is enough. */
#experience { padding-top: 20px; }

/* MY WORK — project cards (Option A). */
.mw-head { margin-bottom: 18px !important; text-align: left !important; }
.mw-intro { font-size: 17px; line-height: 1.7; color: var(--body); max-width: 62ch; margin: 0 0 22px; }
.mw-access {
  display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--body);
  background: var(--bg-soft); padding: 10px 16px; border-radius: 999px; margin-bottom: 56px;
}
.mw-access a { color: #9A5A6E; border-bottom: 1px solid currentColor; }
.mw-lock { width: 14px; height: 14px; flex: 0 0 auto; }
.mw-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 56px 46px; }
.mw-card { display: block; color: inherit; }
.mw-ph { position: relative; overflow: hidden; background: var(--bg-soft); aspect-ratio: 3 / 2; }
.mw-ph img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.mw-card:hover .mw-ph img, .mw-card:focus-visible .mw-ph img { transform: scale(1.04); }
.mw-pill {
  position: absolute; top: 14px; left: 14px; display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink);
  background: rgba(250,248,244,.94); padding: 6px 10px; border-radius: 999px;
}
.mw-view {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 18px; color: #fff;
  font-size: 13px; letter-spacing: .1em; text-transform: uppercase;
  background: linear-gradient(transparent, rgba(16,13,10,.6)); opacity: 0; transition: opacity .3s ease;
}
.mw-card:hover .mw-view, .mw-card:focus-visible .mw-view { opacity: 1; }
@media (hover: none) { .mw-view { opacity: 1; } }
.mw-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
.mw-card h3 { font-family: 'Instrument Serif', serif; font-weight: 400; font-size: 30px; margin: 20px 0 6px; }
.mw-meta { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.mw-res {
  margin-top: 90px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center;
  background: var(--bg-soft);
}
.mw-res .mw-ph { aspect-ratio: 4 / 3; }
/* The header's Contact link lands here now that the separate contact section is
   gone; leave room for the fixed header above it. */
#contact { scroll-margin-top: calc(var(--nav-h) + 40px); }
.mw-res-copy { padding-right: 56px; }
.mw-res h3 { font-family: 'Instrument Serif', serif; font-weight: 400; font-size: 40px; margin: 10px 0 14px; }
.mw-res p { color: var(--body); line-height: 1.7; margin: 0 0 26px; }
.mw-btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px;
  font-size: 13px; letter-spacing: .1em; text-transform: uppercase; background: var(--ink); color: #faf8f4;
  transition: background .25s ease;
}
.mw-btn:hover { background: var(--accent); }
@media (max-width: 900px) {
  .mw-grid, .mw-res { grid-template-columns: 1fr; }
  .mw-res { gap: 0; } .mw-res-copy { padding: 30px 24px 34px; }
}

/* PASSWORD WINDOW — opens over the page when a project card is clicked, with
   the pink "email me" box popping in underneath. */
.pw-modal { position: fixed; inset: 0; z-index: 1100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.pw-modal[hidden] { display: none; }
.pw-modal-backdrop { position: absolute; inset: 0; background: rgba(16,13,10,.55); animation: pw-fade .25s ease both; }
.pw-modal-stack { position: relative; display: flex; flex-direction: column; gap: 12px; width: min(380px, 100%); }
.pw-modal-box {
  position: relative; background: var(--bg); padding: 24px 22px 18px; border-radius: 8px;
  box-shadow: 0 20px 60px rgba(16,13,10,.35); animation: pw-pop .35s cubic-bezier(.2,.7,.2,1) both;
}
.pw-modal-x {
  position: absolute; top: 8px; right: 10px; border: 0; background: none; font-size: 24px; line-height: 1;
  color: var(--muted); cursor: pointer; padding: 6px;
}
.pw-modal-x:hover { color: var(--ink); }
.pw-modal-kicker { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.pw-modal-project { font-family: 'Instrument Serif', serif; font-size: 26px; line-height: 1.2; margin: 6px 0 16px; color: var(--ink); }
.pw-modal-row { display: flex; gap: 8px; }
.pw-modal-row input {
  flex: 1; min-width: 0; border: 1px solid var(--line); background: #fff; padding: 11px 12px;
  font: inherit; font-size: 15px; color: var(--ink); border-radius: 4px;
}
.pw-modal-row input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.pw-modal-row button {
  border: 0; background: var(--ink); color: #faf8f4; width: 48px; font-size: 18px; cursor: pointer; border-radius: 4px;
  transition: background .25s ease;
}
.pw-modal-row button:hover { background: var(--accent); }
.pw-modal-msg { min-height: 1.4em; margin: 10px 0 0; font-size: 13px; color: #9A5A6E; }
.pw-help {
  display: flex; align-items: center; gap: 12px; background: #9A5A6E; color: #fff;
  padding: 14px 18px; border-radius: 8px; font-size: 14px; line-height: 1.4;
  box-shadow: 0 14px 40px rgba(16,13,10,.3);
  animation: pw-pop .45s .25s cubic-bezier(.2,.7,.2,1) both; transition: background .2s ease;
}
.pw-help:hover { background: #864b5e; }
.pw-help svg { width: 20px; height: 20px; flex: 0 0 auto; }
.pw-help b { display: block; font-weight: 600; }
@keyframes pw-pop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes pw-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .pw-modal-box, .pw-help, .pw-modal-backdrop { animation: none; } }

/* Photo credit — the smallest type on the site, right-aligned under the
   photos. One line per project page (above the prev/next rule), and one under
   each recognition photo. */
.photo-credit {
  margin: 0 0 16px; text-align: right;
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
  opacity: 0.35;
}
.press-credit { margin: 8px 0 0; }

.press-source {
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 20px;
}
.press-source .dot { opacity: 0.5; margin: 0 4px; }
/* Cosmopolitan set to echo its masthead — heavy condensed caps in the magazine's
   magenta. Anton is the closest free face to that wordmark's proportions; the
   inherited 0.16em tracking has to be cancelled or it loses the tight fit that
   makes the logo recognisable. */
.brand-cosmo {
  font-family: 'Anton', 'Archivo Black', Impact, sans-serif;
  font-weight: 400;
  font-size: 1.45em;
  letter-spacing: 0.005em;
  color: #e0218a;
  line-height: 1;
  position: relative; top: 1px;
}
/* Architectural Digest set to echo its masthead — letterspaced Didone caps in
   black. Bodoni Moda carries the hairline serifs and extreme thick/thin contrast
   that make that wordmark read; the site's other serif is far too soft for it.
   Kept wider than Cosmopolitan because a Didone at tight tracking closes up. */
.brand-ad {
  font-family: 'Bodoni Moda', 'Playfair Display', Didot, 'Times New Roman', serif;
  font-weight: 500;
  font-size: 1.3em;
  letter-spacing: 0.07em;
  color: var(--ink);
  line-height: 1;
}
/* The same mastheads set inside the big Recognitions headline. Sized against the
   headline's serif so the caps sit at roughly its cap height rather than
   towering over it; uppercase to match how both magazines set their names. */
.rec-head .brand-cosmo,
.rec-head .brand-ad { text-transform: uppercase; line-height: inherit; top: 0; }
.rec-head .brand-cosmo { font-size: 0.8em; letter-spacing: 0.01em; }
/* Bodoni Moda switches to its display cut at large sizes, whose hairlines all but
   disappear on screen; pinning the small-size optical cut keeps them solid. */
.rec-head .brand-ad {
  font-size: 0.56em; letter-spacing: 0.05em; font-weight: 500;
  font-optical-sizing: none; font-variation-settings: 'opsz' 11;
}

/* Smaller now that three sit side by side; the column sets the measure, so the
   40ch cap is gone — at a third width it would never be reached anyway. */
.press-quote {
  font-family: 'Instrument Serif', serif; font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.5; color: var(--ink); max-width: none;
  border: none; padding: 0; margin: 0;
}
/* Hanging quote mark, so the quote's first letter still aligns to the grid. */
.press-quote::before { content: '\201C'; margin-left: -0.42em; }
.press-quote::after { content: '\201D'; }
.press-title {
  margin-top: 22px; font-size: 13px; letter-spacing: 0.06em; color: var(--muted);
}
/* Article title heads the block now, above the publication line, so its spacing
   flips: nothing above, a small gap below. */
.press-title-top { margin-top: 0; margin-bottom: 10px; }
.press-project {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 26px;
  font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
  border-bottom: 1px solid var(--accent); padding-bottom: 3px;
}
/* Column flex with flex-start so the underlined project link shrink-wraps to its
   own text rather than ruling across the full column width. */
.press-body { display: flex; flex-direction: column; align-items: flex-start; }
/* A second link directly under the first is a sibling, not a new block — it does
   not need the full gap that separates the links from the text above. */
.press-project + .press-project { margin-top: 12px; }
.press-project .arrow { display: inline-block; transition: transform 0.3s ease; }
.press-project:hover .arrow { transform: translateX(8px); }

.awards-label {
  margin-bottom: 22px;
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent);
}
.awards { display: flex; flex-direction: column; }
.award {
  display: grid; grid-template-columns: 190px 1fr; gap: 24px;
  padding: 26px 0; border-top: 1px solid var(--line); align-items: baseline;
}
.award:last-child { border-bottom: 1px solid var(--line); }
.award-year {
  font-family: 'Instrument Serif', serif; font-size: 28px; line-height: 1;
  color: var(--accent);
}
.award-name { font-family: 'Instrument Serif', serif; font-size: 22px; }
.award-org { font-size: 14px; color: var(--muted); margin-top: 4px; }
.awards-inner {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 70px;
  align-items: start;
}
/* One citation for both years — the wording is identical, and repeating it under
   each would read as padding. The top padding matches the first award row's, so
   the two columns start on the same line rather than the citation riding high
   against the rule above it. */
.award-citation {
  margin-top: 0; padding-top: 26px; max-width: 46ch;
  font-size: 15px; line-height: 1.8; color: var(--body);
}

/* TIMELINE */
.timeline { display: flex; flex-direction: column; }
.tl-row {
  display: grid; grid-template-columns: 220px 1fr 200px; gap: 24px;
  padding: 26px 0; border-top: 1px solid var(--line); align-items: baseline;
}
.tl-row:last-child { border-bottom: 1px solid var(--line); }
.tl-dates { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.tl-role { font-family: 'Instrument Serif', serif; font-size: 22px; }
.tl-org { font-size: 14px; color: var(--muted); margin-top: 4px; }
/* Company names link out. Kept in the muted tone with a faint underline so the
   timeline still reads quietly; the underline darkens on hover. */
.tl-org a {
  color: inherit; text-decoration: underline; text-decoration-color: var(--line);
  text-underline-offset: 3px; transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.tl-org a:hover { color: var(--ink); text-decoration-color: currentColor; }
.tl-loc { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); text-align: right; }

/* CONTACT */
.contact { text-align: center; }
.contact h2 { font-size: clamp(38px, 6.5vw, 78px); margin-bottom: 40px; line-height: 1.1; }
.contact a.email { font-size: 19px; border-bottom: 1px solid var(--ink); padding-bottom: 4px; }
.contact-social { display: flex; justify-content: center; gap: 10px; margin-top: 40px; }
footer.site-footer {
  display: flex; justify-content: space-between; padding: 34px 5vw 54px;
  font-size: 12px; color: var(--muted); letter-spacing: 0.06em;
  border-top: 1px solid var(--line);
}
footer.site-footer a { border-bottom: 1px solid var(--muted); }

.placeholder-flag {
  display: inline-block; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  color: #faf8f4; background: var(--accent); padding: 3px 9px; border-radius: 3px;
  margin-left: 8px; vertical-align: middle; font-family: 'Space Grotesk', sans-serif;
}

/* PROJECT PAGE — full-bleed hero, an intro held to the right half, then a
   two-column masonry gallery that keeps every photograph's own proportions. */
.pj-hero {
  margin-top: var(--nav-h);
  /* Was a full calc(100vh - nav). Reduced so the intro and spec list are visible
     without scrolling — the hero still bleeds edge to edge, it just no longer
     owns the whole first screen. */
  height: 68vh; min-height: 380px;
  overflow: hidden; background: var(--bg-soft);
  /* Overrides the 130px 5vw every other <section> carries — this one bleeds. */
  padding: 0;
}
.pj-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Photograph bleeds off the left edge to the halfway line; copy sits in the right
   half behind a heavy rule.
   No side padding on the section — that is what lets the photo reach the page
   edge — so each column carries its own horizontal spacing instead. */
.pj-intro {
  /* Uneven split: the photograph takes the larger share and the copy is pushed
     right into a narrower column. Not 50/50 — the image is the thing worth
     looking at, and the text still clears a comfortable measure at 42%. */
  display: grid; grid-template-columns: 58% 42%; gap: 0;
  /* No vertical padding at all: the photograph and the black rule run straight up
     into the hero, and the collage below butts against the bottom of the image. */
  padding: 0;
  align-items: stretch;
}
/* Collage section — a measured gap above and an equal one below, rather than the
   130px every other section carries, so the collage sits evenly in its own space
   instead of drifting toward the block above it. */
.pj-collage-section { padding-top: 76px; padding-bottom: 76px; }
/* Next Project follows straight on, so the only space between it and the collage
   is the collage's own 76px — matching the gap above. */
.pj-next { padding-top: 0; }
.pj-intro-inner {
  grid-column: 2;
  /* No rule between the columns — the gap alone separates them, so the padding
     is opened up a little to do that work on its own. */
  padding: 0 5vw 0 64px;
  /* Centre the copy against the photograph beside it. The column already
     stretches to the row height, so centring within it lines the text block's
     midpoint up with the image's. */
  display: flex; flex-direction: column; justify-content: center;
}
/* With a floor plan in the column: copy starts at the top of the photo instead of
   centring, and the plan drops to the bottom to fill the space beside it. */
.pj-intro-inner.has-plan { justify-content: flex-start; padding-top: 0; padding-bottom: 0; }
.pj-intro-inner.has-plan h1 { margin-top: 0; margin-bottom: 20px; }
.pj-intro-inner.has-plan p { line-height: 1.72; }
.pj-intro-inner.has-plan .pj-specs { margin-top: 28px; }
.pj-intro-plan { margin: auto 0 0; padding-top: 26px; max-width: 40rem; }
.pj-intro-plan img { width: 100%; height: auto; display: block; }
@media (max-width: 900px) { .pj-intro-plan { margin-top: 0; } }
/* Wrigley tweaks: photo 10% smaller (columns 58/42 -> 52.2/47.8, so the text
   follows the photo instead of drifting away), copy 1in (96px) lower, plan 1.5in
   (144px) higher. Multiply blends the plan's white paper into the page colour. */
@media (min-width: 901px) {
  .pj-intro.pj-intro-small { grid-template-columns: 52.2% 47.8%; }
  /* Title + text start below the (now larger) site plan. */
  .pj-intro-small .pj-intro-inner.has-plan { padding-top: 258px; } /* +1/2" */
  /* Site plan 1" further left. */
  .pj-intro-small .pj-siteplan { right: calc(5vw + 96px); }
  /* Info box (specs) pushed down to sit on the bottom of the door photo. */
  .pj-intro-small .pj-intro-inner.has-plan .pj-specs { margin-top: auto; padding-top: 28px; }
  .pj-intro-small .pj-intro-plan { margin-top: 0; padding-top: 22px; }
}
.pj-intro-plan img { mix-blend-mode: multiply; }
/* Wrigley: every gap between photographs matches the gaps inside the collage
   (49px in the 1600px file, shown at up to 860px wide = about 26px, and smaller
   in step with the collage on narrow screens). */
:root { --pj-photo-gap: min(26px, 90vw * 0.0306); }
.pj-hero.pj-gap-even { margin-bottom: var(--pj-photo-gap); }
.pj-collage-section.pj-gap-even { padding-top: var(--pj-photo-gap); }

/* Construction detail under the collage. The drawing is used as a mask over a
   solid colour, so there is no paper at all — only linework on the page — and
   the lines can turn pink on hover. Reads as a link without being a button:
   a stack of sheets peeks out behind it (there is more), a pink detail bubble
   pulses beside a callout-style label, and on hover the sheets fan out. */
/* 30% smaller than the collage width (860 x 0.7). */
/* Double the photo gap above and below the detail (52px instead of 26px). */
.pj-detail-wrap { max-width: 602px; margin: calc(var(--pj-photo-gap) * 2) auto 0; }
.pj-detail-label {
  /* Same type as the project write-up paragraphs. */
  /* Lifted 1/4" (24px) above the drawing; the drawing itself stays put. */
  position: relative; top: -24px; margin: 0 0 6px; padding-left: 18px;
  font-family: 'Space Grotesk', sans-serif; font-size: 16px; line-height: 1.85;
  color: var(--body);
}
/* Detail-set viewer: full screen on the site's soft white, so the drawings
   (multiplied) sit on the page colour with no white paper showing. */
/* Opens below the site header, so the logo, name and border line stay in view
   exactly as on every page. */
.dset {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 200; background: var(--bg);
  display: grid; grid-template-columns: 64px 1fr 64px; align-items: center;
  animation: dset-in .3s ease both;
}
.dset[hidden] { display: none; }
@keyframes dset-in { from { opacity: 0; } to { opacity: 1; } }
.dset-stage { position: relative; height: calc(100vh - var(--nav-h)); padding: 64px 0 72px; overflow: hidden; touch-action: none; cursor: zoom-in; }
.dset.is-zoomed .dset-stage { cursor: grab; }
.dset.is-zoomed .dset-stage:active { cursor: grabbing; }
.dset-sheet {
  position: absolute; inset: 64px 0 72px; margin: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  opacity: 0; visibility: hidden; transition: opacity .3s ease;
}
.dset-sheet.is-on { opacity: 1; visibility: visible; }
/* 80% of the space at first sight; zoom from there. Transparent PNGs, so no
   blend mode is needed (blending is what caused the white flash on open). */
.dset-sheet img {
  max-width: 80%; max-height: 80%; width: auto; height: auto;
  object-fit: contain; transform-origin: 0 0; user-select: none; -webkit-user-drag: none;
  transition: transform .12s ease-out;
}
/* Wrigley drawings layout (per Ania's mock-up). Titles match the paragraph type. */
.pj-drawing-title {
  margin: 0 0 8px; font-family: 'Space Grotesk', sans-serif; font-size: 16px;
  line-height: 1.85; color: var(--body);
}
/* West Elevation label matches the spec labels (Location / Client / Scope). */
.pj-intro-plan .pj-drawing-title {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
  line-height: 1.4; margin-bottom: 12px;
}
/* Small site plan in the top right corner of the text column. */
.pj-intro-inner { position: relative; }
.pj-siteplan { position: absolute; top: 4px; right: 5vw; width: 233px; margin: 0; } /* 179px + 30% */
.pj-siteplan img { display: block; width: 100%; height: auto; }
/* Floor plan on its own row, centred at the collage width; double photo gap
   above and below. */
.pj-floorplan-band { max-width: 860px; margin: var(--pj-photo-gap) auto 0; }
.pj-floorplan-band img { display: block; width: 100%; height: auto; }
/* Drawing label in the spec style (Location / Client / Scope), any page. */
.pj-spec-label {
  margin: 0 0 12px; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); line-height: 1.4;
}
/* A drawing inside a photo stack (Riverside): full stack width, and double the
   stack's 10px photo gap below it. */
.pj-stack-drawing { margin-bottom: 10px; }
/* Riverside lobby elevation, right under the first photo row: double the
   stack's 10px gap above it; the write-up band's own padding follows. */
.pj-stack-drawing.pj-drawing-first { margin-top: 10px; margin-bottom: 0; }
/* Pink marker over the part of a drawing that is Ania's design. */
.pj-mark-wrap { position: relative; display: block; }
.pj-mark-wrap img { display: block; width: 100%; height: auto; }
.pj-mark {
  position: absolute; border: 2px solid #e0218a; border-radius: 6px;
  animation: pj-mark-pulse 2.6s ease-out infinite; pointer-events: none;
}
@keyframes pj-mark-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(224,33,138,.35); }
  70%  { box-shadow: 0 0 0 10px rgba(224,33,138,0); }
  100% { box-shadow: 0 0 0 0 rgba(224,33,138,0); }
}
.pj-mark-label {
  position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%);
  white-space: nowrap; background: #e0218a; color: #fff; border-radius: 999px;
  padding: 5px 10px; font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
}
/* Label at the tail of the arrow (top left of the drawing). */
.pj-mark-label.pj-arrow-label { left: 6.5%; top: 1.5%; bottom: auto; transform: none; }
/* The swirl arrow: draws itself (dash offset 1 -> 0) twice, the head popping
   on at the end of each pass, then stays. Starts when scrolled into view. */
.pj-arrow { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
/* No non-scaling-stroke: it makes the dash measure in screen pixels instead of
   the path length, which left a break in the line. Width is in drawing units
   (7 x 0.5 group scale x ~0.73 page scale = ~2.5px on screen). */
.pj-arrow path { fill: none; stroke: #e0218a; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.pj-arrow-line { stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.pj-arrow-head { opacity: 0; }
/* Loops forever, slowly, like a GIF: draws in over ~3s, holds, fades, repeats. */
.pj-arrow.is-in .pj-arrow-line { animation: pj-arrow-draw 5.5s ease-in-out infinite; }
.pj-arrow.is-in .pj-arrow-head { animation: pj-arrow-head 5.5s ease-in-out infinite; }
@keyframes pj-arrow-draw {
  0%       { stroke-dashoffset: 1; opacity: 1; }
  55%      { stroke-dashoffset: 0; opacity: 1; }
  85%      { stroke-dashoffset: 0; opacity: 1; }
  97%, 100% { stroke-dashoffset: 0; opacity: 0; }
}
@keyframes pj-arrow-head {
  0%, 52%  { opacity: 0; }
  58%, 85% { opacity: 1; }
  97%, 100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .pj-mark { animation: none; }
  .pj-arrow-line { stroke-dashoffset: 0; } .pj-arrow-head { opacity: 1; }
  .pj-arrow.is-in .pj-arrow-line, .pj-arrow.is-in .pj-arrow-head { animation: none; }
}
/* The three drawings open full screen: zoom-in cursor and a soft lift on hover. */
.pj-drawing-link { display: block; cursor: zoom-in; transition: transform .3s ease, opacity .3s ease; }
.pj-drawing-link:hover { transform: translateY(-2px); opacity: .85; }
.pj-drawing-link img { display: block; width: 100%; height: auto; }
/* Any zoom wrapper in a viewer sheet zooms from its top-left like the images. */
.dset-zoom { transform-origin: 0 0; transition: transform .12s ease-out; user-select: none; }
/* A marked drawing in the viewer (drawing + pink box + arrow in one wrapper).
   The wrapper takes the drawing's size: as wide as fits the sheet area
   (stage height minus the 64/72px sheet insets) at the drawing's proportions
   (2614 x 1051 = 2.487), never past its own 2614px. */
.dset-sheet .dset-marked { width: min(100%, var(--maxw, 2614px), calc((100vh - var(--nav-h) - 136px) * var(--ar, 2.487))); }
/* Outline of any shape (Woodward site plan): a pink line plus a soft pulsing
   glow, matching the Riverside box. Stroke widths are in drawing units, set
   per context so they read ~2.5px both small on the page and in the viewer. */
.pj-mark-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.pj-mark-svg polygon { fill: none; stroke: #e0218a; stroke-linejoin: round; }
.pj-mark-svg .pj-mark-line { stroke-width: var(--mark-w, 5); }
.pj-mark-svg .pj-mark-glow { stroke-width: var(--mark-w, 5); opacity: .35; animation: pj-poly-pulse 2.6s ease-out infinite; }
@keyframes pj-poly-pulse {
  0%   { stroke-width: var(--mark-w, 5); opacity: .35; }
  70%  { stroke-width: calc(var(--mark-w, 5) * 6); opacity: 0; }
  100% { stroke-width: calc(var(--mark-w, 5) * 6); opacity: 0; }
}
.pj-arrow.pj-arrow-site path { stroke-width: var(--mark-w, 5); }
/* Small on the page (~170px wide = 0.1 scale): thicker in drawing units. */
.pj-siteplan .pj-mark-wrap { --mark-w: 22; }
/* In the viewer (~860px wide = 0.53 scale). */
.dset-marked { --mark-w: 5; }
@media (prefers-reduced-motion: reduce) { .pj-mark-svg .pj-mark-glow { animation: none; opacity: 0; } }
.dset-sheet .dset-marked img { width: 100%; height: auto; max-width: none; max-height: none; transition: none; }
/* Drawings viewer: as big as the screen allows, never past the file's own
   pixel size (width/height auto + max 100%), so nothing is blown up blurry. */
.dset-max .dset-sheet img { max-width: 100%; max-height: 100%; }
.pj-collage.pj-after-plan { margin-top: calc(var(--pj-photo-gap) * 2); }
@media (max-width: 900px) {
  .pj-siteplan { position: static; width: 220px; margin: 0 0 24px; }
}
/* Two drawings side by side on one sheet, titled like "Sample set of dtl's". */
.dset-pair .dset-zoom {
  display: flex; align-items: flex-end; gap: 48px; width: 80%;
  transform-origin: 0 0; transition: transform .12s ease-out; user-select: none;
}
.dset-pair-item { min-width: 0; }
.dset-pair .dset-pair-item img { display: block; width: 100%; max-width: none; max-height: none; transition: none; }
.dset-title {
  margin: 0 0 14px; font-family: 'Space Grotesk', sans-serif; font-size: 16px;
  line-height: 1.85; color: var(--body);
}
@media (max-width: 700px) { .dset-pair .dset-zoom { flex-direction: column; align-items: stretch; gap: 24px; width: 90%; } .dset-pair-item { flex: none !important; } }
.dset-bar {
  position: absolute; bottom: 18px; left: 0; right: 0;
  display: flex; align-items: center; justify-content: center; gap: 18px;
}
.dset-bar button {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--bg); color: var(--ink); font-size: 18px; line-height: 1; cursor: pointer;
  transition: color .2s ease, border-color .2s ease;
}
.dset-bar button:hover { color: #e0218a; border-color: #e0218a; }
.dset-hint {
  position: absolute; top: 22px; left: 0; right: 0; margin: 0; text-align: center;
  font-size: 12px; color: var(--muted); pointer-events: none;
}
@media (hover: none) { .dset-hint { display: none; } }
.dset.is-zoomed .dset-hint { display: none; }
/* Each sheet already carries its own drawn title, so the caption is for screen
   readers only. */
.dset-sheet figcaption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.dset-close, .dset-prev, .dset-next {
  background: none; border: 0; cursor: pointer; color: var(--ink);
  font-family: 'Space Grotesk', sans-serif;
}
/* While the viewer is open, the header's links and icons give way to one big
   X in their place (the X lifts up into the header bar, top right). */
body.dset-open .site-nav nav { visibility: hidden; }
.dset-close {
  position: absolute; top: calc((var(--nav-h) - 44px) / 2 - var(--nav-h)); right: 5vw; z-index: 3;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--bg); font-size: 18px; line-height: 1;
  display: grid; place-items: center;
  transition: color .2s ease, border-color .2s ease, transform .2s ease;
}
.dset-close:hover { border-color: #e0218a; transform: rotate(90deg); }
.dset-prev, .dset-next { font-size: 44px; line-height: 1; height: 100%; transition: color .2s ease; }
.dset-prev:hover, .dset-next:hover, .dset-close:hover { color: #e0218a; }
/* At the first / last sheet the arrow fades out instead of wrapping around. */
.dset-prev:disabled, .dset-next:disabled { opacity: 0; pointer-events: none; }
.dset-count { min-width: 48px; text-align: center; font-size: 12px; letter-spacing: .14em; color: var(--muted); }
.dset-close, .dset-prev, .dset-next, .dset-bar { z-index: 2; }
.dset-prev, .dset-next { position: relative; }
@media (max-width: 700px) {
  .dset { grid-template-columns: 40px 1fr 40px; }
  .dset-prev, .dset-next { font-size: 32px; }
}
/* Link label placed on one photo inside a collage image. */
.pj-collage { position: relative; }
.pj-hotspot { position: absolute; pointer-events: none; }
.pj-hotspot-link {
  pointer-events: auto; position: absolute; right: 14px; top: 14px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 999px;
  background: rgba(250,248,244,.92); color: var(--ink);
  font-family: 'Space Grotesk', sans-serif; font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; text-decoration: none;
  box-shadow: 0 4px 18px rgba(16,13,10,.18);
  transition: background-color .25s ease, color .25s ease, transform .25s ease;
}
.pj-collage .pj-hotspot-link img.pj-hotspot-logo { width: 20px; height: 20px; display: block; flex: 0 0 auto; margin: -4px 0; }
.pj-hotspot-link:hover, .pj-hotspot-link:focus-visible { background: #e0218a; color: #fff; transform: translateY(-2px); }
@media (max-width: 600px) { .pj-hotspot-link { right: 8px; top: 8px; padding: 7px 10px; font-size: 9px; letter-spacing: .1em; } }
.pj-collage.pj-collage-cont { margin-top: calc(var(--pj-photo-gap) * 2); }
.pj-detail-wrap[hidden] { display: none; }
.pj-detail {
  position: relative; display: block; color: inherit; text-decoration: none;
  padding: 18px 18px 0;
}
.pj-detail-sheets, .pj-detail-sheets::before, .pj-detail-sheets::after {
  position: absolute; inset: 18px 18px 52px; border: 1px solid var(--line);
  background: var(--bg); content: ''; transition: transform .45s cubic-bezier(.2,.7,.2,1);
}
.pj-detail-sheets { transform: translate(6px, -6px); }
.pj-detail-sheets::before { inset: -1px; transform: translate(6px, -6px); }
.pj-detail-sheets::after { display: none; }
.pj-detail-art {
  position: relative; display: block; width: 100%;
  background: var(--bg); /* the top sheet */
  outline: 1px solid var(--line);
  padding: 14px;
}
/* The drawing and a pink wash are blended inside their own group (screen turns
   the black lines pink, leaves the paper white), then the whole group multiplies
   onto the page, so the white paper disappears into the soft-white background. */
.pj-detail-ink { position: relative; display: block; isolation: isolate; mix-blend-mode: multiply; }
.pj-detail-ink img { display: block; width: 100%; height: auto; }
.pj-detail-ink::after {
  content: ''; position: absolute; inset: 0; background: #e0218a;
  mix-blend-mode: screen; opacity: 0; transition: opacity .35s ease;
}
.pj-detail-wrap > img[hidden] { display: none !important; }
.pj-detail-cta {
  display: flex; align-items: center; gap: 12px; justify-content: flex-end;
  padding: 16px 0 6px;
  font-family: 'Space Grotesk', sans-serif; font-size: 12px; letter-spacing: .14em;
  text-transform: uppercase; color: #e0218a;
}
.pj-detail-cta .cta-text { border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.pj-detail-bubble {
  width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid currentColor;
  display: grid; place-items: center; font-size: 15px; letter-spacing: 0;
  animation: pj-bubble-pulse 2.8s ease-out infinite;
  transition: background-color .3s ease, color .3s ease;
}
@keyframes pj-bubble-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(224,33,138,.35); }
  70%  { box-shadow: 0 0 0 12px rgba(224,33,138,0); }
  100% { box-shadow: 0 0 0 0 rgba(224,33,138,0); }
}
.pj-detail:hover .pj-detail-ink::after,
.pj-detail:focus-visible .pj-detail-ink::after { opacity: 1; }
.pj-detail:hover .pj-detail-sheets,
.pj-detail:focus-visible .pj-detail-sheets { transform: translate(12px, -12px) rotate(.8deg); }
.pj-detail:hover .pj-detail-sheets::before,
.pj-detail:focus-visible .pj-detail-sheets::before { transform: translate(12px, -12px) rotate(.8deg); }
.pj-detail:hover .pj-detail-bubble,
.pj-detail:focus-visible .pj-detail-bubble { background: #e0218a; color: var(--bg); }
.pj-detail-cap {
  margin-top: -26px; padding-left: 18px; max-width: 60%; font-size: 13px; color: var(--muted); text-align: left;
}
@media (prefers-reduced-motion: reduce) {
  .pj-detail-bubble { animation: none; }
  .pj-detail-sheets, .pj-detail-sheets::before { transition: none; }
}

/* Hold the copy to a readable measure; half of a wide viewport is too long a line. */
.pj-intro p { max-width: 34rem; }
.pj-intro h1 {
  font-family: 'Instrument Serif', serif; font-weight: 400;
  font-size: clamp(34px, 4vw, 54px); line-height: 1.12; margin-bottom: 28px;
}
.pj-intro p { font-size: 16px; line-height: 1.85; color: var(--body); }
.pj-intro p + p { margin-top: 18px; }
.pj-intro b { font-weight: 600; color: var(--ink); }

/* Label/value pairs, as on the reference: a narrow label column and the value
   beside it, not beneath. */
.pj-specs { margin-top: 40px; border-top: 1px solid var(--line); }
.pj-spec {
  display: grid; grid-template-columns: 150px 1fr; gap: 20px;
  padding: 13px 0; border-bottom: 1px solid var(--line);
}
.pj-spec dt {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
}
.pj-spec dd { margin: 0; font-size: 14px; color: var(--ink); }

/* Masonry via CSS columns — no JS, and figures keep their intrinsic ratio
   because nothing sets a height. break-inside stops a photo splitting across
   the column boundary. */
.pj-gallery { column-count: 2; column-gap: 20px; }
.pj-gallery figure {
  break-inside: avoid; margin: 0 0 20px; overflow: hidden;
  background: var(--bg-soft); cursor: zoom-in;
}
.pj-gallery img {
  width: 100%; height: auto; display: block;
  transition: transform 0.6s cubic-bezier(.2,.7,.2,1);
}
.pj-gallery figure:hover img { transform: scale(1.03); }

/* Composed photo stack — Ania's own layout, built in HTML rather than flattened
   into one collage image, so each photo still opens in the lightbox. Every row
   carries its own aspect-ratio (set inline, taken from her layout sheet) and its
   column split; photos fill their cell and are cropped by object-fit. Held to the
   same 860px column as the Wrigley collage. */
.pj-stack { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.pj-row { display: grid; grid-template-columns: 1fr; gap: 10px; }
/* Wrigley spacing on a photo stack (Woodward): the same ~26px between every
   photo, above/below and side by side, shrinking with the screen like Wrigley. */
.pj-stack.pj-gap-photo, .pj-stack.pj-gap-photo .pj-row { gap: var(--pj-photo-gap); }
/* The wider gap already separates the text box from its photo, so trim the
   box's own left padding to keep the title on one line. */
.pj-stack.pj-gap-photo .pj-side-text { padding-left: 16px; }
.pj-row > figure { margin: 0; overflow: hidden; background: var(--bg-soft); cursor: zoom-in; }
.pj-row img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.6s cubic-bezier(.2,.7,.2,1);
}
.pj-row > figure:hover img { transform: scale(1.03); }
/* Riverside opens straight into the stack, so it runs wider than the Wrigley
   collage column. */
.pj-stack-section .pj-stack { max-width: 1100px; }
/* Copy band between rows of the stack, per Ania's mock-up: title, then the
   write-up across the full width with no gap between paragraphs, then the specs
   as one row of four (label above value) under a single rule. */
.pj-stack-text { padding: 44px 0 50px; }
.pj-stack-text h1 {
  font-family: 'Instrument Serif', serif; font-weight: 400;
  font-size: clamp(32px, 3.4vw, 50px); line-height: 1.1; margin: 0 0 22px;
}
.pj-text-body p { font-size: 16px; line-height: 1.7; color: var(--body); margin: 0; }
.pj-text-body b { font-weight: 600; color: var(--ink); }
.pj-stack-text .pj-specs {
  margin-top: 26px; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 24px;
}
.pj-stack-text .pj-spec { grid-template-columns: 1fr; gap: 4px; border-bottom: 0; padding: 16px 0 0; }
/* Specs placed above the title (Riverside): rules above and below, then the title. */
.pj-stack-text .pj-specs.pj-specs-top { margin: 0 0 40px; border-bottom: 1px solid var(--line); padding-bottom: 16px; }
@media (max-width: 900px) {
  .pj-stack-text { padding: 36px 2vw 30px; }
  .pj-stack-text .pj-specs { grid-template-columns: repeat(2, 1fr); gap: 0 20px; }
  .pj-stack-text .pj-spec { padding-bottom: 12px; }
}

/* Text box beside a photo (Woodward row 3). The row has no fixed ratio: the
   photo cell carries the sheet's ratio and the text column centres beside it,
   growing the row only if the copy runs taller. Specs stack vertically here. */
.pj-row-side { align-items: center; }
.pj-row-side > :first-child { align-self: start; }
.pj-side-text { padding: 0 0 0 40px; position: relative; }
/* Woodward: small site plan in the top right corner of the text box. */
/* In the flow above the title (the box is only as tall as its text, so an
   absolute corner would sit on the title), pushed to the right edge. */
/* Woodward row 3 (per Ania's mock-up): title at the top, the site plan at full
   column width in the middle, specs at the bottom, lined up with the photo. */
.pj-side-text.pj-side-stack { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; align-self: stretch; }
/* The title's line box adds space above the letters; pull it up so the
   cap height lines up with the top of the photo. */
.pj-side-stack h1 { margin-top: -0.18em !important; }
/* Ania: title 1/2" (48px) lower. Nudged with transform so the site plan and
   specs below stay exactly where they are. */
.pj-side-stack h1 { position: relative; top: 48px; }
/* Ania: the facts (Location / Client / Completed / Scope) 1/2" higher. */
.pj-side-stack .pj-specs { position: relative; top: -48px; }
.pj-side-stack h1 { margin: 0; }
.pj-siteplan.pj-siteplan-side { position: static; width: 100%; margin: 0; }
.pj-side-stack .pj-specs { margin-top: 0; }
/* ~450px wide, so outline/arrow line widths in drawing units stay ~2.5px. */
.pj-siteplan.pj-siteplan-side .pj-mark-wrap { --mark-w: 9; }
/* The write-up band under that row, full width. */
.pj-stack-text.pj-woodward-text { padding: 18px 0 24px; }
@media (max-width: 900px) { .pj-siteplan.pj-siteplan-side { position: static; width: 200px; margin: 0 0 20px; } }
.pj-side-text .pj-specs { display: block; margin-top: 24px; }
.pj-side-text .pj-spec { grid-template-columns: 96px 1fr; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); }
/* A floor plan inside a stack row is a drawing: shown whole on white, never
   cropped, and no hover zoom. */
/* Now a transparent drawing on the page colour (no white box), and a link to
   the drawings viewer that fills the cell. */
.pj-row > .pj-plan-cell { margin: 0; overflow: hidden; background: transparent; }
.pj-row > .pj-plan-cell .pj-drawing-link { height: 100%; }
.pj-row > .pj-plan-cell img { object-fit: contain; padding: 4%; }
.pj-row > .pj-plan-cell:hover img { transform: none; }
@media (max-width: 900px) {
  .pj-row-side { grid-template-columns: 1fr !important; }
  .pj-side-text { padding: 28px 2vw 18px; }
}

/* Stand-in for a photo not yet supplied. A div, not a figure, so the lightbox
   (which collects [data-gallery] figure img) never picks it up. */
.pj-missing {
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 8px; border: 1px dashed var(--line); background: var(--bg-soft);
  font-family: 'Space Grotesk', sans-serif; font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--body);
}

/* Photograph in the intro's left column, opposite the copy. Height follows from
   the width so the shot keeps its own proportions; align-self holds it to the top
   of the column rather than stretching it against the text beside it. */
.pj-figure { grid-column: 1; align-self: start; margin: 0; overflow: hidden; }
.pj-figure img { width: 100%; height: auto; display: block; }

/* Ania's own collage — a single tall composed image, shown whole and uncropped.
   Held to a column rather than the full page width: at 0.335 it is three times
   taller than it is wide, so full-bleed would run to nearly 4000px of scroll. */
.pj-collage { margin: 0 auto; max-width: 860px; }
.pj-collage img { width: 100%; height: auto; display: block; }

/* The floor plan runs full measure below the gallery — it is a drawing, not a
   photograph, so it is never cropped. */
.pj-plan { margin: 0; }
.pj-plan img { width: 100%; height: auto; display: block; }
.pj-plan figcaption {
  margin-top: 16px; font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted);
}

.pj-credits { display: grid; grid-template-columns: 150px 1fr; gap: 20px; max-width: 640px; }
.pj-credits dt {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
}
.pj-credits dd { margin: 0; font-size: 14px; line-height: 1.9; color: var(--ink); }

@media (max-width: 900px) {
  .pj-hero { height: 46vh; min-height: 280px; }
  /* One column: the photo still bleeds, but a vertical rule between stacked
     blocks would be meaningless, so it goes. */
  .pj-intro { grid-template-columns: 1fr; gap: 0; padding: 0 0 60px; }
  .pj-intro-inner { grid-column: 1; max-width: none; padding: 40px 6vw 0; }
  .pj-gallery { column-count: 1; }
  .pj-spec, .pj-credits { grid-template-columns: 1fr; gap: 2px; }
}

/* PROJECT SPLIT LANDING — photograph bleeding down the left, copy and plan on a
   tinted panel to the right, title reversed out over the photo. */
.project-split {
  display: grid; grid-template-columns: 47% 53%;
  min-height: calc(100vh - var(--nav-h));
  margin-top: var(--nav-h);
  /* Overrides the 130px 5vw that every other <section> carries — this one runs
     edge to edge, so the photograph bleeds off the left of the page. */
  padding: 0;
}
.ps-media { position: relative; overflow: hidden; background: var(--bg-soft); }
.ps-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  /* The storefront is a wide 16:9 frame dropped into a tall column, so cover
     crops hard. Biased left of centre to hold the brick pier, the Reserve mark
     and the siren in frame — dead centre loses the pier entirely. */
  object-position: 26% center;
}
.ps-title {
  position: absolute; top: 46px; left: 44px; right: 44px;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700;
  font-size: clamp(22px, 2.1vw, 34px); line-height: 1.15;
  letter-spacing: 0.02em; text-transform: uppercase; color: #fff;
  text-shadow: 0 2px 20px rgba(16,13,10,0.6);
}

.ps-panel {
  background: var(--bg-soft);
  padding: 92px 5vw 72px;
  display: flex; flex-direction: column; gap: 44px;
}
.ps-copy p {
  font-size: 15.5px; line-height: 1.85; color: var(--body);
  text-align: justify; hyphens: auto;
}
.ps-copy p + p { margin-top: 18px; }
.ps-copy b { font-weight: 600; color: var(--ink); }
/* The small square that opens the copy, as in the layout sketch. Inline-block so
   it sits on the first line rather than forcing its own. */
.ps-marker {
  display: inline-block; width: 11px; height: 11px;
  background: var(--ink); margin-right: 12px;
}
/* Plan as a background so a missing file degrades to an empty panel rather than
   a broken-image icon; contain, because a floor plan must never be cropped. */
/* An <img>, not a CSS background: the path then resolves against the page (each
   project has its own drawing in its own folder) and the plan can carry alt text.
   A missing file is hidden by the loader in motion.js rather than showing a
   broken-image icon. object-fit is contain because a floor plan must never crop. */
.ps-plan { flex: 1 1 auto; display: flex; align-items: flex-end; min-height: 260px; margin: 0; }
.ps-plan img {
  width: 100%; height: 100%; max-height: 420px;
  object-fit: contain; object-position: center bottom; display: block;
}

@media (max-width: 900px) {
  .project-split { grid-template-columns: 1fr; min-height: 0; }
  .ps-media { height: 62vh; }
  .ps-title { top: 28px; left: 6vw; right: 6vw; }
  .ps-panel { padding: 44px 6vw 52px; gap: 32px; }
  .ps-copy p { text-align: left; }
  .ps-plan { min-height: 220px; }
}

/* PROJECT DETAIL PAGE — title sits on paper, image runs full width beneath it */
.project-hero { padding: 190px 5vw 54px; }
.project-hero .tag { font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.project-hero h1 { font-size: clamp(40px, 7.5vw, 96px); line-height: 1.04; }
.project-hero .loc { margin-top: 20px; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.project-hero-img img { width: 100%; height: 72vh; min-height: 380px; object-fit: cover; }

.project-intro { max-width: 720px; }
.project-intro p { font-size: 19px; line-height: 1.85; color: var(--body); }

.gallery {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px;
}
.gallery figure { overflow: hidden; cursor: zoom-in; background: var(--bg-soft); }
.gallery figure.span-4 { grid-column: span 4; }
.gallery figure.span-3 { grid-column: span 3; }
.gallery figure.span-2 { grid-column: span 2; }
.gallery figure.span-6 { grid-column: span 6; }
.gallery img {
  width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3;
  transition: transform 0.6s cubic-bezier(.2,.7,.2,1);
}
.gallery figure:hover img { transform: scale(1.04); }

.next-project {
  display: flex; justify-content: space-between; align-items: baseline;
  border-top: 1px solid var(--line); padding-top: 40px;
}
.next-project .label { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.next-project h3 { font-size: clamp(26px, 4vw, 42px); margin-top: 12px; }
.next-project .view-link { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 10px; }
.next-project .view-link .arrow { display: inline-block; transition: transform 0.3s ease; }
.next-project:hover .view-link .arrow { transform: translateX(8px); }

/* PROJECT NAV — previous project on the left, next on the right, each with its
   "View" link directly beneath the title. The links loop, so every page has both. */
.project-nav {
  display: flex; justify-content: space-between; gap: 40px;
  border-top: 1px solid var(--line); padding-top: 40px;
}
.pn-link { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; min-width: 0; }
.pn-next { margin-left: auto; align-items: flex-end; text-align: right; }
.pn-link .label { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.pn-link h3 { font-size: clamp(22px, 3.2vw, 38px); margin: 0; }
.pn-link .view-link { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 10px; }
.pn-link .view-link .arrow { display: inline-block; transition: transform 0.3s ease; }
.pn-next:hover .view-link .arrow { transform: translateX(8px); }
.pn-prev:hover .view-link .arrow { transform: translateX(-8px); }
@media (max-width: 600px) {
  .project-nav { gap: 20px; }
  .pn-link h3 { font-size: 20px; }
}

/* LIGHTBOX */
#lightbox {
  position: fixed; inset: 0; z-index: 1000; background: rgba(250,248,244,0.97);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity 0.3s ease;
}
#lightbox.open { opacity: 1; visibility: visible; }
#lightbox img {
  max-width: 88vw; max-height: 84vh; object-fit: contain;
  box-shadow: 0 20px 60px rgba(28,26,23,0.18);
}
#lightbox .lb-close, #lightbox .lb-prev, #lightbox .lb-next {
  position: absolute; background: none; border: none; color: var(--ink);
  cursor: pointer; font-family: 'Space Grotesk', sans-serif; font-size: 13px;
  letter-spacing: 0.1em; text-transform: uppercase;
}
#lightbox .lb-close { top: 32px; right: 5vw; }
#lightbox .lb-prev { left: 5vw; top: 50%; transform: translateY(-50%); font-size: 28px; }
#lightbox .lb-next { right: 5vw; top: 50%; transform: translateY(-50%); font-size: 28px; }
#lightbox .lb-count { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); font-size: 12px; letter-spacing: 0.1em; color: var(--muted); }

@media (max-width: 900px) {
  header.site-nav { padding: 14px 6vw; }
  /* Redefine the variable rather than hardcoding a height in the offsets below:
     these previously carried a literal 64px, which silently stopped matching the
     nav the moment the logo made it taller, and the header overlapped the hero. */
  /* 73px, not 69px: at this size the 44px social icons are taller than the 40px
     logo, so they — not the logo — set the row height. */
  :root { --nav-h: 73px; }
  .hero { padding: 80px 6vw; margin-top: var(--nav-h); min-height: 0; }
  .hero.has-image { padding: 12vh 6vw 5vh; min-height: calc(100vh - var(--nav-h)); }
  .hero h1 { letter-spacing: 0.14em; text-indent: 0.14em; }
  .locked-frame { height: auto; min-height: 190px; padding: 40px 20px; }
  .about-grid { grid-template-columns: 1fr; gap: 44px; }
  .about-grid .about-media { max-width: 100%; aspect-ratio: 4 / 5; }
  .project-card-inner, .project-card:nth-child(even) .project-card-inner { grid-template-columns: 1fr; direction: ltr; gap: 30px; }
  .project-card .frame img { height: 46vh; }
  .portfolio-grid { grid-template-columns: 1fr; gap: 40px; }
  .portfolio-head { margin-bottom: 46px; }
  .tl-row { grid-template-columns: 1fr; gap: 6px; }
  .tl-loc { text-align: left; }
  /* Collapse the stagger: at this width the offsets read as broken alignment
     rather than as rhythm, so everything returns to one column in source order. */
  .rec-stagger { grid-template-columns: 1fr; row-gap: 54px; }
  .rec-a, .rec-b, .rec-c {
    grid-column: 1 / -1; grid-row: auto; margin-top: 0;
  }
  .rec-head { margin-bottom: 54px; }
  .award { grid-template-columns: 1fr; gap: 6px; }
  .awards-inner { grid-template-columns: 1fr; gap: 4px; }
  .award-citation { padding-top: 24px; max-width: none; }
  .project-hero { padding: 140px 6vw 40px; }
  .project-hero-img img { height: 52vh; min-height: 280px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery figure.span-4, .gallery figure.span-3, .gallery figure.span-2 { grid-column: span 2; }
  section { padding: 84px 6vw; }
}
