/* Sayara Ablakimova — personal site
   Palette: Golden Hour · Type: Noto Serif Display (condensed) + Inter Tight */
:root {
  --bg: #EFE6DA;
  --bg-2: #E6D8C6;
  --line: #CDB59B;
  --muted: #8C6248;
  --ink: #2A1A12;
  --accent: #7A3B24;
  --dark: #17100C;
  --dark-2: #22180F;
  --on-dark: #F1E8DC;
  --on-dark-muted: #A8927F;
  --f-display: 'Noto Serif Display', 'Didot', 'Bodoni 72', serif;
  --f-text: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --pad: clamp(20px, 3.4vw, 60px);
  --gap: clamp(12px, 1.6vw, 28px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-io: cubic-bezier(.6, .05, .2, 1);
}

/* ——— section themes: the page colour morphs as each block reaches mid-screen ——— */
@property --bg { syntax: '<color>'; inherits: true; initial-value: #EFE6DA; }
@property --bg-2 { syntax: '<color>'; inherits: true; initial-value: #E6D8C6; }
@property --line { syntax: '<color>'; inherits: true; initial-value: #CDB59B; }
@property --muted { syntax: '<color>'; inherits: true; initial-value: #8C6248; }
@property --ink { syntax: '<color>'; inherits: true; initial-value: #2A1A12; }
@property --accent { syntax: '<color>'; inherits: true; initial-value: #7A3B24; }
body[data-theme="cream"], html:not(.morph) [data-theme="cream"] { --bg: #EFE6DA; --bg-2: #E6D8C6; --line: #CDB59B; --muted: #8C6248; --ink: #2A1A12; --accent: #7A3B24; }
body[data-theme="milk"], html:not(.morph) [data-theme="milk"] { --bg: #F7F3ED; --bg-2: #ECE5DB; --line: #DDD2C4; --muted: #857467; --ink: #1F1813; --accent: #7A3B24; }
body[data-theme="sand"], html:not(.morph) [data-theme="sand"] { --bg: #DFCCB5; --bg-2: #D3BDA3; --line: #BEA081; --muted: #6A4632; --ink: #2A1A12; --accent: #7A3B24; }
body[data-theme="rust"], html:not(.morph) [data-theme="rust"] { --bg: #6E301C; --bg-2: #5E2817; --line: #8E4C35; --muted: #D9B79A; --ink: #F4E8D9; --accent: #EBCB9F; }
body[data-theme="dark"], html:not(.morph) [data-theme="dark"] { --bg: #17100C; --bg-2: #22180F; --line: #3B2D22; --muted: #A8927F; --ink: #F1E8DC; --accent: #CDB59B; }
html:not(.morph) [data-theme] { background: var(--bg); color: var(--ink); }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--f-text); font-weight: 300; font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: --bg 1s var(--ease-io), --bg-2 1s var(--ease-io), --line 1s var(--ease-io), --muted 1s var(--ease-io), --ink 1s var(--ease-io), --accent 1s var(--ease-io);
}
img, video { display: block; max-width: 100%; }
picture { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; }
.skip:focus { top: 12px; }

/* ——— type ——— */
.display {
  font-family: var(--f-display); font-weight: 300; font-variation-settings: 'wdth' 62.5;
  text-transform: uppercase; letter-spacing: -.015em; line-height: .86;
}
.serif { font-family: var(--f-display); font-weight: 300; font-variation-settings: 'wdth' 80; letter-spacing: -.01em; }
.label { font-size: 11px; font-weight: 400; letter-spacing: .22em; text-transform: uppercase; line-height: 1.6; }
.muted { color: var(--muted); }
.cta {
  display: inline-flex; align-items: center; gap: 14px; white-space: nowrap;
  font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  padding-bottom: 6px; border-bottom: 1px solid currentColor;
}
.cta i { font-style: normal; display: inline-block; transition: transform .6s var(--ease); }
.cta:hover i { transform: translateX(6px); }

/* ——— layout helpers ——— */
.wrap { padding-left: var(--pad); padding-right: var(--pad); }
.sec { position: relative; padding-top: clamp(96px, 14vw, 200px); }
.sec-head { display: flex; align-items: baseline; gap: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: clamp(36px, 5vw, 72px); }
.sec-head .num { min-width: 3.2em; }
.sec-head .rule-fill { flex: 1; }
.sec-title { font-size: clamp(64px, 13.5vw, 230px); }

/* ——— media frames ——— */
.ph { position: relative; overflow: hidden; background: var(--bg-2); }
.ph img, .ph video { width: 100%; height: 100%; object-fit: cover; }
.ph .inner { width: 100%; height: 100%; will-change: transform; }
.ph[data-zoom] { cursor: zoom-in; }
.ph[data-zoom] img { transition: transform 1.4s var(--ease); }
.ph[data-zoom]:hover img { transform: scale(1.035); }
figcaption { margin-top: 12px; display: flex; justify-content: space-between; gap: 12px; color: var(--muted); }

/* ——— reveal motion ——— */
.js .rv { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease), transform 1.1s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }
/* the frame itself stays unclipped so IntersectionObserver can see it; only its content is wiped in */
.js .rv-img { background: transparent; }
.js .rv-img > * { clip-path: inset(100% 0 0 0); transition: clip-path 1.05s var(--ease-io); }
.js .rv-img img { transform: scale(1.1); transition: transform 1.5s var(--ease); }
.js .rv-img.in > * { clip-path: inset(0 0 0 0); }
.js .rv-img.in img { transform: scale(1); }
.js .lines .ln { display: block; overflow: hidden; }
.js .lines .ln > span { display: block; transform: translateY(105%); transition: transform 1.3s var(--ease); }
.js .lines.in .ln > span { transform: none; }
.js .lines.in .ln:nth-child(2) > span { transition-delay: .12s; }
.js .lines.in .ln:nth-child(3) > span { transition-delay: .24s; }

/* ——— navigation ——— */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 26px var(--pad); color: var(--on-dark);
  transition: background .5s, color .5s, padding .5s, transform .6s var(--ease);
}
.nav.solid { background: color-mix(in srgb, var(--bg) 86%, transparent); color: var(--ink); padding-top: 16px; padding-bottom: 16px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid color-mix(in srgb, var(--line) 55%, transparent); }
.nav.hide { transform: translateY(-100%); }
.nav ul { display: flex; gap: clamp(16px, 2.2vw, 36px); }
.nav ul a { position: relative; }
.nav ul a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease); }
.nav ul a:hover::after, .nav ul a.cur::after { transform: scaleX(1); transform-origin: left; }
.nav .mark { font-family: var(--f-display); font-variation-settings: 'wdth' 62.5; font-size: 22px; letter-spacing: .06em; text-transform: uppercase; justify-self: center; }
.nav .right { justify-self: end; display: flex; align-items: center; gap: clamp(16px, 2vw, 32px); }
.lang { display: flex; gap: 8px; }
.lang a { opacity: .5; } .lang a[aria-current] { opacity: 1; }
.burger { display: none; }

.menu {
  position: fixed; inset: 0; z-index: 60; background: var(--dark); color: var(--on-dark);
  display: flex; flex-direction: column; padding: 22px var(--pad) 32px;
  clip-path: inset(0 0 100% 0); transition: clip-path .8s var(--ease-io); visibility: hidden;
}
.menu.open { clip-path: inset(0 0 0 0); visibility: visible; }
.menu-top { display: flex; justify-content: space-between; align-items: center; }
.menu nav { margin-top: auto; display: flex; flex-direction: column; gap: 6px; }
.menu nav a { font-size: clamp(44px, 13vw, 92px); display: flex; align-items: baseline; gap: 14px; }
.menu nav a small { font-family: var(--f-text); font-size: 11px; letter-spacing: .2em; color: var(--on-dark-muted); }
.menu-foot { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px 28px; color: var(--on-dark-muted); }

/* ——— 01 hero ——— */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; color: var(--on-dark); background: #1b120c; }
.hero .bg { position: absolute; inset: 0; }
.hero .bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 26%; }
.hero .bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,12,8,.42) 0%, rgba(20,12,8,0) 24%, rgba(20,12,8,0) 52%, rgba(20,12,8,.6) 100%); }
.js .hero .bg picture { animation: kenburns 16s var(--ease) both; }
@keyframes kenburns { from { transform: scale(1.14); } to { transform: scale(1); } }
.hero-name { position: absolute; left: 0; right: 0; bottom: 3.2vh; text-align: center; white-space: nowrap; font-size: 11.8vw; z-index: 2; }
.hero-name .ln { display: block; overflow: hidden; padding-top: .04em; }
.hero-name .ln > span { display: block; }
.js .hero-name .ln > span { animation: rise 1.6s var(--ease) .35s both; }
.hero-row { position: absolute; left: var(--pad); right: var(--pad); bottom: calc(3.2vh + 11.8vw * .86 + 3vh); display: flex; justify-content: space-between; align-items: end; z-index: 3; gap: 24px; }
.hero-row .sub { font-size: 12px; letter-spacing: .24em; text-transform: uppercase; }
.hero-side { position: absolute; right: var(--pad); top: 50%; transform: translateY(-50%); z-index: 3; }
.film { display: inline-flex; align-items: center; gap: 14px; }
.film b { width: 46px; height: 46px; border: 1px solid currentColor; border-radius: 50%; display: grid; place-items: center; font-weight: 400; font-size: 11px; transition: background .5s, color .5s; }
.film:hover b { background: var(--on-dark); color: var(--ink); }
.js .hero .fade { animation: fade 1.6s ease 1s both; }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ——— 02 about ——— */
.about-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: start; }
.about-lead { grid-column: 1 / span 8; font-size: clamp(34px, 4.6vw, 80px); line-height: 1.02; text-transform: none; }
.about-lead em { font-style: italic; color: var(--accent); }
.about-ph { grid-column: 9 / span 4; grid-row: 1 / span 2; aspect-ratio: 3 / 4; margin-top: 4vw; }
.about-ph-2 { grid-column: 6 / span 2; grid-row: 2; aspect-ratio: 3 / 4; margin-top: 10vw; }
.about-text { grid-column: 1 / span 4; grid-row: 2; margin-top: clamp(40px, 6vw, 100px); font-size: 17px; line-height: 1.7; }
.about-text p + p { margin-top: 1.1em; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); margin-top: clamp(64px, 9vw, 140px); border-top: 1px solid var(--line); }
.facts div { padding-top: 18px; }
.facts dt { color: var(--muted); margin-bottom: 8px; }
.facts dd { font-size: 15px; }

