/* ============================================================
   曾密 · ZENG MI — oil paintings portfolio
   Core design system
   ------------------------------------------------------------
   1. Reset & tokens
   2. Typography helpers
   3. Layout primitives
   4. Cursor / grain / loader / curtain
   5. Header & navigation
   6. Hero
   7. Sections, buttons, marquee
   8. Statement
   9. Horizontal selected works
   10. Series list
   11. Studio / quote
   12. Footer
   13. Motion utilities
   14. Responsive
   ============================================================ */

/* ---------- 1. Reset & tokens ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body, h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd, fieldset, legend {
  margin: 0;
}
ul, ol { padding: 0; list-style: none; }
img, svg, video, canvas { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
input { font: inherit; color: inherit; }

:root {
  --paper: #0c0b0a;
  --paper-2: #151311;
  --paper-3: #1d1a17;
  --ink: #f2eee6;
  --ink-2: rgba(242, 238, 230, 0.78);
  --ink-3: rgba(242, 238, 230, 0.6);
  --muted: rgba(242, 238, 230, 0.44);
  --line: rgba(242, 238, 230, 0.12);
  --line-2: rgba(242, 238, 230, 0.24);
  --seal: #b8462f;
  --seal-soft: #cf5b43;
  --gold: #c39a5f;
  --night: #080706;
  --night-2: #0f0e0c;
  --night-ink: #f2eee6;
  --night-muted: rgba(242, 238, 230, 0.55);
  --night-line: rgba(242, 238, 230, 0.14);

  --serif: "Songti SC", "Source Han Serif SC", "Noto Serif SC", "STSong",
    "SimSun", "Times New Roman", Georgia, serif;
  --sans: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei",
    "Hiragino Sans GB", "Source Han Sans SC", -apple-system, "Segoe UI",
    Helvetica, Arial, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-2: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-3: cubic-bezier(0.16, 1, 0.3, 1);

  --pad: clamp(18px, 4.2vw, 68px);
  --gap: clamp(14px, 1.8vw, 26px);
  --maxw: 1680px;
  --header-h: 76px;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.8;
  letter-spacing: 0.012em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

::selection { background: var(--seal); color: #fbf7f0; }
:focus-visible { outline: 1px solid var(--seal); outline-offset: 4px; }

/* ---------- 2. Typography helpers ---------- */
.serif { font-family: var(--serif); }

.label {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  line-height: 1;
}

.label--muted { color: var(--muted); }
.label--night { color: var(--night-muted); }

.num {
  font-family: var(--serif);
  font-variant-numeric: tabular-nums lining-nums;
}

.sec-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 4.4vw, 62px);
  line-height: 1.08;
  letter-spacing: 0.015em;
}

.sec-lead {
  max-width: 44ch;
  color: var(--ink-2);
  font-size: clamp(13.5px, 1.05vw, 15.5px);
  line-height: 2;
}

.text-accent { color: var(--seal); }

.sec-title [data-split],
.page-head__title [data-split] { display: block; }

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

