:root {
  --bg: #fafaf8;
  --bg-stone: #f1efea;
  --ink: #1a1a18;
  --ink-soft: #57544d;
  --ink-faint: #8b887f;
  --bronze: #8b7355;
  --stone: #c4a882;
  --line: #e1ded6;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }
/* Lenis owns the scroll position while it is running. */
html.lenis, html.lenis body { height: auto; }
html.lenis-on, html.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
}

::selection { background: var(--stone); color: var(--bg); }

a { color: inherit; text-decoration: none; }

.wrap {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 80px);
}

/* ---------- NAV ---------- */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.5s ease, box-shadow 0.5s ease, padding 0.5s ease;
  padding: 30px 0;
}
#nav.scrolled {
  background: rgba(250, 250, 248, 0.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  padding: 18px 0;
  box-shadow: 0 1px 0 var(--line);
}
#nav .wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.brand {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  padding-left: 0.42em;
  white-space: nowrap;
  flex: none;
  transition: color 0.35s cubic-bezier(0.16,1,0.3,1);
}
.brand:hover { color: var(--bronze); }
.nav-links {
  display: flex;
  gap: clamp(22px, 3.4vw, 52px);
  align-items: baseline;
}
.nav-links a {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  position: relative;
  padding-bottom: 4px;
  transition: color 0.35s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--bronze);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after { transform: scaleX(1); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg image-slot {
  width: 100%;
  height: 100%;
  display: block;
  --slot-bg: var(--bg-stone);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(250,250,248,0.97) 0%, rgba(250,250,248,0.86) 42%, rgba(250,250,248,0.55) 100%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 2; width: 100%; }
.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 72px);
}
.hero-text { flex: 1 1 auto; min-width: 0; }
.hero-video {
  flex: 0 0 auto;
  width: clamp(280px, 34vw, 480px);
  aspect-ratio: 1 / 1;
  position: relative;
  background: transparent;
  border: 0;
  outline: 0;
  box-shadow: none;
}
.hero-video canvas, .hero-video video, .hero-video .hero-poster-still {
  background: transparent;
  border: 0;
  outline: 0;
  box-shadow: none;
}
#hero-canvas, #hero-src { background: transparent; }
.hero-video .hero-poster-still { width: 100%; height: 100%; object-fit: contain; display: block; }
.hero-video.still canvas, .hero-video.still video { display: none !important; }
.hero-video canvas {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  animation: fade 1.6s 0.4s ease backwards;
}
.hero-video video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  opacity: 0;
}
/* WebM-alpha path: video shown directly, canvas unused */
.hero-video.alpha canvas { display: none; }
.hero-video.alpha video {
  position: relative;
  display: block;
  z-index: 1;
  opacity: 1;
  object-fit: contain;
  animation: fade 1.6s 0.4s ease backwards;
}
@media (max-width: 860px) {
  .hero-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .hero-video { width: min(72vw, 380px); align-self: center; }
}
.hero-eyebrow {
  font-size: 12px;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--bronze);
  padding-left: 0.5em;
  margin-bottom: clamp(20px, 3vh, 34px);
}
.anim-ready .hero-eyebrow { animation: fadeUp 1.1s 0.15s cubic-bezier(0.16,1,0.3,1) backwards; }
.hero-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 9.2vw, 132px);
  line-height: 0.92;
  letter-spacing: 0.01em;
  margin-left: -0.04em;
}
.hero-headline {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 56px);
}
.hero-logo {
  height: clamp(170px, 17vw, 230px);
  width: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
  flex-shrink: 0;
  animation: fadeUp 1.3s 0.5s cubic-bezier(0.16,1,0.3,1) backwards;
}
@media (max-width: 720px) {
  .hero-headline { flex-direction: column; align-items: flex-start; gap: 18px; }
  .hero-logo { height: 130px; }
}
.hero-name { flex-shrink: 0; }
.hero-name span { display: block; overflow: hidden; }
.hero-name span b {
  display: block;
  font-weight: 400;
  white-space: nowrap;
}
.anim-ready .hero-name span b { animation: riseIn 1.2s cubic-bezier(0.16,1,0.3,1) backwards; }
.hero-name span:nth-child(1) b { animation-delay: 0.28s; font-size: 0.924em; }
.hero-name span:nth-child(2) b { animation-delay: 0.42s; font-style: italic; font-weight: 300; }
.hero-tagline {
  margin-top: clamp(28px, 4vh, 46px);
  display: flex;
  align-items: baseline;
  gap: 26px;
  flex-wrap: wrap;
}
.anim-ready .hero-tagline { animation: fadeUp 1.1s 0.85s cubic-bezier(0.16,1,0.3,1) backwards; }
.hero-role {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 2.6vw, 34px);
  color: var(--ink);
}
.hero-sub {
  font-size: clamp(14px, 1.3vw, 16px);
  color: var(--ink-soft);
  letter-spacing: 0.02em;
  max-width: 30ch;
}
.hero-rule {
  width: 1px;
  align-self: stretch;
  background: var(--line);
}
/* Below this the sub wraps to its own line, leaving the rule dangling. */
@media (max-width: 1000px) {
  .hero-tagline { flex-direction: column; gap: 14px; }
  .hero-rule { display: none; }
}
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  z-index: 3;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.anim-ready .scroll-cue { animation: fade 1.4s 1.4s ease backwards; }
.scroll-cue .bar {
  width: 1px; height: 46px;
  background: linear-gradient(var(--ink-faint), transparent);
  animation: drop 2.4s ease-in-out infinite;
  transform-origin: top;
}

