/* =============================================================
   CavalliVarese — design system
   "Lake-country riding journal": paper, lake-ink, saddle red.
   ============================================================= */
:root {
  --paper: #f4efe5;
  --paper-2: #ebe3d3;
  --paper-3: #e2d8c4;
  --card: #fbf8f2;
  --ink: #18221f;
  --ink-2: #3c4844;
  --ink-3: #6b746f;
  --lake: #23414a;
  --lake-2: #2f5661;
  --moss: #55603c;
  --red: #c8241c;
  --red-deep: #9e1a14;
  --gold: #b88a3e;
  --line: rgba(24, 34, 31, .14);
  --line-2: rgba(24, 34, 31, .08);

  --f-display: 'Fraunces', 'Times New Roman', serif;
  --f-body: 'Figtree', 'Helvetica Neue', sans-serif;
  --f-mono: 'DM Mono', ui-monospace, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --radius: 4px;
  --radius-l: 14px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 18px 40px -24px rgba(24, 34, 31, .35);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f-body); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* paper grain: painted once as a background (no full-screen blend layer) */
body { 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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.3  0 0 0 0 0.25  0 0 0 0 0.2  0 0 0 .035 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 200; background: var(--ink); color: var(--paper); padding: 10px 16px; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 760px; }

/* ---------- type ---------- */
.display, h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 400; letter-spacing: -.01em; line-height: 1.08; margin: 0; font-variation-settings: 'SOFT' 50, 'WONK' 0; }
h1 { font-size: clamp(2.6rem, 6.2vw, 5.4rem); font-weight: 350; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
em, .it { font-style: italic; font-variation-settings: 'SOFT' 100, 'WONK' 1; }
p { margin: 0 0 1.1em; }
.kicker { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); display: inline-flex; align-items: center; gap: .7em; }
.kicker::before { content: ''; width: 22px; height: 1px; background: currentColor; }
.kicker.red { color: var(--red); }
.lead { font-family: var(--f-display); font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.35; color: var(--ink-2); font-weight: 350; }
.muted { color: var(--ink-3); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: .6em; padding: .82em 1.35em; border-radius: 999px; border: 1px solid var(--ink); background: transparent; text-decoration: none; font-weight: 600; font-size: .92rem; letter-spacing: .01em; transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease); white-space: nowrap; }
.btn:hover { background: var(--ink); color: var(--paper); }
.btn.solid { background: var(--red); border-color: var(--red); color: #fff; }
.btn.solid:hover { background: var(--red-deep); border-color: var(--red-deep); }
.btn.light { border-color: rgba(255,255,255,.7); color: #fff; }
.btn.light:hover { background: #fff; color: var(--ink); }
.btn.sm { padding: .55em 1em; font-size: .84rem; }
.btn svg { width: 1.05em; height: 1.05em; flex: none; }
.arrow-link { white-space: nowrap; display: inline-flex; gap: .5em; align-items: center; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 2px; transition: border-color .2s, gap .25s var(--ease); }
.arrow-link:hover { border-color: var(--red); gap: .8em; }

/* ---------- top bar ---------- */
.topbar { background: var(--ink); color: rgba(244,239,229,.82); font-size: .78rem; letter-spacing: .06em; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 38px; gap: 16px; }
.topbar a { text-decoration: none; opacity: .85; }
.topbar a:hover { opacity: 1; color: #fff; }
.topbar .tb-left, .topbar .tb-right { display: flex; align-items: center; gap: 20px; }
.lang-switch { display: flex; gap: 2px; background: rgba(255,255,255,.07); border-radius: 999px; padding: 3px; }
.lang-switch a { padding: 2px 10px; border-radius: 999px; font-family: var(--f-mono); font-size: .72rem; }
.lang-switch a[aria-current="true"] { background: var(--paper); color: var(--ink); opacity: 1; }
.social { display: flex; gap: 12px; }
.social svg { width: 16px; height: 16px; fill: currentColor; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(244, 239, 229, .97); border-bottom: 1px solid var(--line-2); transition: box-shadow .3s; }
.site-header.scrolled { box-shadow: 0 10px 30px -20px rgba(0,0,0,.25); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 84px; gap: 24px; }
.logo { display: block; flex: none; }
.logo img { height: 52px; width: auto; }
.main-nav { display: flex; align-items: stretch; height: 100%; }
.main-nav > .ni { position: static; display: flex; }
.main-nav > .ni > a { display: flex; flex-direction: column; justify-content: center; padding: 0 18px; text-decoration: none; position: relative; }
.main-nav .lbl { font-weight: 600; font-size: .95rem; }
.main-nav .tg { font-family: var(--f-display); font-style: italic; font-size: .82rem; color: var(--ink-3); line-height: 1.2; }
.main-nav > .ni > a::after { content: ''; position: absolute; left: 18px; right: 18px; bottom: 18px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.main-nav > .ni:hover > a::after, .main-nav > .ni > a[aria-current="page"]::after, .main-nav > .ni.open > a::after { transform: scaleX(1); }
.hdr-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn { width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); background: transparent; display: grid; place-items: center; transition: background .2s, border-color .2s; }
.icon-btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; }
.burger { display: none; }

/* mega menu */
.mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--card); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(24,34,31,.35); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .25s, transform .3s var(--ease), visibility .25s; }
.ni.open .mega, .ni:focus-within .mega { opacity: 1; visibility: visible; transform: none; }
.mega .wrap { height: auto; display: grid; grid-template-columns: 1.1fr 2fr; gap: 48px; padding-block: 36px 40px; align-items: start; }
.mega-intro h3 { font-size: 2rem; margin: 10px 0 12px; }
.mega-intro p { color: var(--ink-3); margin: 0; }
.mega-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 32px; }
.mega-links a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-2); text-decoration: none; font-weight: 500; transition: color .2s, padding .3s var(--ease); }
.mega-links a:hover { color: var(--red); padding-left: 6px; }
.mega-links a .n { font-family: var(--f-mono); font-size: .7rem; color: var(--ink-3); }
.mega-links a.soon { color: var(--ink-3); pointer-events: none; }
.mega-links a.soon .n::after { content: ' ·'; }

/* mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 90; background: var(--ink); color: var(--paper); transform: translateX(100%); transition: transform .45s var(--ease); overflow-y: auto; padding: 22px var(--gutter) 60px; visibility: hidden; }
.drawer.open { transform: none; visibility: visible; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.drawer .icon-btn { border-color: rgba(255,255,255,.25); color: var(--paper); }
.drawer details { border-bottom: 1px solid rgba(255,255,255,.12); }
.drawer summary { list-style: none; display: flex; justify-content: space-between; align-items: baseline; padding: 18px 0; cursor: pointer; font-family: var(--f-display); font-size: 1.7rem; }
.drawer summary::-webkit-details-marker { display: none; }
.drawer summary small { font-style: italic; font-size: .9rem; opacity: .6; }
.drawer details a { display: block; padding: 9px 0 9px 14px; text-decoration: none; opacity: .85; border-left: 1px solid rgba(255,255,255,.18); }
.drawer details[open] summary { color: #ff8d86; }
.drawer details > div { padding-bottom: 18px; }
.drawer .lang-switch { margin-top: 28px; display: inline-flex; }

/* ---------- hero (home) ---------- */
.hero { position: relative; min-height: min(92vh, 860px); color: #fff; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; background: var(--lake); }
.hero-slides { position: absolute; inset: 0; z-index: -2; }
.hero-slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.6s ease; transform: scale(1.08); }
.hero-slides img.on { opacity: 1; animation: kb 12s linear forwards; will-change: transform; }
@keyframes kb { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14,24,26,.25) 0%, rgba(14,24,26,0) 30%, rgba(14,24,26,.25) 55%, rgba(12,20,22,.86) 100%); }
.hero .wrap { padding-bottom: clamp(36px, 7vh, 80px); padding-top: 140px; }
.hero h1 { max-width: 15ch; text-wrap: balance; text-shadow: 0 2px 30px rgba(0,0,0,.25); }
.hero h1 em { color: #ffd9c9; }
.hero .hero-sub { max-width: 58ch; margin-top: 22px; font-size: clamp(1rem, 1.4vw, 1.18rem); opacity: .9; text-wrap: pretty; }
.hero .kicker { color: rgba(255,255,255,.8); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; }
.hero-dots { display: flex; gap: 8px; }
.hero-dots button { width: 36px; height: 3px; border: 0; padding: 0; background: rgba(255,255,255,.35); border-radius: 2px; overflow: hidden; position: relative; }
.hero-dots button.on::after { content: ''; position: absolute; inset: 0; background: #fff; animation: bar 7s linear forwards; transform-origin: left; }
@keyframes bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero .reveal-up { opacity: 0; transform: translateY(24px); animation: up 1s var(--ease) forwards; }
.hero .d1 { animation-delay: .15s; } .hero .d2 { animation-delay: .35s; } .hero .d3 { animation-delay: .55s; } .hero .d4 { animation-delay: .75s; }
@keyframes up { to { opacity: 1; transform: none; } }

/* ---------- sections ---------- */
.section { padding-block: clamp(64px, 10vw, 128px); position: relative; }
.section.tight { padding-block: clamp(44px, 6vw, 80px); }
.section.alt { background: var(--paper-2); }
.section.dark { background: var(--ink); color: var(--paper); }
.section.dark .kicker { color: rgba(244,239,229,.6); }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: clamp(32px, 5vw, 56px); flex-wrap: wrap; }
.sec-head h2 { max-width: 18ch; margin-top: 14px; }
.contours { position: absolute; inset: 0; pointer-events: none; opacity: .5; overflow: hidden; }
.contours svg { position: absolute; right: -10%; top: -10%; width: 70%; height: auto; }

/* discipline cards */
.disc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.disc { position: relative; aspect-ratio: 3/4.3; border-radius: var(--radius-l); overflow: hidden; color: #fff; text-decoration: none; isolation: isolate; display: flex; flex-direction: column; justify-content: space-between; padding: 22px; }
.disc img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.disc::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.05) 30%, rgba(10,16,18,.78)); transition: background .4s; }
.disc:hover img { transform: scale(1.07); }
.disc:hover::after { background: linear-gradient(180deg, rgba(200,36,28,.05) 10%, rgba(120,18,12,.82)); }
.disc .num { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .1em; opacity: .85; }
.disc h3 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); }
.disc .cnt { font-size: .85rem; opacity: .8; margin-top: 6px; display: flex; align-items: center; gap: 8px; }
.disc .go { position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; border-radius: 999px; border: 1px solid rgba(255,255,255,.5); display: grid; place-items: center; transition: background .3s, transform .4s var(--ease); }
.disc:hover .go { background: #fff; color: var(--ink); transform: rotate(-45deg); }
.disc .go svg { width: 16px; height: 16px; }

/* proposals band */
.proposals { background: var(--red); color: #fff; position: relative; overflow: hidden; }
.proposals .wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: 40px; align-items: center; padding-block: 44px; }
.proposals h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
.prop-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.prop { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 10px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); text-decoration: none; transition: background .25s, transform .3s var(--ease); }
.prop:hover { background: #fff; color: var(--red-deep); transform: translateY(-2px); }
.prop .flag { width: 34px; height: 24px; border-radius: 3px; overflow: hidden; flex: none; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.prop .flag svg { width: 100%; height: 100%; display: block; }
.prop b { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; opacity: .75; display: block; font-weight: 400; }
.prop span { font-weight: 600; line-height: 1.3; font-size: .95rem; }

/* sector bento */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 210px; gap: 14px; }
.tile { position: relative; border-radius: var(--radius-l); overflow: hidden; text-decoration: none; color: #fff; isolation: isolate; padding: 20px 22px; display: flex; flex-direction: column; justify-content: flex-end; background: var(--lake); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: scale 1.1s var(--ease), filter .4s; }
.tile::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 35%, rgba(10,16,18,.8)); }
.tile:hover img { scale: 1.23; }
.tile h3 { font-size: clamp(1.25rem, 2vw, 1.7rem); }
.tile .k { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; opacity: .75; margin-bottom: 6px; }
.tile.soon { pointer-events: none; }
.tile.soon img { filter: grayscale(.9) brightness(.7); }
.tile.soon .badge { position: absolute; top: 16px; left: 16px; }
.t-a { grid-column: span 7; grid-row: span 2; } .t-b { grid-column: span 5; } .t-c { grid-column: span 5; }
.t-d { grid-column: span 4; } .t-e { grid-column: span 4; } .t-f { grid-column: span 4; }
.t-g { grid-column: span 6; } .t-h { grid-column: span 6; }

