:root {
  --paper: #f6e9c9;
  --paper-soft: #fff7df;
  --ink: #201912;
  --muted: #735b41;
  --charcoal: #15130f;
  --maple: #bd741c;
  --butter: #f2c94c;
  --barn: #9e3928;
  --chive: #54743a;
  --coffee: #4b2f1d;
  --line: rgba(39, 27, 15, 0.2);
  --shadow: 0 24px 80px rgba(45, 30, 14, 0.22);
  --radius-lg: 34px;
  --radius-md: 22px;
  --container: min(1180px, calc(100vw - 36px));
  --display: 'Bree Serif', Georgia, serif;
  --body: 'Atkinson Hyperlegible', Verdana, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--body);
  background:
    linear-gradient(180deg, rgba(246,233,201,0.94), rgba(255,247,223,0.97)),
    url('./assets/order-ticket-pattern.jpg') center / 680px repeat;
  overflow-x: hidden;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle at 10% 10%, rgba(189,116,28,0.13), transparent 28%), radial-gradient(circle at 90% 0%, rgba(158,57,40,0.14), transparent 26%);
  mix-blend-mode: multiply;
  z-index: -1;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--charcoal);
  color: var(--paper-soft);
  padding: 12px 16px;
  z-index: 20;
  border-radius: 999px;
}
.skip-link:focus { top: 16px; }
:focus-visible { outline: 3px solid var(--chive); outline-offset: 4px; }

.site-header {
  width: var(--container);
  margin: 16px auto 0;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 14px 12px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 248, 226, 0.82);
  backdrop-filter: blur(16px);
  box-shadow: 0 14px 50px rgba(43, 29, 12, 0.12);
  position: sticky;
  top: 12px;
  z-index: 10;
}
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: clamp(1.02rem, 2vw, 1.35rem);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.spoon-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--barn);
  color: var(--paper-soft);
  transform: rotate(-18deg);
  box-shadow: inset 0 -3px 0 rgba(0,0,0,0.18);
}
.desktop-nav { display: flex; align-items: center; gap: 6px; }
.desktop-nav a,
.nav-cta {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.77rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.desktop-nav a:hover { background: rgba(189,116,28,0.12); }
.nav-cta { background: var(--charcoal); color: var(--paper-soft); }

.hero {
  width: var(--container);
  margin: 42px auto 20px;
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
  gap: clamp(20px, 4vw, 56px);
  align-items: center;
}
.ticket {
  position: relative;
  padding: clamp(26px, 5vw, 54px);
  border: 2px solid rgba(32, 25, 18, 0.18);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.78), rgba(255,247,223,0.92)),
    repeating-linear-gradient(0deg, transparent, transparent 31px, rgba(32,25,18,0.055) 32px);
  box-shadow: var(--shadow);
}
.ticket::before,
.ticket::after {
  content: '';
  position: absolute;
  left: 28px;
  right: 28px;
  height: 8px;
  background-image: radial-gradient(circle, rgba(32,25,18,0.32) 2px, transparent 2.6px);
  background-size: 18px 8px;
  opacity: 0.55;
}
.ticket::before { top: 14px; }
.ticket::after { bottom: 14px; }
.preview-badge,
.section-kicker,
.rail-label,
.micro-note {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.075em;
  font-size: 0.74rem;
  line-height: 1.35;
}
.preview-badge {
  display: inline-flex;
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(158,57,40,0.11);
  color: var(--barn);
  margin: 0 0 20px;
}
.eyebrow { color: var(--chive); font-family: var(--mono); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
h1, h2, h3 { margin: 0; text-wrap: pretty; }
h1 {
  font-family: var(--display);
  font-size: clamp(3.15rem, 6.3vw, 5.9rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
  max-width: 12ch;
}
h2 {
  font-family: var(--display);
  font-size: clamp(2.3rem, 5.2vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
}
h3 { font-family: var(--display); font-size: clamp(1.35rem, 2.4vw, 2rem); line-height: 1.02; }
p { line-height: 1.62; color: var(--muted); }
.hero-subhead { font-size: clamp(1.03rem, 1.7vw, 1.22rem); max-width: 56ch; margin: 22px 0 0; color: #4e3929; }
.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 13px 18px;
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
  border: 1px solid rgba(32,25,18,0.18);
}
.button:hover { transform: translateY(-2px); }
.button.primary { background: var(--barn); color: var(--paper-soft); box-shadow: 0 12px 24px rgba(158,57,40,0.26); }
.button.secondary { background: var(--charcoal); color: var(--paper-soft); }
.button.ghost { background: rgba(255,255,255,0.45); color: var(--charcoal); }
.micro-note { color: var(--coffee); margin-top: 22px; }
.hero-info-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.hero-info-grid article {
  min-width: 0;
  padding: 14px;
  border: 1px dashed rgba(32,25,18,0.22);
  border-radius: 18px;
  background: rgba(255,255,255,0.38);
}
.hero-info-grid strong {
  display: block;
  margin: 7px 0 3px;
  color: var(--charcoal);
  font-size: 0.92rem;
  line-height: 1.18;
}
.hero-info-grid small {
  display: block;
  color: var(--coffee);
  font-size: 0.78rem;
  line-height: 1.32;
}
.hero-art {
  margin: 0;
  position: relative;
  border-radius: 42px;
  overflow: hidden;
  border: 2px solid rgba(32,25,18,0.18);
  box-shadow: var(--shadow);
  transform: rotate(1.2deg);
  background: var(--paper-soft);
}
.hero-art img {
  width: 100%;
  height: min(660px, 70vh);
  object-fit: cover;
  object-position: center;
}
.hero-art figcaption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255,247,223,0.88);
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--coffee);
  text-align: center;
}

