/* ==========================================================================
   Honey Oak Bakery
   Palette: cream base, plum ink, plum colour blocks, honey pop.
   ========================================================================== */

:root {
  --cream: #F7F0E6;
  --cream-2: #EFE3D1;
  --paper: #FFFCF6;
  --ink: #231626;
  --ink-soft: #5A4A58;
  --plum: #5E2B5E;
  --plum-deep: #45204A;
  --plum-tint: #7A447A;
  --honey: #E8B530;
  --honey-soft: #F4D98C;
  --crust: #A9571F;

  --serif: "Young Serif", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --script: "Yellowtail", "Brush Script MT", cursive;

  --radius: 22px;
  --gutter: clamp(20px, 5vw, 72px);
  --maxw: 1280px;
  --topbar-h: 104px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* fine flour-dust grain over the whole page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 60;
  opacity: .22;
  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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .45 0 0 0 0 .35 0 0 0 .35 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; line-height: 1; letter-spacing: -.01em; }
p { margin: 0; }

.script { font-family: var(--script); font-weight: 400; letter-spacing: 0; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--cream); padding: 10px 16px; border-radius: 10px;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--honey); outline-offset: 3px; border-radius: 6px; }
.bakes :focus-visible, .footer :focus-visible { outline-color: var(--honey); }
.order :focus-visible { outline-color: var(--plum); }

