/* ============ KAIDONG JIAO — portfolio ============ */

:root {
  --paper: #faf8f4;
  --ink: #1c1a15;
  --muted: #8b8577;
  --line: #e7e2d8;
  --dark: #14120e;
  --cream: #f2ede3;
  --serif: "Cormorant Garamond", "Songti SC", "STSong", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --pad: clamp(20px, 4vw, 64px);
  --maxw: 1440px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--ink); color: var(--paper); }

/* ---------- header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background 0.35s ease, box-shadow 0.35s ease, color 0.35s ease;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 21px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.site-nav { display: flex; gap: 36px; }
.nav-link {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  position: relative;
  padding: 6px 0;
  opacity: 0.85;
  transition: opacity 0.25s;
}
.nav-link:hover { opacity: 1; }
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  border-bottom: 1px solid currentColor;
  transition: right 0.3s ease;
}
.nav-link:hover::after, .nav-link.is-active::after { right: 0; }

/* transparent over hero */
.site-header--overlay:not(.is-scrolled) {
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: #fff;
}

.menu-btn {
  display: none;
  width: 40px; height: 40px;
  background: none; border: 0; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 7px;
}
.menu-btn span {
  display: block; width: 24px; height: 1.5px;
  background: currentColor;
  transition: transform 0.3s ease, opacity 0.3s;
}
body.menu-open .menu-btn span:first-child { transform: translateY(4.25px) rotate(45deg); }
body.menu-open .menu-btn span:last-child { transform: translateY(-4.25px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 40;
  background: var(--paper);
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--pad);
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s ease;
}
body.menu-open .mobile-menu { opacity: 1; pointer-events: auto; }
body.menu-open { overflow: hidden; }
body.menu-open .site-header { background: transparent; border-bottom-color: transparent; color: var(--ink); }
.mobile-menu nav { display: flex; flex-direction: column; gap: 8px; }
.mobile-menu nav a {
  font-family: var(--serif);
  font-size: clamp(36px, 9vw, 56px);
  line-height: 1.25;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
body.menu-open .mobile-menu nav a { opacity: 1; transform: none; }
body.menu-open .mobile-menu nav a:nth-child(2) { transition-delay: 0.06s; }
body.menu-open .mobile-menu nav a:nth-child(3) { transition-delay: 0.12s; }
.mobile-menu-foot { margin-top: 48px; }

/* ---------- photo primitives ---------- */
.ph {
  position: relative;
  overflow: hidden;
  background: var(--ph-bg, #e9e5dd);
}
.ph-blur {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: blur(18px); transform: scale(1.1);
  transition: opacity 0.5s ease 0.1s;
}
.ph img {
  position: relative;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.ph img.is-loaded { opacity: 1; }
.ph img.is-loaded + .ph-blur, .ph:has(img.is-loaded) .ph-blur { opacity: 0; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
}
.hero .hero-img { position: absolute; inset: 0; }
.hero .hero-img img { height: 100%; }
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(10, 9, 7, 0.35), transparent 30%, transparent 55%, rgba(10, 9, 7, 0.55));
}
.hero-content {
  position: absolute;
  left: 0; right: 0; bottom: 14vh;
  text-align: center;
  color: #fff;
  padding: 0 var(--pad);
}
.hero-kicker {
  font-size: 11px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  opacity: 0;
  animation: rise 1s ease 0.3s forwards;
}
.hero-title {
  font-family: var(--serif);
  font-weight: var(--display-weight, 400);
  font-size: clamp(44px, 9vw, 118px);
  letter-spacing: var(--title-ls, 0.14em);
  text-transform: uppercase;
  line-height: 1.05;
  margin: 18px 0 14px;
  opacity: 0;
  animation: rise 1.1s ease 0.5s forwards;
}
.hero-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(16px, 2.2vw, 22px);
  letter-spacing: 0.06em;
  opacity: 0;
  animation: rise 1.1s ease 0.75s forwards;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}
