/* Flavour – Heritage. Brand black, cream and Flavour red (#E21E26 from the 2026 brief).
   Gloock for display, Hanken Grotesk for text (both Google Fonts, OFL). */
:root {
  --black: #120505;
  --ink: #1e0f0d;
  --cream: #f3e9d6;
  --red: #e21e26;
  --line: rgba(243, 233, 214, 0.5);
  --serif: 'Gloock', Georgia, serif;
  --sans: 'Hanken Grotesk', system-ui, sans-serif;
  --pad: clamp(20px, 3vw, 48px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --body: clamp(20px, 1.6vw, 26px);
}

* { box-sizing: border-box; }
html { background: var(--black); color: var(--cream); scroll-behavior: smooth; }
body { margin: 0; font: 400 var(--body) / 1.48 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
figure { margin: 0; }
h1, h2, h3 { font-weight: 400; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.logo {
  display: block; aspect-ratio: 2160 / 1407; background: currentColor;
  -webkit-mask: url(../logo.svg) no-repeat left bottom / contain; mask: url(../logo.svg) no-repeat left bottom / contain;
}
.btn {
  display: inline-flex; align-items: center; gap: 0.45em; padding: 0.55em 0.95em 0.6em; border-radius: 2px;
  background: var(--cream); color: var(--black); font: 500 18px/1.2 var(--sans); text-decoration: none;
  transition: background 0.4s, color 0.4s;
}
.btn:hover { background: var(--red); color: var(--cream); }
.t-xl { margin: 0; font: 400 clamp(54px, 7.4vw, 140px) / 0.98 var(--serif); letter-spacing: -0.02em; }
.yr { font-family: var(--serif); }

/* ---------- header ---------- */
.top {
  position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--pad); transition: color 0.5s; animation: fade 1.2s ease 2.3s both;
}
.top::before { content: ''; position: absolute; inset: 0; z-index: -1; background: rgba(18, 5, 5, 0.9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: 0; transition: opacity 0.5s, background 0.5s; }
.top.past::before { opacity: 1; }
.top.on-cream { color: var(--black); }
.top.on-cream::before { background: rgba(243, 233, 214, 0.93); }
.top.on-cream .btn { background: var(--black); color: var(--cream); }
.top.on-cream .btn:hover, .top.on-red .btn:hover { background: var(--red); color: var(--cream); }
.top.on-red::before { background: rgba(226, 30, 38, 0.95); }
.top.on-red .btn:hover { background: var(--black); }
.top-logo { width: 84px; opacity: 0; transition: opacity 0.6s; }
.top.past .top-logo { opacity: 1; }
.top-nav { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 34px); font-size: 18px; }
.top-nav > a:not(.btn) { text-decoration: none; padding: 4px 0; background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat; transition: background-size 0.5s var(--ease); }
.top-nav > a:not(.btn):hover { background-size: 100% 1px; }

/* ---------- hero: the 2019 Pizzala film, fire in the Ferrara oven ---------- */
.hero { position: relative; height: 100svh; min-height: 620px; overflow: hidden; background: var(--black); }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.72) saturate(1.05); animation: settle 3s var(--ease) both; }
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(18, 5, 5, 0.55) 0%, rgba(18, 5, 5, 0) 28%, rgba(18, 5, 5, 0) 46%, rgba(18, 5, 5, 0.78) 100%),
    radial-gradient(120% 90% at 0% 100%, rgba(18, 5, 5, 0.55), rgba(18, 5, 5, 0) 60%);
}
.hero-logo { position: absolute; z-index: 2; margin: 0; left: calc(var(--pad) - 0.4vw); bottom: calc(var(--pad) - 0.6vw); width: min(62vw, 1100px); color: var(--cream); animation: write 2s cubic-bezier(0.65, 0, 0.35, 1) 0.6s both; }
.hero-side { position: absolute; z-index: 2; right: var(--pad); bottom: var(--pad); width: min(420px, 31vw); animation: rise 1.2s var(--ease) 2s both; }
.hero-side p { margin: 0 0 22px; font: 400 clamp(26px, 2.2vw, 40px) / 1.1 var(--serif); letter-spacing: -0.01em; }

