/* Forn de l'Albada · web de mostra de Tramuntana Digital.
   Dos temes: nit (sutge i brasa) per a l'ofici i dia (farina i crosta) per a la botiga.
   Formes: arc de forn per a les fotos de producte i del procés, píndola per als botons, 6px per a panells.
   Capes (z-index): gra 90 · avís 80 · barra d'encàrrec 60 · capçalera 50 · menú mòbil 45 · llum 40.
   Tot el que s'amaga abans d'animar-se depèn de la classe .motion (la posa el JS si no hi ha "reduir moviment"). */

@font-face { font-family: "Erode"; src: url("fonts/erode-variable.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Erode"; src: url("fonts/erode-variable-italic.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("fonts/instrument-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
  --soot: #120d0a; --soot-2: #1b1410; --flour: #f2e8d8; --ash: #b9a995;
  --ember: #ee7a2b; --ember-deep: #a84a14; --ember-ink: #1a0e06;
  --paper: #e9e3d8; --paper-2: #ded6c8; --crust: #1c1410;
  --serif: "Erode", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gut: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}
.t-night { --bg: var(--soot); --bg2: var(--soot-2); --ink: var(--flour); --muted: var(--ash); --line: rgba(242, 232, 216, .16); --accent: var(--ember); background: var(--bg); color: var(--ink); }
.t-day { --bg: var(--paper); --bg2: var(--paper-2); --ink: var(--crust); --muted: #5d4f43; --line: rgba(28, 20, 16, .17); --accent: var(--ember-deep); background: var(--bg); color: var(--ink); }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; background: var(--soot); color: var(--flour); font: 400 1.0625rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
/* Gra de paper: una sola capa fixa i quieta. */
body::after { content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--ember); color: var(--ember-ink); }

.wrap { width: min(100% - 2 * var(--gut), 1320px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; padding: 12px 18px; border-radius: 999px; background: var(--ember); color: var(--ember-ink); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 70px; pointer-events: none; }

/* Tipografia */
.h1, .h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -.022em; }
.h2 { font-size: clamp(2.3rem, 5.4vw, 4.9rem); line-height: 1.04; text-wrap: balance; }
h3 { font-size: 1.5rem; line-height: 1.15; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.3rem); color: var(--muted); max-width: 34em; margin-top: 1.1em; }
.eyebrow { font: 600 .78rem/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ember); }
/* Paraules que pugen dins la seva màscara (el marge negatiu evita tallar accents i trets descendents). */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: .1em .06em .2em; margin: -.1em -.06em -.2em; }
.w > span { display: inline-block; }

