/* Masia Can Ramoneda: one day, 07:30 → 03:00. The sky (#sky) is behind everything; sections are transparent. */
@font-face { font-family: "Piazzolla"; src: url(/fonts/piazzolla-latin-wght-normal.woff2) format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Piazzolla"; src: url(/fonts/piazzolla-latin-ext-wght-normal.woff2) format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Piazzolla"; src: url(/fonts/piazzolla-latin-wght-italic.woff2) format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Rethink"; src: url(/fonts/rethink-sans-latin-wght-normal.woff2) format("woff2"); font-weight: 400 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Rethink"; src: url(/fonts/rethink-sans-latin-ext-wght-normal.woff2) format("woff2"); font-weight: 400 800; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --ink: #1b1f33; --ink-2: #3b3f52; --paper: #f7f1e6; --paper-2: #e4dccd;
  --sand: #b9824c; --orange: #d9822b; --amber: #ffc970; --night: #0b1233;
  --serif: "Piazzolla", Georgia, serif; --sans: "Rethink", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pad: clamp(20px, 5vw, 96px); --max: clamp(1360px, 74vw, 1880px);
  --fg: var(--ink); --fg-2: var(--ink-2);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; font: 400 17px/1.6 var(--sans); color: var(--fg); background: #8fb6df; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 300; line-height: 1.04; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
em { font-style: italic; }
figure { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--paper); color: var(--ink); padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* the sky */
#sky { position: fixed; inset: 0; z-index: -1; background: linear-gradient(#3b4a86, #f2b38f); pointer-events: none; }
#sky canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#sky .stars { opacity: 0; height: 100lvh; will-change: opacity; }
#sky .moon { position: absolute; left: -22px; top: -22px; width: 44px; height: 44px; border-radius: 50%; opacity: 0;
  background: radial-gradient(circle at 38% 36%, #fffaf0 0 46%, #f1e6cc 60%, #d9cfb8 70%);
  box-shadow: 0 0 40px 14px rgba(255, 244, 220, .18); will-change: transform, opacity; }

/* tones: text colour per section, set by the light it sits in */
.tone-day { --fg: var(--ink); --fg-2: var(--ink-2); color: var(--fg); }
.tone-dawn, .tone-night, .tone-gold { --fg: var(--paper); --fg-2: #d9d3c6; color: var(--fg); }

/* header */
.top { position: fixed; z-index: 30; top: 12px; left: 12px; right: 12px; display: flex; align-items: center; gap: 18px;
  height: 58px; padding: 0 10px 0 18px; border-radius: 16px; color: var(--hfg, var(--paper));
  background: var(--hbg, rgba(11, 15, 42, .86)); box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .5); transition: background-color .6s ease, color .6s ease; }
body.lit .top { --hfg: var(--ink); --hbg: rgba(250, 246, 238, .93); }
.top .brand { display: block; color: inherit; flex: none; }
.logo { display: block; width: 104px; height: auto; }
.clock { display: flex; align-items: center; gap: 8px; font: 500 15px/1 var(--sans); font-variant-numeric: tabular-nums; letter-spacing: .02em; padding: 7px 11px 7px 8px; border-radius: 99px; background: rgba(255, 255, 255, .12); flex: none; }
body.lit .clock { background: rgba(27, 31, 51, .07); }
.clock .orb { width: 14px; height: 14px; border-radius: 50%; background: #ffd38a; box-shadow: 0 0 10px #ffc970; transition: background-color .6s, box-shadow .6s; }
body.night .clock .orb { background: transparent; box-shadow: inset -4px -2px 0 1px #f3ead6; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav a, .lang { display: block; padding: 9px 11px; border-radius: 10px; text-decoration: none; font-weight: 500; font-size: 15px; white-space: nowrap; }
.nav a:hover, .lang:hover { background: rgba(127, 127, 127, .16); }
.lang { font-size: 13px; letter-spacing: .06em; }
.cta { display: inline-flex; align-items: center; height: 42px; padding: 0 18px; border-radius: 12px; text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap;
  background: var(--amber); color: var(--ink); }
.cta:hover { background: #ffd894; }
.burger { display: none; }
.sheet[hidden] { display: none; }

.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 14px; border: 0; cursor: pointer;
  font: 600 16px/1 var(--sans); text-decoration: none; background: var(--amber); color: var(--ink); }
.btn:hover { background: #ffd894; }
.btn svg { width: 18px; height: 18px; }
.btn.ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn.ghost:hover { background: rgba(127, 127, 127, .14); }

.kicker { font: 500 15px/1.2 var(--sans); letter-spacing: .02em; margin: 0 0 18px; color: var(--fg-2); }
.kicker::before { content: attr(data-hour); }
.chap { display: flex; align-items: baseline; gap: 14px; margin: 0 0 18px; font: 500 16px/1.2 var(--sans); letter-spacing: .02em; color: var(--fg-2); }
.chap .hr { font: 300 clamp(30px, 3vw, 46px)/1 var(--serif); letter-spacing: 0; color: var(--fg); font-variant-numeric: tabular-nums; }
.era-text .chap, .festa-hr { justify-content: center; }
.statement { font: 300 clamp(30px, 4.6vw, 64px)/1.08 var(--serif); letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
.statement .yr { font-style: italic; }
.ph { width: 100%; height: 100%; object-fit: cover; }
figcaption { font-size: 13px; line-height: 1.35; margin-top: 8px; color: var(--fg-2); }

/* 07:30 hero */
.hero { position: relative; display: block; overflow: clip; }
.hero-text { position: relative; z-index: 2; padding: calc(100px + 5vh) var(--pad) 0; max-width: 1180px; }
.hero h1 { font-size: clamp(40px, 5.6vw, 92px); line-height: .98; }
.h1-name { display: block; font: 500 15px/1.3 var(--sans); letter-spacing: .04em; margin-bottom: 18px; opacity: .85; }
.h1-line { display: block; }
.hero h1 em { font-style: italic; }
.hero-sub { max-width: 560px; margin: 22px 0 26px; font-size: clamp(16px, 1.25vw, 19px); color: var(--fg-2); }
.hero-act { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.hero-photo { position: relative; z-index: 1; margin-top: clamp(24px, 4vh, 48px); pointer-events: none; }
.hero-photo img { width: 100%; height: auto; max-height: none; }
.hero-hint { position: absolute; z-index: 3; left: 0; right: 0; top: calc(100svh - 86px); text-align: center; margin: 0; font-size: 14px; color: #fff; text-shadow: 0 1px 12px rgba(0, 0, 0, .5); }
.hero-hint span::after { content: ""; display: block; width: 1px; height: 34px; margin: 10px auto 0; background: currentColor; opacity: .7; }

/* 08:00 history */
.casa { position: relative; padding: clamp(80px, 12vh, 140px) var(--pad) clamp(40px, 6vh, 80px); max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(28px, 5vw, 90px); }
.casa-head { grid-column: 1 / -1; max-width: 980px; margin-bottom: clamp(40px, 7vh, 80px); }
.casa-lead-wrap { grid-column: 1; grid-row: 2; align-self: stretch; }
.casa-lead { position: sticky; top: 96px; }
.casa-lead img { aspect-ratio: 4 / 3; filter: saturate(.85); }
.annals { grid-column: 2; grid-row: 2; list-style: none; margin: 0; padding: 0; }
.an { display: grid; grid-template-columns: 1fr; gap: 4px; padding: 18px 0 16px; border-top: 1px solid rgba(27, 31, 51, .18); }
.an-y { font: 400 22px/1.1 var(--serif); }
.an p { margin: 0; color: var(--fg-2); font-size: 16px; }
.an-key .an-y { font-style: italic; color: #6a3210; }
.an-key p { color: var(--fg); font-weight: 500; }
.archive { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(14px, 2vw, 28px); margin-top: clamp(70px, 12vh, 140px); align-items: start; }
.ar img { filter: grayscale(.15) contrast(1.02); }
.ar1 { grid-column: 1 / 5; margin-top: 60px; } .ar1 img { aspect-ratio: 4/3; }
.ar2 { grid-column: 5 / 10; } .ar2 img { aspect-ratio: 4/3; }
.ar3 { grid-column: 10 / 13; margin-top: 120px; } .ar3 img { aspect-ratio: 1; object-position: 50% 40%; }
.ar4 { grid-column: 2 / 6; margin-top: -10px; } .ar4 img { aspect-ratio: 4/3; }
.ar5 { grid-column: 7 / 12; margin-top: 40px; } .ar5 img { aspect-ratio: 4/3; }

/* 10:00 the space */
.espai { padding: clamp(60px, 9vh, 110px) var(--pad) clamp(40px, 6vh, 80px); max-width: var(--max); margin: 0 auto; }
.espai-head { max-width: 900px; margin-bottom: clamp(36px, 6vh, 70px); }
.rooms { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 80px); }
.rooms-view { position: sticky; top: 96px; align-self: start; aspect-ratio: 4 / 3; border-radius: 4px; overflow: hidden; }
.rv { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; }
.rv.on { opacity: 1; }
.rv figcaption { position: absolute; left: 14px; bottom: 12px; margin: 0; color: #fff; text-shadow: 0 1px 10px rgba(0, 0, 0, .6); }
.rooms-list { list-style: none; margin: 0; padding: 0 0 14vh; }
.room { padding: 3.6vh 0; border-top: 1px solid rgba(27, 31, 51, .16); opacity: .52; transition: opacity .5s ease; }
.room.on { opacity: 1; }
.room p { margin: 0; }
.room strong { display: block; font: 300 clamp(28px, 3.4vw, 48px)/1.06 var(--serif); letter-spacing: -0.01em; }
.room span { display: block; margin-top: 6px; color: var(--fg-2); font-size: 17px; }
.room-ph { display: none; }
.meet { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(16px, 2.4vw, 32px); margin-top: clamp(30px, 5vh, 60px); align-items: center; }
.meet-a { grid-column: 1 / 6; } .meet-a img { aspect-ratio: 16/10; }
.meet-t { grid-column: 6 / 10; }
.meet-b { grid-column: 10 / 13; } .meet-b img { aspect-ratio: 3/4; }
.meet h3 { font-size: clamp(26px, 2.6vw, 38px); margin-bottom: 14px; }
.meet p { color: var(--fg-2); }
.hour { font: 500 14px/1 var(--sans); letter-spacing: .05em; color: var(--fg-2); margin-bottom: 14px; font-variant-numeric: tabular-nums; }

/* 12:30 the era */
.era { position: relative; padding: clamp(20px, 4vh, 50px) 0 clamp(40px, 6vh, 80px); }
.era-stage { position: relative; height: 92svh; }
.era-frame { position: absolute; left: 50%; top: 0; width: 100%; height: 100%; transform: translateX(-50%); overflow: hidden; border-radius: 0; }
.era-side { position: absolute; z-index: 2; right: var(--pad); bottom: -8vh; width: clamp(160px, 22vw, 340px); aspect-ratio: 3 / 4; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(20, 24, 40, .45); }
.era-low { position: absolute; z-index: 2; left: var(--pad); bottom: -12vh; width: clamp(150px, 18vw, 280px); }
.era-low img { aspect-ratio: 4/3; box-shadow: 0 30px 60px -20px rgba(20, 24, 40, .45); }
.era-text { position: relative; padding: clamp(110px, 16vh, 180px) var(--pad) 0; max-width: 980px; margin: 0 auto; text-align: center; }
.era-text h2 { font-size: clamp(44px, 7vw, 116px); }
.era-text p { margin: 22px auto 0; max-width: 560px; font-size: clamp(17px, 1.3vw, 20px); color: var(--fg-2); }

/* 14:00 at the table */
.taula { position: relative; padding: clamp(60px, 9vh, 120px) var(--pad); max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 90px); align-items: start; }
.card-wrap { align-self: stretch; }
.plates { display: grid; gap: clamp(28px, 6vh, 64px); padding-top: 4vh; }
.plates .tp:nth-child(even) { width: 82%; justify-self: end; }
.card { position: sticky; top: 96px; background: #fbf8f2; color: var(--ink); padding: clamp(36px, 4.6vw, 64px) clamp(26px, 4vw, 56px); text-align: center; border-radius: 3px;
  box-shadow: 0 40px 80px -40px rgba(60, 40, 20, .45), 0 0 0 1px rgba(27, 31, 51, .06); --fg-2: var(--ink-2); }
.card::before { content: ""; display: block; width: 36px; height: 1px; background: var(--sand); margin: 0 auto 26px; }
.card h2 { font-size: clamp(48px, 5.6vw, 84px); font-style: italic; margin-bottom: 16px; }
.card .kicker { margin-bottom: 10px; }
.card-intro { color: var(--ink-2); max-width: 400px; margin: 0 auto 26px; }
.courses { list-style: none; margin: 0 0 26px; padding: 0; }
.courses li { padding: 14px 0; border-top: 1px dashed rgba(27, 31, 51, .2); }
.courses strong { display: block; font: 400 23px/1.2 var(--serif); }
.courses span { display: block; color: var(--ink-2); font-size: 15px; margin-top: 2px; }
.card-more { font: italic 300 19px/1.4 var(--serif); margin: 0; color: var(--ink); }
.tp img { aspect-ratio: 3/2; box-shadow: 0 30px 60px -28px rgba(20, 24, 40, .5); }

/* 18:30 golden hour */
.daurada { position: relative; height: 260svh; }
.dau-stick { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.dau-frames { position: absolute; inset: 0; }
.dau { position: absolute; inset: 0; }
.dau img { width: 100%; height: 100%; object-fit: cover; }
.dau2, .dau3 { opacity: 0; }
.dau-frames::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(30, 14, 4, .62), rgba(30, 14, 4, 0) 55%); pointer-events: none; }
.dau-text { position: absolute; z-index: 2; left: var(--pad); right: var(--pad); bottom: 12vh; max-width: 760px; text-shadow: 0 2px 30px rgba(30, 14, 4, .45); }
.dau-text h2 { font-size: clamp(52px, 8vw, 132px); font-style: italic; }
.dau-text p { margin-top: 14px; font-size: clamp(17px, 1.4vw, 21px); max-width: 460px; }

/* 21:00 the courtyard lights up */
.pati { position: relative; }
.pati-pin { position: relative; height: 100svh; overflow: hidden; }
.pati-text { position: absolute; z-index: 3; left: var(--pad); top: calc(88px + 1.5vh); max-width: min(92vw, 980px); }
.pati-text h2 { font-size: clamp(46px, 6.6vw, 110px); }
.pati-text p { margin-top: 14px; font-size: clamp(17px, 1.3vw, 20px); color: var(--paper); max-width: 430px; text-shadow: 0 1px 16px rgba(10, 16, 50, .6); }
.pati-text h2 { text-shadow: 0 2px 30px rgba(10, 16, 50, .35); }
.pati-scene { position: absolute; inset: 0; }
.pati-box { position: absolute; bottom: 0; left: 50%; width: max(100vw, 84svh * 16 / 9); aspect-ratio: 16 / 9; transform: translateX(-50%); }
.pl, .pl img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pl.on { opacity: 0; }
.bulbs { position: absolute; inset: 0; }
.b { position: absolute; width: 2.6%; aspect-ratio: 1; margin: -1.3% 0 0 -1.3%; border-radius: 50%; opacity: 0; pointer-events: none;
  background: radial-gradient(circle, #fffef6 0 9%, rgba(255, 228, 160, .92) 16%, rgba(255, 196, 102, .38) 34%, rgba(255, 180, 90, 0) 68%); will-change: opacity; }
.bT { width: 1.6%; margin: -.8% 0 0 -.8%; }

/* 00:00 party */
.festa { position: relative; padding: clamp(100px, 16vh, 180px) var(--pad) clamp(60px, 10vh, 120px); max-width: clamp(1500px, 80vw, 2000px); margin: 0 auto; }
.festa-h { font-size: clamp(52px, 8.4vw, 140px); font-style: italic; text-align: center; margin-bottom: clamp(40px, 8vh, 90px); }
.festa-wall { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(14px, 2vw, 28px); align-items: start; }
.fe img { box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .7); }
.fe1 { grid-column: 1 / 8; } .fe1 img { aspect-ratio: 16/10; }
.fe2 { grid-column: 8 / 13; margin-top: 8vh; } .fe2 img { aspect-ratio: 4/5; object-position: 60% 50%; }
.fe3 { grid-column: 2 / 7; margin-top: -10vh; } .fe3 img { aspect-ratio: 4/3; }
.fe4 { grid-column: 8 / 11; margin-top: -4vh; } .fe4 img { aspect-ratio: 3/4; }

/* 03:00 good night: contact */
.nit { padding: clamp(110px, 16vh, 180px) var(--pad) clamp(50px, 8vh, 90px); }
.nit-in { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 110px); align-items: start; }
.nit h2 { font-size: clamp(42px, 5.4vw, 88px); margin-bottom: 20px; }
.nit-t > p { color: var(--fg-2); max-width: 470px; }
.ways { list-style: none; margin: 30px 0; padding: 0; display: grid; gap: 10px; }
.ways a { display: flex; align-items: center; gap: 16px; padding: 12px 0; text-decoration: none; border-bottom: 1px solid rgba(247, 241, 230, .14); }
.ways a:hover span { color: var(--amber); }
.ways svg { width: 22px; height: 22px; flex: none; color: var(--amber); }
.ways span { display: flex; flex-direction: column; min-width: 0; font: 300 clamp(19px, 2.2vw, 32px)/1.15 var(--serif); white-space: nowrap; }
.ways small { font-family: var(--sans); }
.ways small { font-size: 13px; font-weight: 400; color: var(--fg-2); }
.hours { color: var(--fg-2); font-size: 15px; max-width: 470px; }
.hours strong { color: var(--fg); font-weight: 600; margin-right: 4px; }
.ask { display: grid; gap: 14px; padding: clamp(24px, 3.4vw, 44px); border-radius: 20px; background: rgba(9, 13, 40, .72); color: var(--paper); box-shadow: inset 0 0 0 1px rgba(255, 201, 112, .22), 0 40px 90px -40px rgba(0, 0, 0, .8); }
.ask label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; color: #d9d3c6; }
.ask .lead label span { font: 300 22px/1.2 var(--serif); color: var(--amber); }
.ask .lead input { font-size: 19px; min-height: 56px; }
.ask input, .ask select, .ask textarea { width: 100%; font: 400 16px/1.4 var(--sans); color: var(--paper); background: rgba(255, 255, 255, .06); border: 1px solid rgba(247, 241, 230, .24); border-radius: 10px; padding: 12px 14px; min-height: 48px; color-scheme: dark; }
.ask select option { color: var(--ink); }
.ask input:focus, .ask select:focus, .ask textarea:focus { outline: 2px solid var(--orange); outline-offset: 0; border-color: transparent; }
.ask .two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ask .btn { justify-self: start; margin-top: 6px; }
.sent { margin: 0; padding: 14px 16px; border-radius: 12px; background: #fff3d9; color: var(--ink); font-size: 15px; }

.arribar { padding: clamp(60px, 10vh, 120px) var(--pad) clamp(80px, 12vh, 140px); }
.arr-in { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 100px); align-items: center; }
.arribar h2 { font-size: clamp(38px, 4.6vw, 72px); margin-bottom: 24px; }
.arr-t > p { color: var(--fg-2); max-width: 580px; }
.arr-t .addr { color: var(--fg); font-size: 18px; }
.route svg { width: 100%; height: auto; overflow: visible; }
.route path, .route rect, .route circle { fill: none; stroke: rgba(247, 241, 230, .5); stroke-width: 2; stroke-linecap: round; }
.route .rail { stroke: rgba(247, 241, 230, .55); stroke-width: 6; }
.route .rail-t { stroke: #0b1233; stroke-width: 3; stroke-dasharray: 2 9; }
.route .riera { stroke: #7fa6d9; stroke-width: 3; opacity: .7; }
.route .street { stroke-width: 3; }
.route .bridge { fill: #0b1233; stroke: rgba(247, 241, 230, .8); }
.route .go { stroke: var(--amber); stroke-width: 4; stroke-dasharray: 1; stroke-dashoffset: 0; }
.route .dot { fill: var(--amber); stroke: none; }
.route .pin { fill: var(--amber); stroke: #0b1233; stroke-width: 3; }
.route .house rect, .route .house path { fill: var(--paper); stroke: none; }
.route .lbl { fill: #e9e2d3; font: 500 14px var(--sans); stroke: none; }
.route .lbl.sm { font-size: 12px; fill: #bfb8aa; }
.route .lbl.it { font: italic 400 16px var(--serif); }
.route .lbl.cami { font-size: 14px; }
.route .lbl.b { font: 400 22px var(--serif); fill: var(--amber); }

/* footer */
.foot { --fg: var(--paper); --fg-2: #c9c2b4; color: var(--fg); padding: 48px var(--pad) calc(36px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(247, 241, 230, .14); }
.foot-in { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: auto 1fr auto; gap: 18px 40px; align-items: center; }
.foot-brand { display: flex; align-items: center; gap: 22px; grid-row: span 2; }
.emblem { width: 74px; height: auto; filter: invert(1) sepia(.2) brightness(.96); }
.foot-logo { width: 118px; }
.foot-addr { margin: 0; color: var(--fg-2); font-size: 15px; }
.foot-addr a { text-decoration: none; }
.foot-addr a:hover, .foot-legal a:hover { text-decoration: underline; }
.foot-social { display: flex; gap: 8px; margin: 0; justify-self: end; }
.foot-social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(247, 241, 230, .25); }
.foot-social svg { width: 20px; height: 20px; }
.foot-legal { margin: 0; font-size: 14px; color: var(--fg-2); }
.foot-legal a { text-decoration: none; }
.foot-credit { justify-self: end; color: var(--paper); }

/* phone bottom bar */
.bar { display: none; }

/* legal + 404 pages: night paper */
.legal-page, .nf-page { background: var(--night); color: var(--paper); }
.nf-page { background: radial-gradient(120% 70% at 50% 110%, #24346f, #0b1233 60%, #050820); }
.nf-stars { position: fixed; inset: 0; pointer-events: none; opacity: .8;
  background-image: radial-gradient(1px 1px at 12% 18%, #fff, transparent), radial-gradient(1px 1px at 32% 62%, #fff, transparent), radial-gradient(1.5px 1.5px at 72% 22%, #ffe7c4, transparent), radial-gradient(1px 1px at 86% 70%, #fff, transparent), radial-gradient(1px 1px at 52% 36%, #fff, transparent), radial-gradient(1px 1px at 22% 84%, #fff, transparent), radial-gradient(1.2px 1.2px at 64% 86%, #fff, transparent), radial-gradient(1px 1px at 92% 40%, #fff, transparent); }
.legal-page .top { --hbg: rgba(255, 255, 255, .06); }
.legal { max-width: 760px; margin: 0 auto; padding: 140px var(--pad) 80px; }
.legal h2 { font-size: clamp(36px, 5vw, 60px); margin: 40px 0 22px; }
.legal h3 { font-size: 26px; margin: 34px 0 14px; }
.legal p { color: #d9d3c6; }
.nf { min-height: 100svh; display: grid; place-content: center; text-align: center; padding: 40px var(--pad); gap: 10px; }
.nf-logo { width: 160px; margin: 0 auto 24px; }
.nf h1 { font-size: clamp(36px, 6vw, 64px); }
.nf p { color: #d9d3c6; }
.nf .btn { margin: 6px; }

/* motion helpers: content is visible without JS; JS adds .js and hides only what it will reveal */
.js .rv-up { opacity: 0; transform: translate3d(0, 36px, 0); }

@media (max-width: 1180px) {
  .nav { display: none; }
  .lang { margin-left: auto; }
  .burger { display: grid; place-content: center; gap: 6px; width: 46px; height: 46px; border: 0; border-radius: 12px; background: rgba(127, 127, 127, .16); color: inherit; cursor: pointer; }
  .burger i { display: block; width: 20px; height: 2px; background: currentColor; transition: transform .3s; }
  .burger[aria-expanded="true"] i:first-of-type { transform: translateY(4px) rotate(45deg); }
  .burger[aria-expanded="true"] i:last-of-type { transform: translateY(-4px) rotate(-45deg); }
  .sheet { position: fixed; z-index: 29; inset: 0; padding: 100px var(--pad) 40px; background: #0b1233; color: var(--paper); overflow: auto; }
  .sheet ul { list-style: none; margin: 0 0 30px; padding: 0; }
  .sheet li a { display: flex; align-items: baseline; gap: 16px; padding: 12px 0; font: 300 clamp(34px, 8vw, 52px)/1.1 var(--serif); text-decoration: none; border-bottom: 1px solid rgba(247, 241, 230, .12); }
  .sheet li small { flex: none; width: 3.6em; font: 500 14px/1 var(--sans); font-variant-numeric: tabular-nums; color: var(--amber); letter-spacing: .03em; }
  .sheet-contact { display: grid; gap: 10px; margin: 0 0 24px; }
  .sheet-contact a { display: flex; align-items: center; gap: 12px; font-size: 18px; text-decoration: none; min-height: 44px; }
  .sheet-contact svg { width: 20px; height: 20px; color: var(--amber); }
  .sheet-lang { display: inline-block; padding: 12px 0; font-size: 16px; }
  body.menu-open .top { --hfg: var(--paper); --hbg: #0b1233; }
}
@media (max-width: 900px) {
  .casa { grid-template-columns: 1fr; }
  .casa-lead-wrap { grid-row: auto; }
  .casa-lead { position: relative; top: 0; margin-bottom: 30px; }
  .annals { grid-column: 1; grid-row: auto; }
  .archive { grid-template-columns: repeat(6, 1fr); }
  .ar1 { grid-column: 1 / 4; margin-top: 0; } .ar2 { grid-column: 4 / 7; margin-top: 40px; } .ar3 { grid-column: 1 / 3; margin-top: 0; }
  .ar4 { grid-column: 3 / 7; margin-top: 0; } .ar5 { grid-column: 1 / 6; margin-top: 0; }
  .rooms { grid-template-columns: 1fr; }
  .rooms-view { display: none; }
  .rooms-list { padding: 0; }
  .room { opacity: 1; padding: 0 0 28px; border: 0; }
  .room-ph { display: block; margin-bottom: 14px; }
  .room-ph img { aspect-ratio: 16 / 10; }
  .meet { grid-template-columns: repeat(6, 1fr); }
  .meet-a { grid-column: 1 / 7; } .meet-t { grid-column: 1 / 7; } .meet-b { display: none; }
  .taula { grid-template-columns: 1fr; }
  .card { position: relative; top: 0; }
  .plates { grid-template-columns: 1fr 1fr; gap: 16px; padding: 0; }
  .plates .tp:nth-child(even) { width: 100%; margin-top: 36px; }
  .tp img { aspect-ratio: 4/5; }
  .nit-in, .arr-in { grid-template-columns: 1fr; }
  .foot-in { grid-template-columns: 1fr; }
  .foot-brand { grid-row: auto; }
  .foot-social, .foot-credit { justify-self: start; }
}
@media (max-width: 759px) {
  body { font-size: 16px; }
  .top { top: 8px; left: 8px; right: 8px; height: 54px; gap: 10px; padding: 0 6px 0 14px; }
  .logo { width: 88px; }
  .cta { display: none; }
  .clock { font-size: 14px; padding: 6px 9px 6px 7px; }
  .hero-text { padding-top: 96px; }
  .hero h1 { font-size: clamp(34px, 10.4vw, 52px); }
  .hero-sub { margin: 16px 0 20px; }
  .hero-act .btn { min-height: 48px; padding: 0 18px; font-size: 15px; }
  .hero-photo { margin-top: 0; height: 46svh; }
  .hero-photo img { height: 100%; width: 100%; object-fit: cover; object-position: 50% 0%; }
  .hero-hint { display: none; }
  .era-stage { height: 64svh; }
  .era-frame img { object-position: 42% 50%; }
  .era-side { width: 38vw; bottom: -10vh; }
  .era-low { display: none; }
  .era-text { padding-top: 16vh; }
  .era-low figcaption { display: none; }
  .festa-wall { grid-template-columns: repeat(6, 1fr); }
  .fe1 { grid-column: 1 / 7; } .fe2 { grid-column: 3 / 7; margin-top: 0; } .fe3 { grid-column: 1 / 5; margin-top: 0; } .fe4 { grid-column: 3 / 7; margin-top: 0; }
  .pati-text { top: calc(80px + 2vh); right: var(--pad); }
  .pati-box { width: auto; height: 74svh; left: 0; transform: none; }
  .ask .two { grid-template-columns: 1fr; }
  .bar { position: fixed; z-index: 28; left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 6px; padding: 6px; border-radius: 16px; background: rgba(11, 18, 51, .86); }
  .bar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; border-radius: 11px; text-decoration: none; color: var(--paper); font-weight: 600; font-size: 15px; }
  .bar svg { width: 18px; height: 18px; }
  .bar .bar-cta { background: var(--amber); color: var(--ink); }
  .foot { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  .rv, .room, .top, .clock .orb { transition: none; }
  .daurada { height: auto; }
  .dau-stick { position: relative; height: auto; overflow: visible; }
  .dau-frames { position: relative; display: grid; gap: 14px; }
  .dau { position: relative; inset: auto; opacity: 1; }
  .dau img { aspect-ratio: 16/9; height: auto; }
  .dau-frames::after { display: none; }
  .dau-text { position: relative; bottom: auto; padding: 40px var(--pad) 0; left: 0; }
  .pl.on { opacity: 1; }
  .pati-pin { height: auto; display: grid; padding-top: 110px; }
  .pati-text { position: relative; top: auto; left: auto; padding: 0 var(--pad) 24px; }
  .pati-scene { position: relative; inset: auto; }
  .pati-box, .pati-box[style] { position: relative; left: 0; width: 100%; height: auto; transform: none; }
}

@media (min-width: 1800px) {
  body { font-size: 19px; }
  .room strong { font-size: clamp(48px, 2.6vw, 64px); }
  .an-y { font-size: 26px; } .an p { font-size: 18px; }
  .courses strong { font-size: 27px; }
  .logo { width: 120px; }
}