/* ——— statement band ——— */
.statement { overflow: hidden; padding: clamp(72px, 11vw, 170px) 0; }
.st-track { display: flex; align-items: center; gap: .32em; width: max-content; white-space: nowrap; font-size: clamp(76px, 12.5vw, 230px); will-change: transform; }
.st-track em { font-style: italic; color: var(--accent); }
.st-track i { font-style: normal; font-size: .22em; color: var(--accent); }

/* ——— 03 works ——— */
.works-top { padding-top: clamp(96px, 14vw, 200px); padding-bottom: clamp(40px, 6vw, 100px); }
.works-title { font-size: clamp(72px, 15.5vw, 280px); line-height: .84; }
.works-title > span { display: block; }
.works-title .w2 { display: flex; justify-content: flex-end; align-items: center; gap: .14em; }
.works-title em { font-style: italic; }
.inline-ph { flex: 0 0 auto; width: .58em; height: .74em; overflow: hidden; margin-top: -.06em; }
.inline-ph picture, .inline-ph img { width: 100%; height: 100%; object-fit: cover; }
.works-sub { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); margin-top: clamp(48px, 6vw, 96px); align-items: start; }
.works-sub p { grid-column: 1 / span 4; color: var(--muted); font-size: 15px; }
.toc { grid-column: 8 / -1; border-top: 1px solid var(--line); }
.toc a { display: flex; align-items: baseline; gap: 18px; padding: 12px 0; border-bottom: 1px solid var(--line); font-family: var(--f-display); font-variation-settings: 'wdth' 80; font-size: clamp(20px, 1.8vw, 30px); transition: padding .6s var(--ease), color .4s; }
.toc a span { font-family: var(--f-text); font-size: 11px; letter-spacing: .2em; color: var(--muted); min-width: 30px; }
.toc a:hover { padding-left: 10px; color: var(--accent); }