.badge { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: var(--paper); color: var(--ink-2); border: 1px solid var(--line); }
.badge.red { background: var(--red); color: #fff; border-color: var(--red); }
.badge.ghost { background: transparent; }
.badge.warn { background: #f6e7c7; color: #6b4a12; border-color: #e7cf9d; }

/* split / about teaser */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.split .media { position: relative; }
.split .media img { border-radius: var(--radius-l); width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.split .media .stamp { position: absolute; right: -18px; bottom: 28px; background: var(--card); color: var(--ink); padding: 18px 22px; border-radius: 12px; box-shadow: var(--shadow); max-width: 240px; }
.stamp .big { font-family: var(--f-display); font-size: 2.6rem; line-height: 1; color: var(--red); }

/* events teaser */
.ev-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.ev { display: grid; grid-template-columns: 140px 1fr auto; gap: 24px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); text-decoration: none; transition: padding .3s var(--ease), background .3s; }
.ev:hover { padding-inline: 12px; background: var(--card); }
.ev .when { font-family: var(--f-mono); font-size: .78rem; color: var(--ink-3); letter-spacing: .04em; }
.ev h3 { font-size: 1.45rem; }
.ev .where { color: var(--ink-3); font-size: .95rem; }

.video-card { display: grid; grid-template-columns: 1.2fr 1fr; border-radius: var(--radius-l); overflow: hidden; background: var(--card); box-shadow: var(--shadow); text-decoration: none; }
.video-card .vthumb { position: relative; min-height: 280px; }
.video-card .vthumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-card .play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 74px; height: 74px; border-radius: 999px; background: var(--red); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 40px rgba(200,36,28,.5); transition: transform .3s var(--ease); }
.video-card:hover .play { transform: scale(1.08); }
.video-card .play svg { width: 26px; height: 26px; margin-left: 4px; }
.video-card .vbody { padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.video-card h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); }

.logos-strip { display: flex; flex-direction: column; align-items: center; gap: 14px; padding-block: 44px; border-top: 1px solid var(--line); }
.logos-strip img { max-width: 600px; width: 100%; mix-blend-mode: multiply; }