/* Botons: píndola */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6em; min-height: 54px; padding: 0 1.7em; border: 0; border-radius: 999px; font: 600 1rem/1 var(--sans); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .3s, color .3s, box-shadow .4s, transform .5s var(--ease); }
.btn:active { transform: scale(.97); }
.btn-in { display: inline-block; }
.btn-fire { background: var(--ember); color: var(--ember-ink); box-shadow: 0 12px 34px -14px rgba(238, 122, 43, .75); }
.btn-fire:hover { background: #f78d40; }
.btn-fire.is-busy { opacity: .7; cursor: progress; }
.btn-line { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn-line:hover { background: var(--ink); color: var(--bg); box-shadow: inset 0 0 0 1.5px var(--ink); }

/* Capçalera */
.top { position: absolute; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; gap: clamp(14px, 2.2vw, 34px); height: 76px; padding-inline: var(--gut); color: var(--flour); transition: background-color .4s, color .4s, height .5s var(--ease); }
.js .top { position: fixed; }
.top.is-stuck { height: 64px; background: rgba(18, 13, 10, .8); backdrop-filter: blur(12px) saturate(1.2); -webkit-backdrop-filter: blur(12px) saturate(1.2); }
.top.is-day { color: var(--crust); }
.top.is-day.is-stuck { background: rgba(233, 227, 216, .84); }
.brand { display: inline-flex; align-items: center; gap: .55em; margin-right: auto; font: 500 1.32rem/1 var(--serif); letter-spacing: -.012em; text-decoration: none; white-space: nowrap; }
.brand em { font-style: italic; }
.mark { width: 30px; height: 30px; flex: none; }
.mark-arch { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.mark-sun { fill: var(--ember); }
.nav { display: flex; gap: clamp(16px, 2vw, 30px); }
.nav a { position: relative; padding: 8px 0; font-size: .95rem; font-weight: 500; text-decoration: none; white-space: nowrap; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 3px; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.status { display: inline-flex; align-items: center; gap: .55em; font-size: .88rem; font-weight: 500; white-space: nowrap; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: #8d8378; flex: none; }
.status.is-open i { background: #4fb866; box-shadow: 0 0 0 4px rgba(79, 184, 102, .22); }
.top .st-b { display: none; }
.lang { padding: 8px 4px; font: 600 .8rem/1 var(--sans); letter-spacing: .1em; text-decoration: none; }
.top-cta { min-height: 44px; padding: 0 1.25em; font-size: .92rem; box-shadow: none; }
.cart { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--ember-ink); color: var(--ember); font-size: .75rem; }
.menu-btn { display: none; position: relative; width: 46px; height: 46px; margin-right: -10px; border: 0; background: none; cursor: pointer; }
.menu-btn i { position: absolute; left: 11px; right: 11px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .5s var(--ease); }
.menu-btn i:nth-of-type(1) { top: 18px; }
.menu-btn i:nth-of-type(2) { top: 27px; }
.menu-btn[aria-expanded="true"] i:nth-of-type(1) { transform: translateY(4.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] i:nth-of-type(2) { transform: translateY(-4.5px) rotate(-45deg); }
.mnav { position: fixed; inset: 0; z-index: 45; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: 110px var(--gut) 36px; overflow-y: auto; opacity: 0; transition: opacity .4s; }
.mnav.is-open { opacity: 1; }
.mnav-links { display: grid; gap: 4px; }
.mnav-links a { font: 500 clamp(2.1rem, 9vw, 3rem)/1.2 var(--serif); letter-spacing: -.02em; text-decoration: none; transform: translateY(24px); opacity: 0; transition: transform .7s var(--ease), opacity .5s; }
.mnav.is-open .mnav-links a { transform: none; opacity: 1; }
.mnav.is-open .mnav-links a:nth-child(2) { transition-delay: .05s; }
.mnav.is-open .mnav-links a:nth-child(3) { transition-delay: .1s; }
.mnav.is-open .mnav-links a:nth-child(4) { transition-delay: .15s; }
.mnav.is-open .mnav-links a:nth-child(5) { transition-delay: .2s; }
.mnav-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; }
.mnav-foot .status { flex-basis: 100%; }
.mnav-foot .status, .visit-col .status { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: .6em; align-items: center; white-space: normal; }
.mnav-foot .st-b, .visit-col .st-b { grid-column: 2; color: var(--muted); }
.menu-open { overflow: hidden; }
.menu-open .top.top.top { color: var(--flour); background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
@media (max-width: 1180px) { .top .status { display: none; } }
@media (max-width: 1040px) {
  .top .nav, .top .lang, .top-cta { display: none; }
  .menu-btn { display: block; }
  .top { height: 64px; }
  .top.is-stuck { height: 58px; }
}

/* Portada */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; align-items: center; overflow: clip; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -5; transform-origin: 70% 28%; }
.hero-zoom { position: absolute; inset: 0; }
.hero-zoom picture, .hero-zoom img, .hero-video { display: block; width: 100%; height: 100%; }
.hero-zoom img, .hero-video { object-fit: cover; object-position: 66% 22%; }
/* El vídeo del foc entra per sobre del seu primer fotograma quan ja es pot reproduir (només pantalles amples). */
.hero-video { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease; }
.hero-video.is-on { opacity: 1; }
.hero-glow { position: absolute; z-index: -4; left: 24%; top: -14%; width: 84%; height: 66%; background: radial-gradient(closest-side, rgba(255, 140, 44, .36), rgba(255, 118, 30, .12) 58%, transparent 76%); mix-blend-mode: screen; }
.hero-shade { position: absolute; inset: 0; z-index: -3; background: linear-gradient(90deg, rgba(18, 13, 10, .9) 0%, rgba(18, 13, 10, .66) 34%, rgba(18, 13, 10, 0) 58%), linear-gradient(180deg, rgba(18, 13, 10, .8) 0, rgba(18, 13, 10, .28) 15%, rgba(18, 13, 10, 0) 30%, rgba(18, 13, 10, 0) 66%, var(--soot) 100%); }
.embers { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; pointer-events: none; }
.hero-dim { position: absolute; inset: 0; z-index: -1; background: var(--soot); opacity: 0; }
.hero-in { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 100vh; min-height: 100svh; padding: clamp(100px, 15vh, 160px) 0 clamp(76px, 12vh, 130px); }
/* El pa d'avui: canvia sol segons el dia. */
.today { position: absolute; right: 62px; bottom: 28px; display: inline-grid; gap: 4px; padding: 12px 46px 12px 16px; border-radius: 6px; background: rgba(18, 13, 10, .58); box-shadow: inset 0 0 0 1px rgba(242, 232, 216, .22); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); text-decoration: none; transition: background-color .3s; }
.today::after { content: "→"; position: absolute; right: 16px; top: 50%; color: var(--ember); transform: translateY(-50%); transition: transform .45s var(--ease); }
.today:hover { background: rgba(18, 13, 10, .86); }
.today:hover::after { transform: translate(5px, -50%); }
.today-k { font: 600 .7rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ember); }
.today-v { font: 500 1.14rem/1.2 var(--serif); letter-spacing: -.01em; }
.h1 { margin-top: .32em; font-size: clamp(3.1rem, 7.2vw, 7.6rem); line-height: 1.04; letter-spacing: -.03em; }
.h1 .line { display: block; }
.h1 em { font-style: italic; font-weight: 400; color: var(--ember); }
.hero-sub { max-width: min(29em, 42vw); margin-top: 1.5em; font-size: clamp(1.06rem, 1.35vw, 1.3rem); color: rgba(242, 232, 216, .9); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2.1em; }
.hero .btn-line { background: rgba(18, 13, 10, .35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hero .btn-line:hover { background: var(--flour); color: var(--soot); }
.motion-btn { position: absolute; right: var(--gut); bottom: 30px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(18, 13, 10, .5); color: var(--flour); box-shadow: inset 0 0 0 1px rgba(242, 232, 216, .28); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); cursor: pointer; transition: background-color .3s; }
.motion-btn:hover { background: rgba(18, 13, 10, .8); }
.motion-btn svg { width: 16px; height: 16px; fill: currentColor; }
.motion-btn .i-play, .motion-btn[aria-pressed="true"] .i-pause { display: none; }
.motion-btn[aria-pressed="true"] .i-play { display: block; }
@media (orientation: portrait) and (max-width: 820px) {
  .hero { align-items: stretch; }
  .hero-zoom img { object-position: 50% 50%; }
  .hero-media { transform-origin: 50% 50%; }
  .hero-glow { left: -10%; top: 26%; width: 120%; height: 46%; }
  .today { position: static; align-self: flex-start; margin-bottom: 16px; }
  .hero-shade { background: linear-gradient(180deg, rgba(18, 13, 10, .82) 0, rgba(18, 13, 10, .5) 26%, rgba(18, 13, 10, 0) 44%, rgba(18, 13, 10, 0) 56%, rgba(18, 13, 10, .82) 74%, var(--soot) 100%); }
  .hero-in { justify-content: space-between; padding: 92px 0 30px; }
  .hero-bottom { display: flex; flex-direction: column; }
  .hero-sub { max-width: 29em; margin-top: 0; }
  .hero-cta { margin-top: 1.4em; }
  .hero-cta .btn { flex: 1 1 auto; }
  .motion-btn { top: 78px; bottom: auto; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-zoom { animation: settle 2.6s var(--ease) both; }
  .today { animation: fade-up 1.1s .8s var(--ease) both; }
  .hero-glow { animation: flicker 3.7s infinite; }
  .paused .hero-glow { animation-play-state: paused; }
  .h1 .w > span { animation: rise 1s var(--ease) both; }
  .h1 .d1 { animation-delay: .05s; } .h1 .d2 { animation-delay: .11s; } .h1 .d3 { animation-delay: .17s; } .h1 .d4 { animation-delay: .25s; }
  .h1 .d5 { animation-delay: .31s; } .h1 .d6 { animation-delay: .37s; } .h1 .d7 { animation-delay: .43s; } .h1 .d8 { animation-delay: .49s; }
  .hero .eyebrow { animation: fade-up 1s .05s var(--ease) both; }
  .hero-sub { animation: fade-up 1.1s .5s var(--ease) both; }
  .hero-cta { animation: fade-up 1.1s .62s var(--ease) both; }
}
@keyframes settle { from { transform: scale(1.12); } to { transform: none; } }
@keyframes rise { from { transform: translateY(112%) rotate(5deg); } to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes flicker { 0%, 100% { opacity: .78; transform: scale(1); } 12% { opacity: 1; } 21% { opacity: .66; transform: scale(1.03); } 37% { opacity: .92; } 48% { opacity: .72; } 63% { opacity: 1; transform: scale(.98); } 78% { opacity: .7; } 90% { opacity: .95; } }

/* Manifest: les paraules s'encenen amb el scroll */
.manifest { padding: clamp(90px, 15vw, 230px) 0 clamp(70px, 11vw, 170px); }
.manifest-text { max-width: 21em; font: 400 clamp(1.7rem, 4.1vw, 3.9rem)/1.17 var(--serif); letter-spacing: -.018em; text-wrap: pretty; }
.motion .mw { opacity: .15; transition: opacity .6s ease; }
.motion .mw.lit { opacity: 1; }

/* Una nit al forn. Sense moviment: llista de passos amb foto. Amb moviment: escena fixa. */
.night { padding: clamp(60px, 9vw, 130px) 0; }
.night-lead { margin-top: .9em; color: var(--muted); font-size: clamp(1.02rem, 1.3vw, 1.22rem); }
.clock, .night-arch, .night-bar { display: none; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: clamp(30px, 4vw, 60px); margin-top: clamp(34px, 5vw, 70px); }
.step { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 20px; }
.step-fig { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 50% 50% 6px 6px / 40% 40% 6px 6px; background: var(--soot-2); }
.step-fig img { width: 100%; height: 100%; object-fit: cover; }
.step-time { font: 600 .82rem/1 var(--sans); letter-spacing: .1em; color: var(--ember); font-variant-numeric: tabular-nums; }
.step h3 { margin-top: .35em; font-size: clamp(1.3rem, 1.9vw, 1.7rem); }
.step-desc p { margin-top: .5em; max-width: 36ch; color: var(--muted); font-size: 1rem; line-height: 1.5; }

.motion .night { padding: 0; height: calc(100vh + 6 * 50vh); }
.motion .night-pin { position: sticky; top: 0; display: grid; align-items: center; height: 100vh; height: 100svh; overflow: clip; }
.motion .night-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: clamp(32px, 6vw, 110px); padding-top: 58px; }
.motion .clock { display: flex; align-items: baseline; margin-top: .16em; font: 400 clamp(4rem, min(9.5vw, 17vh), 9.5rem)/1 var(--serif); letter-spacing: -.03em; font-variant-numeric: lining-nums tabular-nums; color: var(--flour); }
.clock span { display: inline-block; width: .54em; text-align: center; }
.clock i { width: .28em; text-align: center; font-style: normal; color: var(--ember); }
.motion .steps { position: relative; display: block; margin-top: clamp(12px, 2.4vh, 28px); padding-left: 30px; --rail-y: 0px; }
.motion .steps::before { content: ""; position: absolute; left: 4px; top: 10px; bottom: 10px; width: 1px; background: var(--line); }
.motion .steps::after { content: ""; position: absolute; left: 0; top: 14px; width: 9px; height: 9px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 0 5px rgba(238, 122, 43, .2); transform: translateY(var(--rail-y)); transition: transform .8s var(--ease); }
.motion .step { display: block; padding: clamp(5px, 1vh, 9px) 0; opacity: .38; transition: opacity .5s; }
.motion .step.is-on { opacity: 1; }
.motion .step-text { display: grid; grid-template-columns: 3.7em minmax(0, 1fr); column-gap: 10px; align-items: baseline; }
.motion .step h3 { margin-top: 0; font-size: clamp(1.15rem, 1.75vw, 1.6rem); }
.motion .step-desc { grid-column: 2; display: grid; grid-template-rows: 0fr; transition: grid-template-rows .8s var(--ease); }
.motion .step.is-on .step-desc { grid-template-rows: 1fr; }
.motion .step-desc > div { min-height: 0; overflow: hidden; }
.motion .night-arch { position: relative; display: grid; place-items: center; isolation: isolate; }
.arch-glow { position: absolute; inset: -16% -22%; z-index: -1; background: radial-gradient(closest-side, rgba(238, 122, 43, .4), rgba(238, 122, 43, .1) 55%, transparent 74%); opacity: .25; }
.motion .arch { position: relative; width: min(100%, calc((100svh - 200px) * .8), 520px); aspect-ratio: 4 / 5; overflow: hidden; border-radius: 50% 50% 6px 6px / 40% 40% 6px 6px; background: var(--soot-2); outline: 1px solid var(--line); outline-offset: 14px; isolation: isolate; }
.motion .arch .step-fig { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; will-change: transform; }
.motion .arch .step-fig img { will-change: transform; }
.motion .night-bar { display: block; position: absolute; left: var(--gut); right: var(--gut); bottom: 22px; height: 2px; background: var(--line); }
.night-bar i { display: block; height: 100%; background: var(--ember); transform: scaleX(0); transform-origin: left; }
@media (max-width: 860px) {
  .motion .night-pin { align-items: start; }
  .motion .night-grid { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 74px; }
  .motion .night-copy { display: contents; }
  .motion .night .h2 { order: 1; font-size: clamp(1.5rem, 6vw, 2rem); }
  .motion .night-lead { display: none; }
  .motion .night-arch { order: 2; margin-top: clamp(22px, 4.4vh, 38px); }
  .motion .arch { width: min(80vw, calc(46svh * .8)); outline-offset: 9px; }
  .motion .clock { order: 3; margin-top: clamp(18px, 3.2vh, 30px); font-size: clamp(2.9rem, 14vw, 4rem); }
  .motion .steps { order: 4; min-height: 9.5em; margin-top: 6px; padding-left: 0; }
  .motion .steps::before, .motion .steps::after, .motion .step-time { display: none; }
  .motion .step { position: absolute; inset: 0 0 auto 0; padding: 0; opacity: 0; transform: translateY(14px); transition: opacity .45s, transform .7s var(--ease); }
  .motion .step.is-on { transform: none; }
  .motion .step-text { display: block; }
  .motion .step h3 { font-size: 1.45rem; }
  .motion .step-desc { grid-template-rows: 1fr; }
  .motion .night-bar { bottom: 16px; }
}

/* Albada: de la nit al dia */
.dawn { position: relative; }
.motion .dawn { height: 150vh; }
.dawn-pin { position: relative; display: grid; align-items: start; height: 100vh; height: 100svh; overflow: clip; }
.motion .dawn-pin { position: sticky; top: 0; }
.dawn-media { position: absolute; inset: 0; transform-origin: 40% 62%; }
.dawn-media picture, .dawn-media img { display: block; width: 100%; height: 100%; }
.dawn-media img { object-fit: cover; object-position: 50% 42%; }
.dawn-mist { position: absolute; inset: auto 0 -1px 0; height: 36%; background: linear-gradient(180deg, rgba(233, 227, 216, 0), var(--paper)); }
.dawn-veil { position: absolute; inset: 0; background: var(--soot); opacity: 0; }
.motion .dawn-veil { opacity: 1; }
/* La nit es retira cap amunt: evita el tall recte entre la secció fosca i el cel. */
.dawn-dusk { display: none; position: absolute; inset: -1px 0 auto 0; height: 40%; background: linear-gradient(180deg, var(--soot) 0, rgba(18, 13, 10, .5) 36%, rgba(18, 13, 10, 0) 100%); }
.motion .dawn-dusk { display: block; }
.dawn-in { position: relative; padding-top: clamp(110px, 19vh, 200px); color: var(--crust); text-align: center; }
.dawn-title { font: 500 clamp(4.2rem, 15.5vw, 15rem)/.95 var(--serif); letter-spacing: -.045em; }
.dawn-sub { margin-top: .5em; font-size: clamp(1.1rem, 1.8vw, 1.5rem); font-weight: 500; }
@media (orientation: portrait) {
  .dawn-media { transform-origin: 46% 78%; }
  .dawn-media img { object-position: 50% 100%; }
  .dawn-mist { height: 22%; }
}

/* Seccions de dia */
main > .t-day { padding: clamp(80px, 11vw, 170px) 0; }
.sec-head { max-width: 47rem; margin-bottom: clamp(40px, 6vw, 92px); }
.motion [data-rise] .w > span { transform: translateY(112%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 55ms); }
.motion [data-rise].in .w > span { transform: none; }
.motion [data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity .9s ease, transform 1.2s var(--ease); transition-delay: var(--d, 0ms); }
.motion [data-reveal].in { opacity: 1; transform: none; }
[data-plx-frame] { overflow: hidden; }
[data-plx] { width: 100%; height: 100%; object-fit: cover; }
.motion [data-plx] { transform: scale(1.16); will-change: transform; }

/* Els pans */
.pans { padding-top: clamp(40px, 6vw, 90px) !important; }
.pans-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(36px, 5vw, 76px) clamp(20px, 3.2vw, 52px); }
.pa:nth-child(3n + 2) { margin-top: clamp(40px, 7.5vw, 120px); }
.pa-fig { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 50% 50% 6px 6px / 40% 40% 6px 6px; background: var(--soot-2); }
.pa-zoom { width: 100%; height: 100%; transition: transform 1.4s var(--ease); }
.pa:hover .pa-zoom { transform: scale(1.06); }
.pa-body { padding-top: 20px; }
.pa-tag { margin-bottom: .5em; font: 600 .74rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.pa h3 { font-size: clamp(1.45rem, 2.1vw, 1.95rem); }
.pa-desc { margin-top: .45em; max-width: 30ch; color: var(--muted); font-size: 1rem; line-height: 1.5; }
.pa-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.pa-meta { display: flex; align-items: baseline; gap: .7em; color: var(--muted); font-size: .92rem; }
.pa-meta b { font: 500 1.3rem/1 var(--serif); color: var(--ink); font-variant-numeric: lining-nums; }
.add { display: inline-flex; align-items: center; gap: .55em; height: 44px; padding: 0 1.1em 0 .5em; border: 0; border-radius: 999px; background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); font: 600 .9rem/1 var(--sans); cursor: pointer; transition: background-color .3s, color .3s, box-shadow .3s; }
.add i { position: relative; width: 30px; height: 30px; border-radius: 50%; background: var(--ember); flex: none; }
.add i::before, .add i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 2px; background: var(--ember-ink); }
.add i::after { transform: rotate(90deg); }
.add:hover { background: var(--ink); color: var(--bg); box-shadow: inset 0 0 0 1.5px var(--ink); }
.add:active { transform: scale(.96); }
.add.is-added i { animation: pop .5s var(--ease); }
@keyframes pop { 40% { transform: scale(1.35) rotate(90deg); } }
@media (max-width: 900px) {
  .pans-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pa:nth-child(3n + 2) { margin-top: 0; }
  .pa:nth-child(2n) { margin-top: clamp(30px, 8vw, 70px); }
}
@media (max-width: 600px) {
  .pans-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .pa:nth-child(n) { margin-top: 0; }
  .pa { display: grid; grid-template-columns: 34% minmax(0, 1fr); gap: 18px; align-items: center; }
  .pa-body { padding-top: 0; }
  .pa-foot { flex-wrap: wrap; }
}

/* La pissarra */
.board { padding-top: 0 !important; }
.slate { --bg: #1a1411; padding: clamp(28px, 5vw, 78px); border-radius: 6px; }
.slate-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 32px; margin-bottom: clamp(30px, 4.5vw, 62px); }
.slate-head p { color: var(--muted); }
.slate-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(30px, 4.4vw, 70px); }
.slate-col h3 { margin-bottom: 1em; font-style: italic; font-weight: 400; font-size: 1.45rem; color: var(--ember); }
.prices { display: grid; gap: .78em; }
.prices li { display: flex; align-items: baseline; gap: .6em; }
.prices i { flex: 1; min-width: 1.2em; border-bottom: 1.5px dotted rgba(242, 232, 216, .3); transform: translateY(-.3em); }
.prices b { font: 500 1.14rem/1 var(--serif); font-variant-numeric: lining-nums tabular-nums; }
.prices small { color: var(--muted); font-size: .84em; }
.prices li.is-today .pr-name { font-weight: 700; }
.chip { display: inline-block; margin-left: .3em; padding: .28em .7em; border-radius: 999px; background: var(--ember); color: var(--ember-ink); font: 700 .68rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; vertical-align: .12em; }
@media (max-width: 900px) { .slate-cols { grid-template-columns: minmax(0, 1fr); } }

/* Les eines: tires que s'obren */
.eines { padding-bottom: clamp(60px, 8vw, 120px) !important; }
.strips { display: flex; gap: 10px; height: clamp(440px, 70vh, 660px); padding-inline: var(--gut); max-width: 1680px; margin-inline: auto; }
.strip { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; border-radius: 6px; background: var(--soot-2); color: var(--flour); cursor: pointer; transition: flex-grow .9s var(--ease); }
.strip.is-on { flex-grow: 5; cursor: default; }
.strip img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); filter: saturate(.65) brightness(.72); transition: transform 1.4s var(--ease), filter .9s; }
.strip.is-on img { transform: none; filter: none; }
.strip:nth-child(5) img { object-position: 74% 50%; }
.strip::after { content: ""; position: absolute; inset: 40% 0 0 0; background: linear-gradient(180deg, rgba(18, 13, 10, 0), rgba(18, 13, 10, .9)); pointer-events: none; }
.strip-body { position: absolute; inset: auto 0 0 0; z-index: 1; padding: clamp(16px, 2vw, 30px); }
.strip-btn { padding: 0; border: 0; background: none; font: inherit; letter-spacing: inherit; text-align: left; cursor: inherit; }
.strip h3 { font-size: clamp(1.05rem, 1.5vw, 1.3rem); white-space: nowrap; transition: font-size .7s var(--ease); }
.strip.is-on h3 { font-size: clamp(1.7rem, 3vw, 2.7rem); }
.strip p { position: absolute; left: clamp(16px, 2vw, 30px); bottom: clamp(16px, 2vw, 30px); width: min(30em, 80vw, 100% - 2 * clamp(16px, 2vw, 30px)); color: rgba(242, 232, 216, .9); opacity: 0; transform: translateY(14px); transition: opacity .3s, transform .6s var(--ease); pointer-events: none; }
.strip.is-on p { position: relative; left: auto; bottom: auto; margin-top: .5em; opacity: 1; transform: none; transition-delay: .25s; }
@media (max-width: 760px) {
  .strips { flex-direction: column; height: auto; gap: 8px; }
  .strip { flex: none; height: 74px; transition: height .8s var(--ease); }
  .strip.is-on { height: min(62vh, 440px); }
  .strip::after { inset: 0; background: linear-gradient(180deg, rgba(18, 13, 10, .1), rgba(18, 13, 10, .82)); }
}