@keyframes settle { from { opacity: 0; scale: 1.06; } to { opacity: 1; scale: 1; } }
@keyframes write { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 -2% 0 0); } }
@keyframes rise { from { opacity: 0; translate: 0 60px; } to { opacity: 1; translate: 0 0; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- reveals: timed, never tied to scroll position ---------- */
.js [data-reveal] { opacity: 0; translate: 0 80px; transition: opacity 1.2s ease, translate 1.2s var(--ease); }
.js [data-reveal].in { opacity: 1; translate: 0 0; }

/* ---------- scenes: thin line drawing + real objects ---------- */
.scene { position: relative; height: 100svh; min-height: 640px; overflow: hidden; }
.stage { position: absolute; left: 50%; top: 50%; width: min(max(100%, 125svh), 172svh); aspect-ratio: var(--ar); translate: -50% -50%; }
.draw { color: var(--line); }
.stage .draw { position: absolute; inset: 0; }
.draw svg { display: block; width: 100%; height: 100%; overflow: visible; }
.js .draw path { stroke-dasharray: 1 2; stroke-dashoffset: 1.001; transition: stroke-dashoffset 1.5s cubic-bezier(0.45, 0, 0.2, 1) calc(var(--g, 0) * 0.26s); }
.in .draw path { stroke-dashoffset: 0; }
.obj { position: absolute; z-index: 1; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); width: calc(var(--w) * 1%); height: auto; rotate: var(--r, 0deg); filter: drop-shadow(0 22px 26px rgba(0, 0, 0, 0.55)); }
.obj.front { z-index: 3; }
.obj.ship { filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.35)); }
.js .obj { opacity: 0; translate: 0 70px; transition: opacity 1.1s ease, translate 1.3s var(--ease); transition-delay: calc(1.2s + var(--i) * 0.34s); }
.in .obj { opacity: 1; translate: 0 0; }
.scene-title {
  position: absolute; z-index: 2; left: var(--pad); right: var(--pad); top: var(--ty, 58%); margin: 0; translate: 0 -50%;
  font: 400 clamp(48px, 6.6vw, 124px) / 0.98 var(--serif); letter-spacing: -0.02em; text-align: center; text-wrap: balance;
}
.js .scene-title { opacity: 0; translate: 0 calc(-50% + 40px); transition: opacity 1.6s ease 2.3s, translate 1.6s var(--ease) 2.3s; }
.in .scene-title { opacity: 1; translate: 0 -50%; }

/* the doorway is the subject: title above the drawing, not on it */
.scene-a21 { display: flex; flex-direction: column; height: auto; min-height: 0; padding-top: clamp(130px, 22vh, 240px); }
.scene-a21 .scene-title { position: relative; inset: auto; translate: none; order: -1; max-width: 12em; margin: 0 auto clamp(10px, 3vh, 40px); }
.js .scene-a21 .scene-title { translate: 0 40px; transition-delay: 0s; }
.scene-a21.in .scene-title { translate: 0 0; }
.scene-a21 .stage { position: relative; top: auto; width: min(100%, 172svh); translate: -50% 0; }
.scene-harbour { background: var(--red); --line: rgba(243, 233, 214, 0.62); --ty: 13%; }
.scene-facade { --line: rgba(18, 5, 5, 0.55); }

/* ---------- A21 ---------- */
.a21-text { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(16px, 2vw, 32px); padding: clamp(40px, 8vh, 110px) var(--pad) clamp(130px, 22vh, 260px); }
.a21-text p { grid-column: 2 / span 6; margin: 0; font: 400 clamp(26px, 2.4vw, 42px) / 1.18 var(--serif); letter-spacing: -0.01em; }
.a21-text .a21-after { grid-column: 8 / span 4; margin-top: clamp(60px, 9vw, 160px); font: 400 var(--body) / 1.48 var(--sans); }

/* ---------- timeline on Flavour red ---------- */
.years { background: var(--red); color: var(--cream); padding: clamp(120px, 20vh, 240px) var(--pad) clamp(120px, 20vh, 240px); }
.years-title { margin-bottom: clamp(50px, 7vw, 120px); }
.years-list { list-style: none; margin: 0; padding: 0; }
.years-list li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: end; column-gap: clamp(16px, 3vw, 60px); padding: clamp(20px, 2.4vw, 40px) 0; border-top: 1px solid rgba(243, 233, 214, 0.4); }
.years-list li:nth-child(2n) .yr { order: 2; text-align: right; }
.years-list .yr { color: var(--black); font-size: clamp(84px, 10.5vw, 200px); line-height: 0.86; letter-spacing: -0.03em; }
.years-list p { margin: 0 0 0.35em; max-width: 26em; font-size: clamp(22px, 1.75vw, 30px); line-height: 1.32; }

/* ---------- cream part ---------- */
.cream { background: var(--cream); color: var(--black); --line: rgba(18, 5, 5, 0.55); }
.statement { padding: clamp(130px, 24vh, 280px) var(--pad) clamp(100px, 16vh, 200px); }
.lead { width: min(100%, 14.5em); margin: 0 0 0 auto; font: 400 clamp(36px, 4.9vw, 92px) / 1.04 var(--serif); letter-spacing: -0.02em; text-align: right; }
.lead .l { display: block; }
.lead .l1 { text-align: left; color: var(--red); }
.js .lead .w { opacity: 0.16; transition: opacity 1s ease calc(var(--i) * 85ms); }
.lead.in .w { opacity: 1; }