@keyframes riseIn { from { transform: translateY(105%); } to { transform: translateY(0); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes drop {
  0%, 100% { transform: scaleY(0.4); opacity: 0.3; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* ---------- SECTION SCAFFOLD ---------- */
section { position: relative; }
.section-pad { padding: clamp(90px, 13vh, 168px) 0; }

.rule {
  height: 1px;
  background: var(--line);
  border: 0;
  width: 100%;
}

.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(50px, 7vh, 86px);
  flex-wrap: wrap;
}
.sec-index {
  font-size: 12px;
  letter-spacing: 0.34em;
  color: var(--bronze);
  text-transform: uppercase;
}
.sec-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 5.4vw, 76px);
  line-height: 1;
  letter-spacing: 0.005em;
}
.sec-note {
  font-size: 14px;
  color: var(--ink-soft);
  max-width: 32ch;
  text-align: right;
}

/* ---------- GALLERY ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(20px, 2.6vw, 40px) clamp(20px, 2.4vw, 36px);
}
/* Detail-page gallery: square Instagram-style grid */
.gallery-square {
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(6px, 0.9vw, 14px);
}
.piece { position: relative; }
.piece.col-7 { grid-column: span 7; }
.piece.col-5 { grid-column: span 5; }
.piece.col-6 { grid-column: span 6; }
.piece.col-12 { grid-column: span 12; }

.piece-frame {
  position: relative;
  overflow: hidden;
  background: var(--bg-stone);
}
.piece image-slot {
  width: 100%;
  height: 100%;
  display: block;
  --slot-bg: var(--bg-stone);
}
.piece.tall .piece-frame { aspect-ratio: 4 / 5; }
.piece.wide .piece-frame { aspect-ratio: 3 / 2; }
.piece.feature .piece-frame { aspect-ratio: 16 / 9; }

.piece-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 24, 0.62);
  color: var(--bg);
  display: flex;
  align-items: flex-end;
  padding: clamp(22px, 2.4vw, 40px);
  opacity: 0;
  transition: opacity 0.55s cubic-bezier(0.16,1,0.3,1);
  pointer-events: none;
}
.piece-frame:hover .piece-overlay { opacity: 1; }
.piece-overlay p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.4;
  font-weight: 300;
  max-width: 42ch;
  transform: translateY(14px);
  transition: transform 0.6s cubic-bezier(0.16,1,0.3,1);
}
.piece-frame:hover .piece-overlay p { transform: translateY(0); }

.piece-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.piece-name {
  font-family: var(--serif);
  font-size: clamp(20px, 1.9vw, 28px);
  font-weight: 500;
  line-height: 1.1;
}
.piece-name em { font-weight: 300; color: var(--ink-soft); font-style: italic; }
.piece-spec {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-align: right;
  white-space: nowrap;
}