.quick-rail,
.rescue-board,
.menu-section,
.specials-board,
.story-process,
.agent-preview,
.contact-panel,
.site-footer {
  width: var(--container);
  margin-left: auto;
  margin-right: auto;
}
.section-grid > *,
.menu-layout > *,
.specials-board > *,
.story-process > *,
.agent-preview > *,
.contact-panel > *,
.agent-workbench > *,
.patch-panel > *,
.audit-panel > * { min-width: 0; }
.quick-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 2px solid rgba(32,25,18,0.18);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--charcoal);
  color: var(--paper-soft);
  box-shadow: 0 20px 70px rgba(21,19,15,0.18);
}
.quick-rail article { padding: 24px; border-right: 1px solid rgba(246,233,201,0.2); }
.quick-rail article:last-child { border-right: 0; }
.quick-rail strong { display: block; margin: 8px 0; font-size: 1.05rem; }
.quick-rail small { color: rgba(255,247,223,0.68); line-height: 1.45; }
.rail-label { color: var(--butter); }

.section-grid {
  display: grid;
  grid-template-columns: 0.34fr 0.66fr;
  gap: clamp(22px, 5vw, 76px);
  padding: clamp(56px, 8vw, 96px) 0;
}
.section-title-block p { max-width: 62ch; font-size: 1.05rem; }
.fix-stack {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.fix-card,
.menu-ticket,
.special-list article,
.contact-panel,
.agent-window,
.agent-copy,
.feature-dish,
.story-copy,
.coffee-card {
  border: 1.5px solid rgba(32,25,18,0.18);
  border-radius: var(--radius-md);
  background: rgba(255,248,226,0.78);
  box-shadow: 0 16px 50px rgba(45,30,14,0.1);
}
.fix-card { padding: 24px; min-height: 140px; }
.fix-card span {
  display: inline-flex;
  font-family: var(--mono);
  color: var(--barn);
  margin-bottom: 18px;
}
.fix-card p,
.menu-ticket p,
.special-list p,
.story-copy p,
.agent-copy p,
.contact-panel p { margin-bottom: 0; }

.menu-section { padding: 18px 0 clamp(72px, 10vw, 130px); }
.split-heading {
  display: grid;
  grid-template-columns: 0.38fr 0.62fr;
  gap: clamp(18px, 4vw, 52px);
  align-items: end;
  margin-bottom: 28px;
}
.split-heading p:last-child { max-width: 52ch; }
.menu-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr);
  gap: 22px;
  align-items: stretch;
}
.feature-dish {
  overflow: hidden;
  background: var(--paper-soft);
}
.feature-dish img {
  display: block;
  width: 100%;
  height: clamp(280px, 34vw, 430px);
  object-fit: cover;
  object-position: 50% 52%;
}
.feature-dish div { padding: 24px; }
.menu-tickets { display: grid; gap: 14px; align-content: start; }
.menu-ticket {
  position: relative;
  padding: 24px 24px 24px 34px;
  background:
    linear-gradient(90deg, rgba(189,116,28,0.14), transparent 18%),
    rgba(255,248,226,0.86);
}
.menu-ticket::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 18px;
  bottom: 18px;
  border-left: 2px dashed rgba(32,25,18,0.22);
}
.menu-ticket span { font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--chive); }