/* ---------- placeholders (draft) ---------- */
.ph {
  background: rgba(232, 181, 48, .30);
  box-shadow: inset 0 -2px 0 rgba(232, 181, 48, .9);
  border-radius: 4px;
  padding: 0 .25em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.ph-sm { font-size: 12px; font-weight: 600; padding: 1px 6px; margin-left: 4px; white-space: nowrap; }
.ph-dark { background: rgba(232, 181, 48, .18); color: var(--honey-soft); box-shadow: inset 0 0 0 1px rgba(232, 181, 48, .55); font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.is-final .ph, .is-final .ph-dark { background: none; box-shadow: none; padding: 0; }

/* ---------- top bar: draft note + floating nav ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }

.draft-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px var(--gutter);
  background: var(--ink);
  color: #EDE3DA;
  font-size: 12.5px;
  line-height: 1.35;
  text-align: center;
}
.draft-bar strong { color: var(--honey); font-weight: 650; letter-spacing: .04em; text-transform: uppercase; font-size: 12px; }
.draft-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--honey); flex: none; }
.draft-sep { opacity: .5; }

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: calc(var(--maxw) + 24px);
  margin: 12px auto 0;
  width: calc(100% - 2 * var(--gutter) + 24px);
  padding: 8px 8px 8px 16px;
  background: rgba(255, 252, 246, .82);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  border: 1px solid rgba(35, 22, 38, .08);
  border-radius: 999px;
  box-shadow: 0 8px 30px -14px rgba(35, 22, 38, .35);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-name { font-family: var(--serif); font-size: 21px; letter-spacing: -.01em; white-space: nowrap; }
.nav-links { display: flex; gap: 6px; }
.nav-links a {
  text-decoration: none; font-weight: 550; font-size: 15px;
  padding: 10px 14px; border-radius: 999px; min-height: 44px; display: inline-flex; align-items: center;
}
.nav-links a:hover { background: rgba(94, 43, 94, .08); }
.nav-count[hidden] { display: none; }
.lbl-short { display: none; }
.nav-count {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 999px; background: var(--honey); color: var(--ink); font-size: 12.5px; font-weight: 700;
}

/* ---------- buttons ---------- */
.btn {
  --bg: var(--ink); --fg: var(--cream);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 22px;
  border-radius: 999px; border: 0;
  background: var(--bg); color: var(--fg);
  font-weight: 620; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn .arr { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.btn-ink { --bg: var(--ink); --fg: var(--cream); }
.btn-plum { --bg: var(--plum); --fg: var(--cream); box-shadow: 0 10px 24px -12px rgba(94, 43, 94, .8); }
.btn-plum:hover { --bg: var(--plum-deep); }
.btn-honey { --bg: var(--honey); --fg: var(--ink); }
.btn-ghost { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(35, 22, 38, .35); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-line { --bg: transparent; --fg: var(--plum); box-shadow: inset 0 0 0 1.5px var(--plum); }
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 17px; }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 14.5px; }
.btn-block { width: 100%; }
@media (prefers-reduced-motion: reduce) {
  .btn, .btn .arr { transition: none; }
  .btn:hover, .btn:active, .btn:hover .arr { transform: none; }
}

/* ---------- shared section bits ---------- */
section { scroll-margin-top: calc(var(--topbar-h) + 8px); }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  margin-bottom: 18px;
}
.kicker::before { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
h2 { font-size: clamp(44px, 6.4vw, 92px); line-height: .98; }
h2 .script { font-size: 1.12em; line-height: 0; display: inline-block; transform: rotate(-5deg) translateY(.04em); }
.section-sub { margin-top: 18px; max-width: 34ch; font-size: 18px; }

/* reveal on scroll (only when JS runs and motion is allowed) */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   1. Hero
   ========================================================================== */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(8px, 3vw, 40px);
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin: 0 auto;
  padding: clamp(28px, 5vw, 64px) var(--gutter) clamp(56px, 7vw, 96px);
  min-height: min(calc(100svh - var(--topbar-h)), 900px);
}
.hero-copy { position: relative; z-index: 2; }
.eyebrow { font-size: 14px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: var(--plum); margin-bottom: 22px; }
.hero-title { display: flex; flex-direction: column; align-items: flex-start; }
.hero-name {
  font-size: clamp(64px, 10.6vw, 168px);
  line-height: .86;
  letter-spacing: -.035em;
  white-space: nowrap;
}
.hero-script {
  font-family: var(--script);
  color: var(--plum);
  font-size: clamp(54px, 7.4vw, 118px);
  line-height: .9;
  margin: -.02em 0 0 .9em;
  transform: rotate(-6deg);
  transform-origin: left center;
  position: relative;
}
.hero-script::after {
  content: "";
  position: absolute; left: 4%; right: -6%; bottom: .02em; height: .12em;
  background: var(--honey); border-radius: 999px; z-index: -1; opacity: .85;
  transform: rotate(2deg);
}
.hero-sub { margin-top: 26px; font-size: clamp(18px, 1.5vw, 21px); max-width: 30ch; color: var(--ink-soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.today-strip {
  display: flex; flex-wrap: wrap; gap: 10px 28px;
  margin: 36px 0 0; padding-top: 18px;
  border-top: 1px solid rgba(35, 22, 38, .16);
  font-size: 15px;
}
.today-strip div { display: flex; gap: 10px; align-items: baseline; }
.today-strip dt { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--plum); }
.today-strip dd { margin: 0; font-weight: 550; }
.open-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; background: var(--plum); }

/* hero art */
.hero-art {
  position: relative;
  margin: 0;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 640px;
  justify-self: center;
}
.sun {
  position: absolute; inset: 4% 4% 10% 4%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 32%, #FBE3A0 0%, #F0C552 38%, var(--honey) 62%, #D79A1E 100%);
  box-shadow: 0 40px 80px -40px rgba(215, 154, 30, .8), inset 0 -30px 60px -20px rgba(169, 87, 31, .35);
}
.sun::after { /* horizon bands, a nod to desert sunsets */
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: repeating-linear-gradient(180deg, transparent 0 62%, rgba(247, 240, 230, .0) 62% 64%, var(--cream) 64% 66.5%, transparent 66.5% 71%, var(--cream) 71% 73%, transparent 73% 78.5%, var(--cream) 78.5% 80%, transparent 80%);
  opacity: .55;
}
.board { position: absolute; left: 0; right: 0; bottom: 4%; width: 100%; height: auto; }
.bake { position: absolute; filter: drop-shadow(0 10px 14px rgba(35, 22, 38, .18)); }
.bake-round { width: 62%; left: 8%; bottom: 14%; }
.bake-croissant { width: 44%; right: 2%; bottom: 13%; transform: rotate(8deg); }
.steam {
  position: absolute; width: 26%; left: 26%; top: 8%;
  fill: none; stroke: rgba(255, 252, 246, .9); stroke-width: 5; stroke-linecap: round;
}
.steam path { stroke-dasharray: 90 200; animation: steam 4.5s ease-in-out infinite; opacity: 0; }
.steam path:nth-child(2) { animation-delay: 1.4s; }
.steam path:nth-child(3) { animation-delay: 2.6s; }
@keyframes steam {
  0% { stroke-dashoffset: 90; opacity: 0; }
  30% { opacity: .9; }
  100% { stroke-dashoffset: -200; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .steam path { animation: none; opacity: .55; stroke-dasharray: none; }
}

.slot-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: .02em;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 252, 246, .88); color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(35, 22, 38, .12);
}
.slot-tag::before { content: ""; width: 12px; height: 9px; border: 1.5px solid currentColor; border-radius: 2px; opacity: .7; }
.hero-art .slot-tag { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); white-space: nowrap; }