.then { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(16px, 2vw, 32px); row-gap: clamp(30px, 4vw, 70px); padding: 0 var(--pad) clamp(110px, 18vh, 220px); }
.then img, .pair img, .ariel img, .night img { width: 100%; height: 100%; object-fit: cover; }
.then-big { grid-column: 1 / span 7; grid-row: 1 / span 2; aspect-ratio: 2000 / 1441; }
.then-big { overflow: hidden; }
.then-big img { scale: 1.06; } /* trims the torn edges of the scanned print */
.then-small { grid-column: 9 / span 4; grid-row: 1; aspect-ratio: 1; margin-top: -3vw; }
.then-text { grid-column: 9 / span 4; grid-row: 2; align-self: end; }
.then-text p { margin: 0; }

.pair { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(16px, 2vw, 32px); row-gap: clamp(50px, 6vw, 110px); padding: 0 var(--pad) clamp(90px, 14vh, 180px); }
.pair-a { grid-column: 1 / span 6; aspect-ratio: 1800 / 1267; }
.pair-b { grid-column: 8 / span 4; aspect-ratio: 4 / 5; margin-top: 11vw; }
.pair-line { grid-column: 1 / span 10; }

/* ---------- Ariel ---------- */
.ariel { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(16px, 2vw, 32px); row-gap: clamp(40px, 5vw, 90px); padding: clamp(130px, 22vh, 260px) var(--pad) clamp(110px, 18vh, 220px); }
.ariel-title { grid-column: 1 / span 10; }
.ariel-ship { grid-column: 3 / span 10; aspect-ratio: 2.3; }
.ariel-ship img { object-position: 50% 46%; }
.ariel-text { grid-column: 1 / span 5; }
.ariel-text p { margin: 0; font: 400 clamp(26px, 2.4vw, 42px) / 1.18 var(--serif); letter-spacing: -0.01em; }
.ariel-now { grid-column: 8 / span 4; aspect-ratio: 1; margin-top: 6vw; }

/* ---------- houses ---------- */
.houses { padding: clamp(110px, 18vh, 220px) var(--pad) clamp(90px, 14vh, 180px); }
.houses-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 4vw; margin-bottom: clamp(56px, 8vw, 130px); }
.houses-head p { margin: 0 0 0.5em; font: 400 clamp(26px, 2.2vw, 38px) / 1.12 var(--serif); }
.houses-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(16px, 2vw, 32px); row-gap: clamp(60px, 7vw, 120px); }
.house { display: block; text-decoration: none; }
.house:nth-child(2n) { margin-top: 13vw; }
.house-img { display: block; overflow: hidden; }
.house-img img { width: 100%; aspect-ratio: var(--ar); object-fit: cover; transition: scale 1.6s var(--ease); }
.house:hover .house-img img { scale: 1.035; }
.house-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 1em; margin-top: 20px; }
.house-name { font: 400 clamp(32px, 2.8vw, 50px) / 1 var(--serif); letter-spacing: -0.015em; }
.house-cap { white-space: nowrap; font-size: clamp(18px, 1.3vw, 21px); opacity: 0.7; }
.house-line { display: block; margin-top: 8px; font-size: clamp(19px, 1.35vw, 22px); opacity: 0.78; }
.catering { margin: clamp(70px, 9vw, 150px) 0 0; max-width: 13em; font: 400 clamp(36px, 4vw, 72px) / 1.04 var(--serif); letter-spacing: -0.02em; }

/* ---------- evenings already held ---------- */
.nights { padding: clamp(130px, 22vh, 260px) var(--pad) clamp(130px, 22vh, 260px); }
.nights-title { max-width: 9em; margin-bottom: clamp(60px, 8vw, 140px); }
.nights-grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(16px, 2vw, 32px); row-gap: clamp(50px, 6vw, 100px); }
.night figcaption { display: flex; align-items: baseline; gap: 0.6em; margin-top: 16px; font-size: clamp(19px, 1.35vw, 22px); }
.night .yr { color: var(--red); font-size: clamp(30px, 2.4vw, 42px); line-height: 1; }
.night > img { aspect-ratio: var(--ar, 3 / 2); }
.n1 { grid-column: 1 / span 7; --ar: 4 / 3; }
.n2 { grid-column: 9 / span 4; --ar: 4 / 5; margin-top: 12vw; }
.n3 { grid-column: 2 / span 5; --ar: 16 / 10; }
.n4 { grid-column: 8 / span 5; --ar: 16 / 9; margin-top: 7vw; }
.n5 { grid-column: 1 / span 4; --ar: 1; margin-top: 4vw; }
.n6 { grid-column: 6 / span 7; --ar: 16 / 9; }