/* ---------- BIO ---------- */
.bio-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.portrait {
  position: sticky;
  top: 120px;
}
.portrait-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.portrait-frame image-slot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  --slot-bg: var(--bg-stone);
}
.portrait > image-slot {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  --slot-bg: var(--bg-stone);
}
.portrait figcaption {
  margin-top: 16px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: flex;
  justify-content: space-between;
}
.bio-body p {
  font-size: clamp(16px, 1.25vw, 18px);
  color: var(--ink-soft);
  margin-bottom: 1.5em;
  max-width: 60ch;
}
.bio-body p.lead {
  font-family: var(--serif);
  font-size: clamp(22px, 2.1vw, 30px);
  line-height: 1.45;
  color: var(--ink);
  font-weight: 300;
  margin-bottom: 1.2em;
}
.bio-body p.lead::first-letter {
  font-size: 1.3em;
  color: var(--bronze);
}
.pullquote {
  margin: clamp(44px, 6vh, 72px) 0;
  padding-left: clamp(24px, 3vw, 44px);
  border-left: 2px solid var(--stone);
}
.pullquote blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(26px, 3.2vw, 46px);
  line-height: 1.22;
  color: var(--ink);
  letter-spacing: 0.004em;
}
.pullquote cite {
  display: block;
  margin-top: 22px;
  font-family: var(--sans);
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.bio-facts {
  margin-top: clamp(40px, 5vh, 60px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  border-top: 1px solid var(--line);
  padding-top: 36px;
}
.bio-facts .fact .n {
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1;
  color: var(--ink);
}
.bio-facts .fact .l {
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ---------- CONTACT ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.contact-lead {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(28px, 3.4vw, 50px);
  line-height: 1.16;
  letter-spacing: 0.004em;
}
.contact-lead em { font-style: italic; color: var(--bronze); }
.studio {
  margin-top: clamp(36px, 5vh, 56px);
  display: grid;
  gap: 26px;
}
.studio .block .k {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 7px;
}
.studio .block .v {
  font-size: 16px;
  color: var(--ink);
}
.studio .block a.v:hover { color: var(--bronze); }

form { display: grid; gap: 30px; }
.field { position: relative; }
.field label {
  position: absolute;
  left: 0; top: 14px;
  font-size: 15px;
  color: var(--ink-faint);
  pointer-events: none;
  transition: all 0.3s ease;
}
.field input,
.field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 14px 0 12px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 300;
  color: var(--ink);
  outline: none;
  transition: border-color 0.4s ease;
  resize: none;
}
.field textarea { min-height: 30px; }
.field input:focus,
.field textarea:focus { border-bottom-color: var(--bronze); }
.field input:focus + label,
.field input.filled + label,
.field textarea:focus + label,
.field textarea.filled + label {
  top: -13px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bronze);
}
.submit {
  justify-self: start;
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: var(--ink);
  color: var(--bg);
  border: 0;
  padding: 17px 34px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.4s ease, gap 0.4s ease;
}
.submit:hover { background: var(--bronze); gap: 24px; }
.submit .arr { transition: transform 0.4s ease; }
.submit:hover .arr { transform: translateX(4px); }
.form-note {
  font-size: 13px;
  color: var(--bronze);
  opacity: 0;
  transition: opacity 0.4s ease;
  margin-top: -8px;
}
.form-note.show { opacity: 1; }

/* ---------- FOOTER ---------- */
footer {
  padding: clamp(48px, 7vh, 80px) 0 clamp(36px, 5vh, 54px);
}
.foot-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.foot-name {
  font-family: var(--serif);
  font-size: clamp(40px, 9vw, 132px);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.foot-meta {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-align: right;
  line-height: 2;
}

/* ---------- REVEAL ---------- */
.reveal {
  transition: opacity 1s cubic-bezier(0.16,1,0.3,1), transform 1s cubic-bezier(0.16,1,0.3,1);
}
.anim-ready .reveal:not(.in) {
  opacity: 0;
  transform: translateY(34px);
}
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .hero-eyebrow, .hero-name span b, .hero-tagline, .scroll-cue { opacity: 1 !important; transform: none !important; animation: none !important; }
}

/* ============================================================
   PORTFOLIO PAGE
   ============================================================ */

/* Sub-hero header used on the portfolio page */
.page-head {
  padding: clamp(150px, 22vh, 240px) 0 clamp(40px, 6vh, 70px);
}
.page-head .kicker {
  font-size: 12px;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--bronze);
  padding-left: 0.5em;
  margin-bottom: clamp(18px, 2.6vh, 28px);
}
.page-head h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(54px, 10vw, 132px);
  line-height: 0.94;
  letter-spacing: 0.01em;
  margin-left: -0.03em;
}
.page-head h1 em { font-style: italic; font-weight: 300; }
.page-head .page-sub {
  margin-top: clamp(22px, 3vh, 34px);
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--ink-soft);
  max-width: 52ch;
}

/* Segmented toggle — the two "windows" */
.switch {
  margin: clamp(30px, 5vh, 52px) 0 0;
  display: flex;
  align-items: stretch;
  gap: 0;
  border: 1px solid var(--line);
  width: max-content;
  max-width: 100%;
  position: relative;
  background: var(--bg);
}
.switch button {
  appearance: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding: 16px clamp(20px, 3vw, 38px);
  position: relative;
  z-index: 2;
  transition: color 0.45s ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 10px;
}
.switch button .count {
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0;
  color: var(--stone);
  transition: color 0.45s ease;
}
.switch button:hover { color: var(--ink-soft); }
.switch button.on { color: var(--bg); }
.switch button.on .count { color: rgba(250,250,248,0.7); }
.switch .pill {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 50%;
  background: var(--ink);
  z-index: 1;
  transition: transform 0.55s cubic-bezier(0.16,1,0.3,1);
}
.switch[data-active="wip"] .pill { transform: translateX(100%); }

/* Window panels */
.window { display: none; }
.window.active { display: block; }
.window-intro {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: clamp(40px, 6vh, 72px);
}
.window-intro .wtitle {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(22px, 2.4vw, 34px);
  color: var(--ink);
}
.window-intro .wnote {
  font-size: 14px;
  color: var(--ink-soft);
  max-width: 40ch;
  text-align: right;
}

/* Work-in-progress card variant */
.piece.wip .piece-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    repeating-linear-gradient(
      -45deg,
      transparent 0 22px,
      rgba(139,115,85,0.05) 22px 44px
    );
  pointer-events: none;
}
.wip-tag {
  position: absolute;
  top: 18px; left: 18px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(250,250,248,0.9);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 8px 14px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
}
.wip-tag .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--bronze);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.35; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.1); }
}