/* hero entrance */
.js .hero-name, .js .hero-script, .js .hero-sub, .js .hero-actions, .js .today-strip, .js .eyebrow { animation: rise .9s var(--ease) both; }
.js .hero-script { animation-name: rise-tilt; animation-delay: .18s; }
.js .hero-sub { animation-delay: .28s; }
.js .hero-actions { animation-delay: .36s; }
.js .today-strip { animation-delay: .44s; }
.js .sun { animation: sunrise 1.3s var(--ease) both; }
.js .bake-round { animation: drop 1s .25s var(--ease) both; }
.js .bake-croissant { animation: drop-tilt 1s .4s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
@keyframes rise-tilt { from { opacity: 0; transform: rotate(-6deg) translateY(24px); } to { transform: rotate(-6deg); } }
@keyframes sunrise { from { opacity: 0; transform: translateY(12%) scale(.94); } }
@keyframes drop { from { opacity: 0; transform: translateY(-30px); } }
@keyframes drop-tilt { from { opacity: 0; transform: translateY(-30px) rotate(8deg); } to { transform: rotate(8deg); } }
@media (prefers-reduced-motion: reduce) {
  .js .hero-name, .js .hero-script, .js .hero-sub, .js .hero-actions, .js .today-strip, .js .eyebrow,
  .js .sun, .js .bake-round, .js .bake-croissant { animation: none; }
}

/* ==========================================================================
   2. What we bake (plum block)
   ========================================================================== */
.bakes {
  position: relative;
  background: var(--plum);
  color: var(--cream);
  padding: clamp(72px, 10vw, 140px) var(--gutter);
  border-radius: clamp(28px, 4vw, 56px) clamp(28px, 4vw, 56px) 0 0;
}
.bakes .section-head, .bakes-body { max-width: var(--maxw); margin: 0 auto; }
.bakes .kicker { color: var(--honey); }
.bakes h2 .script { color: var(--honey); }
.bakes .section-sub { color: rgba(247, 240, 230, .82); }
.bakes .section-sub b { color: var(--cream); }

.tabs { display: flex; gap: 8px; margin: 44px 0 28px; flex-wrap: wrap; }
.tab {
  min-height: 46px; padding: 0 22px; border-radius: 999px; border: 0; cursor: pointer;
  background: rgba(247, 240, 230, .1); color: var(--cream);
  box-shadow: inset 0 0 0 1.5px rgba(247, 240, 230, .3);
  font-weight: 620; font-size: 16px;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background-color .2s, color .2s;
}
.tab:hover { background: rgba(247, 240, 230, .18); }
.tab[aria-selected="true"] { background: var(--cream); color: var(--plum); box-shadow: none; }
.tab-count { font-size: 12.5px; opacity: .7; font-weight: 600; }

.bakes-grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}

