/* ==========================================================================
   MAN LUO, FGA — static site
   Display: Hedvig Letters Serif · Text: PT Serif
   ========================================================================== */

@font-face {
  font-family: "Hedvig Letters Serif";
  src: url("../assets/fonts/HedvigLettersSerif-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PT Serif";
  src: url("../assets/fonts/PTSerif-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PT Serif";
  src: url("../assets/fonts/PTSerif-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "PT Serif";
  src: url("../assets/fonts/PTSerif-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Whiter eggshell: the page reads as near-white, with just enough warmth
     left in the red/blue split to keep it from looking clinical. */
  --paper: #fcfbf8;
  --paper-deep: #f2efe9;
  --ink: #14120f;
  --ink-soft: #3d3a34;
  --muted: #6a6359;
  --line: rgba(20, 18, 15, 0.14);
  --line-light: rgba(252, 251, 248, 0.28);
  --night: #0b0a09;
  --display: "Hedvig Letters Serif", "Songti SC", "Noto Serif SC", Georgia, "Times New Roman", serif;
  --text: "PT Serif", "Songti SC", "Noto Serif SC", Georgia, serif;
  --gutter: clamp(1.5rem, 5.2vw, 5.5rem);
  --max: 1320px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 72px;
  --frame: 0px;
}

/* Anchor targets have to clear the fixed header --------------------------- */
section[id],
main[id] { scroll-margin-top: calc(var(--header-h) + 0.75rem); }

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p, h1, h2, ul { margin: 0; }
ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

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

:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 200;
  transform: translate(-50%, -120%);
  padding: 0.65rem 1.2rem;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: transform 0.25s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); }

/* Film grain ------------------------------------------------------------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  mix-blend-mode: multiply;
}

/* Header ----------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  color: var(--ink);
  transition: background-color 0.5s var(--ease), box-shadow 0.5s var(--ease),
              color 0.4s var(--ease), backdrop-filter 0.5s var(--ease);
}
.site-header::after {
  content: "";
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 0;
  height: 1px;
  background: var(--line);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.site-header.is-solid {
  background: rgba(248, 245, 239, 0.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.site-header.is-solid::after { opacity: 1; }
.site-header.is-on-dark { color: var(--paper); }
.site-header.is-on-dark.is-solid {
  background: rgba(11, 10, 9, 0.82);
}
.site-header.is-on-dark::after { background: var(--line-light); }

.site-header__inner {
  width: 100%;
  max-width: none;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  font-family: var(--display);
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0.85;
  transition: opacity 0.3s var(--ease);
}
.brand:hover { opacity: 1; }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1.4rem, 2.6vw, 2.6rem);
}
.nav a {
  position: relative;
  font-family: var(--display);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.66;
  padding: 0.35rem 0;
  transition: opacity 0.3s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.45s var(--ease);
}
.nav a:hover,
.nav a:focus-visible { opacity: 1; }
.nav a[aria-current="true"] { opacity: 1; }
.nav a:hover::after,
.nav a:focus-visible::after,
.nav a[aria-current="true"]::after {
  transform: scaleX(1);
  transform-origin: left center;
}

.menu-btn {
  display: none;
  align-items: center;
  gap: 0.7rem;
  border: 0;
  background: none;
  /* Keep the tap target comfortable even when the label is hidden. */
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  margin: -0.6rem -0.6rem -0.6rem 0;
  justify-content: flex-end;
  cursor: pointer;
}
.menu-btn__label {
  font-family: var(--display);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.menu-btn__icon {
  position: relative;
  display: block;
  width: 20px;
  height: 10px;
}
.menu-btn__icon i {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transition: transform 0.4s var(--ease), top 0.4s var(--ease);
}
.menu-btn__icon i:first-child { top: 1px; }
.menu-btn__icon i:last-child { top: 8px; width: 72%; }
body.menu-open .menu-btn__icon i:first-child { top: 5px; transform: rotate(45deg); }
body.menu-open .menu-btn__icon i:last-child { top: 5px; width: 100%; transform: rotate(-45deg); }

/* Menu overlay ----------------------------------------------------------- */
.menu {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--header-h) + 4vh) var(--gutter) clamp(2rem, 6vh, 4rem);
  background: var(--paper);
  /* Landscape phones are shorter than the menu, so it has to scroll. */
  overflow-y: auto;
  overscroll-behavior: contain;
  visibility: hidden;
  opacity: 0;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.7s var(--ease), opacity 0.5s var(--ease),
              visibility 0s linear 0.7s;
}
body.menu-open .menu {
  visibility: visible;
  opacity: 1;
  clip-path: inset(0 0 0 0);
  transition: clip-path 0.7s var(--ease), opacity 0.5s var(--ease), visibility 0s;
}
body.menu-open .site-header { color: var(--ink); }
body.menu-open .site-header.is-on-dark { color: var(--ink); }
body.menu-open .site-header.is-solid { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
body.menu-open .site-header::after { opacity: 0; }

.menu__nav {
  display: flex;
  flex-direction: column;
  gap: clamp(0.4rem, 1.4vh, 1rem);
}
.menu__nav a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--line);
}
.menu__nav a:last-child { border-bottom: 0; }
.menu__num {
  flex: none;
  min-width: 2.2rem;
  font-family: var(--display);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.menu__label {
  font-family: var(--display);
  font-size: clamp(1.9rem, 8.6vw, 3.4rem);
  line-height: 1.18;
}

.menu__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.menu__foot a { border-bottom: 1px solid var(--line); }

/* Hero ------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-h) + 3vh) var(--gutter) clamp(1.6rem, 4vh, 2.6rem);
  background:
    radial-gradient(120% 90% at 50% 6%, #ffffff 0%, rgba(255, 255, 255, 0) 58%),
    linear-gradient(180deg, #fdfcf9 0%, var(--paper) 62%, #f9f8f4 100%);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  width: 1px;
  height: clamp(46px, 8vh, 96px);
  background: var(--line);
  left: 50%;
  top: calc(var(--header-h) + 4vh);
}

.hero__inner {
  position: relative;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  text-align: center;
  padding-top: 2.5vh;
}

.hero__city {
  font-family: var(--display);
  font-size: clamp(0.64rem, 0.85vw, 0.78rem);
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero__title {
  margin: clamp(2.2rem, 6.5vh, 4.6rem) 0 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.75rem, 7.1vw, 6.4rem);
  line-height: 1;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  white-space: nowrap;
}
.hero__title .sc { font-size: 0.9em; letter-spacing: 0.035em; }

.hero__disciplines {
  margin: clamp(2.4rem, 7vh, 4.8rem) 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.15rem, 3.2vh, 2rem);
  font-family: var(--display);
  font-size: clamp(0.78rem, 1.05vw, 0.95rem);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.hero__foot {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 3rem;
  font-family: var(--display);
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  transition: color 0.3s var(--ease);
}
.scroll-cue:hover { color: var(--ink); }
.scroll-cue__line {
  position: relative;
  display: block;
  width: 54px;
  height: 1px;
  background: var(--line);
  overflow: hidden;
}
.scroll-cue__line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: currentColor;
  transform: translateX(-100%);
  animation: cue 2.8s var(--ease) infinite;
}
@keyframes cue {
  0% { transform: translateX(-100%); }
  55% { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

/* Chapters --------------------------------------------------------------- */
.chapter {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 100svh;
  overflow: hidden;
}

.chapter__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: var(--paper-deep);
}
.chapter__bg picture { display: block; width: 100%; height: 100%; }
.chapter__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate3d(0, var(--shift, 0%), 0) scale(1.08);
  will-change: transform;
  transition: transform 0.2s linear;
}
.chapter--period .chapter__bg img { object-position: 62% 50%; }
.chapter--stones .chapter__bg img { object-position: 50% 50%; }
.chapter--design .chapter__bg img { object-position: 42% 50%; }