.wip-meta {
  margin-top: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.wip-meta .wip-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.wip-stagerow {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.wip-stage {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bronze);
  white-space: nowrap;
}
.wip-eta {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  white-space: nowrap;
}
.wip-progress {
  margin-top: 14px;
  height: 1px;
  width: 100%;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.wip-progress span {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  background: var(--bronze);
  width: var(--pct, 0%);
  transition: width 1.1s cubic-bezier(0.16,1,0.3,1) 0.2s;
}
.anim-ready .reveal:not(.in) .wip-progress span { width: 0; }
.window.active .wip-progress span { width: var(--pct, 0%); }
.wip-stages {
  margin-top: 12px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.wip-stages li {
  list-style: none;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding: 5px 10px;
  border: 1px solid var(--line);
}
.wip-stages li.done {
  color: var(--ink);
  border-color: var(--stone);
}
.wip-stages li.current {
  color: var(--bg);
  background: var(--bronze);
  border-color: var(--bronze);
}

/* Cross-link card back to home / between sections */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: gap 0.4s ease, color 0.4s ease;
}
.back-link:hover { color: var(--ink); gap: 20px; }

/* Teaser link block on the home gallery */
.portfolio-cta {
  margin-top: clamp(44px, 6vh, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: clamp(28px, 4vh, 40px);
}
.portfolio-cta .pc-text {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(19px, 2vw, 26px);
  color: var(--ink-soft);
  max-width: 46ch;
}
.portfolio-cta .pc-text em { color: var(--bronze); font-style: italic; }
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--ink);
  color: var(--bg);
  padding: 16px 30px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 0.4s ease, gap 0.4s ease;
}
.cta-btn:hover { background: var(--bronze); gap: 22px; }
.cta-btn .arr { transition: transform 0.4s ease; }
.cta-btn:hover .arr { transform: translateX(4px); }

/* ============================================================
   TWO ENTRY WINDOWS (Ready Projects / Work in Progress)
   ============================================================ */
.windows {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.4vw, 36px);
}
.window-card {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--bg-stone);
  aspect-ratio: 5 / 6;
  color: var(--bg);
  isolation: isolate;
}
.window-card .wc-img {
  position: absolute;
  inset: 0;
  z-index: 0;
  transition: transform 1.2s cubic-bezier(0.16,1,0.3,1);
}
.window-card .wc-img image-slot {
  width: 100%;
  height: 100%;
  display: block;
  --slot-bg: #8a8175;
}
.window-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(26,26,24,0.32) 0%, rgba(26,26,24,0.30) 42%, rgba(26,26,24,0.88) 100%);
  transition: background 0.6s ease;
  pointer-events: none;
}
@media (hover: hover) {
  .window-card:hover .wc-img { transform: scale(1.05); }
  .window-card:hover::after {
    background: linear-gradient(180deg, rgba(26,26,24,0.4) 0%, rgba(26,26,24,0.42) 42%, rgba(26,26,24,0.92) 100%);
  }
}
.wc-body {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(26px, 3vw, 46px);
}
.wc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.wc-index {
  font-size: 12px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(250,250,248,0.78);
}
.wc-count {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 2vw, 28px);
  color: rgba(250,250,248,0.92);
}
.wc-bottom .wc-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 4.4vw, 62px);
  line-height: 0.98;
  letter-spacing: 0.006em;
}
.wc-bottom .wc-note {
  margin-top: 14px;
  font-size: clamp(14px, 1.2vw, 16px);
  color: rgba(250,250,248,0.82);
  max-width: 38ch;
  font-weight: 300;
}
.wc-enter {
  margin-top: clamp(22px, 3vh, 34px);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bg);
  transition: gap 0.4s ease;
}
.wc-enter .arr { transition: transform 0.4s ease; }
@media (hover: hover) {
  .window-card:hover .wc-enter { gap: 24px; }
  .window-card:hover .wc-enter .arr { transform: translateX(5px); }
}
/* Live status pip for the WIP window */
.wc-pip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(250,250,248,0.85);
}
.wc-pip .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--stone);
  animation: pulse 2.4s ease-in-out infinite;
}

/* ============================================================
   CLICKABLE PROJECT CARDS (listing grids)
   ============================================================ */
.piece-link {
  display: block;
  color: inherit;
  transition: transform 0.5s cubic-bezier(0.16,1,0.3,1);
}
.piece-link .piece-frame { cursor: pointer; }
.piece-link .piece-name { transition: color 0.4s ease; }
@media (hover: hover) {
  .piece-link:hover { transform: translateY(-4px); }
  .piece-link:hover .piece-name { color: var(--bronze); }
}
.piece-open {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  transition: gap 0.4s ease, color 0.4s ease;
}
.piece-open .arr { transition: transform 0.4s ease; }
@media (hover: hover) {
  .piece-link:hover .piece-open { color: var(--ink); gap: 18px; }
  .piece-link:hover .piece-open .arr { transform: translateX(4px); }
}

/* ============================================================
   PROJECT DETAIL PAGE
   ============================================================ */
.proj-meta {
  margin-top: clamp(20px, 3vh, 30px);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 22px;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.proj-meta .sep { color: var(--stone); }
.proj-meta .st {
  color: var(--bronze);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.proj-meta .st .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--bronze);
  animation: pulse 2.4s ease-in-out infinite;
}