/* ---------- page header ---------- */
.page-hero { position: relative; color: #fff; isolation: isolate; overflow: hidden; background: var(--lake); }
.page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; animation: kb 14s linear forwards; }
.page-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(12,20,22,.86) 0%, rgba(12,20,22,.55) 55%, rgba(12,20,22,.2) 100%); }
.page-hero .wrap { padding-block: clamp(70px, 11vw, 140px) clamp(40px, 6vw, 72px); }
.page-hero h1 { max-width: 16ch; font-size: clamp(2.4rem, 5.5vw, 4.6rem); }
.page-hero .lead { color: rgba(255,255,255,.88); max-width: 46ch; margin-top: 18px; }
.page-hero.plain { background: var(--paper-2); color: var(--ink); }
.page-hero.plain::after { display: none; }
.page-hero.plain .lead { color: var(--ink-2); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 22px; opacity: .8; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span[aria-hidden] { opacity: .5; }

.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: 10px; background: #f6e7c7; color: #5d400f; border: 1px solid #e7cf9d; font-size: .92rem; margin-bottom: 28px; }
.notice svg { width: 18px; height: 18px; flex: none; margin-top: 3px; }

/* subnav pills */
.subnav { position: sticky; top: 84px; z-index: 20; background: rgba(244, 239, 229, .97); border-bottom: 1px solid var(--line-2); }
.subnav .wrap { display: flex; gap: 8px; overflow-x: auto; padding-block: 12px; scrollbar-width: none; }
.subnav .wrap::-webkit-scrollbar { display: none; }
.pill { flex: none; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-size: .9rem; font-weight: 500; background: transparent; transition: all .2s; white-space: nowrap; }
.pill:hover { border-color: var(--ink); }
.pill[aria-current="page"], .pill.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pill .c { font-family: var(--f-mono); font-size: .72rem; opacity: .6; margin-left: 6px; }

/* ---------- partner cards ---------- */
.p-list { display: grid; gap: 22px; }
.pcard { position: relative; display: grid; grid-template-columns: minmax(240px, 380px) 1fr; background: var(--card); border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line-2); }
.pcard .ph { position: relative; min-height: 260px; background: var(--paper-3); }
.pcard .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pcard .ph .idx { position: absolute; top: 14px; left: 14px; font-family: var(--f-mono); font-size: .72rem; background: rgba(24,34,31,.78); color: #fff; padding: 4px 9px; border-radius: 999px; }
.pcard .pb { padding: clamp(22px, 3vw, 34px); display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.pcard h3 { font-size: clamp(1.5rem, 2.3vw, 2rem); }
.pcard h3 a { text-decoration: none; }
.pcard h3 a:hover { color: var(--red); }
.pcard .aka { font-size: .82rem; color: var(--ink-3); margin-top: 4px; }
.pcard .addr { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); font-size: .95rem; }
.pcard .addr svg { width: 16px; height: 16px; flex: none; margin-top: 4px; color: var(--red); }
.pcard .desc { color: var(--ink-2); font-size: .98rem; position: relative; }
.pcard .desc.clamp p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pcard .desc p { margin: 0; }
.more-btn { background: none; border: 0; padding: 0; font-weight: 600; font-size: .88rem; color: var(--red); margin-top: 6px; text-decoration: underline; text-underline-offset: 3px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 6px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: .76rem; padding: 3px 10px; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); text-decoration: none; border: 1px solid transparent; }
.tag:hover { border-color: var(--ink-3); }
.lang-note { display: inline-flex; gap: 6px; align-items: center; font-family: var(--f-mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.lang-note::before { content: 'IT'; font-weight: 500; background: var(--paper-2); padding: 1px 6px; border-radius: 3px; color: var(--ink-2); }

/* directory grid */
.dir-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 30px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.search-input { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 999px; padding: 0 16px; background: var(--card); min-width: min(320px, 100%); }
.search-input svg { width: 16px; height: 16px; color: var(--ink-3); flex: none; }
.search-input input { border: 0; background: transparent; padding: 12px 0; font: inherit; width: 100%; outline: none; color: var(--ink); }
.dir-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.dcard { background: var(--card); border-radius: var(--radius-l); overflow: hidden; border: 1px solid var(--line-2); box-shadow: var(--shadow); display: flex; flex-direction: column; text-decoration: none; transition: transform .35s var(--ease); }
.dcard:hover { transform: translateY(-4px); }
.dcard .ph { aspect-ratio: 16/10; background: var(--paper-3); position: relative; overflow: hidden; }
.dcard .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.dcard:hover .ph img { transform: scale(1.05); }
.dcard .ph.empty { display: grid; place-items: center; color: var(--ink-3); font-family: var(--f-display); font-size: 3rem; font-style: italic; background: repeating-linear-gradient(45deg, var(--paper-2), var(--paper-2) 10px, var(--paper-3) 10px, var(--paper-3) 11px); }
.dcard .db { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.dcard h3 { font-size: 1.35rem; }
.dcard .town { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--red); }

/* partner detail */
.pd-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.pd-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.pd-gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; }
.pd-gallery img:first-child { grid-column: 1 / -1; aspect-ratio: 16/9; }
.side-card { background: var(--card); border-radius: var(--radius-l); padding: 26px; border: 1px solid var(--line-2); box-shadow: var(--shadow); position: sticky; top: 110px; display: flex; flex-direction: column; gap: 16px; }
.side-card dl { margin: 0; display: grid; gap: 14px; }
.side-card dt { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.side-card dd { margin: 2px 0 0; }
.side-card dd a { text-decoration: none; border-bottom: 1px solid var(--line); }
.side-card dd a:hover { border-color: var(--red); color: var(--red); }

/* ---------- long-form ---------- */
.longform { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.toc { position: sticky; top: 120px; font-size: .9rem; }
.toc .kicker { margin-bottom: 14px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 7px 0 7px 16px; text-decoration: none; color: var(--ink-3); margin-left: -1px; border-left: 2px solid transparent; transition: color .2s, border-color .2s; line-height: 1.35; }
.toc a:hover { color: var(--ink); }
.toc a.on { color: var(--ink); border-color: var(--red); font-weight: 600; }
.prose { max-width: 72ch; }
.prose > section { padding-top: 12px; margin-bottom: clamp(48px, 7vw, 88px); }
.prose h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); margin-bottom: 22px; display: flex; gap: 16px; align-items: baseline; }
.prose h2 .sn { font-family: var(--f-mono); font-size: .8rem; color: var(--red); letter-spacing: .08em; }
.prose h3 { margin: 32px 0 12px; font-size: 1.5rem; font-style: italic; }
.prose p { color: var(--ink-2); }
.prose ul, .prose ol { padding-left: 1.2em; color: var(--ink-2); }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--red); }
.prose .figure { margin: 28px 0; }
.prose .figure img { border-radius: 12px; cursor: zoom-in; }
.intro-cols { columns: 2 340px; column-gap: 48px; color: var(--ink-2); }
.intro-cols p:first-child::first-letter { font-family: var(--f-display); float: left; font-size: 4.4rem; line-height: .82; padding: 6px 10px 0 0; color: var(--red); }

.pillars { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.pillars span { padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.4); font-family: var(--f-display); font-style: italic; font-size: 1.05rem; }
.page-hero.plain .pillars span { border-color: var(--line); }

.route { position: relative; margin: 30px 0 10px; padding: 26px 0 8px; overflow-x: auto; }
.route ol { list-style: none; padding: 0 0 6px; margin: 0; display: flex; gap: 0; min-width: max-content; position: relative; }
.route ol::before { content: ''; position: absolute; left: 10px; right: 10px; top: 9px; height: 2px; background: repeating-linear-gradient(90deg, var(--moss) 0 8px, transparent 8px 14px); }
.route li { position: relative; padding: 28px 18px 0 0; margin: 0; font-size: .85rem; color: var(--ink-2); min-width: 96px; }
.route li::before { content: ''; position: absolute; left: 4px; top: 3px; width: 14px; height: 14px; border-radius: 999px; background: var(--paper); border: 2px solid var(--moss); }
.route li:first-child::before, .route li:last-child::before { background: var(--red); border-color: var(--red); }
.route li::marker { content: ''; }