/* La casa */
.casa-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(20px, 3vw, 48px); row-gap: clamp(44px, 6.5vw, 100px); align-items: center; }
.casa-copy { grid-column: 1 / 6; }
.casa-copy p { margin-top: 1.2em; max-width: 34em; color: var(--muted); font-size: clamp(1.05rem, 1.3vw, 1.2rem); }
.casa-copy p:last-child { color: var(--ink); font: italic 400 clamp(1.4rem, 2.1vw, 1.9rem)/1.25 var(--serif); }
.casa-fig { grid-column: 7 / 13; aspect-ratio: 5 / 4; border-radius: 6px; background: var(--soot-2); }
.stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px clamp(20px, 3vw, 48px); padding-top: clamp(28px, 4vw, 50px); border-top: 1px solid var(--line); }
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.stat dd { font: 400 clamp(3.2rem, 7vw, 6.4rem)/1 var(--serif); letter-spacing: -.035em; font-variant-numeric: lining-nums tabular-nums; }
.stat dt { margin-top: .5em; color: var(--muted); font-size: .98rem; }
@media (max-width: 900px) {
  .casa-copy, .casa-fig { grid-column: 1 / -1; }
  .casa-fig { order: -1; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Encàrrecs */
.order { background: var(--paper-2) !important; --bg2: #e9e3d8; }
.order-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(34px, 6vw, 100px); align-items: start; }
.order-head { position: sticky; top: 110px; }
.order-panel { padding: clamp(22px, 3.4vw, 50px); border-radius: 6px; background: var(--bg2); }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.order-items legend { padding: 0; margin-bottom: .5em; font: 500 1.6rem/1.15 var(--serif); letter-spacing: -.02em; }
.item { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px 18px; padding: 7px 0; }
.item-name { font-weight: 600; line-height: 1.3; }
.item-name small { color: var(--muted); font-weight: 400; font-size: .86em; white-space: nowrap; }
.item-price { font: 500 1.08rem/1 var(--serif); font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.qty { display: inline-flex; align-items: center; height: 44px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px rgba(28, 20, 16, .3); transition: box-shadow .3s, background-color .3s; }
.item.has .qty { box-shadow: inset 0 0 0 1.5px var(--crust); background: #f6f2ea; }
.qty button { width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; font-size: 1.25rem; line-height: 1; cursor: pointer; transition: background-color .25s, color .25s; }
.qty button:hover:not(:disabled) { background: var(--crust); color: var(--paper); }
.qty button:disabled { opacity: .3; cursor: default; }
.qty output { min-width: 1.5em; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.order-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 22px; margin-top: 26px; padding-top: 28px; border-top: 1px solid var(--line); }
.field-wide { grid-column: 1 / -1; }
.field > label, .field > legend { display: block; margin-bottom: 8px; padding: 0; font: 600 .92rem/1.3 var(--sans); }
.field small { font-weight: 400; color: var(--muted); }
.field input[type="text"], .field input[type="tel"], .field select, .field textarea { width: 100%; min-height: 52px; padding: 12px 14px; border: 1.5px solid rgba(28, 20, 16, .42); border-radius: 6px; background: #f6f2ea; color: var(--crust); transition: border-color .25s; }
.field textarea { min-height: 84px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--crust); }
.field.is-bad input { border-color: #a3261a; }
.slot label { display: flex; align-items: center; gap: 10px; min-height: 30px; cursor: pointer; }
.slot input { width: 20px; height: 20px; margin: 0; accent-color: var(--ember-deep); }
.slot input:disabled + span { opacity: .45; }
.hint { margin-top: 6px; color: var(--muted); font-size: .86rem; }
.err { margin-top: 6px; color: #a3261a; font-size: .9rem; font-weight: 600; }
.order-sum { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 28px; margin-top: 28px; padding-top: 26px; border-top: 1px solid var(--line); }
.sum-label { color: var(--muted); font-size: .92rem; }
.sum-total { font: 400 clamp(2.3rem, 4vw, 3.3rem)/1 var(--serif); letter-spacing: -.03em; font-variant-numeric: lining-nums tabular-nums; }
.fine { max-width: 32em; margin-top: 10px; color: var(--muted); font-size: .84rem; line-height: 1.45; }
.order-done:focus { outline: none; }
.order-done h3 { font-size: clamp(1.9rem, 3.2vw, 2.8rem); }
.order-done p { margin-top: .8em; max-width: 34em; }
.order-done .btn { margin-top: 1.6em; }
@media (max-width: 900px) {
  .order-grid { grid-template-columns: minmax(0, 1fr); }
  .order-head { position: static; }
}
@media (max-width: 560px) {
  .order-fields { grid-template-columns: minmax(0, 1fr); }
  .item { grid-template-columns: minmax(0, 1fr) auto; }
  .item-price { grid-column: 1; grid-row: 2; margin-top: -8px; }
  .qty { grid-column: 2; grid-row: 1 / 3; }
  .sum-go, .sum-go .btn { width: 100%; }
}

/* Preguntes */
:root { interpolate-size: allow-keywords; }
.faq-in { max-width: 940px; }
.faq-list { margin-top: clamp(26px, 4vw, 54px); }
.q + .q { border-top: 1px solid var(--line); }
.q summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: clamp(16px, 2.2vw, 24px) 0; font: 500 clamp(1.2rem, 1.9vw, 1.6rem)/1.2 var(--serif); letter-spacing: -.015em; list-style: none; cursor: pointer; }
.q summary::-webkit-details-marker { display: none; }
.q summary i { position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line); transition: background-color .3s, color .3s, box-shadow .3s, transform .6s var(--ease); }
.q summary i::before, .q summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; margin: -.75px 0 0 -7px; background: currentColor; }
.q summary i::after { transform: rotate(90deg); }
.q summary:hover i { background: var(--ink); color: var(--bg); box-shadow: none; }
.q[open] summary i { background: var(--ember); color: var(--ember-ink); box-shadow: none; transform: rotate(45deg); }
.q-a { max-width: 44em; padding: 0 60px clamp(18px, 2.4vw, 28px) 0; color: var(--muted); }
.q::details-content { block-size: 0; overflow: clip; transition: block-size .5s var(--ease), content-visibility .5s allow-discrete; }
.q[open]::details-content { block-size: auto; }

/* Barra d'encàrrec fixa (només mòbil, a la part de botiga) */
.obar { display: none; }
@media (max-width: 760px) {
  .obar { display: block; position: fixed; inset: auto 0 0 0; z-index: 60; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(233, 227, 216, .93); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 -1px 0 rgba(28, 20, 16, .14); transform: translateY(110%); transition: transform .6s var(--ease); }
  .obar.is-on { transform: none; }
  .menu-open .obar { transform: translateY(110%); }
  .obar-link { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 54px; padding: 0 8px 0 20px; border-radius: 999px; background: var(--ember); color: var(--ember-ink); font-weight: 600; text-decoration: none; }
  .obar-info { display: flex; align-items: baseline; gap: .7em; font-variant-numeric: tabular-nums; }
  .obar-info span { font: 500 1.12rem/1 var(--serif); font-variant-numeric: lining-nums tabular-nums; }
  .obar-go { display: inline-flex; align-items: center; min-height: 38px; padding: 0 16px; border-radius: 999px; background: var(--ember-ink); color: var(--flour); font-size: .9rem; white-space: nowrap; }
  .obar.is-empty .obar-link { justify-content: center; padding: 0 20px; }
  .obar.is-empty .obar-info { display: none; }
  .obar.is-empty .obar-go { min-height: 0; padding: 0; background: none; color: inherit; font-size: 1rem; }
  .has-obar .toast { bottom: 88px; }
}

/* Llum de foc que segueix el ratolí a la part de nit (només amb ratolí) */
.lamp { position: fixed; left: 0; top: 0; z-index: 40; width: 640px; height: 640px; margin: -320px 0 0 -320px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 164, 72, .22), rgba(255, 122, 40, .08) 46%, rgba(255, 122, 40, 0) 72%); mix-blend-mode: screen; opacity: 0; pointer-events: none; transition: opacity .7s; will-change: transform; }
.lamp.is-on { opacity: 1; }

/* On som */
.visit { padding-top: 0 !important; }
.visit-fig { height: clamp(260px, 44vw, 600px); background: var(--soot-2); }
.visit-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px clamp(20px, 3vw, 48px); padding-top: clamp(50px, 7.5vw, 110px); }
.visit-grid .h2 { grid-column: 1 / 7; }
.visit-col { grid-column: span 3; }
.visit-col h3 { margin-bottom: .7em; font-size: 1.35rem; }
.visit-col address { font-style: normal; }
.visit-tel { margin-top: .5em; font: 500 1.5rem/1.2 var(--serif); font-variant-numeric: lining-nums; }
.visit-col .btn { margin-top: 1.4em; }
.visit-col .status { margin-bottom: 1em; }
.visit-col .st-a { font-weight: 700; }
.hours { display: grid; gap: .55em; }
.hours div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 16px; color: var(--muted); }
.hours dd { text-align: right; }
.hours .is-today { color: var(--ink); font-weight: 600; }
@media (max-width: 1000px) {
  .visit-grid .h2 { grid-column: 1 / -1; }
  .visit-col { grid-column: span 6; }
}
@media (max-width: 640px) { .visit-col { grid-column: 1 / -1; } }