/* ---------- 3. Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section { position: relative; padding-block: clamp(64px, 9vw, 132px); }
.section--tight { padding-block: clamp(40px, 5.5vw, 76px); }
.section--night { background: var(--night); color: var(--night-ink); }
.section--paper2 { background: var(--paper-2); }

.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(20px, 4vw, 60px);
  flex-wrap: wrap;
  margin-bottom: clamp(28px, 4.5vw, 58px);
}

.sec-head__left { display: flex; flex-direction: column; gap: clamp(14px, 2vw, 24px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 10.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.eyebrow--night { color: var(--night-muted); }

/* ---------- 4. Overlays: cursor, grain, loader ---------- */
.grain {
  position: fixed;
  inset: -20%;
  z-index: 95;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='0.32'/%3E%3C/svg%3E");
  background-size: 220px 220px;
  animation: grainShift 1.6s steps(3) infinite;
  will-change: transform;
}
@keyframes grainShift {
  0% { transform: translate3d(0, 0, 0); }
  33% { transform: translate3d(-2%, 1.4%, 0); }
  66% { transform: translate3d(1.4%, -1.8%, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 210;
  pointer-events: none;
  mix-blend-mode: difference;
  will-change: transform;
  opacity: 0;
  transition: opacity 0.3s linear;
}
.cursor.is-visible { opacity: 1; }
.cursor__dot {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  transform: translate(-50%, -50%);
  transition: transform 0.25s var(--ease), opacity 0.25s;
}
.cursor__ring {
  position: absolute;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  transition: width 0.45s var(--ease), height 0.45s var(--ease),
    background-color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.cursor__label {
  font-family: var(--sans);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #000;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  white-space: nowrap;
}
.cursor.is-active .cursor__ring {
  width: 78px;
  height: 78px;
  background: #fff;
  border-color: #fff;
}
.cursor.is-active .cursor__label { opacity: 1; }
.cursor.is-active .cursor__dot { opacity: 0; }
.cursor.is-hidden { opacity: 0 !important; }

.loader {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--night);
  color: var(--night-ink);
  display: grid;
  place-items: center;
  overflow: hidden;
  transition: transform 1.05s var(--ease-2);
  will-change: transform;
}
.loader.is-done { transform: translate3d(0, -101%, 0); }
.loader.is-leaving {
  transform: translate3d(0, 0, 0);
  transform-origin: top;
  transition: transform 0.75s var(--ease-2);
}
.loader__inner {
  width: min(560px, 78vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(18px, 3vw, 30px);
  text-align: center;
}
.loader__name {
  font-family: var(--serif);
  font-size: clamp(34px, 6vw, 74px);
  letter-spacing: 0.32em;
  padding-left: 0.32em;
  opacity: 0.94;
}
.loader__sub {
  font-size: 9.5px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--night-muted);
}
.loader__bar {
  width: 100%;
  height: 1px;
  background: rgba(241, 237, 228, 0.18);
  position: relative;
  overflow: hidden;
}
.loader__bar i {
  position: absolute;
  inset: 0;
  background: var(--night-ink);
  transform: scaleX(var(--p, 0));
  transform-origin: left center;
  transition: transform 0.25s linear;
}
.loader__count {
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--night-muted);
  font-variant-numeric: tabular-nums;
}

/* ---------- 5. Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(14px, 1.9vw, 24px) var(--pad);
  border-bottom: 1px solid transparent;
  color: var(--ink);
  transition: color 0.5s var(--ease), background-color 0.5s var(--ease),
    border-color 0.5s var(--ease), padding 0.5s var(--ease);
}
.header.on-dark { color: var(--night-ink); }
.header.is-stuck {
  background: rgba(12, 11, 10, 0.8);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  backdrop-filter: blur(16px) saturate(1.15);
  border-bottom-color: var(--line);
  padding-block: 12px;
}
.header.is-stuck.on-dark {
  background: rgba(8, 7, 6, 0.76);
  border-bottom-color: var(--night-line);
}

.brand { display: inline-flex; align-items: baseline; gap: 12px; }
.brand__name {
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: 0.26em;
  line-height: 1;
  transition: opacity 0.4s var(--ease);
}
.brand:hover .brand__name { opacity: 0.72; }
.brand__en { font-size: 8.5px; letter-spacing: 0.3em; opacity: 0.5; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 38px); }
.nav__link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  font-size: 12px;
  letter-spacing: 0.18em;
  padding-block: 6px;
}
.nav__idx { font-size: 8.5px; letter-spacing: 0.1em; opacity: 0.45; font-variant-numeric: tabular-nums; }
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.55s var(--ease);
}
.nav__link:hover::after,
.nav__link[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left center;
}
.nav__link[aria-current="page"] { opacity: 1; }
.nav__link:not([aria-current="page"]) { opacity: 0.72; }
.nav__link:hover { opacity: 1; }

.header__actions { display: flex; align-items: center; gap: 18px; }
.header__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 9px 16px;
  opacity: 0.85;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), opacity 0.4s;
}
.header__cta:hover { background: var(--seal); border-color: var(--seal); color: #f8f1e6; opacity: 1; }

.burger {
  display: none;
  width: 40px;
  height: 40px;
  position: relative;
  align-items: center;
  justify-content: center;
}
.burger i {
  position: absolute;
  left: 9px;
  width: 22px;
  height: 1px;
  background: currentColor;
  transition: transform 0.5s var(--ease), opacity 0.3s;
}
.burger i:nth-child(1) { transform: translateY(-4px); }
.burger i:nth-child(2) { transform: translateY(4px); }
.burger.is-open i:nth-child(1) { transform: rotate(45deg); }
.burger.is-open i:nth-child(2) { transform: rotate(-45deg); }

/* mobile menu */
.menu {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: var(--night);
  color: var(--night-ink);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-h) + 30px) var(--pad) 40px;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.8s var(--ease-2);
  visibility: hidden;
}
.menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; }
.menu__list { display: flex; flex-direction: column; gap: 6px; }
.menu__link {
  display: flex;
  align-items: baseline;
  gap: 16px;
  font-family: var(--serif);
  font-size: clamp(30px, 9vw, 52px);
  line-height: 1.35;
  padding-block: 4px;
  border-bottom: 1px solid var(--night-line);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.menu.is-open .menu__link { opacity: 1; transform: none; }
.menu.is-open .menu__link:nth-child(1) { transition-delay: 0.18s; }
.menu.is-open .menu__link:nth-child(2) { transition-delay: 0.24s; }
.menu.is-open .menu__link:nth-child(3) { transition-delay: 0.3s; }
.menu.is-open .menu__link:nth-child(4) { transition-delay: 0.36s; }
.menu__link small { font-family: var(--sans); font-size: 10px; letter-spacing: 0.2em; opacity: 0.4; }
.menu__foot { margin-top: auto; display: flex; justify-content: space-between; gap: 20px; padding-top: 28px; color: var(--night-muted); }

/* scroll progress */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  z-index: 130;
  background: transparent;
  pointer-events: none;
}
.progress i {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--seal);
  transform: scaleX(var(--p, 0));
  transform-origin: left center;
}

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  color: var(--night-ink);
  background: #0a0908;
  overflow: hidden;
  isolation: isolate;
}
.hero__ambient {
  position: absolute;
  inset: -18%;
  z-index: 0;
  background-size: cover;
  background-position: 62% 50%;
  filter: blur(76px) saturate(1.35) brightness(0.5);
  transform: scale(1.18);
  opacity: 0.72;
}
.hero__canvas {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: clamp(0px, 2vw, 40px);
  height: min(80vh, 860px);
  transform: translateY(-50%);
  display: flex;
  align-items: center;
}
.hero__canvas img {
  height: 100%;
  width: auto;
  max-width: none;
  object-fit: contain;
  box-shadow: 0 60px 140px -50px rgba(0, 0, 0, 0.9), 0 2px 0 rgba(255, 255, 255, 0.06) inset;
}
html.is-ready .hero__canvas img {
  animation: canvasIn 1.5s var(--ease) both;
}
@keyframes canvasIn {
  from { opacity: 0; transform: scale(1.05) translateY(16px); }
  to { opacity: 1; transform: none; }
}
.hero__veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(8, 7, 6, 0.94) 0%, rgba(8, 7, 6, 0.82) 26%, rgba(8, 7, 6, 0.34) 55%, rgba(8, 7, 6, 0.12) 72%, rgba(8, 7, 6, 0.62) 100%),
    linear-gradient(180deg, rgba(8, 7, 6, 0.7) 0%, rgba(8, 7, 6, 0) 30%, rgba(8, 7, 6, 0) 62%, rgba(8, 7, 6, 0.88) 100%);
}
.hero__footnote {
  position: absolute;
  z-index: 3;
  right: var(--pad);
  bottom: clamp(26px, 6vh, 64px);
  writing-mode: vertical-rl;
  font-size: 9px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(241, 237, 228, 0.42);
  display: none;
}
.hero__inner {
  position: relative;
  z-index: 3;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(28px, 6vh, 60px);
  padding: calc(var(--header-h) + clamp(28px, 6vh, 64px)) var(--pad) clamp(24px, 4.5vh, 48px);
}
.hero__center { display: flex; flex-direction: column; gap: clamp(20px, 3.4vh, 38px); max-width: min(680px, 56%); }
.hero__top {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0.82;
}
.hero__top > * { display: inline-flex; align-items: center; gap: 10px; }
.hero__top .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--seal-soft); }