.rings { display: grid; gap: 14px; margin: 18px 0; padding: 0; list-style: none; }
.rings li { display: grid; grid-template-columns: 64px 1fr; gap: 18px; align-items: start; background: var(--card); border: 1px solid var(--line-2); border-radius: 12px; padding: 20px; margin: 0; }
.rings .ring { width: 56px; height: 56px; border-radius: 999px; border: 2px dashed var(--moss); display: grid; place-items: center; font-family: var(--f-display); font-size: 1.5rem; color: var(--moss); }
.rings li::marker { content: ''; }
.rings p { margin: 0; }
.rings b { color: var(--ink); }

.chiplist { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; list-style: none; padding: 0 !important; margin: 18px 0; }
.chiplist li { padding: 14px 16px; border-radius: 10px; background: var(--paper-2); display: flex; gap: 10px; align-items: center; margin: 0; }
.chiplist li::before { content: '↗'; color: var(--moss); font-weight: 700; }

.items { display: grid; gap: 0; border-top: 1px solid var(--line); }
.item { display: grid; grid-template-columns: 220px 1fr; gap: 28px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.item h4 { font-family: var(--f-display); font-size: 1.35rem; font-weight: 400; line-height: 1.2; }
.item p:last-child { margin-bottom: 0; }
.item .ext { font-size: .88rem; }

.defs { display: grid; gap: 12px; margin: 22px 0; }
.defs div { padding: 18px 20px; background: var(--card); border-radius: 12px; border-left: 3px solid var(--moss); }
.defs dt { font-family: var(--f-display); font-size: 1.2rem; margin-bottom: 4px; }
.defs dd { margin: 0; color: var(--ink-2); }

.liberty { columns: 2 280px; column-gap: 28px; list-style: none; padding: 0 !important; counter-reset: lib; margin: 22px 0; }
.liberty li { break-inside: avoid; padding: 10px 0 10px 44px; border-bottom: 1px dotted var(--line); position: relative; counter-increment: lib; margin: 0; }
.liberty li::before { content: counter(lib, decimal-leading-zero); position: absolute; left: 0; top: 11px; font-family: var(--f-mono); font-size: .74rem; color: var(--red); }

.years { display: flex; gap: 0; margin: 26px 0; border-top: 1px solid var(--line); overflow-x: auto; }
.years div { flex: 1; min-width: 110px; padding: 14px 14px 0 0; border-right: 1px dotted var(--line); }
.years b { display: block; font-family: var(--f-display); font-size: 1.9rem; font-weight: 400; color: var(--red); line-height: 1; }
.years span { font-size: .8rem; color: var(--ink-3); }

.infobox { padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin: 10px 0 30px; }
.stats div { background: var(--card); padding: 22px; }
.stats b { display: block; font-family: var(--f-display); font-weight: 350; font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1; color: var(--red); }
.stats span { color: var(--ink-3); font-size: .9rem; }

.members { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin: 10px 0; padding: 0 !important; list-style: none; }
.members li { margin: 0; background: var(--card); border: 1px solid var(--line-2); border-radius: 12px; padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.members li::marker { content: ''; }
.members .mn { font-family: var(--f-display); font-size: 1.2rem; line-height: 1.2; text-decoration: none; }
.members .mn:hover { color: var(--red); }
.members p { font-size: .92rem; margin: 0; }
.members .ml { display: flex; gap: 14px; flex-wrap: wrap; font-size: .82rem; margin-top: auto; padding-top: 4px; }
.members .ml a { color: var(--ink-3); }

/* stay groups */
.stay-group { margin-bottom: clamp(48px, 6vw, 80px); }
.stay-group > header { display: flex; align-items: baseline; gap: 18px; margin-bottom: 22px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.stay-group > header h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.stay-group > header .n { font-family: var(--f-mono); font-size: .8rem; color: var(--red); }

/* events page */
.timeline { position: relative; display: grid; gap: 18px; padding-left: 34px; }
.timeline::before { content: ''; position: absolute; left: 8px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--red), var(--line)); }
.tl { position: relative; background: var(--card); border-radius: 12px; border: 1px solid var(--line-2); padding: 20px 24px; display: grid; grid-template-columns: 1fr auto; gap: 8px 22px; align-items: center; }
.tl::before { content: ''; position: absolute; left: -31px; top: 26px; width: 12px; height: 12px; border-radius: 999px; background: var(--paper); border: 2px solid var(--red); }
.tl h3 { font-size: 1.45rem; }
.tl .when { font-family: var(--f-mono); font-size: .8rem; color: var(--ink-3); text-align: right; }
.tl p { grid-column: 1 / -1; margin: 0; color: var(--ink-2); }
.cal-year { margin-bottom: 40px; }
.cal-year h3 { font-size: 1.6rem; margin-bottom: 16px; }

.letter { background: var(--card); border-radius: var(--radius-l); padding: clamp(28px, 5vw, 64px); box-shadow: var(--shadow); border: 1px solid var(--line-2); position: relative; }
.letter::before { content: '“'; position: absolute; top: -10px; left: 24px; font-family: var(--f-display); font-size: 9rem; line-height: 1; color: var(--red); opacity: .18; }
.letter p { font-family: var(--f-display); font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.6; color: var(--ink-2); font-weight: 350; }
.letter .sign { font-style: italic; color: var(--ink); margin-top: 18px; }
.tabs { display: flex; gap: 6px; margin-bottom: 18px; }

.flyer { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.flyer img { border-radius: 12px; box-shadow: var(--shadow); cursor: zoom-in; }
.flyer h2 { font-size: clamp(2rem, 4vw, 3.4rem); margin: 14px 0 20px; }

/* contact */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.ccard { background: var(--card); border-radius: var(--radius-l); padding: clamp(26px, 4vw, 44px); border: 1px solid var(--line-2); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px; }
.ccard.dark { background: var(--lake); color: var(--paper); border-color: var(--lake); }
.ccard.dark .kicker { color: rgba(244,239,229,.65); }
.ccard h2 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); }
.ccard .who { font-family: var(--f-display); font-size: 1.5rem; line-height: 1.2; }
.ccard address { font-style: normal; color: inherit; opacity: .85; }
.ccard .actions .btn { border-color: currentColor; }
.ccard.dark .btn:hover { background: var(--paper); color: var(--lake); }
.ccard .handle { font-family: var(--f-mono); font-size: .8rem; opacity: .7; }