/* Peu */
.foot { position: relative; padding-top: clamp(84px, 12vw, 190px); overflow: clip; isolation: isolate; }
.foot-glow { position: absolute; left: 50%; bottom: -34%; z-index: -1; width: 130vw; height: 78%; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(238, 122, 43, .34), rgba(238, 122, 43, .08) 60%, transparent 78%); }
.foot-line { max-width: 17em; font: italic 400 clamp(1.7rem, 3.6vw, 3.2rem)/1.14 var(--serif); letter-spacing: -.02em; }
.foot-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 30px clamp(24px, 5vw, 80px); margin-top: clamp(44px, 6vw, 86px); color: var(--muted); font-size: .94rem; }
.foot-row nav { display: grid; grid-template-columns: repeat(2, auto); gap: 6px 30px; align-content: start; }
.foot-row nav a { padding: 2px 0; color: var(--flour); text-decoration: none; font: inherit; letter-spacing: 0; }
.foot-row nav a:hover, .foot-note a:hover { color: var(--ember); }
.foot-note { justify-self: end; max-width: 26em; text-align: right; }
.foot-note a { color: var(--flour); }
.foot-word { margin-top: clamp(26px, 5vw, 70px); margin-bottom: -.13em; font: 500 clamp(5rem, 24.5vw, 27rem)/.82 var(--serif); letter-spacing: -.055em; text-align: center; white-space: nowrap; color: var(--flour); will-change: transform; }
@media (max-width: 800px) {
  .foot-row { grid-template-columns: minmax(0, 1fr); }
  .foot-note { justify-self: start; text-align: left; }
}

/* Avís */
.toast { position: fixed; left: 50%; bottom: 22px; z-index: 80; display: flex; align-items: center; gap: 16px; max-width: calc(100vw - 28px); padding: 12px 14px 12px 20px; border-radius: 999px; background: var(--soot); color: var(--flour); font-size: .94rem; box-shadow: 0 16px 44px -14px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(242, 232, 216, .16); transform: translate(-50%, 24px); opacity: 0; transition: transform .6s var(--ease), opacity .35s; }
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }
.toast span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toast a { flex: none; padding: 8px 14px; border-radius: 999px; background: var(--ember); color: var(--ember-ink); font-weight: 600; text-decoration: none; white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}
@media print { .top, .mnav, .toast, .motion-btn, .obar, .lamp, .hero-video, body::after { display: none !important; } }