.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(64px, 15.5vw, 248px);
  line-height: 0.92;
  letter-spacing: 0.03em;
  display: flex;
  align-items: flex-end;
  gap: 0.1em;
  margin-left: -0.04em;
  padding-bottom: 0.05em;
}
.hero__title .ch { display: inline-block; }
.hero__title sup {
  font-family: var(--sans);
  font-size: clamp(9px, 0.8vw, 12px);
  letter-spacing: 0.24em;
  vertical-align: super;
  opacity: 0.55;
  margin-left: 0.5em;
  font-weight: 400;
}
.hero__row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(16px, 2.6vh, 28px);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(4px, 1.2vh, 14px);
}
.hero__tagline {
  font-family: var(--serif);
  font-size: clamp(17px, 1.9vw, 26px);
  line-height: 1.65;
  letter-spacing: 0.02em;
  max-width: 24ch;
}
.hero__tagline em { font-style: normal; color: #e8b07a; }
.hero__desc {
  max-width: 34ch;
  font-size: 12.5px;
  line-height: 2;
  color: rgba(241, 237, 228, 0.66);
}

.hero__caption {
  position: absolute;
  right: var(--pad);
  bottom: clamp(112px, 14vh, 152px);
  z-index: 4;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(241, 237, 228, 0.82);
  background: rgba(10, 9, 8, 0.42);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  padding: 8px 12px;
  pointer-events: none;
}

.hero__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(20px, 4vw, 56px);
  flex-wrap: wrap;
  padding-top: clamp(14px, 2.2vh, 22px);
}
.hero__stats { display: flex; gap: clamp(22px, 4vw, 64px); }
.stat { display: flex; flex-direction: column; gap: 8px; }
.stat__num { font-family: var(--serif); font-size: clamp(20px, 2.2vw, 32px); line-height: 1; letter-spacing: 0.02em; }
.stat__label { font-size: 9px; letter-spacing: 0.24em; text-transform: uppercase; opacity: 0.5; }

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 9.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(241, 237, 228, 0.7);
}
.scroll-cue__line { position: relative; width: 1px; height: 44px; background: rgba(241, 237, 228, 0.24); overflow: hidden; }
.scroll-cue__line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--night-ink);
  animation: cue 2.4s var(--ease-2) infinite;
}
@keyframes cue {
  0% { transform: translateY(-100%); }
  55% { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

.hero__side {
  position: absolute;
  right: calc(var(--pad) * 0.42);
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-size: 9px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: rgba(241, 237, 228, 0.4);
  display: none;
}
/* ---------- 7. Buttons & marquee ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 15px 24px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1;
  overflow: hidden;
  isolation: isolate;
  color: var(--ink);
  background: transparent;
  transition: color 0.45s var(--ease), border-color 0.45s var(--ease);
}
.btn > span { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 10px; }
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--ink);
  transform: translate3d(0, 101%, 0);
  transition: transform 0.6s var(--ease);
}
.btn:hover { color: var(--paper); border-color: var(--ink); }
.btn:hover::before { transform: translate3d(0, 0, 0); }
.btn--light { color: var(--night-ink); border-color: rgba(241, 237, 228, 0.5); }
.btn--light::before { background: var(--night-ink); }
.btn--light:hover { color: var(--night); border-color: var(--night-ink); }
.btn--solid { background: var(--seal); border-color: var(--seal); color: #fbf6ee; }
.btn--solid::before { background: #7e2a1f; }
.btn--solid:hover { color: #fbf6ee; border-color: #7e2a1f; }
.btn__arrow { width: 16px; height: 8px; overflow: hidden; position: relative; display: inline-block; }
.btn__arrow svg { display: block; transition: transform 0.5s var(--ease); }
.btn:hover .btn__arrow svg { transform: translateX(3px); }

.marquee {
  overflow: hidden;
  display: flex;
  user-select: none;
  border-block: 1px solid var(--line);
  padding-block: 14px;
}
.marquee--night { border-color: var(--night-line); }
.marquee__track {
  display: flex;
  flex: none;
  min-width: 100%;
  animation: marquee 46s linear infinite;
  will-change: transform;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track > span {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  padding-right: 26px;
  font-family: var(--serif);
  font-size: clamp(13px, 1.15vw, 16px);
  letter-spacing: 0.2em;
  white-space: nowrap;
  opacity: 0.72;
}
.marquee__track .sep { width: 5px; height: 5px; background: var(--seal); border-radius: 50%; opacity: 0.8; }
@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

/* ---------- 8. Statement ---------- */
.manifesto { max-width: 1180px; }
.manifesto__lead {
  font-family: var(--serif);
  font-size: clamp(22px, 3.2vw, 46px);
  line-height: 1.62;
  letter-spacing: 0.015em;
  text-wrap: balance;
}
.manifesto__lead em { font-style: normal; color: var(--seal); }
.manifesto__body {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 80px);
  margin-top: clamp(30px, 4vw, 56px);
  align-items: start;
}
.manifesto__side { display: flex; flex-direction: column; gap: 18px; }
.manifesto__signature { font-family: var(--serif); font-size: 13px; letter-spacing: 0.24em; color: var(--muted); }
.manifesto__text p { color: var(--ink-2); font-size: 14.5px; line-height: 2.1; }
.manifesto__text p + p { margin-top: 1.1em; }
.dropcap::first-letter {
  float: left;
  font-family: var(--serif);
  font-size: 3.1em;
  line-height: 0.86;
  padding: 0.06em 0.14em 0 0;
  color: var(--seal);
}

/* ---------- 9. Horizontal pinned works ---------- */
.pin { position: relative; background: var(--paper); overflow: clip; }
.pin__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding-block: var(--header-h) 0;
}
.pin__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-inline: var(--pad);
  margin-bottom: clamp(18px, 3vh, 32px);
  flex-wrap: wrap;
}
.pin__track {
  display: flex;
  align-items: flex-end;
  gap: clamp(18px, 2.4vw, 38px);
  padding-inline: var(--pad);
  will-change: transform;
}
.card-h { flex: none; display: flex; flex-direction: column; gap: 14px; }
.card-h__media {
  position: relative;
  height: min(52vh, 500px);
  display: flex;
  align-items: flex-end;
  background: var(--paper-3);
  overflow: hidden;
}
.card-h__media img {
  height: 100%;
  width: auto;
  max-width: none;
  object-fit: cover;
  transition: transform 1.1s var(--ease), filter 0.8s;
}
.card-h:hover .card-h__media img { transform: scale(1.035); }
.card-h__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  width: 100%;
  padding-top: 2px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}