.chapter { position: relative; padding-top: clamp(110px, 13vw, 220px); padding-bottom: clamp(110px, 13vw, 220px); }
.ch-label { display: block; color: var(--muted); margin-bottom: 18px; }
.ch-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); }
.chapter .t { font-size: clamp(64px, 8.6vw, 160px); }
.chapter .t em, .ch-split em { font-style: italic; }
.chapter .note { color: var(--muted); font-size: 15px; max-width: 30ch; }

/* I — golden hour: a full-height frame against a title and two frames on one baseline */
.ch-gold .ch-grid { grid-template-rows: 1fr auto; }
.ch-gold .a { grid-column: 1 / span 6; grid-row: 1 / span 2; aspect-ratio: 4 / 5; }
.ch-gold .ch-title { grid-column: 8 / -1; grid-row: 1; }
.ch-gold .ch-title .note { margin-top: 26px; }
.ch-gold .b { grid-column: 8 / span 3; grid-row: 2; aspect-ratio: 3 / 4; align-self: end; }
.ch-gold .c { grid-column: 11 / span 2; grid-row: 2; aspect-ratio: 3 / 4; align-self: end; }

/* II — monochrome: a split headline over a strict triptych grid */
.ch-split { display: flex; justify-content: space-between; align-items: baseline; font-size: clamp(76px, 13.4vw, 250px); margin-bottom: clamp(28px, 3.6vw, 60px); }
.ch-mono .b { grid-column: 1 / span 3; grid-row: 1; aspect-ratio: 3 / 4; }
.ch-mono .c { grid-column: 1 / span 3; grid-row: 2; aspect-ratio: 3 / 4; }
.ch-mono .a { grid-column: 4 / span 6; grid-row: 1 / span 2; }
.ch-mono .note { grid-column: 10 / -1; grid-row: 1; }
.ch-mono .d { grid-column: 10 / -1; grid-row: 2; aspect-ratio: 3 / 4; align-self: end; }