.form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: .85rem; font-weight: 600; }
.form .full { grid-column: 1 / -1; }
.form input, .form textarea, .form select { font: inherit; font-weight: 400; padding: 13px 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--ink); }
.form input:focus, .form textarea:focus { outline: 2px solid var(--red); outline-offset: 0; border-color: transparent; }
.form .check { flex-direction: row; align-items: center; gap: 10px; font-weight: 400; }
.form .hp { position: absolute; left: -9999px; }

/* search overlay */
.search-ov { position: fixed; inset: 0; z-index: 95; background: rgba(24,34,31,.55); backdrop-filter: blur(6px); display: none; align-items: flex-start; justify-content: center; padding: 10vh 16px 16px; }
.search-ov.open { display: flex; }
.search-box { width: min(720px, 100%); background: var(--paper); border-radius: 16px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0,0,0,.5); max-height: 78vh; display: flex; flex-direction: column; }
.search-box .search-input { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 6px 22px; background: transparent; }
.search-box .search-input input { font-size: 1.15rem; padding: 16px 0; }
.sr-list { overflow-y: auto; padding: 8px; }
.sr-list a { display: block; padding: 12px 14px; border-radius: 10px; text-decoration: none; }
.sr-list a:hover, .sr-list a.sel { background: var(--card); }
.sr-list .t { font-weight: 600; }
.sr-list .s { font-size: .86rem; color: var(--ink-3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sr-list mark { background: #ffe1a8; color: inherit; border-radius: 2px; }
.sr-empty { padding: 26px; color: var(--ink-3); text-align: center; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 96; background: rgba(10,14,14,.9); display: none; place-items: center; padding: 24px; cursor: zoom-out; }
.lightbox.open { display: grid; }
.lightbox img { max-height: 92vh; width: auto; border-radius: 8px; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: rgba(244,239,229,.78); padding-top: clamp(56px, 8vw, 96px); font-size: .93rem; position: relative; overflow: hidden; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }
.f-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,.1); }
.f-brand .logo-pill { display: inline-block; background: var(--paper); border-radius: 999px; padding: 10px 26px; }
.f-brand .logo-pill img { height: 46px; mix-blend-mode: multiply; }
.f-brand p { margin-top: 20px; max-width: 34ch; }
.f-col h4 { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(244,239,229,.5); margin-bottom: 16px; font-weight: 400; }
.f-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.f-bottom { padding-block: 26px 34px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 30px; font-size: .82rem; color: rgba(244,239,229,.6); }
.f-bottom strong { color: #ff8d86; font-weight: 600; }
.f-bottom .legal { display: flex; gap: 18px; }
.f-giant { font-family: var(--f-display); font-style: italic; font-size: clamp(5rem, 17vw, 15rem); line-height: .8; color: rgba(244,239,229,.05); white-space: nowrap; margin: 30px 0 -0.12em; pointer-events: none; user-select: none; letter-spacing: -.03em; }

.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 48px; height: 48px; border-radius: 999px; background: var(--ink); color: var(--paper); border: 0; display: grid; place-items: center; opacity: 0; transform: translateY(12px); transition: opacity .3s, transform .3s var(--ease); box-shadow: 0 10px 30px -10px rgba(0,0,0,.4); }
.to-top.show { opacity: 1; transform: none; }
.to-top svg { width: 18px; height: 18px; }

/* scroll reveal */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv.d1 { transition-delay: .08s; } .rv.d2 { transition-delay: .16s; } .rv.d3 { transition-delay: .24s; }

.view-enter { animation: fadein .5s var(--ease); }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .main-nav { display: none; }
  .burger { display: grid; }
  .site-header .wrap { height: 70px; }
  .subnav { top: 70px; }
  .logo img { height: 42px; }
  .disc-grid { grid-template-columns: repeat(2, 1fr); }
  .f-top { grid-template-columns: 1fr 1fr; }
  .longform { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
}
@media (max-width: 860px) {
  body { font-size: 16px; }
  .proposals .wrap, .split, .video-card, .pd-grid, .flyer, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .bento > * { grid-column: span 1 !important; grid-row: span 1 !important; }
  .bento > .t-a { grid-column: span 2 !important; grid-row: span 2 !important; }
  .pcard { grid-template-columns: 1fr; }
  .pcard .ph { min-height: 0; aspect-ratio: 16/10; }
  .item { grid-template-columns: 1fr; gap: 8px; }
  .ev { grid-template-columns: 1fr; gap: 4px; }
  .split .media .stamp { right: 12px; }
  .side-card { position: static; }
  .topbar .tb-left .hide-sm { display: none; }
}
@media (max-width: 560px) {
  .disc-grid { gap: 10px; }
  .disc { padding: 16px; aspect-ratio: 3/4; }
  .prop-list { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .f-top { grid-template-columns: 1fr; }
  .hero-foot { flex-direction: column; align-items: flex-start; }
  .topbar .social { display: none; }
  .tl { grid-template-columns: 1fr; }
  .tl .when { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .rv { opacity: 1; transform: none; }
}

/* =============================================================
   MOTION LAYER — scroll-driven effects (v2)
   ============================================================= */

/* reading progress */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 120; background: var(--red); transform-origin: left; transform: scaleX(0); pointer-events: none; will-change: transform; }

/* split-word headings */
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
[data-split] .w > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 55ms); }
[data-split].in .w > span, .hero [data-split] .w > span { transform: none; }
.hero [data-split] .w > span { animation: wordUp 1.2s var(--ease) both; animation-delay: calc(.25s + var(--i) * 70ms); transition: none; }
@keyframes wordUp { from { transform: translateY(105%); } to { transform: none; } }