/* In-progress stage block on the detail head */
.proj-progress {
  margin-top: clamp(30px, 4vh, 44px);
  max-width: 560px;
}
.proj-progress .pp-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.proj-progress .pp-stage {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bronze);
}
.proj-progress .pp-eta {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.proj-progress .wip-progress { margin-top: 0; }
.proj-progress .wip-stages { margin-top: 14px; }

/* Spec sheet */
.spec-sheet {
  margin-top: clamp(40px, 6vh, 64px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.spec-sheet .cell {
  background: var(--bg);
  padding: clamp(20px, 2.2vw, 30px) clamp(18px, 2vw, 26px);
}
.spec-sheet .cell .k {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 12px;
}
.spec-sheet .cell .v {
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.1;
  color: var(--ink);
}

/* Project narrative */
.proj-narr {
  margin-top: clamp(56px, 8vh, 96px);
  display: grid;
  grid-template-columns: 0.32fr 0.68fr;
  gap: clamp(30px, 5vw, 80px);
  align-items: start;
}
.proj-narr .nl {
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--bronze);
  padding-top: 8px;
}
.proj-narr .nr p {
  font-size: clamp(16px, 1.25vw, 18px);
  color: var(--ink-soft);
  margin-bottom: 1.5em;
  max-width: 62ch;
}
.proj-narr .nr p.lead {
  font-family: var(--serif);
  font-size: clamp(22px, 2.1vw, 30px);
  line-height: 1.4;
  color: var(--ink);
  font-weight: 300;
}

/* Gallery section heading */
.gallery-label {
  margin: clamp(64px, 9vh, 110px) 0 clamp(34px, 5vh, 54px);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: clamp(26px, 4vh, 38px);
}
.gallery-label .gl-title {
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 44px);
  font-weight: 400;
}
.gallery-label .gl-count {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* Detail gallery pieces are square, tap-to-zoom tiles */
.shot .piece-frame { background: var(--bg-stone); }
.gallery-square .shot {
  position: relative;
  cursor: pointer;
}
.gallery-square .shot .piece-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}
.gallery-square .shot image-slot {
  width: 100%;
  height: 100%;
}
.shot-zoom {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(26, 26, 24, 0.32);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 3;
}
.shot-zoom svg { width: 26px; height: 26px; }
@media (hover: hover) {
  .gallery-square .shot:hover .shot-zoom { opacity: 1; }
}

/* ---------- LIGHTBOX ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 16, 14, 0.94);
  animation: lb-fade 0.3s ease;
}
@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }
.lb-viewport {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  touch-action: pan-y;
  z-index: 1;
}
.lb-track {
  display: flex;
  height: 100%;
  will-change: transform;
}
.lb-slide {
  flex: 0 0 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 5vh, 64px) clamp(16px, 7vw, 110px);
}
.lb-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.lb-close,
.lb-arrow {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  transition: color 0.25s ease, background 0.25s ease, opacity 0.25s ease;
}
.lb-close:hover,
.lb-arrow:hover { color: #fff; background: rgba(255, 255, 255, 0.16); }
.lb-close {
  top: clamp(16px, 3vh, 28px);
  right: clamp(16px, 3vw, 28px);
  width: 46px;
  height: 46px;
}
.lb-close svg { width: 22px; height: 22px; }
.lb-arrow {
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
}
.lb-arrow svg { width: 26px; height: 26px; }
.lb-prev { left: clamp(12px, 2.5vw, 32px); }
.lb-next { right: clamp(12px, 2.5vw, 32px); }
.lightbox.at-start .lb-prev,
.lightbox.at-end .lb-next { opacity: 0; pointer-events: none; }
.lb-counter {
  position: absolute;
  bottom: clamp(16px, 3vh, 30px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 8px;
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.7);
}
.lb-counter .lb-sep { opacity: 0.5; }

/* Prev / next pager */
.pager {
  margin-top: clamp(64px, 9vh, 110px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.pager a {
  padding: clamp(28px, 4vh, 44px) 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: color 0.4s ease;
}
.pager a.next { text-align: right; align-items: flex-end; padding-left: 24px; }
.pager a.prev { border-right: 1px solid var(--line); padding-right: 24px; }
.pager .pg-dir {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.pager .pg-name {
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 34px);
  color: var(--ink);
  transition: color 0.4s ease;
}
.pager a:hover .pg-name { color: var(--bronze); }
.pager a.disabled { opacity: 0.32; pointer-events: none; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 920px) {
  .proj-narr { grid-template-columns: 1fr; gap: 18px; }
  .piece.col-7, .piece.col-5, .piece.col-6, .piece.col-12 { grid-column: span 12; }
  .bio-grid, .contact-grid { grid-template-columns: 1fr; }
  .portrait { position: static; max-width: 420px; }
  .bio-body { margin-top: 8px; }
}
@media (max-width: 620px) {
  .nav-links { gap: 18px; }
  .nav-links a span.full { display: none; }
  .hero-tagline { flex-direction: column; gap: 14px; }
  .hero-rule { display: none; }
  .sec-note { text-align: left; }
  .sec-head { margin-bottom: 44px; }
  .bio-facts { grid-template-columns: 1fr; gap: 20px; }
  .piece-overlay { opacity: 1; background: linear-gradient(transparent, rgba(26,26,24,0.55)); }
  .piece-overlay p { transform: none; font-size: 15px; }
  .window-intro .wnote { text-align: left; }
  .switch { width: 100%; }
  .switch button { flex: 1; justify-content: center; padding: 15px 10px; }
  .windows { grid-template-columns: 1fr; gap: 16px; }
  .window-card { aspect-ratio: 1 / 1; }
}


/* ============================================================
   SOUVENIRS
   ============================================================ */

.sv-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(12px, 1.4vw, 20px);
  margin-top: clamp(32px, 5vh, 56px);
}

.sv-card {
  cursor: pointer;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .55s ease, transform .55s ease;
}
.sv-card.vis { opacity: 1; transform: none; }

.sv-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg-stone);
}
.sv-thumb image-slot { width: 100%; height: 100%; }

