/* Ceyvara — light, quiet luxury. Colours come from the five matte tubes. */
:root {
  --ivory: #F4F1EA;
  --paper: #FAF8F3;
  --ink: #1E1F1B;
  --muted: #6B695F;
  --line: rgba(30, 31, 27, .12);
  --gold: #9A7838;
  --gold-hi: #C9A964;
  --accent: #3D4737;
  --sage: #5E6B57; --indigo: #3F4D6E; --clay: #93604A; --lilac: #6F6688; --rose: #8A4A55;
  --f-sans: "Jost", "Avenir Next", Futura, system-ui, sans-serif;
  --f-serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);
  --gut: clamp(16px, 4vw, 56px);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--ivory); color: var(--ink);
  font-family: var(--f-sans); font-weight: 300; font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
body.loading { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img, canvas, svg { display: block; }
button { font: inherit; color: inherit; }
em { font-family: var(--f-serif); font-style: italic; font-weight: 300; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1320px; margin: 0 auto; padding-inline: var(--gut); }
::selection { background: var(--ink); color: var(--ivory); }

.eyebrow { margin: 0 0 18px; font-size: .72rem; font-weight: 400; letter-spacing: .32em; text-transform: uppercase; color: var(--muted); }
.display { margin: 0; font-family: var(--f-serif); font-weight: 300; font-size: clamp(2.6rem, 6.4vw, 6rem); line-height: .98; letter-spacing: -.02em; text-wrap: balance; }
.display em { color: var(--gold); }
.lead { max-width: 46ch; color: var(--muted); font-size: 1.05rem; margin: 26px 0 0; }

/* split-word reveal */
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; margin-bottom: -.08em; }
[data-split] .w > span { display: inline-block; transform: translateY(105%); transition: transform 1.2s var(--ease); transition-delay: calc(var(--i) * 70ms); }
[data-split].in .w > span { transform: none; }
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 1.1s var(--ease), transform 1.2s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- buttons ---------- */
.btn {
  --b: var(--ink);
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 1px solid var(--b); background: var(--b); color: var(--ivory); cursor: pointer;
  padding: 15px 28px; border-radius: 999px; font-size: .78rem; font-weight: 400; letter-spacing: .22em; text-transform: uppercase;
  transition: color .5s var(--ease), border-color .5s;
}
.btn::before { content: ""; position: absolute; inset: 0; background: var(--gold); transform: translateY(101%); border-radius: inherit; transition: transform .6s var(--ease); }
.btn > * , .btn { z-index: 0; }
.btn span { position: relative; z-index: 1; }
.btn:hover::before { transform: none; }
.btn:hover { border-color: var(--gold); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.btn-full { width: 100%; }

/* ---------- loader ---------- */
.loader { position: fixed; inset: 0; z-index: 100; background: var(--ivory); display: grid; place-content: center; justify-items: center; gap: 28px; transition: opacity 1s var(--ease), visibility 1s; }
.loader-mark { width: 74px; height: 74px; background: var(--ink); -webkit-mask: url(../assets/ceyvara-emblem.png) center/contain no-repeat; mask: url(../assets/ceyvara-emblem.png) center/contain no-repeat; animation: breathe 2.4s var(--ease) infinite; }
.loader-bar { width: 160px; height: 1px; background: var(--line); overflow: hidden; }
.loader-bar i { display: block; height: 100%; background: var(--gold); transform-origin: left; transform: scaleX(var(--p, .05)); transition: transform .6s var(--ease); }
.loader-txt { font-size: .66rem; letter-spacing: .4em; text-transform: uppercase; color: var(--muted); }
.loader.done { opacity: 0; visibility: hidden; }
@keyframes breathe { 50% { transform: scale(.94); opacity: .7; } }

/* ---------- cursor ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none; width: 10px; height: 10px; margin: -5px 0 0 -5px; }
.cursor i { display: block; width: 100%; height: 100%; border-radius: 50%; background: var(--ink); transition: transform .5s var(--ease), background .4s, opacity .3s; }
.cursor.big i { transform: scale(5.2); background: rgba(154, 120, 56, .18); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: 78px; padding-inline: var(--gut);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  transition: background .6s, height .5s var(--ease), box-shadow .6s, transform .7s var(--ease);
}
.nav.solid { background: rgba(244, 241, 234, .78); -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2); height: 64px; box-shadow: 0 1px 0 var(--line); }
.nav.hide { transform: translateY(-100%); }
.nav-logo { display: flex; align-items: center; gap: 14px; }
.nav-logo .mk { width: 34px; height: 34px; background: var(--ink); -webkit-mask: url(../assets/ceyvara-emblem.png) center/contain no-repeat; mask: url(../assets/ceyvara-emblem.png) center/contain no-repeat; transition: transform 1s var(--ease); }
.nav-logo:hover .mk { transform: rotate(-200deg); }
.nav-logo .wm { width: 112px; height: 19px; background: var(--ink); -webkit-mask: url(../assets/ceyvara-wordmark.png) left center/contain no-repeat; mask: url(../assets/ceyvara-wordmark.png) left center/contain no-repeat; }
.nav-links { display: flex; gap: clamp(18px, 2.6vw, 40px); font-size: .74rem; letter-spacing: .24em; text-transform: uppercase; font-weight: 400; }
.nav-links a { position: relative; padding: 6px 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.bag-btn { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, .35); padding: 9px 16px 9px 20px; border-radius: 999px; cursor: pointer; font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; font-weight: 400; transition: border-color .4s, background .4s; }
.bag-btn:hover { border-color: var(--ink); }
.bag-btn b { display: grid; place-items: center; min-width: 24px; height: 24px; border-radius: 999px; background: var(--ink); color: var(--ivory); font-weight: 400; letter-spacing: 0; font-size: .72rem; }
.bag-btn.bump b { animation: bump .6s var(--ease); }
@keyframes bump { 40% { transform: scale(1.45); background: var(--gold); } }
@media (max-width: 860px) { .nav-links { display: none; } .nav-logo .wm { width: 96px; } }

/* ---------- STAGE (hero + collection) ---------- */
.stage { position: relative; height: 860vh; }
.anchor { position: absolute; left: 0; width: 1px; height: 1px; }
.stage-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.stage-bg { position: absolute; inset: 0; background: var(--ivory); }
.stage-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 60% at 50% 70%, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 70%); }
.stage-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; }