.specials-board {
  display: grid;
  grid-template-columns: 0.42fr 0.58fr;
  gap: clamp(22px, 5vw, 66px);
  align-items: start;
  padding: clamp(36px, 6vw, 74px);
  border-radius: 42px;
  color: var(--paper-soft);
  background:
    linear-gradient(135deg, rgba(21,19,15,0.93), rgba(61,38,24,0.92)),
    url('./assets/order-ticket-pattern.jpg') center / 520px repeat;
  box-shadow: var(--shadow);
}
.specials-board p { color: rgba(255,247,223,0.72); }
.special-list { display: grid; gap: 14px; }
.special-list article {
  padding: 20px;
  background: rgba(255,247,223,0.08);
  border-color: rgba(255,247,223,0.18);
}
.special-list time { font-family: var(--mono); color: var(--butter); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; }
.special-list h3 { color: var(--paper-soft); }

.story-process { align-items: center; padding-top: clamp(34px, 6vw, 76px); padding-bottom: clamp(34px, 6vw, 76px); }
.story-process > .section-kicker { grid-column: 1 / -1; margin-bottom: -18px; }
.coffee-card { overflow: hidden; grid-column: 1; padding: 10px; background: var(--paper-soft); transform: rotate(-1deg); }
.coffee-card img {
  display: block;
  width: 100%;
  height: clamp(280px, 32vw, 420px);
  object-fit: cover;
  object-position: 50% 50%;
  border-radius: 18px;
}
.story-copy { grid-column: 2; padding: clamp(26px, 4vw, 46px); }
.proof-list { padding-left: 0; list-style: none; display: grid; gap: 12px; }
.proof-list li { position: relative; padding-left: 30px; line-height: 1.5; }
.proof-list li::before { content: '✓'; position: absolute; left: 0; color: var(--chive); font-weight: 700; }

.agent-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 22px;
  align-items: stretch;
  padding: clamp(30px, 6vw, 70px) 0;
}
.agent-window { background: #211910; color: var(--paper-soft); padding: 16px; }
.agent-topbar { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; font-family: var(--mono); font-size: 0.78rem; color: rgba(255,247,223,0.74); }
.agent-topbar span { width: 12px; height: 12px; border-radius: 50%; background: var(--barn); }
.agent-topbar span:nth-child(2) { background: var(--butter); }
.agent-topbar span:nth-child(3) { background: var(--chive); }
.agent-topbar strong { margin-left: auto; }
.agent-message,
.agent-patch { padding: 16px; border-radius: 18px; margin-top: 12px; line-height: 1.5; }
.agent-message.owner { background: rgba(255,247,223,0.12); }
.agent-message.ai { background: rgba(84,116,58,0.22); }
.agent-patch { background: rgba(0,0,0,0.28); overflow-x: auto; }
.agent-patch code { color: var(--butter); font-family: var(--mono); font-size: 0.85rem; }
.agent-copy { padding: clamp(24px, 4vw, 42px); }

.contact-panel {
  margin-top: 22px;
  margin-bottom: 52px;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(300px, 0.9fr);
  gap: 24px;
  align-items: center;
  padding: clamp(26px, 5vw, 48px);
  background: var(--paper-soft);
}
.site-footer {
  padding: 34px 0 96px;
  color: var(--muted);
  font-size: 0.92rem;
}
.site-footer p { max-width: 88ch; }

.mobile-actions {
  display: none;
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 20;
  padding: 8px;
  border-radius: 999px;
  background: rgba(21,19,15,0.92);
  box-shadow: 0 18px 42px rgba(0,0,0,0.28);
  backdrop-filter: blur(14px);
}
.mobile-actions a {
  flex: 1;
  min-height: 48px;
  display: grid;
  place-items: center;
  color: var(--paper-soft);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  border-radius: 999px;
}
.mobile-actions a:first-child { background: var(--barn); }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 520ms ease, transform 520ms ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.hero-art.reveal.is-visible { transform: rotate(1.2deg); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

.agent-page .site-footer { padding-bottom: 44px; }
.agent-shell { width: var(--container); margin: 42px auto; }
.agent-hero { max-width: 920px; margin-bottom: 24px; }
.agent-hero h1 { max-width: 10ch; }
.agent-workbench,
.patch-panel,
.audit-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: 22px;
  align-items: start;
  margin: 24px 0;
}
.chat-card,
.state-card,
.patch-panel,
.audit-panel {
  border: 1.5px solid rgba(32,25,18,0.18);
  border-radius: var(--radius-md);
  background: rgba(255,248,226,0.82);
  box-shadow: 0 16px 50px rgba(45,30,14,0.1);
  padding: clamp(22px, 4vw, 34px);
}
.chat-card textarea {
  width: 100%;
  min-height: 150px;
  resize: vertical;
  margin-top: 12px;
  padding: 16px;
  border: 2px solid rgba(32,25,18,0.2);
  border-radius: 18px;
  background: var(--paper-soft);
  color: var(--ink);
  font: 1rem/1.5 var(--body);
}
.sample-row,
.agent-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.sample-row button {
  min-height: 42px;
  border: 1px solid rgba(32,25,18,0.16);
  border-radius: 999px;
  background: rgba(189,116,28,0.12);
  color: var(--coffee);
  padding: 9px 12px;
  font: 700 0.82rem var(--body);
  cursor: pointer;
}
.agent-buttons button { cursor: pointer; }
.agent-buttons button:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.state-card h2 { font-size: clamp(1.7rem, 3.3vw, 2.6rem); margin-bottom: 18px; }
.state-card dl { display: grid; gap: 12px; }
.state-card dt { font-family: var(--mono); color: var(--barn); text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.06em; }
.state-card dd { margin: 0; color: var(--muted); line-height: 1.55; }
.patch-panel,
.audit-panel { grid-template-columns: 0.44fr 0.56fr; }
#patchOutput {
  min-height: 260px;
  margin: 0;
  white-space: pre-wrap;
  overflow-x: auto;
  padding: 18px;
  border-radius: 18px;
  background: var(--charcoal);
  color: var(--butter);
  font: 0.88rem/1.55 var(--mono);
}
#auditList {
  margin: 0;
  padding-left: 24px;
  display: grid;
  gap: 14px;
}
#auditList li {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.45);
  border: 1px solid rgba(32,25,18,0.12);
}
#auditList strong,
#auditList span,
#auditList code { display: block; }
#auditList strong { font-family: var(--mono); text-transform: uppercase; color: var(--barn); font-size: 0.78rem; }
#auditList span { color: var(--muted); font-size: 0.86rem; margin: 5px 0; }
#auditList code { white-space: pre-wrap; color: var(--coffee); font-family: var(--mono); font-size: 0.78rem; }