.card-h__title { font-family: var(--serif); font-size: 15px; letter-spacing: 0.06em; color: var(--ink); }
.card-h__no {
  position: absolute;
  top: 10px;
  left: 12px;
  z-index: 2;
  font-size: 9px;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.8);
  mix-blend-mode: difference;
}
.pin__bar {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 var(--pad);
  margin-top: clamp(20px, 3.2vh, 34px);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
}
.pin__bar-track { flex: 1; height: 1px; background: var(--line); position: relative; }
.pin__bar-track i { position: absolute; inset: 0; background: var(--ink); transform: scaleX(var(--p, 0)); transform-origin: left center; }

/* ---------- 10. Series list ---------- */
.series-list { position: relative; border-top: 1px solid var(--line); }
.series-row {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 150px 90px 40px;
  align-items: center;
  gap: clamp(12px, 2.2vw, 32px);
  padding: clamp(20px, 2.6vw, 34px) 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.5s var(--ease), color 0.4s;
}
.series-row::before {
  content: "";
  position: absolute;
  inset: 0 calc(var(--pad) * -1);
  background: var(--ink);
  transform: scaleY(0);
  transform-origin: bottom center;
  transition: transform 0.6s var(--ease);
  z-index: 0;
}
.series-row:hover::before { transform: scaleY(1); transform-origin: top center; }
.series-row > * { position: relative; z-index: 1; }
.series-row:hover { color: var(--paper); }
.series-row:hover .series-row__years,
.series-row:hover .series-row__count { color: rgba(242, 239, 232, 0.6); }
.series-row:hover .series-row__arrow { transform: translate(4px, -4px); color: var(--paper); }
.series-row__no { font-size: 10px; letter-spacing: 0.2em; color: var(--muted); }
.series-row__title {
  font-family: var(--serif);
  font-size: clamp(24px, 3.4vw, 46px);
  line-height: 1.15;
  letter-spacing: 0.02em;
  transition: transform 0.6s var(--ease);
}
.series-row:hover .series-row__title { transform: translateX(10px); }
.series-row__en { display: block; font-family: var(--sans); font-size: 9px; letter-spacing: 0.28em; opacity: 0.45; margin-top: 6px; text-transform: uppercase; }
.series-row__years { font-size: 12px; letter-spacing: 0.08em; color: var(--muted); transition: color 0.4s; }
.series-row__count { font-size: 11px; letter-spacing: 0.1em; color: var(--muted); text-align: right; transition: color 0.4s; }
.series-row__arrow { width: 18px; height: 18px; display: grid; place-items: center; justify-self: end; transition: transform 0.5s var(--ease), color 0.4s; }