.case-slot {
  position: sticky; top: calc(var(--topbar-h) + 20px);
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--plum-deep);
  box-shadow: inset 0 0 0 1px rgba(247, 240, 230, .12);
}
.case-stage {
  position: relative;
  aspect-ratio: 4 / 4.2;
  display: grid; place-items: center;
  background:
    radial-gradient(60% 50% at 50% 42%, rgba(232, 181, 48, .55), transparent 70%),
    repeating-linear-gradient(90deg, rgba(247, 240, 230, .05) 0 1px, transparent 1px 26px),
    var(--plum-deep);
}
.case-stage::after { /* shelf edge */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 22%;
  background: linear-gradient(180deg, #3A1A3D, #2C1330);
  box-shadow: 0 -2px 0 rgba(247, 240, 230, .12);
}
.case-art { position: relative; z-index: 1; width: 78%; transform: translateY(6%); transition: transform .5s var(--ease), opacity .3s; }
.case-art.swap { opacity: 0; transform: translateY(10%) scale(.94); }
@media (prefers-reduced-motion: reduce) { .case-art, .case-art.swap { transition: none; transform: translateY(6%); opacity: 1; } }
.case-photo { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; object-fit: cover; }
.case-photo[hidden] { display: none; }
.case-slot figcaption {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 18px;
}
.case-name { font-family: var(--serif); font-size: 20px; text-align: right; }
.slot-tag-light { background: rgba(247, 240, 230, .12); color: var(--cream); box-shadow: inset 0 0 0 1px rgba(247, 240, 230, .25); }

.menu-blurb { font-family: var(--serif); font-size: clamp(22px, 2.2vw, 30px); line-height: 1.2; margin-bottom: 18px; color: var(--cream); }
.menu-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(247, 240, 230, .22); }
.menu-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px 20px;
  padding: 18px 8px 18px 0;
  border-bottom: 1px solid rgba(247, 240, 230, .22);
  transition: background-color .2s;
}
.menu-item.active { background: linear-gradient(90deg, rgba(247, 240, 230, .07), transparent 70%); }
.menu-item h3 { font-size: clamp(21px, 1.9vw, 26px); line-height: 1.15; }
.menu-item .note { font-size: 15px; color: rgba(247, 240, 230, .78); margin-top: 4px; }
.menu-item .price { font-weight: 650; font-size: 17px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bakes .ph { background: rgba(232, 181, 48, .2); box-shadow: inset 0 -2px 0 var(--honey); color: var(--cream); }

.add-btn {
  min-height: 44px; min-width: 88px; padding: 0 18px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--honey); color: var(--ink); font-weight: 700; font-size: 15px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.add-btn:hover { background: #F2C64B; }
.stepper {
  display: inline-flex; align-items: center; gap: 2px;
  background: var(--cream); color: var(--plum); border-radius: 999px; padding: 2px;
  min-width: 88px; justify-content: space-between;
}
.stepper button {
  width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; cursor: pointer;
  font-size: 20px; font-weight: 700; line-height: 1; display: grid; place-items: center; color: var(--plum);
}
.stepper button:hover { background: rgba(94, 43, 94, .1); }
.stepper output { min-width: 18px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }

.example-note { margin-top: 16px; font-size: 13px; color: rgba(247, 240, 230, .7); display: flex; align-items: center; gap: 8px; }
.example-note::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: rgba(232, 181, 48, .35); box-shadow: inset 0 -2px 0 var(--honey); }
.noscript { margin-top: 20px; }

/* ==========================================================================
   3. Order ahead (honey block + printed slip)
   ========================================================================== */
.order {
  position: relative;
  background: var(--honey);
  color: var(--ink);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
  padding: clamp(72px, 10vw, 140px) max(var(--gutter), calc((100% - var(--maxw)) / 2));
  border-radius: clamp(28px, 4vw, 56px) clamp(28px, 4vw, 56px) 0 0;
  margin-top: calc(-1 * clamp(28px, 4vw, 56px));
}
.order-copy { position: sticky; top: calc(var(--topbar-h) + 32px); }
.order h2 .script { color: var(--plum); }
.steps { list-style: none; padding: 0; margin: 40px 0 28px; display: grid; gap: 18px; max-width: 420px; }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; font-size: 17px; line-height: 1.4; }
.step-n {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: var(--honey); font-family: var(--serif); font-size: 20px;
}
.order-fine { font-size: 14.5px; margin-top: 8px; max-width: 420px; }
.order .ph { background: rgba(255, 252, 246, .55); box-shadow: inset 0 -2px 0 var(--plum); }