.sv-over {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 14px;
  background: linear-gradient(to top, rgba(26,26,24,.7) 0%, transparent 55%);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.sv-over span {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: #fff;
}
@media (hover: hover) { .sv-card:hover .sv-over { opacity: 1; } }

.sv-info {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0 0;
  gap: 6px;
}
.sv-name {
  font-family: var(--serif);
  font-size: clamp(14px, 1.1vw, 17px);
  color: var(--ink);
}
.sv-price {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--bronze);
  white-space: nowrap;
}

/* ---------- Souvenir modal ---------- */
.sv-modal {
  position: fixed;
  inset: 0;
  z-index: 800;
  display: none;
  align-items: center;
  justify-content: center;
}
.sv-modal.open { display: flex; }

.sv-bd {
  position: absolute;
  inset: 0;
  background: rgba(16,16,14,.88);
  animation: lb-fade .3s ease;
}

.sv-box {
  position: relative;
  z-index: 1;
  background: var(--bg);
  width: min(94vw, 880px);
  max-height: 92vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: sv-rise .4s cubic-bezier(.16,1,.3,1);
}
@keyframes sv-rise {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}

.sv-close {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 3;
  width: 40px; height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--ink-soft);
  display: flex; align-items: center; justify-content: center;
  transition: color .2s;
}
.sv-close:hover { color: var(--ink); }
.sv-close svg { width: 20px; height: 20px; }

.sv-panel { display: none; flex-direction: column; }
.sv-panel.active { display: flex; }

.sv-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 28px 32px 18px;
  flex-shrink: 0;
  border-bottom: 1px solid var(--line);
}
.sv-dname {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 400;
}
.sv-dprice {
  font-size: 18px;
  color: var(--bronze);
}

.sv-angles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 24px 28px;
  overflow-y: auto;
}
.sv-angle-item {
  aspect-ratio: 1 / 1;
  background: var(--bg-stone);
  overflow: hidden;
}
.sv-angle-item image-slot { width: 100%; height: 100%; }

.sv-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px 18px;
  border-top: 1px solid var(--line);
  flex-shrink: 0;
}
.sv-nav-btn {
  width: 46px; height: 46px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-soft);
  transition: color .2s, border-color .2s;
}
.sv-nav-btn:hover { color: var(--ink); border-color: var(--ink-soft); }
.sv-nav-btn svg { width: 20px; height: 20px; }
.sv-counter {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--ink-soft);
  letter-spacing: .04em;
}
.sv-modal.at-start .sv-nb-prev,
.sv-modal.at-end .sv-nb-next { opacity: .28; pointer-events: none; }

/* Responsive */
@media (max-width: 1100px) { .sv-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 820px)  {
  .sv-grid { grid-template-columns: repeat(3, 1fr); }
  .sv-panel-head { padding: 20px 20px 14px; }
  .sv-angles-grid { padding: 16px 16px; gap: 8px; }
}
@media (max-width: 540px)  {
  .sv-grid { grid-template-columns: repeat(2, 1fr); }
  .sv-angles-grid { grid-template-columns: 1fr; }
}


/* ============================================================
   LISTING PAGE — uniform 3-column grid, square cards
   ============================================================ */
.gallery-list {
  grid-template-columns: repeat(3, 1fr) !important;
  gap: clamp(18px, 2vw, 32px) !important;
}
.gallery-list > .piece {
  grid-column: span 1 !important;
}
.gallery-list .piece-frame {
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  overflow: hidden !important;
}
.gallery-list .piece-frame image-slot {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: block !important;
}
@media (max-width: 900px) {
  .gallery-list { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 560px) {
  .gallery-list { grid-template-columns: 1fr !important; }
}


/* ============================================================
   SOUVENIRS LISTING PAGE
   ============================================================ */
.sv-listing-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(14px, 1.6vw, 24px);
}
/* ---- fullscreen lightbox ---- */
.sv-lb { position: fixed; inset: 0; z-index: 300; display: none; background: rgba(12,12,11,.96); }
.sv-lb.open { display: block; }
.sv-lb-stage { position: absolute; inset: 0; margin: 0; display: flex; align-items: center; justify-content: center; padding: clamp(28px,5vh,72px) clamp(56px,7vw,120px); cursor: zoom-out; }
.sv-lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.sv-lb-close, .sv-lb-nav { position: absolute; z-index: 2; background: none; border: 0; color: rgba(255,255,255,.68); cursor: pointer; padding: 12px; transition: color .2s ease; }
.sv-lb-close:hover, .sv-lb-nav:hover { color: #fff; }
.sv-lb-close { top: clamp(14px,2.4vh,26px); right: clamp(14px,2vw,28px); width: 48px; height: 48px; }
.sv-lb-close svg { width: 22px; height: 22px; }
.sv-lb-nav { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; }
.sv-lb-nav svg { width: 26px; height: 26px; }
.sv-lb-prev { left: clamp(4px,1vw,20px); }
.sv-lb-next { right: clamp(4px,1vw,20px); }
.sv-lb-count { position: absolute; bottom: clamp(14px,2.4vh,28px); left: 50%; transform: translateX(-50%); font-family: var(--sans); font-size: 12px; letter-spacing: .14em; color: rgba(255,255,255,.5); }
.sv-listing-card {
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .5s ease, transform .5s ease;
}
.sv-listing-card.vis { opacity: 1; transform: none; }

.sv-listing-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg-stone);
}
.sv-listing-thumb image-slot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.sv-listing-thumb .sv-over {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 14px;
  background: linear-gradient(to top, rgba(26,26,24,.65) 0%, transparent 55%);
  opacity: 0;
  transition: opacity .28s ease;
  pointer-events: none;
}
.sv-listing-thumb .sv-over span {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: #fff;
}
@media (hover: hover) { .sv-listing-card:hover .sv-over { opacity: 1; } }