@media (max-width: 940px) {
  :root { --container: min(100vw - 24px, 720px); }
  .desktop-nav { display: none; }
  .site-header { top: 8px; min-height: 62px; }
  .hero { grid-template-columns: 1fr; min-height: auto; margin-top: 26px; gap: 18px; }
  .ticket { padding: 28px 22px 34px; }
  h1 { font-size: clamp(3rem, 16vw, 5rem); max-width: 10ch; }
  .hero-info-grid { grid-template-columns: 1fr; }
  .hero-art { transform: rotate(0); border-radius: 30px; }
  .hero-art.reveal.is-visible { transform: rotate(0); }
  .hero-art img { height: min(430px, 58vh); object-position: 64% 52%; }
  .hero-art figcaption { position: static; border-radius: 0; }
  .quick-rail { grid-template-columns: 1fr 1fr; }
  .quick-rail article:nth-child(2) { border-right: 0; }
  .quick-rail article { border-bottom: 1px solid rgba(246,233,201,0.18); }
  .quick-rail article:nth-child(3), .quick-rail article:nth-child(4) { border-bottom: 0; }
  .section-grid,
  .split-heading,
  .menu-layout,
  .specials-board,
  .story-process,
  .agent-preview,
  .agent-workbench,
  .patch-panel,
  .audit-panel,
  .contact-panel { grid-template-columns: 1fr; }
  .fix-stack,
  .story-copy,
  .coffee-card { grid-column: auto; }
  .fix-stack { grid-template-columns: 1fr; }
  .specials-board { padding: 28px; border-radius: 30px; }
  .contact-panel { margin-bottom: 90px; }
  .mobile-actions { display: flex; }
}

@media (max-width: 520px) {
  :root { --container: calc(100vw - 18px); }
  .brand-lockup span:last-child { max-width: 176px; overflow: hidden; text-overflow: ellipsis; }
  .site-header { padding-left: 10px; }
  .spoon-mark { width: 34px; height: 34px; }
  .nav-cta { padding-inline: 12px; }
  .preview-badge { font-size: 0.66rem; }
  h1 { font-size: clamp(2.35rem, 11vw, 3rem); line-height: 0.96; letter-spacing: -0.035em; }
  h2 { font-size: clamp(2rem, 10vw, 3.1rem); }
  .hero-subhead { margin-top: 16px; font-size: 0.98rem; line-height: 1.48; }
  .hero-info-grid { gap: 8px; margin-top: 16px; }
  .hero-info-grid article { padding: 12px; }
  .hero-info-grid small { font-size: 0.74rem; }
  .hero-actions { margin-top: 16px; }
  .hero-actions .button { width: 100%; }
  .quick-rail { grid-template-columns: 1fr; }
  .quick-rail article { border-right: 0; border-bottom: 1px solid rgba(246,233,201,0.18); padding: 18px; }
  .quick-rail article:last-child { border-bottom: 0; }
  .section-grid { padding: 68px 0; }
  .feature-dish img,
  .coffee-card img { height: min(320px, 78vw); }
  .contact-actions .button { width: 100%; }
}