.hero-scroll {
  position: absolute;
  left: 50%; bottom: 34px;
  transform: translateX(-50%);
  width: 1px; height: 56px;
  overflow: hidden;
}
.hero-scroll span {
  position: absolute; inset: 0;
  background: rgba(255, 255, 255, 0.75);
  animation: drop 2s ease-in-out infinite;
}
@keyframes drop {
  0% { transform: translateY(-100%); }
  55% { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

/* ---------- shared section bits ---------- */
main { display: block; }
section { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--muted);
}
.section-title {
  font-family: var(--serif);
  font-weight: var(--display-weight, 400);
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.15;
  margin-top: 10px;
}
.section-head { margin-bottom: clamp(32px, 5vw, 56px); }
.text-link {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
  transition: opacity 0.25s;
}
.text-link:hover { opacity: 0.55; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-kicker, .hero-title, .hero-tagline { animation: none; opacity: 1; }
  html { scroll-behavior: auto; }
}

/* ---------- home: intro ---------- */
.intro {
  padding-top: clamp(80px, 12vw, 160px);
  padding-bottom: clamp(80px, 12vw, 150px);
  text-align: center;
}
.intro-text {
  font-family: var(--serif);
  font-size: clamp(22px, 3.2vw, 36px);
  line-height: 1.6;
  max-width: 22em;
  margin: 0 auto clamp(28px, 4vw, 44px);
}
.br-desktop { display: none; }
@media (min-width: 700px) { .br-desktop { display: block; } }

/* ---------- home: featured ---------- */
.featured { padding-bottom: clamp(80px, 10vw, 140px); }
.feat-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(16px, 2.5vw, 36px);
  align-items: start;
}
.feat-card { position: relative; display: block; }
.feat-card .ph { aspect-ratio: var(--crop, 3 / 4); }
.feat-card--1 { grid-column: 1 / 8; --crop: 4 / 3; }
.feat-card--2 { grid-column: 8 / 13; --crop: 3 / 4; margin-top: clamp(40px, 7vw, 110px); }
.feat-card--3 { grid-column: 3 / 11; --crop: 16 / 9; margin-top: clamp(16px, 2.5vw, 36px); }
.feat-card .ph img { transition: opacity 0.6s ease, transform 1.2s cubic-bezier(0.2, 0.6, 0.2, 1); }
.feat-card:hover .ph img { transform: scale(1.03); }
.feat-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 14px;
}
.feat-title { font-family: var(--serif); font-weight: 500; font-size: clamp(20px, 2.4vw, 28px); }
.feat-year { font-size: 11px; letter-spacing: 0.2em; color: var(--muted); }

/* ---------- home: archive ---------- */
.archive { padding-bottom: clamp(60px, 8vw, 110px); }
.arch-group { margin-bottom: clamp(44px, 6vw, 72px); }
.arch-label {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(19px, 2.2vw, 26px);
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}
.arch-label::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.arch-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 2vw, 28px);
}
.arch-card .ph { aspect-ratio: 4 / 5; }
.arch-card .ph img { transition: opacity 0.6s ease, transform 1s cubic-bezier(0.2, 0.6, 0.2, 1); }
.arch-card:hover .ph img { transform: scale(1.04); }
.arch-title { margin-top: 10px; font-size: 12.5px; letter-spacing: 0.06em; color: var(--ink); }

/* ---------- page head ---------- */
.page-head {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: calc(68px + clamp(48px, 9vw, 110px)) var(--pad) clamp(40px, 6vw, 80px);
}
.page-title {
  font-family: var(--serif);
  font-weight: var(--display-weight, 400);
  font-size: clamp(42px, 7vw, 88px);
  line-height: 1.05;
}
.page-sub { color: var(--muted); margin-top: 12px; letter-spacing: 0.04em; }