.series-preview {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 105;
  width: 240px;
  height: 300px;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.92) rotate(-4deg);
  transition: opacity 0.45s var(--ease), transform 0.65s var(--ease);
  overflow: hidden;
  background: var(--paper-3);
  will-change: transform;
}
.series-preview.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-3deg); }
.series-preview img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 11. Studio ---------- */
.studio {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(26px, 5vw, 90px);
  align-items: center;
}
.studio__figure { position: relative; }
.studio__figure img { width: 100%; height: auto; }
.studio__figure--tall img { aspect-ratio: 4 / 5; object-fit: cover; }
.studio__caption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-transform: uppercase;
}
.studio__copy { display: flex; flex-direction: column; gap: clamp(18px, 2.4vw, 28px); }
.studio__copy p { color: var(--ink-2); font-size: 14.5px; line-height: 2.05; }
.pullquote {
  font-family: var(--serif);
  font-size: clamp(20px, 2.5vw, 33px);
  line-height: 1.66;
  letter-spacing: 0.015em;
  max-width: 26ch;
}
.pullquote em { font-style: normal; color: var(--seal); }

.studio-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
  align-items: start;
}
.studio-grid figure { position: relative; overflow: hidden; }
.studio-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.studio-grid figure:hover img { transform: scale(1.04); }
.sg-a { grid-column: 1 / span 7; }
.sg-b { grid-column: 9 / span 4; margin-top: clamp(40px, 9vw, 140px); }
.sg-c { grid-column: 2 / span 4; margin-top: clamp(20px, 4vw, 60px); }
.sg-d { grid-column: 7 / span 6; margin-top: clamp(-40px, -4vw, 0px); }

