/* ONDULÉ home */
.sec-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 24px 60px; align-items: end; margin-bottom: clamp(32px, 4vw, 64px); }
@media (max-width: 860px) { .sec-head { grid-template-columns: 1fr; } }

/* 1. hero: a latte from above, stirred with the cursor */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 640px; overflow: hidden; background: radial-gradient(ellipse 70% 80% at 72% 48%, #3a2a1e 0%, #22170f 55%, #17100b 100%); color: var(--paper); }
.cup { position: absolute; top: 50%; right: max(-6vw, -80px); width: min(96vh, 66vw); aspect-ratio: 1; transform: translateY(-50%); -webkit-mask-image: radial-gradient(closest-side circle at 50% 46%, #000 79%, transparent 100%); mask-image: radial-gradient(closest-side circle at 50% 46%, #000 79%, transparent 100%); touch-action: pan-y pinch-zoom; }
/* a finger on the liquid stirs; a finger on the glass, the counter or the text scrolls the page */
.cup-liquid { position: absolute; left: 19.4%; top: 19.6%; width: 61.2%; height: 50.8%; border-radius: 50%; touch-action: none; cursor: none; }
.cup img, .cup canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cup canvas { opacity: 0; transition: opacity .6s; }
.cup.gl canvas { opacity: 1; }
.spoon { position: absolute; left: 0; top: 0; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; border: 1.5px solid rgba(251, 248, 243, .8); box-shadow: 0 0 0 6px rgba(251, 248, 243, .12); pointer-events: none; opacity: 0; transition: opacity .3s, width .25s, height .25s, margin .25s; }
.cup:hover .spoon, .cup.stirring .spoon { opacity: 1; }
.cup.spoon-off .spoon { opacity: 0; }
.cup.stirring .spoon { width: 52px; height: 52px; margin: -26px 0 0 -26px; }
.hero-in { position: absolute; left: 0; right: 0; bottom: clamp(40px, 7vh, 90px); z-index: 2; pointer-events: none; }
.hero-in .hero-cta { pointer-events: auto; }
.hero-word { font-size: clamp(96px, 15vw, 270px); line-height: .8; margin: 0 0 18px -.04em; letter-spacing: -.02em; }
.hero-line { font-size: clamp(18px, 1.6vw, 24px); max-width: 22em; margin: 0 0 28px; color: #f1e7da; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .btn-ghost { --fg: var(--paper); }
.stir { position: absolute; right: var(--gut); bottom: clamp(40px, 7vh, 90px); z-index: 3; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.stir p { margin: 0; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: #e3d2bf; }
.stir-pour { min-height: 44px; padding: 0 20px; font-size: 14px; }
.rm .cup { cursor: auto; }
.rm .spoon { display: none; }
/* no stir running (reduced motion, no WebGL, a lost context): the liquid scrolls and zooms like the rest of the page */
.cup:not(.gl) .cup-liquid { touch-action: pan-y pinch-zoom; cursor: auto; }
.cup:not(.gl) .spoon { display: none; }
/* phones and tablets: the cup, the pour control and the text stack in flow, so they never overlap on a short screen */
@media (max-width: 860px) {
  .hero { height: auto; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; padding: 72px 0 28px; }
  .cup { position: relative; top: auto; right: auto; flex: none; align-self: center; width: min(118vw, 58vh); margin: 0 0 calc(min(118vw, 58vh) * -.2); transform: none; }
  .stir { position: relative; left: auto; right: auto; top: auto; bottom: auto; align-items: flex-start; padding: 0 var(--gut); margin-bottom: 20px; }
  .hero-in { position: relative; bottom: auto; margin-top: auto; }
}
@media (max-width: 860px) and (max-height: 760px) {
  .cup { width: min(118vw, 48vh); margin-bottom: calc(min(118vw, 48vh) * -.2); }
  .hero-word { font-size: 84px; margin-bottom: 12px; }
  .hero-line { margin-bottom: 20px; }
}
@media (max-width: 420px) { .hero-cta { flex-wrap: nowrap; gap: 8px; } .hero-cta .btn { padding-inline: 16px; white-space: nowrap; } }
@media (max-width: 860px) and (max-height: 700px) {
  .cup { width: min(118vw, 40vh); margin-bottom: calc(min(118vw, 40vh) * -.2); }
  .stir { margin-bottom: 14px; }
}
@media (hover: none) { .cup, .cup-liquid { cursor: auto; } .spoon { display: none; } }

/* 2. film */
.film { padding: clamp(80px, 10vw, 150px) 0 clamp(60px, 8vw, 110px); }
.film-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 60px; align-items: end; margin-bottom: 40px; }
@media (max-width: 860px) { .film-head { grid-template-columns: 1fr; } }
.film-box { position: relative; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; background: #1c130d; }
.film-box img, .film-box video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film-box video { background: #000; }
.film-play { position: absolute; inset: 0; width: 100%; display: flex; align-items: center; justify-content: center; gap: 20px; border: 0; background: linear-gradient(0deg, rgba(23, 14, 8, .45), rgba(23, 14, 8, .05)); color: var(--paper); cursor: pointer; }
.film-play .ring { width: clamp(76px, 8vw, 118px); height: clamp(76px, 8vw, 118px); border-radius: 50%; background: rgba(251, 248, 243, .92); display: grid; place-items: center; transition: transform .5s var(--ease); }
.film-play .ring svg { width: 34%; height: 34%; fill: var(--ink); margin-left: 6%; }
.film-play:hover .ring { transform: scale(1.08); }
.film-play .lbl { font-family: var(--serif); font-size: clamp(28px, 3vw, 46px); text-align: left; line-height: 1; }
.film-play .lbl small { display: block; font-family: var(--sans); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin-top: 8px; font-weight: 700; }
.film-box.playing .film-play, .film-box.playing img { display: none; }

/* 3. six bases */
.six { padding: clamp(40px, 6vw, 90px) 0 clamp(80px, 9vw, 140px); }
.six-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 18px); }
.six-row a { display: block; text-decoration: none; }
.six-m { aspect-ratio: 3 / 4.4; border-radius: 18px; overflow: hidden; background: var(--stone); }
.six-m img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; transform: scale(1.5); transform-origin: 50% 40%; transition: transform 1s var(--ease); }
.six-row a:hover .six-m img { transform: scale(1.6) translateY(-2%); }
.six-row h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 2vw, 32px); margin: 14px 0 2px; line-height: 1; }
.six-row p { margin: 0; font-size: 14px; color: var(--ink-2); }
@media (max-width: 1100px) { .six-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .six-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 4. build */
.build { padding: clamp(80px, 9vw, 140px) 0; background: var(--paper); }

/* 5. hours */
.hours { display: grid; grid-template-columns: 1fr 1fr; background: var(--night); color: var(--paper); }
.hr { position: relative; min-height: min(88vh, 860px); overflow: hidden; }
.hr-m { position: absolute; inset: 0; }
.hr-m::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20, 12, 7, .78) 0%, rgba(20, 12, 7, .1) 55%); }
.hr-t { position: absolute; left: clamp(20px, 3vw, 48px); right: clamp(20px, 3vw, 48px); bottom: clamp(26px, 4vw, 56px); z-index: 2; max-width: 30em; }
.hr-time { font-size: clamp(80px, 10vw, 168px); line-height: .8; margin: 0 0 18px; }
.hr-time small { font-size: .3em; margin-left: .2em; font-style: italic; }
.hr h3 { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; margin: 0 0 8px; }
.hr p:not(.hr-time) { margin: 0; color: #eadfd2; font-size: 17px; }
@media (max-width: 860px) { .hours { grid-template-columns: 1fr; } .hr { min-height: 78vh; } }

/* 6. ice */
.ice { position: relative; min-height: min(96vh, 940px); display: flex; align-items: center; justify-content: flex-end; padding: 60px var(--gut); }
.ice-media { position: absolute; inset: 0; }
.ice-card { position: relative; z-index: 2; width: min(460px, 100%); background: rgba(251, 248, 243, .94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-radius: 24px; padding: 16px 16px 30px; display: grid; gap: 14px; }
.ice-card > :not(.ice-mini) { margin-left: 14px; margin-right: 14px; }
.ice-mini { aspect-ratio: 16 / 10; border-radius: 14px; }
.ice-card .link { justify-self: start; }
@media (max-width: 700px) { .ice { min-height: 0; padding: 50vh 16px 16px; } }

/* 7. roast */
.roast { position: relative; min-height: min(100vh, 980px); display: flex; align-items: flex-end; padding: 120px 0 clamp(50px, 7vw, 100px); color: var(--paper); }
.roast-media { position: absolute; inset: 0; }
.roast-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 12, 7, .82), rgba(20, 12, 7, .2) 70%); }
.roast-in { position: relative; z-index: 2; }
.roast-in .lede { margin: 22px 0 36px; }
.facts { list-style: none; margin: 0 0 36px; padding: 0; display: flex; flex-wrap: wrap; gap: 20px 54px; }
.facts li { font-size: 14px; color: #e6d9ca; max-width: 12em; }
.facts b { display: block; font-size: clamp(44px, 4.6vw, 72px); line-height: 1; color: var(--paper); margin-bottom: 4px; }

/* 8. pastry */
.pastry { padding: clamp(80px, 9vw, 140px) 0; }
.pastry-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 20px); }
.pastry-row a { text-decoration: none; display: block; }
.pastry-row .pm { aspect-ratio: 4 / 5; border-radius: 18px; }
.pastry-row img { transition: transform 1s var(--ease); }
.pastry-row a:hover img { transform: scale(1.05); }
.pastry-row h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; margin: 14px 0 0; line-height: 1; display: flex; justify-content: space-between; gap: 10px; }
.pastry-row h3 span { font-family: var(--sans); font-size: 15px; font-weight: 700; }
.pastry-row p { margin: 4px 0 0; font-size: 14px; color: var(--ink-2); }
@media (max-width: 900px) { .pastry-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 9. bars */
.bars { display: grid; grid-template-columns: 1.15fr .85fr; min-height: min(92vh, 900px); background: var(--stone); }
.bars-media { min-height: 420px; }
.bars-panel { padding: clamp(40px, 5vw, 80px) var(--gut); display: flex; flex-direction: column; gap: 22px; justify-content: center; }
.bars-panel .btn { align-self: flex-start; }
.mini-map .map { width: 100%; height: auto; max-height: 300px; }

.open-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.open-list li { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.open-list a { font-weight: 700; text-decoration: none; }
.open-list .st { color: var(--ink-2); }
.open-list .st.on { color: #3f6b2a; font-weight: 700; }
@media (max-width: 900px) { .bars { grid-template-columns: 1fr; } .bars-media { min-height: 60vh; } }