.hero-copy { position: absolute; z-index: 4; left: 0; right: 0; top: clamp(96px, 15vh, 150px); text-align: center; padding-inline: var(--gut); pointer-events: none; will-change: transform, opacity; }
.hero-title { margin: 0; font-family: var(--f-serif); font-weight: 300; font-size: clamp(2.8rem, 7.6vw, 7.6rem); line-height: .94; letter-spacing: -.025em; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .line > span { display: inline-block; transform: translateY(110%); transition: transform 1.6s var(--ease); }
.hero-title .line:nth-child(2) > span { transition-delay: .12s; }
.hero-title .line:nth-child(3) > span { transition-delay: .24s; }
.hero-title em { color: var(--gold); }
.ready .hero-title .line > span { transform: none; }
.hero-sub { max-width: 44ch; margin: 22px auto 0; color: var(--muted); font-size: 1.02rem; opacity: 0; transition: opacity 1.4s .7s var(--ease); }
.hero-copy .eyebrow { opacity: 0; transition: opacity 1.2s .2s; }
.ready .hero-sub, .ready .hero-copy .eyebrow { opacity: 1; }
@media (min-width: 900px) and (min-height: 700px) {
  .hero-copy { text-align: left; top: 50%; transform: translateY(-50%); left: var(--gut); right: auto; width: 38vw; }
  .hero-title { font-size: clamp(2.8rem, min(6.2vw, 10.5vh), 7.4rem); }
  .hero-sub { margin-left: 0; }
}

.scroll-cue { position: absolute; z-index: 5; left: 50%; bottom: 26px; transform: translateX(-50%); display: grid; justify-items: center; gap: 12px; font-size: .64rem; letter-spacing: .34em; text-transform: uppercase; color: var(--muted); }
.scroll-cue i { width: 1px; height: 46px; background: linear-gradient(var(--ink), transparent); transform-origin: top; animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

.botanicals { position: absolute; z-index: 1; inset: 0; pointer-events: none; }
.botanicals svg { position: absolute; height: 92vh; width: auto; left: var(--bx, 36%); top: 50%; transform: translate(-50%, -50%) rotate(-8deg); opacity: 0; transition: opacity 1.4s var(--ease); }
.botanicals svg.on { opacity: 1; }
.botanicals svg path { fill: none; stroke: var(--stroke, #3D4737); stroke-width: .5; stroke-opacity: .32; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 3.2s var(--ease); vector-effect: non-scaling-stroke; }
.botanicals svg.on path { stroke-dashoffset: 0; }
.big-no { position: absolute; z-index: 2; left: var(--bx, 36%); bottom: -4vh; transform: translateX(-50%); font-family: var(--f-serif); font-weight: 300; font-size: 44vh; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(30, 31, 27, .1); letter-spacing: -.04em; opacity: 0; pointer-events: none; transition: opacity .8s; }

.chapters { position: absolute; z-index: 6; left: var(--gut); top: 50%; transform: translateY(-50%); display: grid; gap: 14px; opacity: 0; pointer-events: none; transition: opacity .8s; }
.chapters.on { opacity: 1; pointer-events: auto; }
.chapters button { display: flex; align-items: center; gap: 12px; background: none; border: 0; padding: 4px 0; cursor: pointer; font-size: .66rem; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); text-align: left; }
.chapters button i { width: 18px; height: 1px; background: currentColor; transition: width .6s var(--ease); }
.chapters button span { opacity: 0; transform: translateX(-6px); transition: opacity .5s, transform .5s var(--ease); white-space: nowrap; }
.chapters button.on { color: var(--ink); }
.chapters button.on i { width: 42px; background: var(--gold); }
.chapters:hover button span { opacity: 1; transform: none; }
@media (min-width: 1360px) { .chapters button.on span { opacity: 1; transform: none; } }

.panels { position: absolute; z-index: 6; right: var(--gut); top: 50%; transform: translateY(-50%); width: min(470px, 38vw); height: min(600px, 80vh); pointer-events: none; }
.pp { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; }
.pp > * { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .9s var(--ease); }
.pp.on { pointer-events: auto; }
.pp.on > * { opacity: 1; transform: none; }
.pp.on > :nth-child(2) { transition-delay: .06s; } .pp.on > :nth-child(3) { transition-delay: .12s; } .pp.on > :nth-child(4) { transition-delay: .18s; }
.pp.on > :nth-child(5) { transition-delay: .24s; } .pp.on > :nth-child(6) { transition-delay: .3s; } .pp.on > :nth-child(7) { transition-delay: .36s; }
.pp .eyebrow { color: var(--pc); margin-bottom: 14px; }
.pp-name { margin: 0; font-family: var(--f-serif); font-weight: 300; font-size: clamp(2.6rem, 4.8vw, 4.6rem); line-height: .95; letter-spacing: -.02em; }
.pp-name em { color: var(--pc); }
.pp-latin { margin: 16px 0 0; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pp-latin i { font-family: var(--f-serif); font-size: 1.05rem; letter-spacing: 0; text-transform: none; }
.pp-desc { margin: 22px 0 0; font-size: 1rem; color: #45443d; max-width: 44ch; }
.pp-notes { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.pp-notes li { border: 1px solid color-mix(in srgb, var(--pc) 30%, transparent); padding: 6px 14px; border-radius: 999px; font-size: .74rem; letter-spacing: .08em; }
.pp-brew { display: grid; grid-template-columns: repeat(3, 1fr); margin: 26px 0 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pp-brew div { padding: 14px 0; }
.pp-brew div + div { border-left: 1px solid var(--line); padding-left: 16px; }
.pp-brew dt { font-size: .62rem; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); }
.pp-brew dd { margin: 4px 0 0; font-size: 1.1rem; font-weight: 300; font-variant-numeric: tabular-nums; }
.buy { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: 28px; }
.price { font-family: var(--f-serif); font-size: 1.9rem; font-weight: 300; }
.price small { font-family: var(--f-sans); font-size: .7rem; letter-spacing: .2em; color: var(--muted); margin-left: 6px; }
.pp .btn { --b: var(--pc); }

@media (max-width: 899px), (max-height: 699px) and (max-width: 1100px) {
  .chapters { top: auto; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; }
  .chapters button span { display: none; }
  .chapters button i { width: 14px; }
  .chapters button.on i { width: 30px; }
  .panels { left: var(--gut); right: var(--gut); width: auto; top: auto; bottom: 54px; transform: none; height: 44%; }
  .pp { justify-content: flex-end; }
  .pp-desc, .pp-notes { display: none; }
  .pp-name { font-size: clamp(2.1rem, 9vw, 3rem); }
  .pp-latin { margin-top: 10px; font-size: .7rem; }
  .pp-brew { margin-top: 16px; }
  .pp-brew dd { font-size: .95rem; }
  .buy { margin-top: 16px; }
  .price { font-size: 1.5rem; }
  .pp .btn { padding: 12px 20px; }
  .botanicals svg { height: 60vh; top: 32%; }
  .big-no { font-size: 30vh; bottom: auto; top: 6vh; }
}

/* ---------- marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 30px 0; background: var(--paper); }
.marquee-track { display: flex; align-items: center; gap: 48px; width: max-content; will-change: transform; }
.marquee span { font-family: var(--f-serif); font-weight: 300; font-size: clamp(2rem, 4.4vw, 4rem); white-space: nowrap; letter-spacing: -.01em; }
.marquee span:nth-of-type(even) { font-style: italic; color: var(--gold); }
.marquee i { width: 26px; height: 26px; flex: none; background: var(--ink); opacity: .8; -webkit-mask: url(../assets/ceyvara-emblem.png) center/contain no-repeat; mask: url(../assets/ceyvara-emblem.png) center/contain no-repeat; }

/* ---------- origin (horizontal) ---------- */
.origin { position: relative; height: 520vh; background: var(--paper); }
.origin-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; align-items: center; }
.origin-track { display: flex; gap: clamp(20px, 3vw, 44px); padding-inline: var(--gut); will-change: transform; }
.o-panel { position: relative; flex: none; width: min(78vw, 470px); height: min(72vh, 600px); border-radius: 4px; padding: clamp(26px, 3vw, 44px); display: flex; flex-direction: column; justify-content: flex-end; background: var(--c); color: #F0EAE0; overflow: hidden; }
.o-panel::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 70% at 20% 0%, rgba(255, 255, 255, .14), transparent 60%), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.09'/%3E%3C/svg%3E"); pointer-events: none; }
.o-panel h3 { margin: 10px 0 0; font-family: var(--f-serif); font-weight: 300; font-size: clamp(1.8rem, 2.6vw, 2.4rem); line-height: 1.05; position: relative; }
.o-panel p { margin: 14px 0 0; font-size: .96rem; opacity: .82; max-width: 38ch; position: relative; }
.o-num { position: relative; display: flex; align-items: baseline; gap: 6px; font-family: var(--f-serif); font-weight: 300; font-size: clamp(4rem, 8vw, 7rem); line-height: .9; letter-spacing: -.03em; color: #E3CF98; }
.o-num small { font-family: var(--f-sans); font-size: .9rem; letter-spacing: .2em; text-transform: uppercase; opacity: .75; margin-right: 10px; }
.o-num b { font-weight: 300; font-size: .5em; opacity: .6; margin: 0 10px; }
.o-num-text { font-size: clamp(2.6rem, 4.6vw, 4.2rem); font-style: italic; }
.o-num .blue { color: #8EA6FF; } .o-num .violet { color: #C79BEA; }
.o-art { position: absolute; right: -6%; top: -4%; width: 62%; height: 70%; opacity: .9; }
.o-art svg { width: 100%; height: 100%; }
.o-art path { fill: rgba(255, 255, 255, .06); stroke: rgba(227, 207, 152, .55); stroke-width: .6; }
.o-intro { background: transparent; color: var(--ink); width: min(88vw, 560px); justify-content: center; padding-left: 0; }
.o-intro::before { display: none; }
.o-intro .display { font-size: clamp(2.6rem, 5vw, 4.8rem); }
.o-lion { width: 70px; height: 58px; margin-top: 36px; background: var(--gold); -webkit-mask: url(../assets/sri-lanka-lion.png) left/contain no-repeat; mask: url(../assets/sri-lanka-lion.png) left/contain no-repeat; }
.origin-progress { position: absolute; left: var(--gut); right: var(--gut); bottom: 6vh; height: 1px; background: var(--line); }
.origin-progress i { display: block; height: 100%; background: var(--ink); transform-origin: left; transform: scaleX(0); }

/* ---------- ritual ---------- */
.ritual { padding: clamp(100px, 16vh, 180px) 0; background: var(--ivory); transition: background 1.2s var(--ease); }
.ritual-grid { display: grid; grid-template-columns: 1.05fr 1fr .8fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.brew-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 34px; }
.brew-tabs button { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, .4); border-radius: 999px; padding: 9px 16px; cursor: pointer; font-size: .8rem; letter-spacing: .04em; transition: background .4s, color .4s, border-color .4s; }
.brew-tabs button i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.brew-tabs button[aria-selected="true"] { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.cup-stage { position: relative; display: grid; justify-items: center; gap: 22px; }
.cup { width: min(100%, 380px); height: auto; overflow: visible; }
.liquid { transform-box: fill-box; transition: transform 1.4s var(--ease-io); }
.liquid.empty { transform: translateY(190px); }
#liqFill, #liqWave { transition: fill 1.2s var(--ease); }
.wave { animation: wave 5s linear infinite; }
@keyframes wave { to { transform: translateX(-160px); } }
.steam { position: absolute; top: -40px; left: 50%; width: 140px; height: 110px; transform: translateX(-50%); }
.steam i { position: absolute; bottom: 0; width: 2px; height: 90px; border-radius: 2px; background: linear-gradient(transparent, rgba(30, 31, 27, .16), transparent); filter: blur(3px); animation: steam 4s ease-in-out infinite; }
.steam i:nth-child(1) { left: 30%; } .steam i:nth-child(2) { left: 50%; animation-delay: 1.2s; } .steam i:nth-child(3) { left: 70%; animation-delay: 2.3s; }
@keyframes steam { 0% { transform: translateY(20px) scaleY(.6); opacity: 0; } 40% { opacity: 1; } 100% { transform: translateY(-50px) translateX(10px) scaleY(1.2); opacity: 0; } }
.lemon { border: 1px dashed rgba(30, 31, 27, .35); background: #F3E9A6; border-radius: 999px; padding: 10px 18px; font-size: .78rem; letter-spacing: .1em; cursor: pointer; transition: transform .4s var(--ease); }
.lemon:hover { transform: translateY(-2px); }
.lemon[aria-pressed="true"] { background: var(--ink); color: var(--ivory); border-style: solid; }
.brew-kind { margin: 0; font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.brew-name { margin: 10px 0 0; font-family: var(--f-serif); font-weight: 300; font-size: clamp(2rem, 3vw, 2.8rem); line-height: 1; }
.brew-cup { margin: 14px 0 0; color: var(--muted); font-family: var(--f-serif); font-style: italic; font-size: 1.15rem; }
.brew-stats { margin: 30px 0 0; display: grid; gap: 0; }
.brew-stats div { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0; border-top: 1px solid var(--line); }
.brew-stats div:last-child { border-bottom: 1px solid var(--line); }
.brew-stats dt { font-size: .66rem; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); }
.brew-stats dd { margin: 0; font-family: var(--f-serif); font-size: 2rem; font-weight: 300; font-variant-numeric: tabular-nums; }
.brew-stats small { font-family: var(--f-sans); font-size: .74rem; color: var(--muted); margin-left: 6px; }
.brew-info > * { transition: opacity .5s, transform .6s var(--ease); }
.brew-info.swap > * { opacity: 0; transform: translateY(10px); }
@media (max-width: 980px) { .ritual-grid { grid-template-columns: 1fr; } .cup-stage { order: 2; } .brew-info { order: 3; } }

/* ---------- craft ---------- */
.craft { position: relative; height: 320vh; background: linear-gradient(var(--ivory), #EDE8DE); }
.craft-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; padding-inline: var(--gut); gap: 24px; overflow: hidden; }
.craft-swatches { display: flex; gap: 12px; margin-top: 34px; }
.craft-swatches button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--c); cursor: pointer; box-shadow: 0 0 0 1px var(--line), inset 0 -6px 10px rgba(0, 0, 0, .2); transition: transform .5s var(--ease), box-shadow .4s; }
.craft-swatches button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ivory), 0 0 0 3px var(--gold); transform: scale(1.08); }
.craft-view { position: relative; height: 100%; }
#craftCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.callouts { position: absolute; inset: 0; pointer-events: none; }
.co { position: absolute; left: 0; top: 0; display: grid; gap: 2px; width: 190px; opacity: 0; transition: opacity .7s var(--ease); }
.co.on { opacity: 1; }
.co b { font-weight: 400; font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; }
.co span { font-size: .86rem; color: var(--muted); }
.co.right { text-align: left; }
.co.left { text-align: right; }
@media (max-width: 899px) {
  .craft-sticky { grid-template-columns: 1fr; grid-template-rows: auto 1fr; padding-top: 90px; }
  .craft-copy .lead { display: none; }
  .craft-swatches { margin-top: 18px; }
  .co { width: 100px; } .co span { display: none; } .co b { font-size: .6rem; letter-spacing: .16em; }
}

/* ---------- shop ---------- */
.shop { padding: clamp(100px, 16vh, 180px) 0 clamp(80px, 12vh, 140px); background: var(--paper); }
.shop-head { display: flex; flex-direction: column; margin-bottom: 56px; }
.shop-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.card { position: relative; display: flex; flex-direction: column; border-radius: 4px; background: var(--ivory); overflow: hidden; transition: transform .8s var(--ease), box-shadow .8s var(--ease); }
.card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 50% at 50% 30%, var(--tint), transparent 75%); opacity: .7; transition: opacity .8s; }
.card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(40, 30, 20, .35); }
.card:hover::before { opacity: 1; }
.card canvas { position: relative; width: 100%; aspect-ratio: 3 / 4; height: auto; }
.card-body { position: relative; padding: 0 22px 22px; display: grid; gap: 4px; }
.card-body small { font-size: .62rem; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); }
.card-body h3 { margin: 0; font-family: var(--f-serif); font-weight: 300; font-size: 1.5rem; line-height: 1.1; }
.card-body .row { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.card-body .p { font-family: var(--f-serif); font-size: 1.25rem; }
.add { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: transparent; cursor: pointer; display: grid; place-items: center; transition: background .4s, color .4s, transform .5s var(--ease), border-color .4s; }
.add svg { width: 14px; height: 14px; }
.add:hover { background: var(--c); border-color: var(--c); color: #fff; transform: rotate(90deg); }
@media (max-width: 1100px) { .shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .card-body { padding: 0 14px 16px; } .card-body h3 { font-size: 1.2rem; } }

.set-card { margin-top: 18px; display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 20px; border-radius: 4px; padding: clamp(28px, 4vw, 64px); background: linear-gradient(120deg, #E9E3D6, #F2EEE6 60%, #E7DFD3); overflow: hidden; }
.set-card h3 { margin: 0; font-family: var(--f-serif); font-weight: 300; font-size: clamp(2.2rem, 4vw, 3.6rem); line-height: 1; }
.set-card h3 em { color: var(--gold); }
.set-card p { color: var(--muted); max-width: 44ch; }
.set-canvas { width: 100%; aspect-ratio: 16 / 10; height: auto; }
@media (max-width: 860px) { .set-card { grid-template-columns: 1fr; } .set-canvas { order: -1; } }

/* ---------- footer ---------- */
.footer { background: #1F201C; color: #E9E4DA; padding: clamp(80px, 12vh, 130px) 0 34px; overflow: hidden; }
.foot-top { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; }
.foot-news h3 { margin: 0; font-family: var(--f-serif); font-weight: 300; font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1; }
.foot-news h3 em { color: var(--gold-hi); }
.foot-news p { color: #A6A296; }
.news { display: flex; max-width: 460px; border-bottom: 1px solid rgba(233, 228, 218, .3); margin-top: 26px; }
.news input { flex: 1; min-width: 0; background: transparent; border: 0; color: inherit; font: inherit; padding: 14px 0; }
.news input::placeholder { color: #8C887D; }
.news input:focus { outline: none; }
.news button { background: none; border: 0; color: var(--gold-hi); cursor: pointer; letter-spacing: .22em; text-transform: uppercase; font-size: .72rem; }
.news-ok { color: var(--gold-hi) !important; }
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.foot-cols h4 { margin: 0 0 16px; font-weight: 400; font-size: .66rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-hi); }
.foot-cols a { display: block; padding: 5px 0; color: #C9C4B8; font-size: .92rem; transition: color .3s; }
.foot-cols a:hover { color: #fff; }
.foot-word { margin: clamp(60px, 10vh, 110px) 0 30px; aspect-ratio: 1000 / 165; background: #E9E4DA; opacity: .95; -webkit-mask: url(../assets/ceyvara-wordmark.png) center/contain no-repeat; mask: url(../assets/ceyvara-wordmark.png) center/contain no-repeat; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; font-size: .78rem; color: #8C887D; padding-top: 24px; border-top: 1px solid rgba(233, 228, 218, .12); }
.foot-origin { display: inline-flex; align-items: center; gap: 10px; }
.foot-origin .lion { width: 26px; height: 22px; background: var(--gold-hi); -webkit-mask: url(../assets/sri-lanka-lion.png) center/contain no-repeat; mask: url(../assets/sri-lanka-lion.png) center/contain no-repeat; }
@media (max-width: 860px) { .foot-top { grid-template-columns: 1fr; } .foot-cols { grid-template-columns: repeat(2, 1fr); } }

/* ---------- bag ---------- */
.bag { position: fixed; inset: 0; z-index: 80; pointer-events: none; }
.bag-scrim { position: absolute; inset: 0; background: rgba(30, 31, 27, .35); opacity: 0; transition: opacity .6s; }
.bag-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--paper); display: flex; flex-direction: column; padding: 28px; transform: translateX(100%); transition: transform .8s var(--ease); }
.bag.open { pointer-events: auto; }
.bag.open .bag-scrim { opacity: 1; }
.bag.open .bag-panel { transform: none; }
.bag.open ~ .toast { left: auto; right: 24px; bottom: 120px; transform: none; }
.bag-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.bag-head h3 { margin: 0; font-family: var(--f-serif); font-weight: 300; font-size: 2rem; }
.x { background: none; border: 0; cursor: pointer; font-size: .7rem; letter-spacing: .26em; text-transform: uppercase; }
.bag-list { list-style: none; margin: 0; padding: 0; flex: 1; overflow: auto; }
.bag-list li { display: grid; grid-template-columns: 14px 1fr auto; gap: 14px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.bag-list .dot { width: 14px; height: 40px; border-radius: 3px; background: var(--c); }
.bag-list b { display: block; font-weight: 400; }
.bag-list small { color: var(--muted); }
.qty { display: inline-flex; align-items: center; gap: 10px; }
.qty button { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); background: none; cursor: pointer; line-height: 1; }
.bag-empty { color: var(--muted); text-align: center; margin: 40px 0; }
.bag-foot { padding-top: 20px; }
.bag-total { display: flex; justify-content: space-between; align-items: baseline; }
.bag-total b { font-family: var(--f-serif); font-weight: 300; font-size: 1.8rem; }
.bag-note { font-size: .82rem; color: var(--muted); }

.toast { position: fixed; left: 50%; bottom: 28px; max-width: calc(100% - 32px); text-align: center; z-index: 95; transform: translate(-50%, 200%); opacity: 0; background: var(--ink); color: var(--ivory); padding: 13px 22px; border-radius: 999px; font-size: .82rem; letter-spacing: .04em; transition: transform .7s var(--ease), opacity .5s; pointer-events: none; }
.toast.on { transform: translate(-50%, 0); opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- bar: tea cocktails ---------- */
.bar { position: relative; padding: clamp(100px, 16vh, 170px) 0; background: var(--ivory); transition: background 1.2s var(--ease); overflow: hidden; }
.bar-top { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: end; }
.bar-controls { display: grid; gap: 18px; justify-items: start; }
.drink-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.drink-tabs button { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, .45); border-radius: 999px; padding: 9px 16px; cursor: pointer; font-size: .82rem; letter-spacing: .03em; transition: background .4s, color .4s, border-color .4s; }
.drink-tabs button i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.drink-tabs button em { font-size: .95rem; }
.drink-tabs button[aria-selected="true"] { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.drink-tabs button[aria-selected="true"] em { color: var(--gold-hi); }
.mode { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .45); }
.mode button { border: 0; background: none; padding: 7px 16px; border-radius: 999px; cursor: pointer; font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; transition: background .4s, color .4s; }
.mode button[aria-pressed="true"] { background: var(--ink); color: var(--ivory); }

.bar-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: clamp(24px, 4vw, 70px); align-items: center; margin-top: 50px; }
.bar-stage { position: relative; border-radius: 4px; background: radial-gradient(80% 70% at 50% 60%, rgba(255, 255, 255, .7), rgba(255, 255, 255, .15)); padding: 40px 20px 70px; }
.bar-svg { width: 100%; height: auto; overflow: visible; }
.bar-temp { position: absolute; left: 24px; top: 20px; display: grid; gap: 2px; }
.bar-temp small { font-size: .62rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.bar-temp b { font-family: var(--f-serif); font-weight: 300; font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1; font-variant-numeric: tabular-nums; transition: color 1s; }
.bar-stage[data-step="1"] .bar-temp b { color: #A2532C; }
.bar-stage[data-step="2"] .bar-temp b { color: #3E6C8C; }
.bar-steam { top: 36%; left: 23%; opacity: 0; transition: opacity .8s; }
.bar-stage[data-step="1"] .bar-steam { opacity: 1; }
.bar-caption { position: absolute; left: 0; right: 0; bottom: 22px; margin: 0; text-align: center; font-family: var(--f-serif); font-style: italic; font-size: 1.15rem; color: var(--muted); transition: opacity .4s; }
.bar-caption.swap { opacity: 0; }
.replay { position: absolute; right: 18px; top: 18px; border: 1px solid var(--line); background: rgba(255, 255, 255, .6); border-radius: 999px; padding: 8px 16px; cursor: pointer; font-size: .66rem; letter-spacing: .24em; text-transform: uppercase; opacity: 0; pointer-events: none; transition: opacity .5s, border-color .3s; }
.replay.on { opacity: 1; pointer-events: auto; }
.replay:hover { border-color: var(--ink); }

.c-liq, .l-tea, .l-base { transition: transform 1.6s var(--ease-io), fill 1.6s var(--ease); }
.carafe { transform-origin: 120px 344px; transition: transform 1.3s var(--ease-io); }
.carafe.tilt { transform: translate(40px, -205px) rotate(28deg); }
.frost { opacity: 0; transition: opacity 1.4s; }
.frost circle { fill: rgba(255, 255, 255, .85); }
.bar-stage[data-step="2"] .frost { opacity: 1; }
.stream { stroke-dasharray: 420; stroke-dashoffset: 420; opacity: 0; transition: stroke-dashoffset 1s var(--ease), opacity .5s; }
.stream.on { stroke-dashoffset: 0; opacity: .92; }
.stream.off { stroke-dashoffset: -420; opacity: 0; transition: stroke-dashoffset .9s var(--ease-io), opacity .9s; }
#ice rect { fill: rgba(255, 255, 255, .42); stroke: rgba(255, 255, 255, .85); stroke-width: 1.2; transition: transform 1s cubic-bezier(.3, 1.4, .5, 1); }
.bubbles circle { fill: none; stroke: rgba(255, 255, 255, .75); stroke-width: 1; opacity: 0; }
.bar-stage[data-step="4"] .bubbles.fizz circle { animation: fizz 2.6s linear infinite; animation-delay: var(--d); }
@keyframes fizz { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(-150px); opacity: 0; } }
.garnish > g { transform: scale(0) rotate(-40deg); transform-box: fill-box; transform-origin: center; transition: transform 1s cubic-bezier(.3, 1.5, .5, 1); }
.bar-stage[data-step="4"] .garnish > g { transform: none; }
.bar-stage[data-step="4"] .garnish > g:nth-child(2) { transition-delay: .25s; }
.bar-stage.reset *, .bar-stage.reset { transition: none !important; }

.recipe { align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
.recipe > * { transition: opacity .5s, transform .6s var(--ease); }
.recipe.swap > * { opacity: 0; transform: translateY(10px); }
.recipe .eyebrow { display: flex; align-items: center; gap: 10px; color: var(--pc, var(--muted)); }
.recipe .eyebrow::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--pc, var(--gold)); }
.r-name { margin: 0; font-family: var(--f-serif); font-weight: 300; font-size: clamp(2.6rem, 4.6vw, 4.2rem); line-height: .95; letter-spacing: -.02em; }
.r-glass { margin: 12px 0 0; font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.r-ingr { list-style: none; margin: 26px 0 0; padding: 0; border-top: 1px solid var(--line); }
.r-ingr li { display: flex; gap: 18px; align-items: baseline; padding: 13px 0; border-bottom: 1px solid var(--line); opacity: 0; transform: translateX(-10px); animation: ingr .7s var(--ease) forwards; animation-delay: calc(var(--i) * 80ms); }
.r-ingr li b { min-width: 64px; font-family: var(--f-serif); font-weight: 300; font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.r-ingr li.tea { color: var(--pc); }
@keyframes ingr { to { opacity: 1; transform: none; } }
.r-note { margin: 20px 0 0; font-size: .76rem; color: var(--muted); }

.bar-steps { list-style: none; padding: 0; margin: 46px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.bar-steps li { position: relative; padding-top: 22px; opacity: .45; transition: opacity .6s; }
.bar-steps li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line); }
.bar-steps li i { position: absolute; left: 0; top: 0; height: 2px; width: 100%; background: var(--pc, var(--gold)); transform: scaleX(0); transform-origin: left; }
.bar-steps li.on, .bar-steps li.done { opacity: 1; }
.bar-steps li.on i { transform: scaleX(1); transition: transform var(--dur, 3s) linear; }
.bar-steps li.done i { transform: scaleX(1); }
.bar-steps span { font-size: .66rem; letter-spacing: .28em; color: var(--muted); }
.bar-steps b { display: block; margin-top: 6px; font-family: var(--f-serif); font-weight: 300; font-size: 1.45rem; }
.bar-steps p { margin: 8px 0 0; font-size: .9rem; color: var(--muted); }
@media (max-width: 980px) {
  .bar-top, .bar-grid { grid-template-columns: 1fr; }
  .bar-steps { grid-template-columns: 1fr 1fr; }
  .bar-stage { padding: 56px 8px 64px; }
}
@media (max-width: 520px) { .bar-steps { grid-template-columns: 1fr; gap: 14px; } .bar-temp b { font-size: 1.7rem; } }

/* landing botanicals: the label plant drawings, faint and slowly drifting */
.hero-art { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hero-art svg { position: absolute; width: auto; overflow: visible; animation: haFloat 14s ease-in-out infinite alternate; animation-delay: var(--fd, 0s); }
.hero-art path { fill: none; stroke: var(--stroke); stroke-width: .6; stroke-opacity: .3; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 4.5s var(--ease); transition-delay: var(--dd, 0s); vector-effect: non-scaling-stroke; }
.ready .hero-art path { stroke-dashoffset: 0; }
.ha0 { left: 45%; top: 10%; height: 38vh; --r: -14deg; --dd: .6s; --fd: -3s; }
.ha1 { left: 84%; top: 6%; height: 30vh; --r: 12deg; --dd: 1s; --fd: -8s; }
.ha2 { left: 89%; top: 50%; height: 30vh; --r: 24deg; --dd: 1.4s; --fd: -1s; }
.ha3 { left: 58%; top: 2%; height: 24vh; --r: -6deg; --dd: 1.8s; --fd: -11s; }
.ha4 { left: 46%; top: 58%; height: 30vh; --r: 8deg; --dd: 2.2s; --fd: -6s; }
@keyframes haFloat { from { transform: translate(0, 0) rotate(var(--r)); } to { transform: translate(-14px, -22px) rotate(calc(var(--r) + 6deg)); } }
@media (max-width: 899px), (max-height: 699px) and (max-width: 1100px) {
  .ha0 { left: -6%; top: 44%; height: 26vh; } .ha1 { left: 78%; top: 42%; height: 24vh; }
  .ha2 { left: 82%; top: 70%; height: 22vh; } .ha3 { left: 40%; top: 46%; height: 16vh; } .ha4 { left: 4%; top: 72%; height: 22vh; }
}