/* III — beauty: a film strip of equal frames */
.ch-beauty { padding-top: 0; padding-bottom: 0; }
.ch-head-m { display: none; }
.hs { position: relative; }
.hs-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.hs-track { display: flex; align-items: center; gap: var(--gap); padding: 0 var(--pad); will-change: transform; }
.hs-intro { flex: 0 0 min(30vw, 420px); padding-right: 2vw; }
.hs-intro .note { margin-top: 18px; }
.hs-item { flex: 0 0 auto; height: min(66vh, 740px); aspect-ratio: 3 / 4; }
.hs-progress { position: absolute; left: var(--pad); right: var(--pad); bottom: 6vh; height: 1px; background: var(--line); }
.hs-progress i { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(0); }

/* IV — the city: one oversized word, the frames set into it */
.city-word { font-size: clamp(120px, 27.5vw, 520px); line-height: .78; text-align: center; color: var(--accent); margin-bottom: -.17em; position: relative; z-index: 0; }
.ch-city .ch-grid { position: relative; z-index: 1; }
.ch-city .a { grid-column: 1 / span 5; grid-row: 1 / span 2; }
.ch-city .b { grid-column: 7 / -1; grid-row: 1; aspect-ratio: 16 / 10; }
.ch-city .c { grid-column: 7 / span 3; grid-row: 2; aspect-ratio: 1 / 1; }
.ch-city .d { grid-column: 10 / -1; grid-row: 2; aspect-ratio: 1 / 1; }
.ch-city .note { grid-column: 7 / -1; grid-row: 3; }