.chapter__veil { position: absolute; inset: 0; }
.chapter--period .chapter__veil {
  background:
    linear-gradient(90deg, rgba(252, 251, 248, 0.97) 0%, rgba(252, 251, 248, 0.94) 30%, rgba(252, 251, 248, 0.72) 46%, rgba(252, 251, 248, 0.12) 66%, rgba(252, 251, 248, 0) 82%),
    linear-gradient(180deg, rgba(252, 251, 248, 0.5), rgba(252, 251, 248, 0) 30%);
}
.chapter--stones .chapter__veil {
  background:
    radial-gradient(120% 100% at 50% 50%, rgba(28, 2, 10, 0.52) 0%, rgba(28, 2, 10, 0.34) 55%, rgba(28, 2, 10, 0.2) 100%),
    linear-gradient(180deg, rgba(10, 0, 4, 0.3), rgba(10, 0, 4, 0.12) 40%, rgba(10, 0, 4, 0.38));
}
.chapter--design .chapter__veil {
  background:
    linear-gradient(270deg, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.74) 38%, rgba(0, 0, 0, 0.34) 66%, rgba(0, 0, 0, 0.06) 92%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0) 30%);
}
.chapter--stones { color: var(--paper); }
.chapter--design { color: #f2efe9; }

.chapter__inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(4rem, 10vh, 7rem) var(--gutter);
}
.chapter--period .chapter__inner { padding-right: calc(var(--gutter) + 14vw); }
.chapter--design .chapter__inner { padding-left: calc(var(--gutter) + 14vw); }

