/* Nav */
.nav a { font-size: 1.125rem; line-height: 1.2; font-weight: 700; text-decoration: none; }

/* Stage: bands hold drifting stonefruit pieces behind their content */
body { overflow-x: clip; }
.hero, .band { position: relative; overflow: clip; }
.wrap, .hero > :not(.floats) { position: relative; z-index: 1; }
.floats { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.float {
  position: absolute;
  transform: translate3d(var(--px, 0), var(--py, 0), 0) rotate(var(--pr, 0deg));
  will-change: transform;
}
.band-cream { --l1: var(--peri); --l2: var(--pink); }
.band-peri { --l1: var(--cream); --l2: var(--ox); }
.band-ox { --l1: var(--pink); --l2: var(--peri); }
.hero .float { --l1: var(--peri); --l2: var(--pink); }
.hero .hero-logo { --l1: var(--pink); --l2: var(--cream); }
.float-fruit { width: clamp(7rem, 18vw, 16rem); }
.float-leaf { width: clamp(5rem, 11vw, 10rem); }
.float-leaf2 { width: clamp(6rem, 13vw, 12rem); clip-path: polygon(50% 0, 88% 8%, 100% 34%, 100% 78%, 82% 92%, 50% 100%, 18% 92%, 0 78%, 0 34%, 12% 8%); }
.floats-a .float-fruit { right: -3%; top: 8%; }
.floats-a .float-leaf { left: 2%; top: 42%; }
.floats-a .float-leaf2 { right: 6%; bottom: 8%; }
.floats-b .float-fruit { left: -7%; bottom: -10%; }
.floats-b .float-leaf { right: 3%; top: 6%; }
.floats-b .float-leaf2 { left: 44%; bottom: -2%; }
.floats-c .float-fruit { right: -4%; bottom: -4%; }
.floats-c .float-leaf { left: -1%; top: 30%; }
.floats-c .float-leaf2 { right: 30%; top: -2%; }
.floats-t1 { bottom: auto; height: min(100%, 56rem); }
.floats-t2 { top: auto; height: min(100%, 56rem); }
.floats-t1 .float-fruit { right: -5%; top: 3rem; }
.floats-t1 .float-leaf { left: -2%; bottom: 12%; }
.floats-t1 .float-leaf2 { right: -2%; bottom: 22%; }
.floats-t2 .float-fruit { left: -6%; bottom: -3rem; }
.floats-t2 .float-leaf { right: 1%; top: 28%; }
.floats-t2 .float-leaf2 { right: 6%; bottom: 2%; }

/* Scroll reveal, only when the script is running */
.js .reveal { opacity: 0; transform: translateY(2.5rem); transition: opacity 0.6s ease, transform 0.8s cubic-bezier(0.2, 1.3, 0.4, 1); }
.js .reveal.in { opacity: 1; transform: none; }

/* Stonefruit image wells */
.split { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.well { margin: 0; translate: 0 var(--py, 0); will-change: translate; }
.well-shape {
  position: relative; aspect-ratio: 184 / 168; overflow: hidden;
  background: var(--well-a, var(--peri));
  clip-path: polygon(1% 58%, 11% 20%, 47% 0, 70% 0, 91% 13%, 100% 37%, 100% 68%, 67% 100%, 24% 95%, 0 61%);
}
.band-peri .well-shape { --well-a: var(--cream); }
.well-shape img { width: 100%; height: 100%; object-fit: cover; display: block; }
.well-empty { position: absolute; inset: 0; background: var(--ox); clip-path: polygon(0 58%, 55% 67%, 100% 37%, 100% 100%, 0 100%); }
.well-shape:has(.well-empty)::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 16% 54%, var(--cream) 0 0.45rem, transparent 0.5rem),
    radial-gradient(circle at 62% 54%, var(--cream) 0 0.45rem, transparent 0.5rem),
    radial-gradient(circle at 82% 30%, var(--cream) 0 0.45rem, transparent 0.5rem),
    radial-gradient(circle at 39% 78%, var(--cream) 0 0.45rem, transparent 0.5rem),
    radial-gradient(circle at 62% 82%, var(--cream) 0 0.45rem, transparent 0.5rem);
}

