:root {
  --bg: #0a0a0a; --fg: #efeee9; --mute: #8f8e89; --line: rgba(239,238,233,.14); --alt: #141413; --gold: #c9a961;
  --pad: clamp(20px, 4vw, 56px);
  --serif: 'Bodoni Moda', Georgia, serif;
  --sans: 'Hanken Grotesk', -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --ease: cubic-bezier(.2,.8,.1,1);
}
[data-theme="light"] { --bg: #f2f1ec; --fg: #0a0a0a; --mute: #5e5d59; --line: rgba(10,10,10,.14); --alt: #e6e4dd; --gold: #a07f35; }

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--fg); font-family: var(--sans); font-weight: 300; overflow-x: hidden; transition: background .7s ease, color .7s ease; -webkit-font-smoothing: antialiased; }
body.lock { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
img { display: block; max-width: 100%; }
em, .italic { font-style: italic; }
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; }
.mute { color: var(--mute); }
.display { font-family: var(--serif); font-weight: 400; font-size: clamp(56px, 9vw, 144px); line-height: .9; letter-spacing: -.03em; }
/* title images (Canva font) used as masks so they follow the theme color */
.ttl { display: block; margin: 0; width: calc(var(--w) * clamp(.26px, .036vw, .62px)); max-width: 100%; background: currentColor; mask-repeat: no-repeat; -webkit-mask-repeat: no-repeat; mask-size: contain; -webkit-mask-size: contain; mask-position: left center; -webkit-mask-position: left center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.display-md { font-family: var(--serif); font-size: clamp(36px, 5.6vw, 88px); line-height: 1.02; letter-spacing: -.02em; }
.display-sm { font-family: var(--serif); font-size: clamp(24px, 2.6vw, 38px); line-height: 1.2; letter-spacing: -.01em; }

/* intro + grain */
.intro { position: fixed; inset: 0; z-index: 100; background: #0a0a0a; color: #efeee9; display: grid; place-items: center; transition: clip-path 1.1s cubic-bezier(.7,0,.2,1); clip-path: inset(0 0 0 0); }
.intro span { font-family: var(--serif); font-size: clamp(60px, 12vw, 160px); opacity: 0; animation: fadeUp 1s var(--ease) .1s forwards; }
.intro span img { display: block; height: clamp(70px, 11vw, 150px); width: auto; }
.intro.done { clip-path: inset(0 0 100% 0); }
.grain { position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .07; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); animation: grain 1s steps(4) infinite; }
@keyframes grain { 0%{transform:translate(0,0)} 25%{transform:translate(-3%,2%)} 50%{transform:translate(2%,-3%)} 75%{transform:translate(-2%,-1%)} 100%{transform:translate(0,0)} }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* header */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 40; mix-blend-mode: difference; color: #fff; padding: 26px var(--pad); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.logo { font-family: var(--serif); font-size: 15px; letter-spacing: .32em; text-transform: uppercase; }
.langs { position: fixed; top: 25px; left: 50%; transform: translateX(-50%); z-index: 41; display: flex; }
.langs button { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; padding: 6px 8px; opacity: .4; transition: opacity .3s; color: #fff; }
.langs button.on { opacity: 1; }
.langs button svg { display: block; width: 20px; height: 14px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255,255,255,.25); }
.langs button:not(.on):hover { opacity: .8; }
.header-right { justify-self: end; display: flex; align-items: center; gap: clamp(16px, 2.5vw, 32px); }
.theme-toggle, .menu-btn { display: flex; align-items: center; gap: 10px; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: #fff; }
.knob { width: 22px; height: 11px; border: 1px solid #fff; border-radius: 11px; position: relative; }
.knob span { position: absolute; top: 1px; left: 1px; width: 7px; height: 7px; border-radius: 50%; background: #fff; transition: left .4s cubic-bezier(.6,0,.2,1); }
[data-theme="light"] .knob span { left: 12px; }
.burger { display: flex; flex-direction: column; gap: 4px; }
.burger i { display: block; width: 18px; height: 1px; background: #fff; }
.burger i + i { width: 12px; align-self: flex-end; }

/* menu */
.menu { position: fixed; inset: 0; z-index: 60; background: var(--bg); color: var(--fg); display: flex; flex-direction: column; padding: 26px var(--pad); clip-path: inset(0 0 100% 0); transition: clip-path .9s cubic-bezier(.7,0,.2,1); pointer-events: none; }
.menu.open { clip-path: inset(0 0 0 0); pointer-events: auto; }
.menu-top { display: flex; justify-content: space-between; align-items: center; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; }
.menu-nav { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.menu-nav a { display: flex; align-items: baseline; gap: clamp(16px, 3vw, 40px); border-bottom: 1px solid var(--line); padding: clamp(8px, 1.4vw, 18px) 0; overflow: hidden; transition: padding .5s var(--ease); }
.menu-nav a:hover { padding-left: 32px; font-style: italic; }
.menu-nav .num { font-family: var(--mono); font-size: 11px; color: var(--mute); width: 28px; }
.menu-nav .big { font-family: var(--serif); font-size: clamp(44px, 8vw, 112px); line-height: 1; letter-spacing: -.02em; display: inline-block; transform: translateY(110%); transition: transform 1s var(--ease); }
.menu.open .big { transform: none; }
.menu.open a:nth-child(2) .big { transition-delay: .07s; } .menu.open a:nth-child(3) .big { transition-delay: .14s; } .menu.open a:nth-child(4) .big { transition-delay: .21s; }
.menu-foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--mute); }

/* hero */
.hero { position: relative; height: 100vh; min-height: 640px; overflow: hidden; color: #fff; background: #0a0a0a; }
.hero-img { position: absolute; inset: -6% 0; will-change: transform; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.08) brightness(.82); transform: scale(1.15); transition: transform 3.2s cubic-bezier(.2,.7,.1,1); }
.loaded .hero-img img { transform: scale(1); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.6), rgba(0,0,0,0) 55%); }
.hero-inner { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 110px var(--pad) 36px; }
.hero-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; letter-spacing: .2em; opacity: 0; transition: opacity 1.2s ease 1s; }
.hero-title { margin-bottom: clamp(32px, 5vw, 72px); }
.hero-title .line { display: flex; overflow: hidden; }
.hero-title .right { justify-content: flex-end; margin-top: clamp(12px, 2.5vw, 40px); }
.hero-title img { display: block; height: clamp(40px, 11vw, 180px); width: auto; max-width: 100%; object-fit: contain; transform: translateY(105%); transition: transform 1.5s var(--ease) .4s; }
.hero-title .right img { transition-delay: .65s; }
.loaded .hero-title img { transform: none; }
.hero-foot { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; opacity: 0; transition: opacity 1.2s ease 1.3s; }
.loaded .hero-meta, .loaded .hero-foot { opacity: 1; }
.hero-foot p { max-width: 360px; font-size: 15px; line-height: 1.65; }
.scroll-cue { display: flex; align-items: center; gap: 16px; letter-spacing: .2em; }
.scroll-cue i { width: 1px; height: 44px; background: #fff; animation: pulse 2.2s ease-in-out infinite; transform-origin: top; }
@keyframes pulse { 0%,100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }

/* marquee */
.marquee { border-bottom: 1px solid var(--line); overflow: hidden; padding: 26px 0; }
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; font-family: var(--serif); font-size: clamp(28px, 4vw, 56px); white-space: nowrap; }
.marquee-track { align-items: center; }
.marquee-track .mq { display: block; height: clamp(30px, 4.2vw, 60px); margin: 0 .6em; background: currentColor; mask-repeat: no-repeat; -webkit-mask-repeat: no-repeat; mask-size: contain; -webkit-mask-size: contain; mask-position: center; -webkit-mask-position: center; }
.marquee-track b { font-weight: 400; color: var(--gold); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* sections */
.section { padding: clamp(96px, 12vw, 180px) var(--pad); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(56px, 7vw, 104px); }
.section-head > div:first-child, .book-head, .charcoal-intro, .about-text { display: flex; flex-direction: column; gap: 20px; }
.filters { display: flex; gap: clamp(14px, 2vw, 28px); flex-wrap: wrap; }
.filters button { border-bottom: 1px solid transparent; padding: 6px 0; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; opacity: .45; transition: opacity .3s, border-color .3s; }
.filters button.on { opacity: 1; border-color: var(--fg); }
.filters sup { font-family: var(--mono); font-size: 9px; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 2vw, 32px); row-gap: clamp(40px, 6vw, 96px); }
.gallery figure { display: flex; flex-direction: column; gap: 14px; cursor: none; }
.gallery figure.hide { display: none; }
.gallery .frame { position: relative; overflow: hidden; background: var(--alt); }
.gallery .frame img { width: 100%; height: 118%; object-fit: cover; filter: grayscale(1); transition: transform 1.4s cubic-bezier(.2,.7,.2,1), filter 1s; will-change: transform; position: absolute; top: -9%; left: 0; }
.gallery figure:hover .frame img { filter: grayscale(1) contrast(1.15); scale: 1.06; }
.gallery figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.gallery figcaption .n { font-family: var(--serif); font-style: italic; font-size: 20px; }
.credits { margin-top: 64px; font-size: 9px; letter-spacing: .12em; line-height: 1.8; text-transform: none; }
.credits a { text-decoration: underline; text-underline-offset: 2px; }

/* statement */
.statement { padding: clamp(80px, 10vw, 160px) var(--pad); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.charcoal-cta .ttl { width: calc(var(--w) * clamp(.268px, .0575vw, .92px)); } /* same letter size as .statement (cap 70px vs 58px in the Canva exports) */
.about-text .ttl { width: calc(var(--w) / 1654 * 100%); } /* same letter size in every language; PT is the widest */
.statement .ttl { width: calc(var(--w) * clamp(.324px, .0694vw, 1.11px)); }

/* charcoal */
.charcoal { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.charcoal-intro p { max-width: 340px; line-height: 1.65; }
.track { display: flex; gap: clamp(16px, 2vw, 32px); overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; cursor: grab; padding-bottom: 8px; margin-right: calc(-1 * var(--pad)); padding-right: var(--pad); }
.track::-webkit-scrollbar { display: none; }
.track.drag { cursor: grabbing; scroll-snap-type: none; }
.track figure { flex: none; scroll-snap-align: start; display: flex; flex-direction: column; gap: 12px; }
.track figure:nth-child(3n+2) { margin-top: 64px; } .track figure:nth-child(3n) { margin-top: 24px; }
.track .frame { overflow: hidden; background: var(--alt); height: clamp(360px, 46vw, 640px); }
.track img { height: 100%; width: auto; filter: grayscale(1); pointer-events: none; user-select: none; }
.track figcaption { display: flex; justify-content: space-between; gap: 12px; }
.charcoal-cta { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 40px; margin-top: 24px; }
.pill { display: inline-flex; align-items: center; gap: 18px; border: 1px solid var(--fg); border-radius: 999px; padding: 18px 30px; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; transition: gap .4s var(--ease), background .3s, color .3s; }
.pill:hover { gap: 34px; }
.pill.solid { background: var(--fg); color: var(--bg); }

/* about */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 120px); align-items: center; border-top: 1px solid var(--line); }
.about-img { aspect-ratio: 4/5; overflow: hidden; }
.about-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 32px; margin-top: 16px; }
.facts div { border-top: 1px solid var(--line); padding-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.facts dt { font-family: var(--mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); }
.facts dd { font-family: var(--serif); font-size: 20px; }
.facts dd.ttl { width: calc(var(--w) * .36px); max-width: 100%; } /* Canva export, same size for every fact */

/* book */
.book { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 120px); border-top: 1px solid var(--line); }
.book-head p { max-width: 340px; line-height: 1.65; }
.book-form { display: flex; flex-direction: column; gap: 40px; }
.field { display: grid; grid-template-columns: 120px 1fr; align-items: baseline; gap: 16px; border-bottom: 1px solid var(--line); padding: 22px 0; transition: border-color .3s; }
.field:focus-within { border-color: var(--fg); }
.field label { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); }
.field input { background: transparent; border: none; outline: none; color: var(--fg); font-family: var(--serif); font-size: 22px; width: 100%; }
.field input::placeholder { color: transparent; }
.field .inp { position: relative; display: block; }
.field .ph { position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: calc(var(--w) * .36px); max-width: 100%; pointer-events: none;
  background: var(--mute); opacity: .6; mask-repeat: no-repeat; mask-size: contain; mask-position: left center;
  -webkit-mask-repeat: no-repeat; -webkit-mask-size: contain; -webkit-mask-position: left center; }