/* ---------- 11b. Series scenes (parallax) ---------- */
.scene {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  padding-block: clamp(70px, 10vh, 120px);
  background: var(--paper);
}
.scene__ambient {
  position: absolute;
  inset: -25%;
  z-index: 0;
  background-size: cover;
  background-position: center;
  filter: blur(90px) saturate(1.25) brightness(0.36);
  opacity: 0.42;
  transform: scale(1.15);
  will-change: transform;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(65% 65% at 50% 50%, #000 0%, rgba(0, 0, 0, 0.55) 55%, transparent 82%);
  mask-image: radial-gradient(65% 65% at 50% 50%, #000 0%, rgba(0, 0, 0, 0.55) 55%, transparent 82%);
}
.scene__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(30px, 6vw, 110px);
}
.scene__canvas {
  margin: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}
.scene__canvas img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(74svh, 760px);
  object-fit: contain;
  box-shadow: 0 60px 130px -55px rgba(0, 0, 0, 0.95);
  will-change: transform;
}
.scene__canvas figcaption {
  display: flex;
  gap: 18px;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
}
.scene--flip .scene__canvas { order: -1; align-items: flex-start; }
.scene__copy {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 2.2vh, 20px);
  max-width: 460px;
  will-change: transform;
}
.scene__index { font-size: 10px; letter-spacing: 0.26em; color: var(--muted); text-transform: uppercase; }
.scene__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 80px);
  line-height: 1.04;
  letter-spacing: 0.02em;
}
.scene__en { font-size: 9.5px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); }
.scene__tag {
  font-family: var(--serif);
  font-size: clamp(14px, 1.35vw, 17px);
  line-height: 1.9;
  color: var(--ink-2);
  max-width: 22em;
}
.scene__rule { width: 46px; height: 1px; background: var(--line-2); }
.scene__meta { display: flex; gap: 18px; font-size: 11px; letter-spacing: 0.1em; color: var(--muted); }
.scene__link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line-2);
  transition: gap 0.4s var(--ease), border-color 0.4s;
}
.scene__link:hover { gap: 16px; border-color: var(--ink); }

/* closing CTA */
.cta {
  position: relative;
  padding-block: clamp(80px, 14vh, 190px);
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.cta__inner { display: flex; flex-direction: column; gap: clamp(22px, 4vh, 40px); }
.cta__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 6vw, 92px);
  line-height: 1.06;
  max-width: 18ch;
}
.cta__mail {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: var(--serif);
  font-size: clamp(22px, 3.4vw, 44px);
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 6px;
  transition: border-color 0.4s;
}
.cta__mail:hover { border-color: var(--ink); }
.cta__links { display: flex; gap: clamp(18px, 3vw, 40px); flex-wrap: wrap; }
.cta__links a {
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s;
}
.cta__links a:hover { color: var(--ink); }