/* Founders portrait */
#mission .float-fruit { display: none; }
.portrait { margin: 0; translate: 0 var(--py, 0); will-change: translate; }
.portrait-frame {
  position: relative; display: grid; place-items: center; aspect-ratio: 4 / 5; overflow: hidden;
  background: var(--ox); color: var(--cream);
  clip-path: polygon(0 18%, 34% 0, 78% 6%, 100% 30%, 100% 80%, 72% 100%, 20% 96%, 0 72%);
}
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.portrait-frame::before {
  content: ""; position: absolute; inset: 0; background: var(--pink);
  clip-path: polygon(0 74%, 58% 82%, 100% 64%, 100% 100%, 0 100%);
}
.portrait-frame:has(img)::before { display: none; }
.portrait-empty { position: relative; max-width: 11em; padding: 0 1.5rem 3rem; text-align: center; font-weight: 700; }

/* Home CTAs: facets from the logo, as buttons */
.ctas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2.5rem); }
.shape-cta { display: block; text-decoration: none; }
.cta-tilt {
  display: block;
  transform: perspective(40rem) rotateX(calc(var(--ty, 0deg) * 0.35)) rotateY(calc(var(--tx, 0deg) * 0.35));
  transition: transform 0.25s ease-out;
}
.cta-shape {
  display: grid; place-items: center; aspect-ratio: 16 / 10;
  background: var(--cta-bg); color: var(--cta-fg);
  clip-path: var(--cta-clip);
  transition: transform 0.3s ease;
}
.cta-1 { --cta-bg: var(--ox); --cta-fg: var(--cream); --cta-clip: polygon(0 47%, 30% 8%, 68% 0, 100% 47%, 100% 59%, 76% 100%, 26% 100%); }
.cta-2 { --cta-bg: var(--pink); --cta-fg: #2b0212; --cta-clip: polygon(1% 58%, 11% 20%, 47% 0, 70% 0, 91% 13%, 100% 37%, 100% 68%, 67% 100%, 24% 95%, 0 61%); }
.cta-3 { --cta-bg: var(--peri); --cta-fg: var(--ink); --cta-clip: polygon(0 21%, 44% 0, 79% 10%, 100% 74%, 100% 86%, 55% 100%, 34% 83%, 13% 66%, 0 30%); }
.cta-word { font-size: clamp(1.5rem, 2.6vw, 2.25rem); line-height: 1; font-weight: 800; letter-spacing: -0.01em; white-space: nowrap; }
.shape-cta:hover .cta-shape, .shape-cta:focus-visible .cta-shape { transform: translateY(-3%) scale(1.02); }
.shape-cta:active .cta-shape { transform: scale(0.98); }

/* Timeline */
.timeline {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 120'%3E%3Cpath d='M20 0C44 20 44 40 20 60S-4 100 20 120' fill='none' stroke='%237a0a32' stroke-width='5'/%3E%3C/svg%3E");
  background-repeat: repeat-y;
  background-size: 2.5rem 7.5rem;
  background-position: center var(--wiggle, 0);
  padding-block: 1rem;
}
.tl { display: grid; grid-template-columns: minmax(0, 1fr) 5rem minmax(0, 1fr); align-items: center; padding-block: 2rem; }
.tl-date { grid-row: 1; display: grid; justify-items: center; line-height: 1; }
.tl-month { font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.tl-day { font-size: clamp(4rem, 9vw, 7rem); font-weight: 800; letter-spacing: -0.03em; }
.tl-body { grid-row: 1; }
.tl-body h3 { font-size: clamp(1.5rem, 3vw, 2.25rem); line-height: 1.1; font-weight: 800; }
.tl-meta { margin-top: 0.375rem; font-weight: 700; }
.tl-body .markdown, .tl-body .button { margin-top: 0.75rem; }
.tl-img { width: 100%; max-width: 20rem; margin-top: 0.75rem; }
.tl:nth-child(odd) .tl-date { grid-column: 1; justify-self: end; }
.tl:nth-child(odd) .tl-body { grid-column: 3; }
.tl:nth-child(even) .tl-date { grid-column: 3; justify-self: start; }
.tl:nth-child(even) .tl-body { grid-column: 1; text-align: right; }
.js .tl.reveal:nth-child(odd) { transform: translateX(-3rem); }
.js .tl.reveal:nth-child(even) { transform: translateX(3rem); }
.js .tl.reveal.in { transform: none; }
.cal { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.75rem 1rem; margin-top: 2rem; }
.cal-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.75rem 1rem; }
.cal .button { white-space: nowrap; }
.cal-label { font-weight: 800; font-size: clamp(1.5rem, 4vw, 2.5rem); line-height: 1.15; }
.band .cta { text-align: center; }

/* Terms */
.terms-for { margin-top: 0; margin-bottom: clamp(2rem, 5vw, 4rem); text-align: center; font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800; text-transform: none; letter-spacing: 0; }
.notfound-title { color: var(--word-on-cream); font-size: clamp(4rem, 21vw, 21rem); line-height: 1; font-weight: 800; letter-spacing: -0.02em; margin-bottom: clamp(2rem, 5vw, 4rem); }
.terms-intro { margin-bottom: clamp(3rem, 6vw, 4.5rem); max-width: 60ch; font-size: 1.1875rem; line-height: 1.6; }
.terms-intro p + p { margin-top: 1.25rem; }
.terms { display: grid; gap: clamp(3rem, 6vw, 4.5rem); }
.term { padding-top: clamp(1.5rem, 3vw, 2.5rem); border-top: 0.25rem solid var(--rule); }
.term:first-child { padding-top: 0; border-top: 0; }
.term-title { color: var(--word-on-cream, var(--ox)); font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1; font-weight: 800; letter-spacing: -0.02em; }
.term .markdown { margin-top: 1.25rem; max-width: 60ch; }

/* Form dialogs */
.sheet {
  width: min(100% - 2rem, 52rem); max-height: calc(100dvh - 2rem);
  padding: clamp(1.5rem, 4vw, 3rem); border: 0;
  background: var(--peri); color: var(--ink); overflow: auto;
}
.sheet[open] { animation: pop 0.45s cubic-bezier(0.2, 1.4, 0.4, 1); }
.sheet::backdrop { background: rgb(60 5 25 / 0.75); }
.sheet-close {
  position: absolute; top: 0.75rem; right: 0.75rem; width: 2.75rem; height: 2.75rem;
  border: 0; background: var(--ox); color: var(--cream); font: inherit; font-size: 1.5rem; line-height: 1; cursor: pointer;
}
.sheet .form-title { padding-right: 3rem; }
.sheet-more { margin-bottom: 1.25rem; font-weight: 700; }
@keyframes pop { from { opacity: 0; transform: scale(0.8) rotate(-2deg); } }
@keyframes wiggle {
  0%, 100% { transform: rotate(-2deg); }
  50% { transform: rotate(3deg); }
}

/* Pop-up menu */
.band-menu { background: var(--cream); color: var(--word-on-cream); }
.band-menu .wrap > * { max-width: 61rem; }
.menu-title { margin-bottom: clamp(3rem, 5vw, 3.5rem); color: var(--word-on-cream); font-size: clamp(2.5rem, 7vw, 5rem); line-height: 1; font-weight: 800; letter-spacing: -0.02em; }
.menu-title svg { height: clamp(2.5rem, 7vw, 5rem); width: auto; max-width: 100%; display: block; }
.fare { display: grid; grid-template-columns: clamp(5.5rem, 10vw, 7.5rem) minmax(0, 1fr); gap: clamp(1.25rem, 4vw, 2.5rem); align-items: start; }
.fare + .fare { margin-top: clamp(2.5rem, 6vw, 4rem); }
.ribbon-stage { position: relative; align-self: stretch; --l1: var(--c1); --l2: var(--c2); display: flex; flex-direction: column; align-items: center; }
.ribbon-stage::before {
  content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 0.125rem; translate: -50% 0; z-index: 0;
  background: linear-gradient(to bottom, transparent, var(--c1) 12%, var(--c1) 88%, transparent);
}
.ribbon-stage .ribbon { position: relative; z-index: 1; }
.spine-star {
  width: clamp(2.5rem, 4vw, 3.5rem); height: clamp(2.5rem, 4vw, 3.5rem); margin-bottom: 0.75rem;
  background: var(--c1, var(--ox));
  clip-path: polygon(50% 0, 61% 20%, 80% 8%, 74% 30%, 100% 30%, 80% 50%, 100% 70%, 74% 70%, 80% 92%, 61% 80%, 50% 100%, 39% 80%, 20% 92%, 26% 70%, 0 70%, 20% 50%, 0 30%, 26% 30%, 20% 8%, 39% 20%);
}
.ribbon {
  display: grid; place-items: center; align-self: center;
  writing-mode: vertical-rl; rotate: 180deg;
  padding: 0.5rem 0.25rem; background: var(--cream); color: var(--c2, var(--pink));
  font-size: clamp(1.375rem, 2.4vw, 2rem); line-height: 1; font-weight: 800; text-transform: uppercase; letter-spacing: 0.3em;
}
.fare-items { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem 0; }
.fare-items h4 {
  color: var(--word-on-cream); font-size: clamp(1.25rem, 2.2vw, 1.625rem); line-height: 1.15;
  font-weight: 800; letter-spacing: 0.04em;
}
.fare-items p {
  margin-top: 0.25rem;
  font-size: clamp(1.125rem, 1.8vw, 1.3125rem); line-height: 1.45;
  text-align: justify; text-align-last: left; hyphens: auto;
}
.fare-meta { white-space: nowrap; }
.fare-tag { color: var(--word-on-cream); font-weight: 800; letter-spacing: 0.02em; white-space: nowrap; }
.fare-diet { text-transform: uppercase; white-space: normal; font-size: clamp(1.0417rem, 1.8vw, 1.2292rem); }
.fare-rule { display: inline-block; width: 2.25rem; height: 0.1875rem; margin-inline: 0.25rem; background: currentColor; vertical-align: 0.3em; }
.fare-modifiers { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.125rem 0; margin-top: 0.5rem; }
.fare-modifiers li { display: flex; align-items: baseline; }
.fare-modifier-name { color: var(--word-on-cream); font-weight: 700; letter-spacing: 0.04em; font-size: clamp(1.0625rem, 1.7vw, 1.25rem); text-transform: uppercase; }
.fare-modifier-price { color: var(--c2, var(--ox)); font-weight: 800; white-space: nowrap; font-size: clamp(1.0625rem, 1.7vw, 1.25rem); margin-left: 0.5rem; }

/* Menu carousel */
.menu-tabs {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin: -1.5rem 0 2.5rem;
}
.menu-tab {
  appearance: none; border: 0.0625rem solid var(--c2, var(--ox)); background: var(--cream); color: var(--c2, var(--ox));
  padding: 0.5rem 1.5rem; border-radius: 999rem; cursor: pointer;
  font-family: var(--body); font-size: clamp(1.0625rem, 1.7vw, 1.375rem); font-weight: 800; letter-spacing: 0.3em; text-transform: uppercase;
  text-indent: 0.3em; line-height: 1; transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.menu-tab:hover { border-color: var(--c3, var(--pink)); color: var(--c3, var(--pink)); }
.menu-tab[aria-selected="true"] { background: var(--c2, var(--ox)); color: var(--c2-fg, var(--cream)); border-color: var(--c2, var(--ox)); }
.menu-tab:focus-visible { outline: 0.1875rem solid currentColor; outline-offset: 0.1875rem; }
.menu-pane[hidden] { display: none; }

/* Contact footer */
.footer-tagline { font-size: clamp(1.5rem, 3vw, 2.25rem); line-height: 1.1; font-weight: 800; letter-spacing: -0.01em; }
.footer-services { margin-top: 0.5rem; font-size: 1.125rem; line-height: 1.4; }
.footer-meta { margin-top: 1.5rem; font-size: 1rem; font-weight: 400; }

@media (max-width: 52rem) {
  .float-leaf, .float-leaf2 { display: none; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .well, .portrait { max-width: 24rem; }
  .ctas { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .shape-cta { width: min(100%, 22rem); }
  .cta-word { font-size: 2rem; }
  .timeline { background-position: 0.25rem var(--wiggle, 0); }
  .tl { grid-template-columns: 3rem minmax(0, 1fr); gap: 0 1rem; align-items: start; padding-block: 1.25rem; }
  .tl:nth-child(n) .tl-date { grid-column: 2; grid-row: 1; justify-self: start; }
  .tl:nth-child(n) .tl-body { grid-column: 2; grid-row: 2; text-align: left; }
  .tl-day { font-size: 3.5rem; }
  .js .tl.reveal:nth-child(n) { transform: translateY(2rem); }
  .js .tl.reveal.in:nth-child(n) { transform: none; }
  .fare-items { grid-template-columns: minmax(0, 1fr); }
  .fare-items p { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .sheet[open] { animation: none !important; }
  .cta-shape, .cta-tilt { transition: none; }
  .js .reveal, .js .tl.reveal:nth-child(n) { opacity: 1; transform: none; transition: none; }
}