.chapter__copy { max-width: 600px; }
.chapter--period .chapter__copy { max-width: 500px; }
.chapter--stones .chapter__copy {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}
.chapter--design .chapter__copy {
  max-width: 660px;
  margin-left: auto;
  text-align: right;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: clamp(1.2rem, 3vh, 2rem);
  font-family: var(--display);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: var(--muted);
}
.kicker__num { display: inline-block; }
.kicker__rule {
  display: block;
  width: 56px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}
.kicker--center { justify-content: center; color: rgba(248, 245, 239, 0.68); }
.kicker--right { justify-content: flex-end; color: rgba(248, 245, 239, 0.62); }
.kicker--right .kicker__rule { order: -1; }

.chapter__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  line-height: 1.12;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.prose {
  margin-top: clamp(1.8rem, 4.4vh, 3rem);
  max-width: 47ch;
  font-size: clamp(0.94rem, 1.05vw, 1.02rem);
  line-height: 1.78;
  color: var(--ink-soft);
}
.prose p + p { margin-top: clamp(1.15rem, 2.6vh, 1.7rem); }

.chapter--stones .prose {
  max-width: 56ch;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255, 250, 244, 0.9);
  text-shadow: 0 1px 24px rgba(30, 0, 8, 0.35);
}
.chapter--design .prose {
  max-width: 58ch;
  margin-left: auto;
  color: rgba(242, 239, 233, 0.86);
}

.prose--center { text-align: center; }
.prose--right { text-align: right; }

/* Contact ---------------------------------------------------------------- */
.contact {
  position: relative;
  padding: clamp(6rem, 16vh, 11rem) var(--gutter) clamp(6rem, 14vh, 9rem);
  background:
    radial-gradient(90% 70% at 50% 30%, #ffffff 0%, rgba(255, 255, 255, 0) 60%),
    linear-gradient(180deg, var(--paper) 0%, #f9f8f4 100%);
  text-align: center;
}
.contact::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  height: 1px;
  background: var(--line);
}

.contact__inner {
  max-width: 760px;
  margin: 0 auto;
}

.contact__eyebrow {
  font-family: var(--display);
  font-size: clamp(0.64rem, 0.9vw, 0.76rem);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact__title {
  margin-top: clamp(1.4rem, 3.4vh, 2rem);
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.7rem, 5.8vw, 4.7rem);
  line-height: 1.08;
  letter-spacing: 0.01em;
}

.contact__cta { margin-top: clamp(2rem, 5vh, 3rem); }

.contact__sub {
  margin-top: clamp(1.5rem, 3.6vh, 2rem);
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  color: var(--ink-soft);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 52px;
  padding: 0 1.9rem;
  border: 1px solid rgba(20, 18, 15, 0.42);
  border-radius: 7px;
  background: rgba(246, 244, 238, 0.9);
  box-shadow: 0 8px 18px -12px rgba(20, 18, 15, 0.45);
  font-family: var(--display);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease),
              border-color 0.4s var(--ease), transform 0.4s var(--ease),
              box-shadow 0.4s var(--ease);
}
.btn:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
  transform: translateY(-2px);
  box-shadow: 0 14px 26px -18px rgba(20, 18, 15, 0.6);
}
.btn__arrow { flex: none; transition: transform 0.4s var(--ease); }
.btn:hover .btn__arrow { transform: translate(2px, -2px); }