/* ---------- 12. Footer ---------- */
.footer {
  background: var(--night);
  color: var(--night-ink);
  padding-block: clamp(56px, 8vw, 116px) clamp(22px, 3vw, 34px);
  position: relative;
  overflow: hidden;
}
.footer__top { display: flex; flex-direction: column; gap: clamp(20px, 3vw, 34px); }
.footer__eyebrow { color: var(--night-muted); }
.footer__mail {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
  font-family: var(--serif);
  font-size: clamp(22px, 4.4vw, 58px);
  line-height: 1.1;
  letter-spacing: 0.01em;
  align-self: flex-start;
  padding-bottom: 8px;
}
.footer__mail::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform-origin: right center;
  transition: transform 0.6s var(--ease);
}
.footer__mail:hover::after { transform: scaleX(0); }
.footer__mail .arrow { font-size: 0.5em; opacity: 0.6; transition: transform 0.5s var(--ease); }
.footer__mail:hover .arrow { transform: translate(6px, -6px); }
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(24px, 4vw, 60px);
  border-top: 1px solid var(--night-line);
  padding-top: clamp(24px, 3vw, 40px);
  margin-top: clamp(36px, 6vw, 78px);
}
.footer__col { display: flex; flex-direction: column; gap: 10px; font-size: 12px; color: var(--night-muted); }
.footer__col a, .footer__col span { color: var(--night-ink); }
.footer__col .label { color: var(--night-muted); margin-bottom: 4px; }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: clamp(30px, 5vw, 62px);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--night-muted);
}
.footer__big {
  font-family: var(--serif);
  font-size: clamp(64px, 18vw, 260px);
  line-height: 0.8;
  letter-spacing: 0.06em;
  opacity: 0.055;
  position: absolute;
  left: 50%;
  bottom: -0.12em;
  transform: translateX(-50%);
  pointer-events: none;
  white-space: nowrap;
}

/* copy hint */
.copy-hint {
  position: absolute;
  left: 50%;
  top: -34px;
  transform: translate(-50%, 6px);
  background: var(--paper-2);
  color: var(--ink);
  border: 1px solid var(--line-2);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 10px;
  opacity: 0;
  transition: opacity 0.3s, transform 0.4s var(--ease);
  pointer-events: none;
  white-space: nowrap;
}
.copy-hint.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 13. Motion utilities ---------- */
[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}
[data-reveal].in { opacity: 1; transform: none; }

[data-reveal="mask"] { opacity: 1; transform: none; clip-path: inset(0 0 100% 0); transition: clip-path 1.15s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal="mask"].in { clip-path: inset(0 0 0 0); }

[data-reveal="fade"] { transform: none; }

.media-reveal { position: relative; overflow: hidden; }
.media-reveal img { transform: scale(1.14); transition: transform 1.6s var(--ease); transition-delay: calc(var(--d, 0s) + 0.08s); }
.media-reveal.in img { transform: scale(1); }

.split-line {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  /* give the mask a little room below the baseline so tall CJK glyphs
     are never shaved at the bottom */
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}
.split-char {
  display: inline-block;
  transform: translate3d(0, 110%, 0);
  transition: transform 1.05s var(--ease);
  transition-delay: calc(var(--i, 0) * 0.032s + var(--d, 0s));
  will-change: transform;
}
.in .split-char, .split-ready .split-char { transform: none; }

/* the hero name is the one element where a clipped glyph would be
   catastrophic — no mask, just a short rise + fade */
.hero__title .split-line { overflow: visible; padding-bottom: 0; margin-bottom: 0; }
.hero__title .split-char {
  opacity: 0;
  transform: translate3d(0, 0.2em, 0);
  transition: transform 1.1s var(--ease), opacity 0.9s var(--ease);
}
.hero__title.in .split-char,
.hero__title.split-ready .split-char { opacity: 1; transform: none; }

[data-parallax] { will-change: transform; }

.link-swap { position: relative; display: inline-block; overflow: hidden; }
.link-swap > span { display: block; transition: transform 0.5s var(--ease); }
.link-swap > span:last-child {
  position: absolute;
  inset: 0;
  transform: translateY(105%);
}
.link-swap:hover > span:first-child { transform: translateY(-105%); }
.link-swap:hover > span:last-child { transform: translateY(0); }

[data-cursor] { cursor: none; }
@media (hover: none), (pointer: coarse) {
  .cursor { display: none; }
  [data-cursor] { cursor: pointer; }
}

/* page transition curtain shared with loader */
html.is-ready .loader { pointer-events: none; }