/* ——— 04 in motion ——— */
.motion { padding-bottom: clamp(96px, 12vw, 180px); }
.motion-top { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.motion-top .sec-title { grid-column: 1 / span 8; }
.motion-top p { grid-column: 9 / span 4; color: var(--muted); font-size: 15px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-bottom: clamp(28px, 3vw, 44px); }
.filters button { padding-bottom: 5px; border-bottom: 1px solid transparent; color: var(--muted); transition: color .4s, border-color .4s; }
.filters button[aria-pressed="true"], .filters button:hover { color: var(--on-dark); border-color: currentColor; }
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(150px, 17vw, 270px), 1fr)); gap: var(--gap); grid-auto-flow: dense; }
.vcard { position: relative; text-align: left; display: block; width: 100%; }
.vcard .ph { aspect-ratio: 9 / 16; }
.vcard.h { grid-column: span 2; }
.vcard.h .ph { aspect-ratio: auto; height: calc(100% - 52px); min-height: 200px; }
.vcard .ph::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,.45)); pointer-events: none; }
.vcard .ph video { transition: transform 1.2s var(--ease); }
.vcard:hover .ph video { transform: scale(1.04); }
.vcard .play { position: absolute; left: 14px; bottom: 14px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.8); color: #fff; display: grid; place-items: center; font-size: 10px; transition: background .4s, color .4s; }
.vcard:hover .play { background: #fff; color: var(--ink); }
.vcard .dur { position: absolute; right: 14px; bottom: 16px; z-index: 2; color: #fff; }
.vcard .meta { padding-top: 12px; }
.vcard .meta b { display: block; font-weight: 400; font-size: 15px; letter-spacing: 0; text-transform: none; color: var(--on-dark); }
.vcard.is-hidden { display: none; }

/* ——— 05 beyond ——— */
.beyond-intro { max-width: 22ch; font-size: clamp(30px, 3.6vw, 60px); line-height: 1.05; margin-bottom: clamp(48px, 7vw, 110px); }
.chapters { border-top: 1px solid var(--line); }
.chap { position: relative; display: grid; grid-template-columns: 80px 1fr minmax(240px, 34%); gap: var(--gap); align-items: center; padding: clamp(22px, 2.8vw, 40px) 0; border-bottom: 1px solid var(--line); cursor: default; }
.chap .n { font-family: var(--f-display); font-size: 22px; color: var(--muted); }
.chap .t { font-size: clamp(48px, 8.4vw, 150px); transition: transform .8s var(--ease), color .6s; }
.chap:hover .t { transform: translateX(1.2vw); color: var(--accent); }
.chap p { font-size: 15px; color: var(--muted); }
.chap p strong { font-weight: 400; color: var(--ink); }
.chap-img { display: none; }
.hover-img { position: fixed; left: 0; top: 0; width: 22vw; aspect-ratio: 3 / 4; pointer-events: none; z-index: 40; opacity: 0; transform: translate(-50%, -50%) scale(.9); transition: opacity .4s, transform .6s var(--ease); overflow: hidden; }
.hover-img.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.hover-img img { width: 100%; height: 100%; object-fit: cover; }
.tried { margin: clamp(72px, 9vw, 140px) calc(var(--pad) * -1) 0; padding-top: 30px; background: #6E301C; color: #F4E8D9; }
.tried .label { color: #D9B79A; margin-bottom: 14px; display: block; padding: 0 var(--pad); }
.tried .marquee { border-color: rgba(244, 232, 217, .18); border-bottom: 0; padding: 26px 0 30px; }
.tried .marquee span::after { color: #EBCB9F; }
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 0; }
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee span { font-family: var(--f-display); font-variation-settings: 'wdth' 80; font-style: italic; font-size: clamp(26px, 3vw, 46px); padding-right: .9em; white-space: nowrap; }
.marquee span::after { content: '✦'; font-style: normal; font-size: .4em; vertical-align: middle; margin-left: .9em; color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* ——— 06 profile ——— */
.profile-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: start; }
.digitals { grid-column: 1 / span 6; display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--gap); }
.digitals .ph { aspect-ratio: 9 / 16; }
.digitals .ph:nth-child(2) { margin-top: 20%; }
.digitals .cap { grid-column: 1 / -1; color: var(--muted); }
.comp { grid-column: 8 / span 5; }
.comp h3 { font-size: clamp(40px, 5vw, 84px); margin-bottom: 28px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.stats div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.stats div:nth-child(odd) { padding-right: 16px; }
.stats dt { color: var(--muted); }
.stats dd { font-family: var(--f-display); font-variation-settings: 'wdth' 80; font-size: 26px; line-height: 1.2; margin-top: 4px; }
.comp-block { margin-top: 36px; }
.comp-block .label { color: var(--muted); display: block; margin-bottom: 12px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { border: 1px solid var(--line); padding: 7px 14px 6px; border-radius: 99px; font-size: 13px; }
.langs li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.langs li span:last-child { color: var(--muted); }

/* ——— 07 collaborations ——— */
.collab-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); }
.collab-grid .intro { grid-column: 1 / span 4; font-size: 17px; }
.collab-grid .intro .cta { margin-top: 32px; }
.dirs { grid-column: 6 / span 7; counter-reset: d; border-top: 1px solid var(--line); }
.dirs li { counter-increment: d; display: flex; align-items: baseline; gap: 22px; padding: 18px 0; border-bottom: 1px solid var(--line); font-family: var(--f-display); font-variation-settings: 'wdth' 80; font-size: clamp(26px, 2.8vw, 46px); line-height: 1.1; transition: padding .6s var(--ease), color .4s; }
.dirs li::before { content: '0' counter(d); font-family: var(--f-text); font-size: 11px; letter-spacing: .2em; color: var(--muted); min-width: 28px; }
.dirs li:hover { padding-left: 12px; color: var(--accent); }

/* ——— 09 contact ——— */
.contact { position: relative; overflow: hidden; padding-bottom: 40px; }
.contact-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: end; }
.contact .big { grid-column: 1 / span 9; font-size: clamp(60px, 10.5vw, 190px); }
.contact .ph { grid-column: 10 / span 3; aspect-ratio: 3 / 4; }
.contact-text { grid-column: 1 / span 5; margin-top: clamp(32px, 4vw, 56px); font-size: 17px; color: var(--muted); }
.links { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(48px, 6vw, 96px); border-top: 1px solid var(--line); }
.links a { display: flex; justify-content: space-between; align-items: center; padding: 26px 20px 26px 0; border-bottom: 1px solid var(--line); font-family: var(--f-display); font-variation-settings: 'wdth' 80; font-size: clamp(24px, 2.4vw, 40px); transition: color .4s, padding .6s var(--ease); }
.links a + a { padding-left: 20px; border-left: 1px solid var(--line); }
.links a i { font-style: normal; font-family: var(--f-text); font-size: 18px; transition: transform .6s var(--ease); }
.links a:hover { color: var(--accent); }
.links a:hover i { transform: translate(4px, -4px); }
.contact .links a:hover { color: var(--accent); }
.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: clamp(72px, 10vw, 140px); color: var(--muted); }

/* ——— lightbox & player ——— */
.lb, .player { position: fixed; inset: 0; z-index: 80; background: rgba(15, 10, 7, .96); color: var(--on-dark); display: none; }
.lb.open, .player.open { display: block; animation: fade .4s ease both; }
.lb figure { position: absolute; inset: 70px 80px 70px; display: flex; align-items: center; justify-content: center; }
.lb img { max-width: 100%; max-height: 100%; object-fit: contain; animation: fade .5s ease both; }
.lb-bar, .player-bar { position: absolute; left: 0; right: 0; top: 0; display: flex; justify-content: space-between; align-items: center; padding: 22px var(--pad); }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 56px; height: 56px; border: 1px solid rgba(241,232,220,.4); border-radius: 50%; display: grid; place-items: center; transition: background .3s, color .3s; }
.lb-nav:hover { background: var(--on-dark); color: var(--ink); }
.lb-prev { left: 18px; } .lb-next { right: 18px; }
.player-stage { position: absolute; inset: 70px var(--pad) 40px; display: flex; align-items: center; justify-content: center; }
.player video { max-width: 100%; max-height: 100%; background: #000; }
.player-title { position: absolute; left: var(--pad); bottom: 22px; color: var(--on-dark-muted); }
.player-next { position: absolute; right: var(--pad); bottom: 18px; }

/* ——— responsive ——— */
@media (max-width: 1024px) {
  .nav ul.l, .nav ul.r { display: none; }
  .nav { grid-template-columns: 1fr auto; }
  .nav .mark { justify-self: start; }
  .burger { display: inline-block; }
  .nav .right .cta { display: none; }
}
@media (max-width: 760px) {
  body { font-size: 15px; }
  .sec { padding-top: 96px; }
  .sec-title { font-size: 19vw; }
  .hero-name { text-align: left; left: var(--pad); bottom: 128px; white-space: normal; font-size: 17.5vw; }
  .hero-row { bottom: 30px; flex-direction: column; align-items: flex-start; gap: 16px; }
  .hero-row .sub { font-size: 10px; }
  .hero-side { top: auto; bottom: 34px; transform: none; }
  .film span { display: none; }
  .hero .bg img { object-position: 44% 22%; }

  .about-grid, .works-top, .ch-grid, .motion-top, .profile-grid, .collab-grid, .contact-grid { grid-template-columns: repeat(6, 1fr); }
  .about-lead { grid-column: 1 / -1; font-size: 9.4vw; }
  .about-ph { grid-column: 2 / -1; grid-row: auto; margin-top: 40px; }
  .about-ph-2 { grid-column: 1 / span 3; grid-row: auto; margin-top: -22vw; position: relative; z-index: 2; border: 6px solid var(--bg); }
  .about-text { grid-column: 1 / -1; grid-row: auto; margin-top: 36px; font-size: 16px; }
  .facts { grid-template-columns: 1fr 1fr; row-gap: 0; }

  .works-title { font-size: 19.5vw; }
  .works-sub p, .toc { grid-column: 1 / -1; }
  .toc { margin-top: 28px; }
  .chapter { padding-top: 100px; padding-bottom: 100px; }
  .chapter .t { font-size: 17vw; }
  .ch-split { font-size: 15.5vw; }
  .ch-gold .ch-title { grid-column: 1 / -1; grid-row: 1; margin-bottom: 18px; }
  .ch-gold .a { grid-column: 1 / -1; grid-row: 2; }
  .ch-gold .b { grid-column: 1 / span 3; grid-row: 3; align-self: start; }
  .ch-gold .c { grid-column: 4 / -1; grid-row: 3; align-self: start; }
  .ch-mono .a { grid-column: 1 / -1; grid-row: 1; aspect-ratio: 3 / 4; }
  .ch-mono .b { grid-column: 1 / span 3; grid-row: 2; }
  .ch-mono .c { grid-column: 4 / -1; grid-row: 2; }
  .ch-mono .note { grid-column: 1 / span 3; grid-row: 3; align-self: end; }
  .ch-mono .d { grid-column: 4 / -1; grid-row: 3; }
  .ch-beauty { padding-top: 100px; padding-bottom: 100px; }
  .ch-head-m { display: block; margin-bottom: 28px; }
  .ch-head-m .note { margin-top: 12px; }
  .hs-sticky { position: relative; height: auto; }
  .hs-track { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; transform: none !important; }
  .hs-track::-webkit-scrollbar { display: none; }
  .hs-intro, .hs-progress { display: none; }
  .hs-item { height: auto; width: 72vw; scroll-snap-align: center; }
  .city-word { font-size: 28vw; }
  .ch-city .a { grid-column: 1 / -1; grid-row: 1; aspect-ratio: 4 / 5; }
  .ch-city .b { grid-column: 1 / -1; grid-row: 2; }
  .ch-city .c { grid-column: 1 / span 3; grid-row: 3; }
  .ch-city .d { grid-column: 4 / -1; grid-row: 3; }
  .ch-city .note { grid-column: 1 / -1; grid-row: 4; }
  .statement { padding: 72px 0; }
  .st-track { font-size: 21vw; }

  .motion-top .sec-title, .motion-top p { grid-column: 1 / -1; }
  .filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: calc(var(--pad) * -1); margin-right: calc(var(--pad) * -1); padding: 0 var(--pad); }
  .filters button { white-space: nowrap; }
  .vgrid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .vcard.h { grid-column: 1 / -1; }
  .vcard.h .ph { aspect-ratio: 16 / 9; height: auto; min-height: 0; }

  .chap { grid-template-columns: 34px 1fr; padding: 22px 0; }
  .chap .t { font-size: 15vw; }
  .chap p { grid-column: 2; }
  .chap-img { display: block; grid-column: 2; width: 46%; aspect-ratio: 3 / 4; }
  .hover-img { display: none; }

  .digitals { grid-column: 1 / -1; }
  .comp { grid-column: 1 / -1; margin-top: 56px; }
  .collab-grid .intro, .dirs { grid-column: 1 / -1; }
  .dirs { margin-top: 40px; }
  .contact .big { grid-column: 1 / -1; font-size: 16vw; }
  .contact .ph { grid-column: 3 / -1; grid-row: 1; margin-bottom: 24px; }
  .contact-text { grid-column: 1 / -1; }
  .links { grid-template-columns: 1fr; }
  .links a + a { padding-left: 0; border-left: 0; }
  .lb figure { inset: 64px 12px 64px; }
  .lb-nav { top: auto; bottom: 10px; transform: none; width: 48px; height: 48px; }
  .player-stage { inset: 64px 0 64px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .rv, .js .rv-img > *, .js .lines .ln > span { opacity: 1; transform: none; clip-path: none; }
  .js .rv-img img { transform: none; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; }
}

/* ——— build additions ——— */
.vcard .ph, .vcard .meta { display: block; }
.menu .mark { font-size: 24px; letter-spacing: .06em; }
.burger { letter-spacing: .22em; }
.ph picture, .hero .bg picture { width: 100%; height: 100%; }
@media (min-width: 1025px) { .vgrid { grid-template-columns: repeat(4, 1fr); } }
.digitals .ph:first-child { grid-row: span 2; }
.digitals .ph:nth-child(2), .digitals .ph:nth-child(3) { aspect-ratio: 3 / 4; margin-top: 0; }
@media (max-width: 760px) { .menu nav a { font-size: 11.5vw; } }
.collab-title { font-size: clamp(72px, 11.5vw, 210px); margin-bottom: clamp(48px, 6vw, 100px); }
.collab-title em { font-style: italic; color: var(--accent); }
@media (max-width: 760px) { .collab-title { font-size: 14.5vw; } }
.ch-city, .works-top, .ch-mono { overflow-x: clip; }