/* ---------- contact ---------- */
.contact { padding: clamp(120px, 20vh, 240px) var(--pad) 0; }
.contact-head { display: grid; grid-template-columns: 1.2fr 1fr; align-items: end; gap: 4vw; }
.contact-head p { justify-self: end; max-width: 23em; margin: 0 0 0.5em; }
.contact-ways { display: flex; flex-wrap: wrap; gap: 0.3em 1.4em; margin-top: clamp(40px, 5vw, 80px); font: 400 clamp(32px, 3.8vw, 68px) / 1.15 var(--serif); letter-spacing: -0.015em; }
.big-link { text-decoration: none; background: linear-gradient(currentColor, currentColor) left 92% / 100% 1px no-repeat; transition: color 0.4s; }
.big-link:hover { color: var(--red); }
.table-scene { position: relative; height: clamp(320px, 50vw, 860px); margin: clamp(10px, 2vw, 40px) calc(var(--pad) * -1) 0; overflow: hidden; }
.table-scene .stage { width: max(100%, 860px); top: auto; bottom: 0; translate: -50% 0; }
.places { list-style: none; margin: 0; padding: clamp(40px, 5vw, 80px) 0 clamp(100px, 13vw, 200px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 2vw; border-top: 1px solid var(--line); }
.places li { display: flex; flex-direction: column; gap: 6px; }
.place { font: 400 clamp(30px, 2.6vw, 46px) / 1.1 var(--serif); margin-bottom: 6px; }
.dim { opacity: 0.66; }

/* ---------- footer ---------- */
.foot { background: var(--red); color: var(--cream); padding: clamp(70px, 9vw, 140px) var(--pad) 0; overflow: hidden; }
.foot-cols { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 2vw; }
.foot-cols a { display: block; width: fit-content; text-decoration: none; font: 400 clamp(24px, 1.9vw, 32px) / 1.42 var(--serif); }
.foot-cols a:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.foot-h { margin: 0 0 14px; font-size: 18px; opacity: 0.8; }
.foot-contact { justify-self: end; }
.foot-legal { display: flex; justify-content: space-between; gap: 1em 2em; margin-top: clamp(50px, 6vw, 90px); font-size: 18px; opacity: 0.85; }
.foot-logo { width: min(88%, 1320px); margin: clamp(30px, 4vw, 60px) auto calc(min(88vw, 1320px) * -0.24); }

/* ---------- small screens ---------- */
@media (max-width: 820px) {
  .top-nav > a:not(.btn) { display: none; }
  .top-logo { width: 74px; }
  .hero-logo { width: 88vw; bottom: auto; top: 46%; translate: 0 -50%; }
  .hero-side { left: var(--pad); width: auto; }
  .obj { left: calc(var(--xm, var(--x)) * 1%); top: calc(var(--ym, var(--y)) * 1%); width: calc(var(--wm, var(--w)) * 1%); }
  .scene { display: flex; flex-direction: column; height: auto; min-height: 0; padding: 18vh 0 4vh; }
  .scene .stage { position: relative; left: 50%; top: auto; width: var(--sw, 230vw); translate: calc(-50% + var(--sx, 0vw)) 0; }
  .scene-harbour { --sw: 150vw; --sx: 22vw; padding-bottom: 6vh; }
  .scene-a21 { --sw: 160vw; }
  .scene-title, .scene-a21 .scene-title { order: -1; position: relative; inset: auto; padding: 0 var(--pad); margin: 0 0 2vh; translate: none; }
  .js .scene-title { translate: 0 40px; }
  .in .scene-title { translate: 0 0; }
  .a21-text, .then, .pair, .ariel, .nights-grid { display: flex; flex-direction: column; gap: 36px; }
  .a21-text .a21-after, .then-small, .pair-b, .ariel-now, .night { margin-top: 0; }
  .then-small { width: 62%; align-self: flex-end; }
  .pair-b { width: 70%; align-self: flex-end; }
  .lead { width: auto; text-align: left; }
  .lead .l { display: inline; }
  .years-list li { grid-template-columns: 1fr; row-gap: 10px; }
  .years-list li:nth-child(2n) .yr { order: 0; text-align: left; }
  .years-list .yr { font-size: 24vw; }
  .houses-head { flex-direction: column-reverse; align-items: flex-start; }
  .houses-grid { grid-template-columns: 1fr; }
  .house:nth-child(2n) { margin-top: 0; }
  .contact-head { grid-template-columns: 1fr; }
  .contact-head p { justify-self: start; }
  .places { grid-template-columns: 1fr; gap: 34px; }
  .foot-cols { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .foot-contact { justify-self: start; }
  .foot-legal { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal], .js .obj, .js .scene-title { opacity: 1; translate: none; }
  .js .scene-title:not(.scene-a21 .scene-title) { translate: 0 -50%; }
  .js .lead .w { opacity: 1; }
  .js .draw path { stroke-dashoffset: 0; }
}