.field input:not(:placeholder-shown) + .ph { display: none; }
.book-form .pill { align-self: flex-start; }
.thanks { display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.thanks[hidden] { display: none; }

/* footer */
.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding: 40px var(--pad); border-top: 1px solid var(--line); color: var(--mute); }
.footer a:hover { color: var(--fg); }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 70; background: rgba(6,6,6,.97); color: #efeee9; display: flex; flex-direction: column; padding: 26px var(--pad); animation: fade .45s ease both; }
.lightbox[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.lb-top { display: flex; justify-content: space-between; }
.lb-body { flex: 1; display: flex; align-items: center; justify-content: center; gap: 24px; min-height: 0; padding: 24px 0; }
.lb-body img { max-width: min(100%, 1100px); max-height: 100%; object-fit: contain; filter: grayscale(1); min-width: 0; }
.lb-arrow { border: 1px solid rgba(239,238,233,.3); border-radius: 50%; width: 52px; height: 52px; flex: none; font-size: 16px; color: #efeee9; }
.lb-cap { text-align: center; font-family: var(--serif); font-style: italic; font-size: 22px; }

/* cursor */
.cursor { position: fixed; top: 0; left: 0; z-index: 80; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; background: var(--fg); color: var(--bg); display: grid; place-items: center; font-family: var(--mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; pointer-events: none; transform: scale(0); transition: transform .35s var(--ease); }
.cursor.on { transform: scale(1); }

/* reveal */
[data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity 1.1s ease, transform 1.1s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }

@media (max-width: 760px) {
  .header { grid-template-columns: auto 1fr; padding: 20px 16px; }
  .langs, .header > span { display: none; }
  .theme-toggle > span:last-child { display: none; }
  .gallery figure { grid-column: 1 / -1 !important; margin-top: 0 !important; }
  .gallery .frame { aspect-ratio: 4/5 !important; }
  .charcoal, .about, .book { grid-template-columns: 1fr; }
  .track figure { margin-top: 0 !important; }
  .track .frame { height: 420px; }
  .field { grid-template-columns: 1fr; gap: 8px; }
  .facts { grid-template-columns: 1fr; }
  .gallery figure, .track figure { cursor: pointer; }
  .cursor { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