.contact__note {
  margin-top: clamp(2.6rem, 6vh, 3.6rem);
  font-family: var(--display);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact__note a {
  border-bottom: 1px solid var(--line);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.contact__note a:hover { color: var(--ink); border-color: var(--ink); }

/* Footer ----------------------------------------------------------------- */
.footer {
  background: #f9f8f4;
  padding: 0 var(--gutter);
}
.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.8rem 0 2rem;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  flex-wrap: wrap;
  font-family: var(--display);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer__brand { color: var(--ink); }
.footer__disciplines { flex: 1 1 auto; text-align: center; }
.footer__copy { text-align: right; }

/* Reveal ----------------------------------------------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: var(--delay, 0s);
}
.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Tablet landscape / small desktop --------------------------------------- */
@media (max-width: 1080px) {
  :root { --header-h: 64px; }

  .nav { gap: 1.4rem; }
  .nav a { font-size: 0.62rem; letter-spacing: 0.16em; }

  .chapter--period .chapter__inner { padding-right: calc(var(--gutter) + 6vw); }
  .chapter--design .chapter__inner { padding-left: calc(var(--gutter) + 6vw); }
  .chapter__copy { max-width: 520px; }
  .chapter--design .chapter__copy { max-width: 560px; }
  .prose { max-width: 44ch; }
}

/* Tablet portrait and phones: deck-style cards --------------------------- */
@media (max-width: 1024px) {
  :root {
    --header-h: 64px;
    --frame: clamp(12px, 2.6vw, 30px);
  }

  .nav { display: none; }
  .menu-btn { display: inline-flex; }

  .hero {
    min-height: 88svh;
    padding: calc(var(--header-h) + 5vh) calc(var(--frame) + 1rem) 1.9rem;
  }
  .hero::before { display: none; }
  .hero__inner { padding-top: 0; }
  .hero__title {
    margin-top: clamp(1.8rem, 5.4vh, 3.4rem);
    font-size: clamp(2.4rem, 10.4vw, 5.4rem);
    white-space: nowrap;
  }
  .hero__disciplines {
    margin-top: clamp(1.8rem, 5.4vh, 3.4rem);
    gap: clamp(0.95rem, 2.6vh, 1.5rem);
  }
  .hero__foot { padding-top: 2.4rem; }

  /* Cards */
  .chapter {
    display: flex;
    align-items: stretch;
    min-height: 0;
    margin: var(--frame);
    overflow: hidden;
  }
  .chapter__bg {
    position: absolute;
    inset: 0;
    height: auto;
  }
  .chapter__bg img {
    transform: none !important;
    will-change: auto;
  }

  .chapter__inner {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: clamp(30px, 4.8vw, 56px) clamp(22px, 4.2vw, 52px);
    display: flex;
    align-items: center;
  }
  .chapter--period .chapter__inner,
  .chapter--design .chapter__inner {
    padding-left: clamp(22px, 4.2vw, 52px);
    padding-right: clamp(22px, 4.2vw, 52px);
  }

  .chapter__copy,
  .chapter--period .chapter__copy {
    max-width: min(56%, 470px);
    margin: 0;
    text-align: left;
  }
  .chapter--stones .chapter__copy {
    max-width: min(86%, 560px);
    margin: 0 auto;
    text-align: center;
  }
  .chapter--design .chapter__copy {
    max-width: min(62%, 540px);
    margin-left: auto;
    margin-right: 0;
    text-align: right;
  }

  .kicker { margin-bottom: clamp(0.7rem, 1.6vw, 1.1rem); }
  .chapter__title { font-size: clamp(1.28rem, 3.1vw, 2.1rem); }

  .prose,
  .chapter--stones .prose,
  .chapter--design .prose {
    max-width: none;
    margin: clamp(1.1rem, 2.6vw, 1.8rem) 0 0;
    font-size: clamp(0.76rem, 1.35vw, 0.92rem);
    line-height: 1.72;
    text-align: left;
    color: var(--ink-soft);
    text-shadow: none;
  }
  .chapter--stones .prose {
    margin-left: auto;
    margin-right: auto;
    max-width: 52ch;
    text-align: center;
    color: rgba(255, 250, 244, 0.92);
  }
  .chapter--design .prose {
    margin-left: auto;
    text-align: right;
    color: rgba(242, 239, 233, 0.9);
  }

  .chapter--period .chapter__bg img { object-position: 72% 50%; }
  .chapter--stones .chapter__bg img { object-position: 50% 50%; }
  .chapter--design .chapter__bg img { object-position: 20% 50%; }

  .chapter--period .chapter__veil {
    background:
      linear-gradient(96deg, rgba(251, 249, 244, 0.96) 0%, rgba(251, 249, 244, 0.94) 46%, rgba(251, 249, 244, 0.62) 66%, rgba(251, 249, 244, 0.06) 92%),
      linear-gradient(180deg, rgba(251, 249, 244, 0.35), rgba(251, 249, 244, 0) 34%);
  }
  .chapter--stones .chapter__veil {
    background:
      radial-gradient(94% 82% at 50% 50%, rgba(26, 1, 8, 0.7), rgba(26, 1, 8, 0.46) 64%, rgba(26, 1, 8, 0.32));
  }
  .chapter--design .chapter__veil {
    background:
      linear-gradient(270deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.84) 44%, rgba(0, 0, 0, 0.44) 80%, rgba(0, 0, 0, 0.16));
  }

  .contact {
    padding: clamp(4.6rem, 12vh, 8rem) calc(var(--frame) + 1rem) clamp(4.4rem, 11vh, 7rem);
  }
  .contact::before { left: var(--frame); right: var(--frame); }

  .footer { padding: 0 var(--frame); }
  .footer__inner { justify-content: center; text-align: center; padding: 1.6rem 0; }
  .footer__brand { flex-basis: 100%; order: 1; text-align: center; }
  .footer__disciplines { flex-basis: 100%; order: 2; }
  .footer__copy { flex-basis: 100%; order: 3; text-align: center; }
}

/* Phones: the deck, card by card ----------------------------------------- */
@media (max-width: 620px) {
  :root {
    --frame: 12px;
    --header-h: 58px;
    --card-gap: 9px;
  }

  .brand { font-size: 0.76rem; letter-spacing: 0.26em; }
  .menu-btn__label { display: none; }
  .menu-btn__icon { width: 24px; height: 12px; }
  .menu-btn__icon i:first-child { top: 2px; }
  .menu-btn__icon i:last-child { top: 10px; }
  body.menu-open .menu-btn__icon i:first-child { top: 6px; }
  body.menu-open .menu-btn__icon i:last-child { top: 6px; }

  /* Hero: the opening slide — city high, name low, three disciplines close
     beneath it, then a full breath of paper before the first card.
     The gutters and the title cap are viewport-relative rather than rem-based
     so that enlarging the root font (text scaling, 200% zoom) cannot push the
     one-line title past the edge of the screen. */
  .hero {
    min-height: 0;
    padding: calc(var(--header-h) + 1.15rem) 7vw 3.4rem;
  }
  .hero::before { display: none; }
  .hero__inner { padding-top: 0; }
  .hero__city { font-size: 0.58rem; letter-spacing: 0.3em; }
  .hero__title {
    margin-top: clamp(3.3rem, 18vw, 5rem);
    font-size: min(clamp(1.5rem, 6.7vw, 1.95rem), 9vw);
    letter-spacing: 0.005em;
    line-height: 1;
  }
  .hero__title .sc { font-size: 0.94em; }
  .hero__disciplines {
    margin-top: clamp(0.72rem, 3.4vw, 1rem);
    gap: clamp(0.55rem, 2.8vw, 0.8rem);
    font-size: 0.63rem;
    letter-spacing: 0.2em;
    color: var(--ink-soft);
  }
  /* The opening slide carries no scroll cue on a phone */
  .hero__foot { display: none; }

  .menu { padding-top: calc(var(--header-h) + 3vh); }
  /* Small enough that "Contemporary Design" stays on one line on a phone.
     The extra row padding keeps every link at a comfortable tap size. */
  .menu__label { font-size: clamp(1.1rem, 6vw, 1.85rem); }
  .menu__num { font-size: 0.58rem; }
  .menu__nav a { padding: 0.72rem 0; }
  .menu__foot { font-size: 0.7rem; }

  /* Cards sit on the paper like slides on a table ------------------------- */
  .chapter {
    margin: var(--card-gap) var(--frame);
    min-height: 0;
    display: block;
    overflow: hidden;
    border-radius: 3px;
  }

  /* Each slide: the photograph fills a 16:9 band, the copy follows on a
     field sampled from the foot of that same photograph, so the band and
     the field read as one continuous slide. */
  .chapter__bg {
    position: relative;
    inset: auto;
    height: auto;
    aspect-ratio: 16 / 9;
    z-index: auto;
  }
  .chapter__bg img { transform: none !important; will-change: auto; }

  .chapter__inner,
  .chapter--period .chapter__inner,
  .chapter--design .chapter__inner,
  .chapter--stones .chapter__inner {
    min-height: 0;
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 1.5rem 1.4rem 1.7rem;
    align-items: stretch;
  }

  /* Card fields. Period's shade is set further down with its veil, so the
     band and the field feather into one another. */
  .chapter--stones { background: #7d0526; }
  .chapter--design { background: #050505; }

  .chapter--period .chapter__copy,
  .chapter--stones .chapter__copy,
  .chapter--design .chapter__copy {
    max-width: 100%;
    margin: 0;
    text-align: left;
  }

  /* Copy sits in the lower field for the right-set slides, so the number
     reads as the start of the passage rather than a floating label. */
  .chapter--stones .chapter__copy { text-align: center; }
  .chapter--design .chapter__copy { text-align: right; }

  .kicker { margin-bottom: 0.75rem; font-size: 0.56rem; }
  .kicker__rule { width: 34px; }
  .kicker--right { justify-content: flex-end; }
  .kicker--right .kicker__rule { order: -1; }

  .chapter__title { font-size: clamp(1.26rem, 5.7vw, 1.62rem); letter-spacing: 0.03em; }

  .prose,
  .chapter--stones .prose,
  .chapter--design .prose {
    margin-top: 1rem;
    max-width: none;
    font-size: 0.8rem;
    line-height: 1.74;
    text-align: left;
    color: var(--ink-soft);
    text-shadow: none;
  }
  .prose p + p { margin-top: 0.9rem; }
  .chapter--stones .prose {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    color: rgba(255, 250, 244, 0.94);
  }
  .chapter--design .prose {
    margin-left: auto;
    text-align: right;
    color: rgba(242, 239, 233, 0.92);
  }

  /* Period: the band is pure photograph now; the copy lives on the field
     below, so the veil only softens the handover into that field.
     The field is pulled most of the way to page white — the photo's own foot
     is far warmer, so the veil's tail is strengthened to carry the eye across
     the join without a visible step. */
  .chapter--period { background: #faf9f4; }
  .chapter--period .chapter__bg img { object-position: 78% 44%; }
  .chapter--period .chapter__veil {
    background: linear-gradient(180deg, rgba(250, 249, 244, 0) 70%, rgba(250, 249, 244, 0.55) 88%, rgba(250, 249, 244, 0.94) 100%);
  }

  /* Stones: the stone fills the band, its own red carries the copy */
  .chapter--stones .chapter__bg img { object-position: 50% 50%; }
  .chapter--stones .chapter__veil {
    background: linear-gradient(180deg, rgba(125, 5, 38, 0) 80%, rgba(125, 5, 38, 0.6) 100%);
  }

  /* Design: pendant held left, the black field carries the right-set copy */
  .chapter--design .chapter__bg img { object-position: 18% 42%; }
  .chapter--design .chapter__veil {
    background: linear-gradient(180deg, rgba(5, 5, 5, 0) 80%, rgba(5, 5, 5, 0.6) 100%);
  }

  /* Contact: the closing slide, subtitle set below the button ------------- */
  .contact { padding: 3.6rem 1.9rem 3.8rem; }
  .contact__inner { max-width: 100%; }
  .contact__eyebrow { font-size: 0.6rem; letter-spacing: 0.3em; }
  .contact__title {
    margin-top: clamp(1.15rem, 4.6vw, 1.5rem);
    font-size: clamp(1.95rem, 9.6vw, 2.5rem);
  }
  .contact__cta { margin-top: clamp(1.5rem, 5.4vw, 1.9rem); }
  .contact__sub {
    margin-top: clamp(1.7rem, 6.2vw, 2.2rem);
    max-width: 30ch;
    margin-left: auto;
    margin-right: auto;
    font-size: 0.8rem;
    line-height: 1.62;
    color: var(--ink-soft);
    text-wrap: balance;
  }
  .btn { min-height: 48px; padding: 0 1.35rem; font-size: 0.82rem; }
  .contact__note { display: none; }

  /* The deck ends on the contact slide, so the page footer is not shown */
  .footer { display: none; }
}

/* Short landscape phones -------------------------------------------------- */
@media (max-height: 520px) and (orientation: landscape) {
  .hero { min-height: 0; padding-bottom: 1.6rem; }
  .chapter__inner { min-height: 0; padding-top: 3.4rem; padding-bottom: 3.4rem; }
  .chapter--design .chapter__copy { padding-top: 0; }
  .chapter--stones .chapter__inner { min-height: 0; }
  .chapter--design .chapter__inner { min-height: 0; }
  .chapter__copy,
  .chapter--period .chapter__copy { max-width: 54%; }
  .chapter--design .chapter__copy { max-width: 56%; margin-left: auto; text-align: right; }
  .chapter--design .prose { text-align: right; }
  .prose,
  .chapter--stones .prose,
  .chapter--design .prose { font-size: 0.76rem; line-height: 1.6; }

  /* The menu is taller than a landscape screen, so tighten it to fit. */
  .menu { padding-top: calc(var(--header-h) + 1.2rem); padding-bottom: 1.2rem; }
  .menu__nav { gap: 0.2rem; }
  .menu__nav a { padding: 0.15rem 0; }
  .menu__label { font-size: clamp(1.05rem, 4.4vh, 1.55rem); }
  .menu__foot { font-size: 0.62rem; margin-top: 0.9rem; }
}

/* Phones held sideways use the stacked cards, so the two-column geometry
   above must not apply there — copy fills the card instead of half of it. */
@media (max-width: 620px) and (max-height: 520px) and (orientation: landscape) {
  .chapter__copy,
  .chapter--period .chapter__copy,
  .chapter--stones .chapter__copy,
  .chapter--design .chapter__copy {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
  .chapter--design .chapter__copy { margin-left: auto; }
  .chapter--stones .chapter__inner,
  .chapter--design .chapter__inner { min-height: 0; }
}

/* Motion preferences ------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .chapter__bg img { transform: none !important; }
}

/* Print ------------------------------------------------------------------- */
@media print {
  .grain, .site-header, .menu, .scroll-cue, .hero__foot, .footer,
  .skip-link { display: none !important; }
  .hero { min-height: 0; padding: 0 0 2rem; background: none; }
  .chapter { min-height: 0; page-break-inside: avoid; color: #000; }
  .chapter__bg, .chapter__veil { display: none; }
  .chapter__inner { padding: 2rem 0; }
  .contact { padding: 2rem 0 0; background: none; }
  .contact::before { display: none; }
  .prose, .chapter--stones .prose, .chapter--design .prose { color: #000; }
  .btn { box-shadow: none; background: none; border-color: #000; color: #000; }
  a[href^="mailto"] { text-decoration: underline; }
}
