/* ---------- Fonts (self-hosted) ---------- */
@font-face { font-family: "Fraunces"; src: url("assets/fonts/fraunces.woff2") format("woff2"); font-weight: 300 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("assets/fonts/fraunces-italic.woff2") format("woff2"); font-weight: 300 800; font-style: italic; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("assets/fonts/dmsans.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Caveat"; src: url("assets/fonts/caveat.woff2") format("woff2"); font-weight: 600; font-display: swap; }

/* ---------- Tokens (from the logo) ---------- */
:root {
  --cream: #F6EDD9;
  --paper: #FBF6EA;
  --cocoa: #3A2A22;
  --cocoa-soft: #6B564A;
  --teal: #2E7C78;
  --teal-deep: #1F5A57;
  --rose: #D45F68;
  --mustard: #E3A93B;
  --crust: #B4703A;
  --line: rgba(58, 42, 34, .14);
  --radius: 22px;
  --shadow: 0 1px 2px rgba(58,42,34,.06), 0 12px 32px -12px rgba(58,42,34,.28);
  --display: "Fraunces", Georgia, serif;
  --body: "DM Sans", system-ui, -apple-system, sans-serif;
  --script: "Caveat", "Comic Sans MS", cursive;
  --wrap: min(1180px, 100% - 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--cocoa);
  font: 400 17px/1.6 var(--body);
  overflow-x: hidden;
}
/* paper grain */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .35; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .23 0 0 0 0 .16 0 0 0 0 .13 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, video { display: block; max-width: 100%; }
main { overflow-x: clip; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.05; margin: 0; font-variation-settings: "SOFT" 100, "WONK" 1; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--cocoa); color: var(--paper); padding: 8px 14px; border-radius: 8px; z-index: 200; }
.skip:focus { left: 8px; }
.script { font-family: var(--script); font-size: 1.6rem; color: var(--rose); line-height: 1; display: inline-block; transform: rotate(-3deg); }
.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em; white-space: nowrap;
  padding: .9em 1.5em; border-radius: 999px;
  background: var(--cocoa); color: var(--paper);
  font: 600 1rem/1 var(--body); text-decoration: none;
  border: 2px solid var(--cocoa);
  box-shadow: 0 4px 0 var(--crust);
  transition: transform .18s ease, box-shadow .18s ease, background .18s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--crust); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--crust); }
.btn-ghost { background: transparent; color: var(--cocoa); box-shadow: none; }
.btn-ghost:hover { background: var(--cocoa); color: var(--paper); box-shadow: none; }
.btn-light { background: var(--paper); color: var(--teal-deep); border-color: var(--paper); box-shadow: 0 4px 0 var(--mustard); }
.btn-small { padding: .65em 1.15em; font-size: .92rem; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px max(16px, (100% - 1180px) / 2);
  background: color-mix(in srgb, var(--cream) 82%, transparent);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 650; font-size: 1.15rem; }
.brand img { border-radius: 50%; box-shadow: 0 0 0 2px var(--paper), 0 0 0 3px var(--line); }
.brand em { font-style: italic; color: var(--rose); }
.nav-links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-weight: 500; font-size: .96rem; position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--rose); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.nav-links a:hover::after { transform: scaleX(1); }

/* ---------- Hero ---------- */
.hero {
  width: var(--wrap); margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 80px); align-items: center;
  padding: clamp(32px, 6vw, 72px) 0 clamp(48px, 7vw, 96px);
}
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .9rem; font-weight: 500; color: var(--cocoa-soft); background: var(--paper); padding: 6px 14px 6px 10px; border-radius: 999px; border: 1px solid var(--line); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px color-mix(in srgb, var(--teal) 25%, transparent); animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--teal) 0%, transparent); } }
.hero h1 { font-size: clamp(3rem, 7.4vw, 6.2rem); margin: 22px 0 22px; font-weight: 600; }
.hero h1 .sour { color: var(--teal); font-style: italic; position: relative; }
.hero h1 .sweet { color: var(--rose); font-style: italic; position: relative; white-space: nowrap; }
.hero h1 .sweet::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: -.08em; height: .28em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M2 14 C 40 4, 80 4, 110 10 S 170 16, 198 6' fill='none' stroke='%23E3A93B' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  z-index: -1;
}
.lede { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--cocoa-soft); max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 38px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 0; list-style: none; padding: 0; margin: 0; border-top: 1px dashed var(--line); padding-top: 22px; }
.hero-facts li { flex: 1 1 0; min-width: 110px; padding-right: 18px; }
.hero-facts li + li { padding-left: 18px; border-left: 1px dashed var(--line); }
.hero-facts strong { display: block; font-family: var(--display); font-size: 1.5rem; font-weight: 600; }
.hero-facts span { font-size: .86rem; color: var(--cocoa-soft); }