.sv-listing-info {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 2px 8px;
  padding: 10px 0 0;
}
.sv-listing-name {
  grid-column: 1;
  font-family: var(--serif);
  font-size: clamp(14px, 1.1vw, 18px);
  color: var(--ink);
}
.sv-listing-price {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--bronze);
  white-space: nowrap;
}
.sv-listing-meta {
  grid-column: 1;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* 4-angle grid inside modal */
.sv-angles-4 { grid-template-columns: repeat(4, 1fr) !important; }
.sv-dmaterial {
  display: block;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 4px;
}

@media (max-width: 1100px) { .sv-listing-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 820px)  { .sv-listing-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px)  {
  .sv-listing-grid { grid-template-columns: repeat(2, 1fr); }
  .sv-angles-4 { grid-template-columns: repeat(2, 1fr) !important; }
}

/* ---------- PAGE TRANSITION / PROGRESS / LEGAL (additions) ---------- */
html.js body { opacity: 0; transition: opacity 350ms ease; }
html.js body.loaded { opacity: 1; }
html.js body.loaded.dimmed { opacity: 0.85; transition: opacity 80ms linear; }
html.js body.leaving { opacity: 0; transition: opacity 220ms ease; }
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 1px;
  z-index: 200;
  border-radius: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.scroll-progress.visible { opacity: 1; }
.scroll-progress span {
  display: block;
  height: 100%;
  background: var(--bronze);
  transform: scaleX(0);
  transform-origin: 0 50%;
}
.foot-legal {
  margin-top: clamp(26px, 3.4vh, 40px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.foot-legal a {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  transition: color 0.35s ease;
}
.foot-legal a:hover { color: var(--bronze); }
.form-error {
  font-size: 13px;
  color: var(--bronze);
  border: 1px solid var(--line);
  border-left: 1px solid var(--bronze);
  padding: 10px 14px;
  opacity: 0;
  transition: opacity 0.5s ease;
  margin-top: -8px;
}
.form-error.show { opacity: 1; }
.legal-narr { margin-top: clamp(10px, 2vh, 20px); }
.legal-narr + .legal-narr { margin-top: clamp(40px, 6vh, 68px); }
@media (prefers-reduced-motion: reduce) {
  html.js body, html.js body.loaded.dimmed, html.js body.leaving { opacity: 1 !important; transition: none !important; }
}

/* ---------- MOBILE NAV (burger) + RESPONSIVE ---------- */
#nav .wrap { position: relative; }
.burger { display: none; position: absolute; top: 50%; right: clamp(24px, 5vw, 80px); transform: translateY(-50%); width: 24px; height: 14.5px; padding: 0; background: none; border: 0; cursor: pointer; z-index: 301; flex-direction: column; justify-content: space-between; }
.burger span { display: block; width: 24px; height: 1.5px; background: var(--ink); transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), opacity 0.25s ease; }
body.menu-open .burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.mobile-menu { display: none; position: fixed; inset: 0; z-index: 300; background: var(--bg); overflow-y: auto; -webkit-overflow-scrolling: touch; transform: translateX(100%); transition: transform 0.5s cubic-bezier(0.16,1,0.3,1); }
body.menu-open .mobile-menu { transform: translateX(0); }
.mm-links { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2.4em; padding: 1.6em clamp(24px, 6vw, 60px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mm-links a { font-family: var(--serif); font-size: clamp(32px, 9vw, 52px); font-style: italic; font-weight: 300; color: var(--ink); letter-spacing: 0.02em; text-transform: none; text-decoration: none; line-height: 1; opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.16,1,0.3,1); }
.mm-links a::after { display: none; }
.mm-links a.active { color: var(--bronze); }
body.menu-open .mm-links a { opacity: 1; transform: none; }

/* The six-item link row stops fitting beside the wordmark well before the
   mobile layout kicks in, so the burger takes over earlier than the rest. */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .burger { display: flex; }
  .mobile-menu { display: flex; align-items: center; justify-content: center; }
  body.menu-open { overflow: hidden; }
}

@media (max-width: 640px) {
  /* Hero becomes a single column in normal flow: eyebrow → name →
     tagline → video → SCROLL, nothing overlapping. It grows past one
     screen on short phones rather than stacking on itself. */
  .hero {
    padding-top: 120px;
    padding-bottom: clamp(28px, 6vh, 56px);
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    height: auto;
    min-height: 100svh;
    overflow: visible;
  }
  /* Model sits to the right of the name: unwrap .hero-text so the eyebrow,
     headline and tagline become grid items alongside the video. */
  .hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 10px;
    row-gap: 12px;
  }
  .hero-text { display: contents; }
  .hero-eyebrow { grid-row: 1; grid-column: 1 / -1; }
  .hero-headline { grid-row: 2; grid-column: 1; }
  .hero-tagline { grid-row: 3; grid-column: 1 / -1; }
  .hero-video {
    display: block !important;
    position: relative;
    grid-column: 2;
    grid-row: 2;
    width: min(34vw, 150px);
    align-self: center;
    margin: 0;
  }
  .scroll-cue {
    position: static;
    left: auto;
    bottom: auto;
    transform: none;
    align-self: center;
    margin-top: clamp(28px, 5vh, 48px);
  }
  .hero-name { font-size: clamp(40px, 11.5vw, 60px); }
  .hero-name span b, .hero-tagline, .hero-tagline p, .hero-tagline span, .hero-tagline em { color: inherit; }
  .hero-tagline { flex-direction: column; gap: 14px; }
  .hero-rule { display: none; }

  .windows { grid-template-columns: 1fr; }
  .window-card { aspect-ratio: 3 / 2; }
  .wc-title { font-size: clamp(28px, 8vw, 42px); }

  .bio-grid { grid-template-columns: 1fr; }
  .bio-facts .fact .n { font-size: clamp(28px, 7vw, 40px); }
  .portrait-frame { max-width: 100%; aspect-ratio: 4 / 3; }

  .contact-grid { grid-template-columns: 1fr; }
  .contact-lead { font-size: clamp(22px, 6vw, 30px); }
  .submit, .submit button, button.submit { width: 100%; }

  .gallery-list { grid-template-columns: repeat(2, 1fr) !important; }
  .sv-listing-grid { grid-template-columns: repeat(2, 1fr); }
  .page-head h1 { font-size: clamp(44px, 12vw, 72px); }
  .proj-meta, .page-sub, .foot-meta { overflow-wrap: break-word; }

  .foot-row { flex-direction: column; align-items: flex-start; gap: 16px; }
  .foot-name { font-size: clamp(48px, 16vw, 80px); }
  .foot-meta { text-align: left; }

  input, textarea, select, button { min-height: 44px; }
}
@media (max-width: 400px) {
  .gallery-list { grid-template-columns: 1fr !important; }
  .sv-listing-grid { grid-template-columns: repeat(2, 1fr); }
}

.studio .block a[href*="instagram"] { font-family: "DM Sans"; }

.page-head h1.page-h1-fit { font-size: clamp(44px, 12vw, 90px); }
.back-link.back-link-head { margin-bottom: clamp(26px, 4vh, 42px); }
.studio .block .v-links { display: flex; flex-direction: column; }

.page-head h1.page-h1-sm { font-size: clamp(44px, 7.4vw, 96px); }

/* Page-scaffold spacing (was inline on the subpages) */
.section-pad.section-pad-tight { padding-top: clamp(40px, 6vh, 72px); }
.section-pad.section-pad-project { padding-top: clamp(20px, 4vh, 48px); }
.cross-link-row { margin-top: clamp(50px, 7vh, 84px); }
.sv-listing-name
.foot-name.foot-name-sm { font-size: clamp(34px, 5.6vw, 74px); }


/* ============================================================
   CLICKABLE IMAGE HOVER ZOOM (galleries)
   ============================================================ */
.piece-link .piece-frame image-slot,
.gallery-square .shot image-slot,
.sv-listing-thumb image-slot { transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); will-change: transform; }
.piece-link .piece-frame, .gallery-square .shot .piece-frame, .sv-listing-thumb { overflow: hidden; }
.gallery-square .shot, .sv-listing-thumb { cursor: pointer; }
@media (hover: hover) {
  .piece-link:hover .piece-frame image-slot,
  .gallery-square .shot:hover image-slot,
  .sv-listing-card:hover .sv-listing-thumb image-slot { transform: scale(1.04); }
}

/* ============================================================
   MOBILE: no horizontal overflow, native vertical scrolling
   ============================================================ */
html, body { overflow-x: hidden; max-width: 100%; }
.gallery-list, .sv-listing-grid, .gallery-grid, .windows { width: 100%; max-width: 100%; box-sizing: border-box; }
.gallery-list > *, .sv-listing-grid > *, .gallery-grid > *, .windows > * { min-width: 0; box-sizing: border-box; }
/* Vertical scrolling always belongs to the browser, even over a card. */
.piece-link, .sv-listing-card, .window-card, .shot { touch-action: pan-y; }
@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  .gallery-list { gap: 14px !important; }
  .sv-listing-grid, .gallery-grid { gap: 10px; }
}
@media (max-width: 520px) {
  .gallery-list { grid-template-columns: 1fr !important; }
}