/* hero parallax */
.hero { --hp: 0; }
.hero-slides { will-change: transform; }
.hero .wrap { will-change: transform, opacity; }
.scroll-cue { position: absolute; left: 50%; bottom: 22px; translate: -50% 0; display: flex; flex-direction: column; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: .66rem; letter-spacing: .24em; text-transform: uppercase; color: rgba(255,255,255,.75); }
.scroll-cue i { width: 1px; height: 46px; background: linear-gradient(rgba(255,255,255,.9), transparent); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ''; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: #fff; animation: cue 2s var(--ease) infinite; }
@keyframes cue { to { top: 110%; } }

/* marquee */
.marquee { background: var(--ink); color: var(--paper); overflow: hidden; padding-block: clamp(18px, 3vw, 30px); border-block: 1px solid rgba(255,255,255,.06); }
.marquee-skew { will-change: transform; }
.marquee-track { display: flex; width: max-content; animation: marq 48s linear infinite; will-change: transform; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-family: var(--f-display); font-style: italic; font-weight: 300; font-size: clamp(2rem, 5.5vw, 4.6rem); line-height: 1; white-space: nowrap; padding-inline: .45em; font-variation-settings: 'SOFT' 100, 'WONK' 1; }
.marquee-track span.sep { font-style: normal; color: var(--red); font-size: clamp(1.2rem, 2.5vw, 2rem); align-self: center; }
.marquee-track span.o { color: transparent; -webkit-text-stroke: 1px rgba(244,239,229,.55); }
@keyframes marq { from { transform: translate3d(0,0,0); } to { transform: translate3d(-50%,0,0); } }

/* scroll-lit statement */
.statement { position: relative; height: 230vh; contain: layout paint; }
.statement .sticky { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; overflow: hidden; }
.statement .big { font-family: var(--f-display); font-weight: 350; font-size: clamp(1.9rem, 4.3vw, 4.1rem); line-height: 1.12; letter-spacing: -.02em; max-width: 22ch; margin: 18px 0 0; text-wrap: balance; }
.statement .big .sw { opacity: .14; transition: opacity .35s ease, color .35s ease; }
.statement .big .sw.on { opacity: 1; }
.statement .big .sw.hl.on { color: var(--red); font-style: italic; }
.statement .sub { max-width: 52ch; margin-top: 30px; color: var(--ink-2); opacity: 0; transform: translateY(20px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.statement .sub.on { opacity: 1; transform: none; }
.statement .ghost-num { will-change: transform; position: absolute; right: var(--gutter); bottom: 6vh; font-family: var(--f-display); font-size: clamp(8rem, 22vw, 20rem); line-height: .8; color: var(--paper-3); pointer-events: none; font-style: italic; }

/* pinned horizontal gallery */
.hscroll { position: relative; height: calc(var(--n, 4) * 85vh + 40vh); background: var(--paper-2); }
.hscroll .sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 4vh; }
.hscroll .hs-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.hscroll .hs-count { font-family: var(--f-mono); font-size: .85rem; color: var(--ink-3); display: flex; align-items: center; gap: 12px; }
.hscroll .hs-count b { color: var(--ink); font-weight: 500; font-size: 1.4rem; font-family: var(--f-display); }
.hscroll .hs-bar { width: 120px; height: 2px; background: var(--line); position: relative; }
.hscroll .hs-bar::after { content: ''; position: absolute; inset: 0; background: var(--red); transform-origin: left; transform: scaleX(0); }
.hscroll .hs-bar i { position: absolute; inset: 0; background: var(--red); transform-origin: left; transform: scaleX(0); }
.htrack { display: flex; gap: clamp(14px, 2vw, 28px); padding-inline: var(--gutter); will-change: transform; }
.hpanel { contain: paint; flex: none; width: min(64vw, 860px); height: min(64vh, 620px); border-radius: 18px; position: relative; overflow: hidden; color: #fff; text-decoration: none; isolation: isolate; display: grid; grid-template-columns: 1fr; align-content: end; padding: clamp(22px, 3vw, 40px); }
.hpanel img { position: absolute; inset: -4% -8%; width: 116%; height: 108%; object-fit: cover; z-index: -2; transition: scale 1.2s var(--ease); }
.hpanel:hover img { scale: 1.04; }
.hpanel::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(200deg, rgba(10,16,18,0) 35%, rgba(10,16,18,.85)); }
.hpanel .hp-num { position: absolute; top: clamp(18px, 2.5vw, 32px); left: clamp(22px, 3vw, 40px); font-family: var(--f-display); font-style: italic; font-size: clamp(3rem, 7vw, 6.5rem); line-height: .8; color: rgba(255,255,255,.9); font-variation-settings: 'SOFT' 100, 'WONK' 1; }
.hpanel h3 { font-size: clamp(2.2rem, 5vw, 4.4rem); font-weight: 350; }
.hpanel .hp-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; align-items: flex-end; margin-top: 14px; }
.hpanel .hp-names { display: flex; flex-wrap: wrap; gap: 6px; max-width: 520px; }
.hpanel .hp-names span { font-size: .78rem; padding: 4px 10px; border-radius: 999px; background: rgba(20,28,28,.45); border: 1px solid rgba(255,255,255,.22); }
.hpanel .hp-go { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; padding: 12px 18px; border-radius: 999px; background: #fff; color: var(--ink); transition: background .3s, color .3s; }
.hpanel:hover .hp-go { background: var(--red); color: #fff; }
.hpanel .hp-go svg { width: 16px; height: 16px; }
.hpanel.end { background: var(--ink); align-content: center; justify-items: start; gap: 16px; width: min(40vw, 520px); }
.hpanel.end::after { display: none; }

/* stats over panorama */
.panorama { position: relative; color: #fff; overflow: hidden; isolation: isolate; padding-block: clamp(100px, 16vw, 200px); background: var(--lake); }
.panorama > img { position: absolute; left: 0; right: 0; top: -15%; height: 130%; width: 100%; object-fit: cover; z-index: -2; }
.panorama::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14,24,26,.55), rgba(14,24,26,.35) 40%, rgba(14,24,26,.75)); }
.panorama h2 { max-width: 22ch; text-wrap: balance; }
.panorama .stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: clamp(40px, 6vw, 72px); border-top: 1px solid rgba(255,255,255,.25); }
.panorama .stats-row div { padding: 24px 24px 0 0; }
.panorama .stats-row div + div { padding-left: 24px; border-left: 1px solid rgba(255,255,255,.25); }
.panorama .stats-row b { display: block; font-family: var(--f-display); font-weight: 300; font-size: clamp(3.4rem, 9vw, 8rem); line-height: .9; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.panorama .stats-row span { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; opacity: .8; }

/* clip-path image reveals */
.tile.rv, .media.rv, .pd-gallery.rv { opacity: 1; transform: none; clip-path: inset(10% 8% 10% 8% round 18px); transition: clip-path 1.3s var(--ease); }
.tile.rv.in, .media.rv.in, .pd-gallery.rv.in { clip-path: inset(0 0 0 0 round 14px); }
.media.rv.in { clip-path: inset(-40px -60px -40px -40px); }
[data-parallax] { scale: 1.16; }
.page-hero > img[data-parallax] { animation: none; }

/* stacked partner cards */
@media (min-width: 861px) and (min-height: 700px) {
  .p-list.stack { gap: 40px; }
  .p-list.stack .pcard { position: sticky; top: calc(150px + var(--i) * 12px); transform-origin: center top; will-change: transform; }

}

/* footer giant drift */


/* cursor ring */
.cursor { will-change: transform; position: fixed; left: 0; top: 0; z-index: 130; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 999px; border: 1.5px solid var(--red); pointer-events: none; display: grid; place-items: center; transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .35s, border-color .35s, opacity .3s; opacity: 0; mix-blend-mode: normal; }
.cursor.on { opacity: 1; }
.cursor span { font-family: var(--f-mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: #fff; opacity: 0; transition: opacity .2s; }
.cursor.big { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: var(--red); border-color: var(--red); }
.cursor.big span { opacity: 1; }
@media (pointer: coarse) { .cursor { display: none; } }

/* magnetic */
.btn.solid { transition: background .25s, color .25s, border-color .25s, translate .4s var(--ease); }

/* responsive fallbacks for motion layer */
@media (max-width: 860px) {
  .hscroll { height: auto; padding-block: 64px; }
  .hscroll .sticky { position: static; height: auto; gap: 26px; }
  .htrack { transform: none !important; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: none; }
  .htrack::-webkit-scrollbar { display: none; }
  .hpanel { width: 82vw; height: 62vh; scroll-snap-align: center; }
  .hpanel.end { width: 70vw; }
  .hscroll .hs-bar, .hscroll .hs-count { display: none; }
  .statement { height: 190vh; }
  .panorama .stats-row { grid-template-columns: 1fr; }
  .panorama .stats-row div + div { padding-left: 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.2); margin-top: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .hscroll { height: auto; padding-block: 64px; }
  .hscroll .sticky { position: static; height: auto; }
  .htrack { transform: none !important; overflow-x: auto; }
  .statement { height: auto; padding-block: 100px; }
  .statement .sticky { position: static; height: auto; }
  .statement .big .sw { opacity: 1; }
  .statement .sub { opacity: 1; transform: none; }
  [data-split] .w > span { transform: none !important; animation: none !important; }
  .tile.rv, .media.rv, .pd-gallery.rv { clip-path: none; }
  .hero-slides, .hero .wrap { transform: none; opacity: 1; }
  .marquee-track { animation: none; }
  .cursor { display: none; }
}

/* stacked-card dimmer (opacity on a plain element = compositor-only) */
.pc-dim { position: absolute; inset: 0; background: #18221f; opacity: 0; pointer-events: none; border-radius: inherit; z-index: 3; }
.pcard .pb { position: relative; }

/* keep hero slides pre-promoted so crossfades never create layers mid-scroll */
.hero-slides img { will-change: opacity, transform; backface-visibility: hidden; }
/* pause everything that animates while it is off screen */
.hero.off .hero-slides img.on, .hero.off .hero-dots button.on::after, .hero.off .scroll-cue i::after { animation-play-state: paused; }
.marquee.off .marquee-track { animation-play-state: paused; }