.hero-media { position: relative; justify-self: center; width: min(420px, 100%); }
.arch {
  aspect-ratio: 3 / 4.3; border-radius: 999px 999px 28px 28px; overflow: hidden;
  border: 6px solid var(--paper); box-shadow: var(--shadow), 0 0 0 1px var(--line);
  background: var(--crust);
}
.arch video { width: 100%; height: 100%; object-fit: cover; }
.badge { isolation: isolate; position: absolute; left: -54px; bottom: 34px; width: 148px; height: 148px; }
.badge-ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 22s linear infinite; }
.badge-ring text { font: 600 15px var(--body); letter-spacing: .12em; text-transform: uppercase; fill: var(--cocoa); }
.badge img { position: absolute; inset: 26px; width: calc(100% - 52px); height: calc(100% - 52px); border-radius: 50%; box-shadow: var(--shadow); }
.badge::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--paper); box-shadow: var(--shadow); z-index: -1; }
@keyframes spin { to { transform: rotate(360deg); } }
.sticker {
  position: absolute; right: -26px; top: 46px; margin: 0;
  font-family: var(--script); font-size: 1.55rem; line-height: .95; text-align: center; color: var(--cocoa);
  background: var(--mustard); padding: 16px 18px; border-radius: 50%; aspect-ratio: 1; display: grid; place-items: center;
  transform: rotate(10deg); box-shadow: var(--shadow);
}

/* ---------- WebGL layer (fx/hero-fx.js) ---------- */
.hero { position: relative; }
.hero > :not(.fx-orb) { position: relative; z-index: 1; }
.fx-orb {
  position: absolute; z-index: 2; pointer-events: none;
  top: -80px; left: calc(50% - 50vw); width: 100vw; height: calc(100% + 200px);
  opacity: 0; transition: opacity .6s ease;
}
.fx-coin { position: absolute; inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px); opacity: 0; transition: opacity .8s ease; }
.fx-orb.in, .fx-coin.in { opacity: 1; }
.badge { z-index: 3; }
.badge img { transition: opacity .8s ease; }
.badge.badge-3d img { opacity: 0; }
.badge.badge-3d::before { opacity: .9; }
.hero-media.fx-on { cursor: pointer; z-index: 3; }
.hero-media.fx-on .arch { opacity: 0; transition: opacity .6s ease; }
.hero-media.fx-on .sticker { z-index: 3; }
.orb-ui { position: absolute; left: 0; right: 0; bottom: 2%; z-index: 3; display: grid; justify-items: center; gap: 10px; text-align: center; }
.orb-caption { text-decoration: none; display: grid; gap: 2px; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); padding: 10px 20px; border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.orb-name { font: 600 1.15rem/1.15 var(--display); }
.orb-price { font-size: .85rem; font-weight: 600; color: var(--teal); }
.orb-ui.swap .orb-caption { animation: orb-swap .5s ease; }
@keyframes orb-swap { from { opacity: 0; transform: translateY(8px) scale(.97); } }
.orb-dots { display: flex; gap: 8px; }
.orb-dots button { width: 9px; height: 9px; padding: 0; border-radius: 999px; border: 0; background: color-mix(in srgb, var(--cocoa) 25%, transparent); cursor: pointer; transition: width .3s, background .3s; }
.orb-dots button[aria-current="true"] { width: 24px; background: var(--rose); }
.orb-hint { font-family: var(--script); font-size: 1.15rem; color: var(--cocoa-soft); transform: rotate(-2deg); }