/* the slip */
.ticket-wrap { position: relative; padding-top: 12px; scroll-margin-top: calc(var(--topbar-h) + 16px); }
.printer {
  position: relative; z-index: 2;
  height: 30px; margin: 0 -14px;
  background: linear-gradient(180deg, #34223A, var(--ink));
  border-radius: 16px;
  box-shadow: 0 12px 20px -12px rgba(35, 22, 38, .7), inset 0 1px 0 rgba(255, 255, 255, .12);
}
.printer::after { /* the slot */
  content: ""; position: absolute; left: 18px; right: 18px; bottom: 7px; height: 5px;
  background: #0E0810; border-radius: 4px;
}
.printer-light { position: absolute; right: 22px; top: 6px; width: 7px; height: 7px; border-radius: 50%; background: #7BD88F; box-shadow: 0 0 8px #7BD88F; }

.ticket {
  position: relative; z-index: 1;
  margin: -10px 0 0;
  background: var(--paper);
  color: var(--ink);
  filter: drop-shadow(0 26px 30px rgba(94, 43, 94, .28));
  /* torn zig-zag bottom edge */
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 12px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 20px 12px repeat-x;
  mask: linear-gradient(#000 0 0) top / 100% calc(100% - 12px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 20px 12px repeat-x;
  transform-origin: top center;
}
.ticket-inner { padding: 30px 28px 40px; }
.js .ticket.pre-print { clip-path: inset(0 0 100% 0); }
.js .ticket.printed { clip-path: inset(0 0 0 0); transition: clip-path 1.6s steps(24, end); }
@media (prefers-reduced-motion: reduce) { .js .ticket.pre-print, .js .ticket.printed { clip-path: none; transition: none; } }

.ticket-head { text-align: center; padding-bottom: 18px; border-bottom: 2px dashed rgba(35, 22, 38, .25); }
.ticket-brand { font-family: var(--script); font-size: 30px; color: var(--plum); line-height: 1; }
.ticket-title { font-family: var(--sans); font-size: 13px; font-weight: 750; letter-spacing: .22em; text-transform: uppercase; margin-top: 8px; }
.ticket-meta { font-size: 12.5px; color: var(--ink-soft); margin-top: 4px; font-variant-numeric: tabular-nums; }

.ticket-lines { display: grid; }
.line {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center;
  padding: 12px 0; border-bottom: 1px dotted rgba(35, 22, 38, .25);
}
.line-name { font-weight: 600; font-size: 16px; line-height: 1.25; }
.line-sub { grid-column: 1; font-size: 13px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.line-total { grid-row: 1 / span 2; grid-column: 2; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.line-total strong { font-variant-numeric: tabular-nums; font-size: 16px; }
.line .stepper { background: var(--cream-2); min-width: 0; }
.line .stepper button { width: 36px; height: 36px; font-size: 18px; }
.js .line.new { animation: print-line .45s var(--ease) both; }
@keyframes print-line { from { opacity: 0; transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .js .line.new { animation: none; } }

.ticket-empty { padding: 20px 0 6px; font-size: 15px; color: var(--ink-soft); }
.ticket-empty[hidden] { display: none; }
.quick-add { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip {
  min-height: 44px; padding: 0 14px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--cream-2); color: var(--ink); font-weight: 600; font-size: 14.5px;
  display: inline-flex; align-items: center; gap: 6px;
}
.chip:hover { background: #E6D6BF; }
.chip span { color: var(--plum); font-weight: 800; }

hr.perf { border: 0; border-top: 2px dashed rgba(35, 22, 38, .25); margin: 20px 0; }

.ticket-fields { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1.3fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.field label { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.field .opt { text-transform: none; letter-spacing: 0; font-weight: 500; }
.field input, .field select {
  width: 100%; min-height: 46px; padding: 0 14px;
  border-radius: 12px; border: 1.5px solid rgba(35, 22, 38, .2);
  background: #fff; font-size: 16px;
}
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 36px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 8l5 5 5-5' fill='none' stroke='%235E2B5E' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") right 12px center / 16px no-repeat;
}
.field input:focus, .field select:focus { border-color: var(--plum); outline: none; box-shadow: 0 0 0 3px rgba(94, 43, 94, .2); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: #B3261E; box-shadow: 0 0 0 3px rgba(179, 38, 30, .14); }

.ticket-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-weight: 600; }
.ticket-total strong { font-family: var(--serif); font-weight: 400; font-size: 38px; line-height: 1; font-variant-numeric: tabular-nums; }
.ticket-actions { display: grid; gap: 10px; margin-top: 22px; }
.ticket-status { min-height: 1.4em; margin-top: 12px; font-size: 14.5px; line-height: 1.4; }
.ticket-status.error { color: #9F1F18; font-weight: 600; }
.ticket-status.ok { color: var(--plum); font-weight: 600; }
.ticket-text { margin-top: 10px; font-size: 14px; }
.ticket-text summary { cursor: pointer; font-weight: 600; color: var(--plum); min-height: 44px; display: flex; align-items: center; }
.ticket-text pre {
  margin: 6px 0 0; padding: 14px; border-radius: 12px; background: var(--cream);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 13px; line-height: 1.5;
  white-space: pre-wrap; word-break: break-word; user-select: text;
}

/* ==========================================================================
   4. Visit
   ========================================================================== */
.visit {
  position: relative;
  background: var(--cream);
  border-radius: clamp(28px, 4vw, 56px) clamp(28px, 4vw, 56px) 0 0;
  margin-top: calc(-1 * clamp(28px, 4vw, 56px));
  padding: clamp(72px, 10vw, 140px) var(--gutter) 0;
}
.visit-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
  gap: clamp(32px, 6vw, 96px); align-items: start;
}
.visit .kicker { color: var(--plum); }
.visit h2 .script { color: var(--plum); }
.address { font-style: normal; font-family: var(--serif); font-size: clamp(24px, 2.4vw, 34px); line-height: 1.25; margin-top: 30px; display: grid; }
.visit-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.contact-list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 4px; max-width: 460px; }
.contact-list li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(35, 22, 38, .14); }
.contact-list li > span:first-child { font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); padding-top: 3px; }
.contact-list a { font-weight: 600; text-decoration-thickness: 1px; text-underline-offset: 3px; overflow-wrap: anywhere; text-align: right; }

.hours-card {
  background: var(--plum); color: var(--cream);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 36px);
  box-shadow: 0 30px 60px -30px rgba(94, 43, 94, .7);
  position: relative; z-index: 2;
}
.hours-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.hours-head h3 { font-size: 28px; }
.hours { width: 100%; border-collapse: collapse; font-size: 17px; font-variant-numeric: tabular-nums; }
.hours th, .hours td { padding: 12px 10px; border-bottom: 1px solid rgba(247, 240, 230, .16); text-align: left; }
.hours th { font-weight: 600; }
.hours td { text-align: right; }
.hours tr.closed td { color: rgba(247, 240, 230, .7); }
.hours tr.today { background: var(--honey); color: var(--ink); }
.hours tr.today th, .hours tr.today td { border-bottom-color: transparent; color: var(--ink); }
.hours tr.today th { border-radius: 10px 0 0 10px; }
.hours tr.today td { border-radius: 0 10px 10px 0; }
.today-pill { font-size: 11.5px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; margin-left: 8px; background: var(--ink); color: var(--honey); padding: 2px 7px; border-radius: 999px; vertical-align: 2px; }
.hours-foot { font-size: 14px; color: rgba(247, 240, 230, .78); margin-top: 16px; }

.skyline {
  position: relative;
  height: clamp(120px, 13vw, 190px);
  margin: clamp(48px, 7vw, 96px) calc(-1 * var(--gutter)) 0;
  overflow: clip;
}
.skyline svg { position: absolute; max-width: none; }
.sky-hill { left: 0; bottom: -2px; width: 100%; height: calc(48% + 2px); }
.sky-sun { right: 24%; bottom: 22%; width: clamp(54px, 6.5vw, 96px); height: auto; }
.sky-cactus { bottom: 30%; height: auto; }
.sky-cactus-l { left: 9%; width: clamp(44px, 5vw, 72px); }
.sky-cactus-s { left: calc(9% + clamp(70px, 8vw, 120px)); width: clamp(20px, 2.2vw, 32px); bottom: 34%; }
.sky-cactus-r { right: 11%; width: clamp(40px, 4.4vw, 64px); bottom: 36%; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: var(--ink); color: var(--cream); padding: 24px var(--gutter) 44px; margin-top: -1px; }
.footer-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto; gap: 18px 32px; align-items: end;
}
.footer-mark { font-family: var(--serif); font-size: clamp(40px, 6vw, 80px); line-height: 1; text-decoration: none; letter-spacing: -.02em; }
.footer-mark .script { color: var(--honey); font-size: .9em; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 8px; justify-content: flex-end; }
.footer-links a { text-decoration: none; font-weight: 550; padding: 10px 12px; border-radius: 999px; min-height: 44px; display: inline-flex; align-items: center; }
.footer-links a:hover { background: rgba(247, 240, 230, .1); }
.footer-addr { color: rgba(247, 240, 230, .82); font-size: 15px; }
.footer-small { color: rgba(247, 240, 230, .66); font-size: 13px; text-align: right; }
.footer .ph { background: rgba(232, 181, 48, .18); box-shadow: inset 0 -2px 0 var(--honey); }

/* ==========================================================================
   Running total bar
   ========================================================================== */
.total-bar {
  position: fixed; left: 50%; bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 55;
  display: flex; align-items: center; gap: 14px;
  padding: 6px 6px 6px 20px;
  width: min(460px, calc(100% - 28px));
  background: var(--ink); color: var(--cream);
  border-radius: 999px;
  box-shadow: 0 16px 40px -12px rgba(35, 22, 38, .6);
  transform: translate(-50%, 140%);
  transition: transform .4s var(--ease);
  visibility: hidden;
}
.total-bar.show { transform: translate(-50%, 0); visibility: visible; }
.total-bar-count { font-size: 14px; color: rgba(247, 240, 230, .8); white-space: nowrap; }
.total-bar-sum { font-weight: 700; font-size: 17px; margin-right: auto; font-variant-numeric: tabular-nums; white-space: nowrap; }
.total-bar-sum small { font-weight: 500; font-size: 12px; opacity: .75; }
@media (prefers-reduced-motion: reduce) { .total-bar { transition: none; } }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1020px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-art { max-width: 560px; width: 92%; }
  .order { grid-template-columns: 1fr; }
  .order-copy { position: static; }
  .ticket-wrap { max-width: 520px; width: 100%; justify-self: center; }
  .visit-inner { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  :root { --topbar-h: 118px; }
  .nav-links a:not(.nav-visit) { display: none; }
  .nav { gap: 6px; padding: 6px 6px 6px 12px; }
  .brand-name { font-size: 19px; }
  .brand-mark { width: 30px; height: 30px; }
  .nav-links a { padding: 8px 10px; font-size: 14.5px; }
  .nav-cta { padding: 0 16px; font-size: 15px; }
  .nav .lbl-long { display: none; }
  .nav .lbl-short { display: inline; }
  .draft-bar { font-size: 12px; justify-content: flex-start; text-align: left; }
  .draft-sep { display: none; }

  .hero { padding-top: 20px; gap: 0; }
  .hero-copy { order: 1; }
  .hero-art { order: 0; width: 84%; margin: 0 auto 4px; }
  .hero-art .slot-tag { font-size: 12px; }
  .hero-name { font-size: clamp(56px, 17vw, 96px); }
  .hero-script { font-size: clamp(48px, 13vw, 76px); margin-left: 1.2em; }
  .eyebrow { margin-bottom: 14px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .today-strip { flex-direction: column; gap: 8px; }

  .bakes-grid { grid-template-columns: 1fr; }
  .case-slot { position: relative; top: 0; }
  .case-stage { aspect-ratio: 16 / 10; }
  .case-art { width: 52%; }
  .menu-item { grid-template-columns: minmax(0, 1fr) auto; }
  .menu-item .price { grid-column: 2; grid-row: 1; }
  .menu-item .item-ctrl { grid-column: 2; grid-row: 2; justify-self: end; }
  .menu-item .item-text { grid-row: 1 / span 2; }

  .ticket-inner { padding: 26px 18px 36px; }
  .ticket-fields { grid-template-columns: 1fr; }
  .printer { margin: 0 -8px; }

  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; margin-left: -12px; }
  .footer-small { text-align: left; }
}

@media (max-width: 340px) {
  .nav-visit { display: none !important; }
}