/* ---------- work index ---------- */
.work-section { padding-bottom: clamp(56px, 8vw, 100px); }
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.2vw, 32px) clamp(14px, 2vw, 28px);
}
.work-card .ph { aspect-ratio: 4 / 3; }
.work-card .ph img { transition: opacity 0.6s ease, transform 1s cubic-bezier(0.2, 0.6, 0.2, 1); }
.work-card:hover .ph img { transform: scale(1.04); }
.work-card-meta { padding-top: 12px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.work-card-meta h3 { font-family: var(--serif); font-weight: 500; font-size: 20px; }
.work-card-meta p { font-size: 11px; letter-spacing: 0.14em; color: var(--muted); white-space: nowrap; }

/* ---------- gallery page ---------- */
.gallery-head { text-align: center; }
.gallery-desc { max-width: 40em; margin: 18px auto 0; color: var(--muted); }
.gallery-count {
  margin-top: 18px;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}

/* justified rows via flex-grow on aspect ratio */
.jgal {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(6px, 0.8vw, 12px);
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.jgal::after { content: ""; flex-grow: 1000000; }
.jgal .ph {
  flex-grow: calc(var(--ar) * 100);
  flex-basis: calc(var(--ar) * 26vh);
  aspect-ratio: var(--ar);
  cursor: zoom-in;
}
.jgal .ph img { transition: opacity 0.6s ease, filter 0.4s ease; }
.jgal .ph:hover img { filter: brightness(1.05); }

.gallery-nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(48px, 7vw, 90px) var(--pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.gnav { display: flex; flex-direction: column; gap: 4px; transition: opacity 0.25s; }
.gnav:hover { opacity: 0.55; }
.gnav-next { text-align: right; }
.gnav-dir { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }
.gnav-title { font-family: var(--serif); font-size: clamp(18px, 2.4vw, 26px); }
.gnav-all { text-align: center; }

/* ---------- lightbox ---------- */
.lb {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(12, 11, 9, 0.96);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.lb.open { opacity: 1; pointer-events: auto; }
.lb img {
  max-width: min(92vw, 1800px);
  max-height: 88vh;
  width: auto; height: auto;
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.lb-count {
  position: absolute; top: 22px; left: 28px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 12px; letter-spacing: 0.2em;
}
.lb-btn {
  position: absolute;
  background: none; border: 0; cursor: pointer;
  color: rgba(255, 255, 255, 0.75);
  font-size: 28px; line-height: 1;
  padding: 18px;
  transition: color 0.2s;
  font-family: var(--sans);
}
.lb-btn:hover { color: #fff; }
.lb-close { top: 12px; right: 16px; font-size: 34px; font-weight: 200; }
.lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 8px; top: 50%; transform: translateY(-50%); }
@media (max-width: 700px) {
  .lb-prev, .lb-next { display: none; }
}
body.lb-open { overflow: hidden; }
.lb-cap {
  position: absolute;
  bottom: 20px; left: 50%;
  transform: translateX(-50%);
  max-width: 80vw;
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-align: center;
}

/* WeChat QR in contact block */
.contact-qr {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel, #fff);
  max-width: 340px;
}
.contact-qr img { width: 110px; height: 110px; border-radius: 8px; }
.contact-qr p { font-size: 13px; color: var(--muted); line-height: 1.8; }
.contact-qr p span { font-family: var(--serif); font-size: 15px; color: var(--ink); }

/* ---------- contact ---------- */
.contact-wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: calc(68px + clamp(48px, 9vw, 110px)) var(--pad) clamp(60px, 8vw, 110px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
.contact-lede { margin: 20px 0 44px; color: var(--muted); font-size: 16px; }
.contact-list { border-top: 1px solid var(--line); }
.contact-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.contact-key { font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); }
.contact-val { font-family: var(--serif); font-size: clamp(18px, 2.2vw, 24px); text-align: right; }
.contact-val a { border-bottom: 1px solid transparent; transition: border-color 0.25s; }
.contact-val a:hover { border-bottom-color: var(--ink); }
.contact-right .ph { aspect-ratio: 3 / 4; }

.contact-form { margin-top: 44px; display: grid; gap: 18px; }
.contact-form label {
  display: grid; gap: 8px;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted);
}
.contact-form input, .contact-form textarea {
  font: 15px/1.6 var(--sans);
  color: var(--ink);
  background: transparent;
  border: 0; border-bottom: 1px solid var(--line);
  padding: 8px 0;
  border-radius: 0;
  resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-bottom-color: var(--ink);
}
.btn {
  justify-self: start;
  font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase;
  background: var(--ink); color: var(--paper);
  border: 1px solid var(--ink);
  padding: 14px 34px;
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
}
.btn:hover { background: transparent; color: var(--ink); }

/* ---------- footer ---------- */
.site-footer {
  background: var(--dark);
  color: var(--cream);
  margin-top: clamp(60px, 8vw, 110px);
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(64px, 9vw, 130px) var(--pad) 40px;
}
.footer-eyebrow { font-size: 11px; letter-spacing: 0.34em; text-transform: uppercase; opacity: 0.55; }
.footer-mail {
  display: inline-block;
  font-family: var(--serif);
  font-size: clamp(26px, 5vw, 64px);
  line-height: 1.2;
  margin-top: 14px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, opacity 0.3s;
}
.footer-mail:hover { border-bottom-color: var(--cream); }
.footer-meta {
  margin-top: clamp(48px, 7vw, 90px);
  padding-top: 28px;
  border-top: 1px solid color-mix(in srgb, var(--cream) 16%, transparent);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.social-links { display: flex; gap: 26px; }
.social-links a {
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase;
  opacity: 0.75; transition: opacity 0.25s;
}
.social-links a:hover { opacity: 1; }
.colophon { font-size: 11.5px; opacity: 0.45; letter-spacing: 0.04em; }

.nf { text-align: center; padding-bottom: 120px; }
.nf .text-link { margin-top: 32px; }

/* ---------- generic blocks ---------- */
.hero--large { height: 72svh; min-height: 480px; }
.hero--medium { height: 52svh; min-height: 380px; }
.intro--left { text-align: left; }
.intro--left .intro-text { margin-left: 0; }

.blk-sechead { padding-top: clamp(40px, 6vw, 80px); }

.blk-text { padding: clamp(28px, 4vw, 56px) var(--pad); }
.blk-text-inner { max-width: 40em; margin: 0 auto; }
.blk-text--narrow .blk-text-inner { max-width: 34em; }
.blk-text--wide .blk-text-inner { max-width: 56em; }
.blk-text--center { text-align: center; }
.blk-text-heading {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.25;
  margin-bottom: 16px;
}
.blk-text p { margin-bottom: 1em; color: var(--ink); }
.blk-text p:last-child { margin-bottom: 0; }

.blk-image { padding: clamp(20px, 3vw, 40px) var(--pad); }
.blk-image > div { max-width: 900px; margin: 0 auto; }
.blk-image--wide > div { max-width: var(--maxw); }
.blk-image--full { padding-left: 0; padding-right: 0; }
.blk-image--full > div { max-width: none; }
.blk-caption {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-top: 10px;
  text-align: center;
}

.blk-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
  padding: clamp(36px, 5vw, 70px) var(--pad);
  max-width: var(--maxw);
  margin: 0 auto;
}
.blk-split--flip .blk-split-img { order: 2; }
.blk-split-img .ph { aspect-ratio: 4 / 5; }
.blk-split-text .text-link { margin-top: 20px; }

.blk-quote { padding: clamp(48px, 7vw, 100px) var(--pad); text-align: center; }
.blk-quote p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 3.4vw, 38px);
  line-height: 1.5;
  max-width: 24em;
  margin: 0 auto;
}
.blk-quote cite {
  display: block;
  margin-top: 20px;
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}

.blk-spacer--s { height: clamp(20px, 3vw, 40px); }
.blk-spacer--m { height: clamp(40px, 6vw, 80px); }
.blk-spacer--l { height: clamp(80px, 11vw, 150px); }
.blk-divider { padding: clamp(20px, 3vw, 40px) var(--pad); }
.blk-divider hr { border: 0; border-top: 1px solid var(--line); max-width: var(--maxw); margin: 0 auto; }

.contact-wrap--single { grid-template-columns: 1fr; max-width: 900px; }

.blk-wrap { min-height: 8px; }

@media (max-width: 900px) {
  .blk-split { grid-template-columns: 1fr; }
  .blk-split--flip .blk-split-img { order: 0; }
}

/* ---------- announcement bar ---------- */
.ann-bar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: 34px;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  letter-spacing: 0.08em;
  padding: 0 16px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ann-bar a { border-bottom: 1px solid color-mix(in srgb, var(--paper) 50%, transparent); }
body.has-ann .site-header { top: 34px; }
body.has-ann .hero, body.has-ann .hero-split { margin-top: 34px; }
body.has-ann .page-head, body.has-ann .contact-wrap { padding-top: calc(68px + 34px + clamp(48px, 9vw, 110px) - 68px + 34px); }
body.has-ann .mobile-menu { top: 34px; }

/* ---------- hero split ---------- */
.hero-split {
  display: grid;
  grid-template-columns: 11fr 9fr;
  min-height: 100svh;
  align-items: stretch;
}
.hero-split--large { min-height: 72svh; }
.hero-split--medium { min-height: 54svh; }
.hero-split-img { position: relative; }
.hero-split-img .ph { position: absolute; inset: 0; }
.hero-split-img .ph img { height: 100%; }
.hero-split-text {
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center;
  padding: clamp(48px, 7vw, 100px) clamp(28px, 5vw, 80px);
}
.hero-split-text .hero-kicker { color: var(--muted); opacity: 1; animation: none; }
.hero-split-title {
  font-family: var(--serif);
  font-weight: var(--display-weight, 400);
  font-size: clamp(34px, 4.5vw, 64px);
  letter-spacing: var(--title-ls, 0.14em);
  text-transform: uppercase;
  line-height: 1.12;
  margin: 18px 0 12px;
}
.hero-split-tagline { font-family: var(--serif); font-style: italic; font-size: clamp(15px, 1.6vw, 20px); color: var(--muted); }
.hero-split-btn { margin-top: 30px; }
@media (max-width: 800px) {
  .hero-split { grid-template-columns: 1fr; min-height: 0; }
  .hero-split-img { aspect-ratio: 4 / 5; }
  .hero-split-img .ph { position: relative; inset: auto; height: 100%; }
}

/* ---------- photo wall layouts ---------- */
.pgal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 46vw), 1fr));
  gap: clamp(6px, 0.8vw, 12px);
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.pgal-grid .ph { aspect-ratio: 1; cursor: zoom-in; }
.pgal-masonry {
  columns: 3 340px;
  column-gap: clamp(6px, 0.8vw, 12px);
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.pgal-masonry .ph {
  aspect-ratio: var(--ar);
  margin-bottom: clamp(6px, 0.8vw, 12px);
  break-inside: avoid;
  cursor: zoom-in;
}
.pgal-strip {
  display: flex;
  gap: clamp(8px, 1vw, 14px);
  overflow-x: auto;
  padding: 0 var(--pad) 18px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.pgal-strip .ph {
  flex: 0 0 auto;
  height: min(74vh, 720px);
  aspect-ratio: var(--ar);
  scroll-snap-align: center;
  cursor: zoom-in;
}
.pgal-strip::-webkit-scrollbar { height: 6px; }
.pgal-strip::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }

/* ---------- slideshow ---------- */
.slideshow {
  position: relative;
  height: 72svh;
  min-height: 420px;
  overflow: hidden;
}
.slideshow--full { height: 100svh; }
.slideshow--medium { height: 54svh; }
.slideshow .slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1.1s ease;
}
.slideshow .slide.on { opacity: 1; }
.slideshow .slide .ph { position: absolute; inset: 0; }
.slideshow .slide .ph img { height: 100%; }
.slide-cap {
  position: absolute; bottom: 46px; left: 0; right: 0;
  text-align: center;
  color: #fff; font-size: 13px; letter-spacing: 0.06em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}
.slide-dots {
  position: absolute; bottom: 18px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 8px;
  z-index: 3;
}
.slide-dots button {
  width: 7px; height: 7px; border-radius: 50%;
  border: 0; padding: 0; cursor: pointer;
  background: rgba(255, 255, 255, 0.45);
  transition: background 0.3s, transform 0.3s;
}
.slide-dots button.on { background: #fff; transform: scale(1.3); }

/* ---------- video ---------- */
.blk-video { padding: clamp(24px, 3.5vw, 48px) var(--pad); }
.blk-video-frame {
  max-width: 1100px; margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: #000;
}
.blk-video-frame iframe, .blk-video-frame video {
  width: 100%; height: 100%; border: 0; display: block;
}

/* ---------- testimonials ---------- */
.blk-testi { padding: clamp(40px, 6vw, 80px) var(--pad); max-width: var(--maxw); margin: 0 auto; }
.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(16px, 2.5vw, 32px);
}
.testi {
  background: var(--panel, #fff);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px 28px;
}
.testi blockquote {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.7;
  font-style: italic;
}
.testi blockquote::before { content: "“"; color: var(--muted); }
.testi blockquote::after { content: "”"; color: var(--muted); }
.testi figcaption {
  margin-top: 16px;
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
}
.testi figcaption span { display: block; color: var(--muted); margin-top: 2px; letter-spacing: 0.06em; text-transform: none; }

/* ---------- faq ---------- */
.blk-faq { padding: clamp(40px, 6vw, 80px) var(--pad); max-width: 760px; margin: 0 auto; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 30px 18px 0;
  font-weight: 600; font-size: 15px;
  position: relative;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "＋";
  position: absolute; right: 4px; top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  transition: transform 0.25s;
}
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list details p { padding: 0 0 20px; color: var(--muted); max-width: 60ch; }

/* ---------- cta button ---------- */
.blk-btn { padding: clamp(20px, 3vw, 40px) var(--pad); }
.btn--outline { background: transparent; color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--paper); }

/* ---------- image pair ---------- */
.blk-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(10px, 1.5vw, 24px);
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(20px, 3vw, 40px) var(--pad);
  align-items: start;
}
@media (max-width: 640px) { .blk-pair { grid-template-columns: 1fr; } }