/* ---------- Marquee ---------- */
.marquee { background: var(--teal); color: var(--paper); overflow: hidden; padding: 16px 0; transform: rotate(-1.2deg); margin: 0 -20px; border-block: 3px solid var(--cocoa); }
.marquee-track { display: flex; gap: 28px; width: max-content; animation: marquee 38s linear infinite; font-family: var(--display); font-size: clamp(1.2rem, 2.4vw, 1.75rem); font-style: italic; font-weight: 500; white-space: nowrap; }
.marquee i { font-style: normal; color: var(--mustard); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sweet/Sour duo ---------- */
.duo { width: var(--wrap); margin: clamp(64px, 9vw, 120px) auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.duo-card { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 460px; text-decoration: none; color: var(--paper); box-shadow: var(--shadow); isolation: isolate; }
.duo-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.duo-card::after { content: ""; position: absolute; inset: 0; z-index: -1; }
.duo-sour::after { background: linear-gradient(180deg, transparent 40%, color-mix(in srgb, var(--teal-deep) 92%, transparent)); }
.duo-sweet::after { background: linear-gradient(180deg, transparent 40%, color-mix(in srgb, #8E3940 92%, transparent)); }
.duo-card:hover img { transform: scale(1.06); }
.fx-melt { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; opacity: 0; transition: opacity .6s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.fx-melt.in { opacity: 1; }
.duo-card:hover .fx-melt { transform: scale(1.03); }
.duo-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 32px; }
.duo-text .script { color: var(--mustard); font-size: 1.9rem; }
.duo-text h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin: 6px 0 10px; }
.duo-text p { opacity: .9; max-width: 28em; }
.arrow { font-weight: 600; border-bottom: 2px solid var(--mustard); padding-bottom: 2px; }

/* ---------- Section heads ---------- */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-head h2 { font-size: clamp(2.4rem, 5vw, 3.8rem); margin: 8px 0 14px; }
.section-head p { color: var(--cocoa-soft); }
.section-head.light h2 { color: var(--paper); }
.section-head.light .script { color: var(--mustard); }

/* ---------- Menu ---------- */
.menu { width: var(--wrap); margin: clamp(80px, 10vw, 140px) auto 0; scroll-margin-top: 80px; }
.tabs { display: flex; justify-content: center; gap: 6px; background: var(--paper); border: 1px solid var(--line); padding: 6px; border-radius: 999px; width: max-content; margin: 0 auto 36px; }
.tabs button { font: 600 1rem var(--body); border: 0; background: transparent; color: var(--cocoa-soft); padding: .7em 1.6em; border-radius: 999px; cursor: pointer; transition: background .2s, color .2s; }
.tabs button[aria-selected="true"] { background: var(--cocoa); color: var(--paper); }
.menu-board { background: var(--paper); border: 1px solid var(--line); border-radius: 28px; padding: clamp(20px, 4vw, 48px); box-shadow: var(--shadow); }
.menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(28px, 4vw, 56px); }
.row { display: grid; grid-template-columns: 76px 1fr; gap: 18px; padding: 22px 0; border-bottom: 1px dashed var(--line); animation: rise .5s both; }
.thumb { width: 76px; height: 76px; border-radius: 50%; overflow: hidden; background: var(--cream); box-shadow: 0 0 0 3px var(--paper), 0 0 0 4px var(--line); }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.row:hover .thumb img { transform: scale(1.12); }
.mono { display: grid; place-items: center; width: 100%; height: 100%; font: italic 600 2.1rem/1 var(--display); color: var(--paper); }
.row:nth-child(4n+1) .mono { background: var(--teal); }
.row:nth-child(4n+2) .mono { background: var(--rose); }
.row:nth-child(4n+3) .mono { background: var(--mustard); color: var(--cocoa); }
.row:nth-child(4n) .mono { background: var(--crust); }
.row h3 { font-size: 1.3rem; font-weight: 600; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.row-tag { background: var(--mustard); color: var(--cocoa); font: 700 .7rem/1 var(--body); padding: 5px 8px; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em; }
.row p { color: var(--cocoa-soft); font-size: .94rem; margin: 4px 0 10px; }
.opts { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.opts li { display: flex; align-items: baseline; gap: 8px; font-size: .95rem; }
.opts i { flex: 1; border-bottom: 2px dotted color-mix(in srgb, var(--cocoa) 25%, transparent); transform: translateY(-4px); }
.opts b { font-family: var(--display); font-weight: 600; font-size: 1.15rem; color: var(--teal); }
.opts b.ask { font-family: var(--script); font-size: 1.35rem; color: var(--rose); }
.menu-notes { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; list-style: none; padding: 0; margin: 28px 0 0; }
.menu-notes li { font-size: .88rem; font-weight: 500; padding: 7px 14px; border-radius: 999px; background: var(--cream); border: 1px solid var(--line); }
.menu-cta { text-align: center; margin-top: 24px; }
.menu-note { text-align: center; color: var(--cocoa-soft); font-size: .9rem; margin-top: 24px; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

/* ---------- Story ---------- */
.story { width: var(--wrap); margin: clamp(90px, 11vw, 150px) auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 90px); align-items: center; scroll-margin-top: 80px; }
.story-media { position: relative; min-height: 560px; }
.story-media img { position: absolute; border-radius: var(--radius); box-shadow: var(--shadow); object-fit: cover; border: 6px solid var(--paper); }
.story-a { width: 68%; height: 82%; left: 0; top: 0; transform: rotate(-3deg); }
.story-b { width: 54%; height: 62%; right: 0; bottom: 0; transform: rotate(4deg); }
.story-copy h2 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); margin: 10px 0 20px; }
.story-copy p { color: var(--cocoa-soft); font-size: 1.06rem; }
.promises { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; }
.promises li { display: flex; gap: 16px; align-items: flex-start; }
.promises svg { flex: none; width: 44px; height: 44px; padding: 9px; border-radius: 14px; background: var(--paper); color: var(--teal); border: 1px solid var(--line); }
.promises strong { display: block; font-family: var(--display); font-size: 1.15rem; font-weight: 600; }
.promises span { color: var(--cocoa-soft); font-size: .95rem; }

/* ---------- Gallery ---------- */
.gallery { width: var(--wrap); margin: clamp(90px, 11vw, 150px) auto 0; scroll-margin-top: 80px; }
/* Fixed grid (not CSS columns): column balancing with lazy images left holes on iOS. */
.masonry { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding-bottom: 36px; }
.masonry figure { margin: 0; border-radius: 18px; overflow: hidden; background: var(--crust); aspect-ratio: 3 / 4; }
.masonry figure:nth-child(even) { translate: 0 36px; }
.masonry img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s, filter .6s; }
.masonry figure:hover img { transform: scale(1.04); filter: saturate(1.1); }
.gallery .center { margin-top: 24px; }

/* ---------- Order ---------- */
.order { margin-top: clamp(90px, 11vw, 150px); background: var(--teal-deep); color: var(--paper); padding: clamp(72px, 9vw, 120px) 0; position: relative; overflow: hidden; scroll-margin-top: 40px; }
.order::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: var(--teal); opacity: .5; right: -160px; top: -200px; }
.order-inner { width: var(--wrap); margin: 0 auto; position: relative; }
.steps { list-style: none; padding: 0; margin: 0 0 44px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.steps li { background: color-mix(in srgb, var(--paper) 9%, transparent); border: 1px solid color-mix(in srgb, var(--paper) 20%, transparent); border-radius: var(--radius); padding: 30px 26px; }
.num { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--mustard); color: var(--cocoa); font: 700 1.3rem var(--display); margin-bottom: 18px; }
.steps h3 { font-size: 1.5rem; margin-bottom: 8px; }
.steps p { opacity: .85; margin: 0; }
.soon { text-align: center; font-family: var(--script); font-size: 1.5rem; color: var(--mustard); margin: 18px 0 0; }

/* ---------- Footer ---------- */
.footer { text-align: center; padding: 64px 16px 48px; color: var(--cocoa-soft); }
.footer img { margin: 0 auto 16px; border-radius: 50%; box-shadow: var(--shadow); }
.footer-name { font-family: var(--display); font-size: 1.5rem; color: var(--cocoa); font-weight: 600; margin-bottom: 6px; }
.footer-name span { font-family: var(--script); color: var(--rose); font-size: 1.6rem; font-weight: 600; }
.footer p { margin: 0 0 6px; }
.footer a { color: var(--teal); font-weight: 600; }
.fine { font-size: .85rem; margin-top: 18px !important; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; text-align: left; }
  .hero-media { width: min(360px, 82%); margin-top: 8px; }
  .duo, .story { grid-template-columns: 1fr; }
  .duo-card { min-height: 380px; }
  .story-media { min-height: 460px; }
  .steps { grid-template-columns: 1fr; }
  .menu-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .brand { gap: 8px; }
  .brand img { width: 40px; height: 40px; }
  .brand span { font-size: .98rem; white-space: nowrap; }
  .badge { left: -22px; width: 118px; height: 118px; bottom: 20px; }
  .badge img { inset: 21px; width: calc(100% - 42px); height: calc(100% - 42px); }
  .fx-coin { inset: 11px; width: calc(100% - 22px); height: calc(100% - 22px); }
  .sticker { right: -14px; font-size: 1.25rem; padding: 12px; }
  .hero-media.fx-on { margin-bottom: 92px; }
  .orb-ui { bottom: -96px; }
  .hero-facts li { min-width: 0; padding-right: 10px; }
  .hero-facts li + li { padding-left: 10px; }
  .hero-facts strong { font-size: 1.15rem; }
  .duo-text { padding: 24px; }
  .story-media { min-height: 380px; }
  .row { grid-template-columns: 56px 1fr; gap: 14px; }
  .thumb { width: 56px; height: 56px; }
  .mono { font-size: 1.6rem; }
  .masonry { grid-template-columns: repeat(2, 1fr); gap: 12px; padding-bottom: 28px; }
  .masonry figure:nth-child(even) { translate: 0 28px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