/* ---------- 14. Responsive ---------- */
@media (max-width: 1200px) {
  .series-row { grid-template-columns: 44px minmax(0, 1fr) 120px 70px 30px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .hero__center { max-width: 64%; }
}

/* short laptop / zoomed desktop windows: keep the whole hero inside the fold */
@media (min-width: 961px) and (max-height: 940px) {
  .hero__title { font-size: clamp(52px, 12.5vw, 208px); }
  .hero__inner {
    gap: clamp(18px, 3.6vh, 40px);
    padding-top: calc(var(--header-h) + clamp(20px, 3.4vh, 40px));
    padding-bottom: clamp(20px, 3vh, 34px);
  }
  .hero__center { gap: clamp(16px, 2.6vh, 30px); }
  .hero__tagline { font-size: clamp(16px, 1.55vw, 22px); }
  .hero__desc { font-size: 12px; line-height: 1.9; }
  .hero__canvas { height: min(78vh, 740px); }
  .hero__caption { bottom: clamp(96px, 12vh, 130px); }
}

@media (min-width: 961px) and (max-height: 780px) {
  .hero__title { font-size: clamp(46px, 10.5vw, 168px); }
  .hero__desc { display: none; }
  .hero__caption { display: none; }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .nav { display: none; }
  .header__actions .header__cta { display: none; }
  .burger { display: inline-flex; }
  .hero__canvas { position: absolute; inset: 0; height: auto; right: 0; transform: none; display: block; }
  .hero__canvas img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 62% 36%;
    opacity: 0.55;
    box-shadow: none;
  }
  .hero__ambient { display: none; }
  .hero__veil {
    background:
      linear-gradient(180deg, rgba(8, 7, 6, 0.74) 0%, rgba(8, 7, 6, 0.2) 34%, rgba(8, 7, 6, 0.55) 66%, rgba(8, 7, 6, 0.94) 100%),
      linear-gradient(90deg, rgba(8, 7, 6, 0.7), rgba(8, 7, 6, 0.1) 60%);
  }
  .hero__center { max-width: 100%; }
  .hero__title { font-size: clamp(58px, 18vw, 140px); }
  .hero__side { display: none; }
  .manifesto__body { grid-template-columns: 1fr; }
  .studio { grid-template-columns: 1fr; }
  .studio-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: var(--gap); padding-bottom: 8px; scrollbar-width: none; }
  .studio-grid::-webkit-scrollbar { display: none; }
  .studio-grid figure { flex: 0 0 78%; scroll-snap-align: start; margin-top: 0 !important; }
  .scene { min-height: auto; padding-block: clamp(56px, 9vh, 90px); }
  .scene__inner { grid-template-columns: 1fr; gap: clamp(22px, 4vh, 34px); }
  .scene__canvas, .scene--flip .scene__canvas { order: -1; align-items: flex-start; }
  .scene__canvas img { max-height: 62svh; }
  .scene__copy { max-width: 100%; }
  .pin__sticky { position: relative; height: auto; padding-block: clamp(50px, 8vw, 80px); }
  .pin__track { overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; scrollbar-width: none; }
  .pin__track::-webkit-scrollbar { display: none; }
  .card-h { scroll-snap-align: start; }
  .card-h__media { height: min(46vh, 380px); }
  .pin__bar { display: none; }
  .series-row { grid-template-columns: 32px minmax(0, 1fr) 44px; row-gap: 4px; }
  .series-row__years { grid-column: 2; font-size: 11px; }
  .series-row__count { display: none; }
  .series-row__arrow { grid-column: 3; grid-row: 1; }
  .sg-a, .sg-b, .sg-c, .sg-d { grid-column: auto; }
  .footer__grid { grid-template-columns: 1fr; gap: 26px; }
  .footer__big { font-size: 34vw; }
}

@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .hero__top span:nth-child(2) { display: none; }
  .hero__top { font-size: 9px; letter-spacing: 0.2em; }
  .hero__title { font-size: clamp(56px, 20vw, 120px); }
  .hero__desc { display: none; }
  .hero__caption { display: none; }
  .hero__inner { padding-bottom: calc(clamp(20px, 3.4vh, 34px) + env(safe-area-inset-bottom, 0px)); }
  .hero__actions { width: 100%; }
  .hero__actions .btn { width: 100%; justify-content: space-between; }
  .hero__bottom { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 14px; }
  .hero__stats { gap: 20px; }
  .stat__label { font-size: 8px; }
  .scroll-cue { display: none; }
  .brand__name { font-size: 17px; }
  .manifesto__lead { font-size: clamp(20px, 6.2vw, 30px); }
  .manifesto__text p { font-size: 14px; }
  .studio__caption { font-size: 9px; }
  .card-h__title { font-size: 14px; }
  .footer__mail { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .split-char { transform: none !important; opacity: 1 !important; }
  .grain { animation: none; }
  .hero__canvas img { animation: none !important; opacity: 1 !important; transform: none !important; }
}