/* ---------- page list (journal) ---------- */
.blk-plist { padding: clamp(30px, 5vw, 60px) var(--pad); max-width: var(--maxw); margin: 0 auto; }
.plist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: clamp(18px, 2.5vw, 32px); }
.plist-card .ph, .plist-noimg { aspect-ratio: 3 / 2; }
.plist-noimg { background: var(--ph-bg, #e9e5dd); }
.plist-card .ph img { transition: opacity 0.6s ease, transform 1s cubic-bezier(0.2, 0.6, 0.2, 1); }
.plist-card:hover .ph img { transform: scale(1.03); }
.plist-meta { padding-top: 12px; }
.plist-meta h3 { font-family: var(--serif); font-weight: 500; font-size: 19px; }
.plist-meta p { font-size: 11.5px; letter-spacing: 0.14em; color: var(--muted); margin-top: 3px; }

/* ---------- calendar embed ---------- */
.blk-cal { padding: clamp(24px, 3.5vw, 48px) var(--pad); }
.blk-cal-frame { max-width: 1000px; margin: 0 auto; height: 640px; }
.blk-cal-frame iframe { width: 100%; height: 100%; border: 0; border-radius: 12px; background: #fff; }

/* ---------- theme structural tweaks ---------- */
[data-theme="darkroom"] ::selection { background: var(--cream); color: var(--paper); }
[data-theme="darkroom"] .hero-scrim {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.45), transparent 30%, transparent 55%, rgba(0, 0, 0, 0.65));
}
[data-theme="darkroom"] .btn:hover { color: var(--ink); }
[data-theme="gallery-white"] .hero-title,
[data-theme="swiss-minimal"] .hero-title { letter-spacing: calc(var(--title-ls, 0.14em) * 0.5); }
[data-theme="swiss-minimal"] .section-title,
[data-theme="swiss-minimal"] .page-title { letter-spacing: -0.01em; }
[data-theme="swiss-minimal"] .nav-link,
[data-theme="swiss-minimal"] .eyebrow { letter-spacing: 0.2em; }
[data-theme="film-journal"] .hero-tagline { font-weight: 400; }
[data-theme="gallery-white"] .feat-title,
[data-theme="gallery-white"] .work-card-meta h3,
[data-theme="swiss-minimal"] .feat-title,
[data-theme="swiss-minimal"] .work-card-meta h3 { font-weight: 600; font-size: clamp(16px, 1.8vw, 20px); }

/* debug: kill all animation */
html.noanim *, html.noanim *::before, html.noanim *::after {
  animation: none !important;
  transition: none !important;
}
html.noanim .reveal, html.noanim .hero-kicker, html.noanim .hero-title, html.noanim .hero-tagline {
  opacity: 1 !important;
  transform: none !important;
}
html.noanim .ph img { opacity: 1 !important; }
html.noanim .ph-blur { opacity: 0 !important; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .feat-card--1, .feat-card--2, .feat-card--3 { grid-column: 1 / -1; margin-top: 0; }
  .feat-grid { gap: 40px; }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .arch-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-wrap { grid-template-columns: 1fr; }
  .contact-right { display: none; }
  .jgal .ph { flex-basis: calc(var(--ar) * 20vh); }
}
@media (max-width: 640px) {
  .site-nav { display: none; }
  .menu-btn { display: flex; }
  .work-grid { grid-template-columns: 1fr; }
  .gnav-all { display: none; }
  .jgal { gap: 5px; }
  .jgal .ph { flex-basis: calc(var(--ar) * 16vh); }
}
