:root {
  --paper: #f7f3ec;
  --paper-2: #efe8dc;
  --card: #fffdf9;
  --ink: #1e1b18;
  --ink-2: #5b544c;
  --line: #e0d7c8;
  --ai: #2d4a7a;
  --ai-2: #233b62;
  --hanko: #b8432b;
  --ok: #2f6b45;
  --night: #16130f;
  --radius: 16px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--ai); }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0 0 .5em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); letter-spacing: -.015em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); letter-spacing: -.01em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
section { padding: 96px 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 600; color: var(--hanko); margin-bottom: 14px; }
.sub { color: var(--ink-2); max-width: 40em; font-size: 1.08rem; }
.fine { font-size: .85rem; color: var(--ink-2); }

/* ---------- Image frames with graceful placeholders ---------- */
.ph {
  position: relative; margin: 0; overflow: hidden;
  background: linear-gradient(135deg, #e9dfcf, #d9c9b0 55%, #cdb898);
}
.ph::after {
  content: attr(data-label); position: absolute; left: 14px; bottom: 12px;
  font: 500 .72rem var(--sans); letter-spacing: .04em; color: rgba(30, 27, 24, .45);
}
.ph-dark { background: radial-gradient(120% 90% at 75% 40%, #4a3524 0%, #2a1f17 45%, var(--night) 100%); }
.ph-dark::after { color: rgba(255, 255, 255, .35); }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; opacity: 0; transition: opacity .6s var(--ease); }
.ph img.loaded { opacity: 1; }
.rounded { border-radius: var(--radius); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 20; color: #fff;
  transition: background .3s, color .3s, box-shadow .3s;
}
.nav.solid { background: rgba(247, 243, 236, .94); backdrop-filter: blur(10px); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 1.25rem; font-weight: 600; color: inherit; text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a:not(.btn) { color: inherit; opacity: .8; text-decoration: none; font-size: .95rem; transition: opacity .2s; }
.nav-links a:not(.btn):hover { opacity: 1; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; border: 0; cursor: pointer;
  background: var(--ai); color: #fff; text-decoration: none;
  font: 600 1rem var(--sans); padding: 15px 26px; border-radius: 999px;
  transition: background .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn:hover { background: var(--ai-2); transform: translateY(-1px); box-shadow: 0 8px 20px -10px rgba(45, 74, 122, .6); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 9px 18px; font-size: .9rem; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--paper); }
.btn-ghost-light { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .7); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .1); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: default; transform: none; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(92vh, 860px); display: flex; align-items: center; padding: 120px 0 72px; color: #fff; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media::before {
  content: ""; position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(90deg, rgba(14, 11, 8, .82) 0%, rgba(14, 11, 8, .55) 45%, rgba(14, 11, 8, .1) 100%),
              linear-gradient(0deg, rgba(14, 11, 8, .5), transparent 40%);
}
.hero-media img { transform: scale(1.04); transition: opacity .8s var(--ease), transform 6s var(--ease); }
.hero-media img.loaded { transform: scale(1); }
.hero-content { width: 100%; }
.hero .eyebrow { color: #f0b9a8; }
.hero h1 { max-width: 12em; text-shadow: 0 2px 30px rgba(0, 0, 0, .3); }
.hero .lede { font-size: 1.18rem; max-width: 32em; color: rgba(255, 255, 255, .88); }
.hero .fine { color: rgba(255, 255, 255, .7); }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 30px 0 14px; }

/* ---------- Sake glass icon ---------- */
.glass {
  display: inline-block; width: 14px; height: 18px; margin-right: 8px; vertical-align: -3px;
  border: 1.5px solid currentColor; border-top: 0; border-radius: 0 0 6px 6px;
  background: linear-gradient(to top, var(--fill, #f3ecd6) 70%, transparent 70%);
  opacity: .9;
}
.g-clear { --fill: #f4eed9; }
.g-gold { --fill: #ead9a6; }
.g-cloudy { --fill: #fbfaf6; box-shadow: inset 0 -12px 0 rgba(0, 0, 0, .04); }
.g-amber { --fill: #c98a2e; }
.g-sparkling {
  --fill: #f4eed9;
  background: radial-gradient(circle at 30% 70%, #fff 1px, transparent 1.5px), radial-gradient(circle at 65% 50%, #fff 1px, transparent 1.5px),
              linear-gradient(to top, var(--fill) 70%, transparent 70%);
}

/* ---------- Pairing dinner rail ---------- */
.dinner { background: var(--night); color: #fff; padding-bottom: 72px; }
.dinner .sub { color: rgba(255, 255, 255, .72); }
.dinner .eyebrow { color: #f0b9a8; }
.course-rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 340px); gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  --rail-pad: max(24px, calc((100vw - 1160px) / 2 + 24px));
  padding: 36px var(--rail-pad) 8px;
  scroll-padding-inline: var(--rail-pad);
  scrollbar-width: none; outline: none;
}
.course-rail::-webkit-scrollbar { display: none; }
.course { scroll-snap-align: start; background: #221d18; border-radius: var(--radius); overflow: hidden; transition: transform .35s var(--ease); }
.course:hover { transform: translateY(-4px); }
.course .ph { aspect-ratio: 1 / 1; background: linear-gradient(160deg, #3a2c20, #241b14); }
.course .ph::after { color: rgba(255, 255, 255, .3); }
.course:hover .ph img { transform: scale(1.04); }
.course .ph img { transition: opacity .6s var(--ease), transform .8s var(--ease); }
.course-body { padding: 20px 22px 24px; }
.course-body p { color: rgba(255, 255, 255, .72); margin: 0; font-size: .95rem; }
.course-no { font-size: .75rem !important; text-transform: uppercase; letter-spacing: .12em; color: #f0b9a8 !important; margin-bottom: 6px !important; }
.course h3 { font-size: 1.3rem; margin-bottom: 10px; }
.match { color: #fff !important; font-weight: 500; margin-bottom: 8px !important; }
.rail-controls { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; }
.dots { display: flex; gap: 8px; }
.dots span { width: 8px; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .25); transition: width .3s var(--ease), background .3s; }
.dots span.on { width: 26px; background: #fff; }
.arrows { display: flex; gap: 10px; }
.arrow { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); background: transparent; color: #fff; font-size: 1.1rem; cursor: pointer; transition: background .2s; }
.arrow:hover { background: rgba(255, 255, 255, .1); }
.dinner-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 40px; padding-top: 32px; border-top: 1px solid rgba(255, 255, 255, .12); }
.dinner-cta p { margin: 0; color: rgba(255, 255, 255, .8); max-width: 40em; }
.dinner-cta strong { color: #fff; }

/* ---------- Finder ---------- */
.finder-form { display: flex; gap: 10px; margin-top: 26px; max-width: 680px; }
.combo { position: relative; flex: 1; min-width: 0; }
.combo input {
  width: 100%; font: 1.05rem var(--sans); padding: 15px 20px;
  border: 1.5px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.combo input:focus { outline: none; border-color: var(--ai); box-shadow: 0 0 0 4px rgba(45, 74, 122, .12); }
.suggest {
  position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px -20px rgba(30, 27, 24, .4);
}
.suggest li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: 10px; cursor: pointer; }
.suggest li small { color: var(--ink-2); }
.suggest li[aria-selected="true"], .suggest li:hover { background: var(--paper); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 8px; }
.chip { border: 1px solid var(--line); background: var(--card); color: var(--ink-2); padding: 7px 15px; border-radius: 999px; font: .88rem var(--sans); cursor: pointer; transition: all .2s; }
.chip:hover, .chip.on { border-color: var(--ai); color: var(--ai); }

.results { margin-top: 28px; min-height: 8px; }
.result { display: grid; grid-template-columns: 300px 1fr; gap: 24px; animation: rise .45s var(--ease) both; }
.result-media { aspect-ratio: 1 / 1; align-self: start; border-radius: var(--radius); }
.result-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.result-head h3 { font-size: 1.6rem; margin: 0; }
.result-head .note { font-size: .88rem; color: var(--ink-2); }
.pair-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.pair { background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--ai); border-radius: var(--radius); padding: 20px; animation: rise .45s var(--ease) both; }
.pair:nth-child(2) { border-top-color: var(--hanko); animation-delay: .08s; }
.pair .rank { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-2); font-weight: 600; }
.pair h4 { font-family: var(--serif); font-size: 1.3rem; margin: 6px 0 2px; }
.pair .say { font-size: .85rem; color: var(--ink-2); margin-bottom: 10px; }
.pair .why { margin-bottom: 10px; }
.pair .meta span { display: inline-block; background: var(--paper); border-radius: 999px; padding: 4px 10px; font-size: .82rem; }
.pair .wine { font-size: .88rem; color: var(--ink-2); font-style: italic; margin: 10px 0 0; }
.miss { background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); padding: 24px; animation: rise .45s var(--ease) both; }
.result-cta { margin: 16px 0 0; font-size: .95rem; }

/* ---------- Sake styles band ---------- */
.styles-band { background: var(--night); color: #fff; }
.styles-band .eyebrow { color: #f0b9a8; }
.styles-frame { max-width: 1000px; margin: 32px auto 0; }
.styles-media { aspect-ratio: 1000 / 410; width: 100%; }
.styles-legend { position: relative; height: 56px; margin-top: 14px; font-size: .9rem; color: rgba(255, 255, 255, .85); }
.styles-legend > div { position: absolute; left: var(--x); transform: translateX(-50%); text-align: center; white-space: nowrap; }
.styles-legend .glass { display: block; margin: 0 auto 8px; width: 18px; height: 24px; color: rgba(255, 255, 255, .7); }
.styles-cap { text-align: center; color: rgba(255, 255, 255, .7); margin: 20px 0 0; }

/* ---------- Pain ---------- */
.pain-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.pain-grid .ph { aspect-ratio: 4 / 3; }
.pain-grid .ph img { object-position: center 62%; }
.pain-list { list-style: none; padding: 0; margin: 20px 0 0; }
.pain-list li { padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.pain-list strong { color: var(--ink); display: block; font-family: var(--serif); font-size: 1.15rem; margin-bottom: 2px; }

/* ---------- How ---------- */
.how { background: var(--paper-2); }
.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.steps p { color: var(--ink-2); margin: 0; }
.num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 600; margin-bottom: 14px; }
.kit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 28px; align-items: stretch; }
.kit-grid .ph { aspect-ratio: 1 / 1; }
.staff-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; align-self: center; box-shadow: 0 24px 50px -30px rgba(30, 27, 24, .35); }
.staff-card p { margin: 0 0 .55em; font-size: .95rem; }
.staff-card h3 { display: flex; align-items: center; font-size: 1.5rem; }
.staff-card .glass { color: var(--ink-2); }
.tag { display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--hanko); margin-bottom: 8px !important; }

/* ---------- Who ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: transform .3s var(--ease), box-shadow .3s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -28px rgba(30, 27, 24, .4); }
.card p { color: var(--ink-2); margin: 0; }

/* ---------- Pilot form ---------- */
.pilot { background: var(--paper-2); }
.pilot-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.checks { list-style: none; padding: 0; margin: 20px 0 0; }
.checks li { padding: 8px 0 8px 32px; position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 8px; width: 22px; height: 22px; border-radius: 50%; background: var(--hanko); color: #fff; font-size: .75rem; display: grid; place-items: center; }
.waitlist { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: 0 30px 60px -40px rgba(30, 27, 24, .4); overflow: hidden; }
.progress { position: absolute; inset: 0 0 auto; height: 4px; background: var(--paper-2); }
.progress span { display: block; height: 100%; width: 0; background: var(--hanko); transition: width .4s var(--ease); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field > label { font-size: .88rem; font-weight: 500; }
.waitlist input:not([type=radio]):not([type=checkbox]), .waitlist select, .waitlist textarea {
  font: 1rem var(--sans); padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
.waitlist input:focus, .waitlist select:focus, .waitlist textarea:focus { outline: none; border-color: var(--ai); box-shadow: 0 0 0 4px rgba(45, 74, 122, .1); }
.waitlist .invalid { border-color: var(--hanko) !important; }
.hint { color: var(--hanko); font-size: .8rem; min-height: 0; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills label { cursor: pointer; }
.pills input { position: absolute; opacity: 0; pointer-events: none; }
.pills span { display: inline-block; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 999px; font-size: .9rem; transition: all .2s; background: #fff; }
.pills input:checked + span { border-color: var(--ai); background: var(--ai); color: #fff; }
.pills input:focus-visible + span { box-shadow: 0 0 0 4px rgba(45, 74, 122, .2); }
.biz { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .4s var(--ease), opacity .3s; }
.biz > * { min-height: 0; }
.biz.hide { grid-template-rows: 0fr; opacity: 0; overflow: hidden; }
.biz-inner { overflow: hidden; }
.check { display: flex; align-items: center; gap: 10px; font-size: .95rem; margin-bottom: 18px; }
.hp { position: absolute; left: -9999px; }
.form-msg { margin: 12px 0 0; font-weight: 500; min-height: 1.2em; }
.form-msg.ok { color: var(--ok); }
.form-msg.err { color: var(--hanko); }
.success { text-align: center; padding: 40px 10px; animation: rise .5s var(--ease) both; }
.success .big { font-size: 2.6rem; margin-bottom: 8px; }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { cursor: pointer; font-family: var(--serif); font-size: 1.18rem; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); font-weight: 400; color: var(--ink-2); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 12px 0 0; color: var(--ink-2); animation: rise .35s var(--ease) both; }

/* ---------- Footer & sticky CTA ---------- */
.footer { border-top: 1px solid var(--line); padding: 36px 0 96px; }
.footer-inner p { margin: 0 0 6px; }
.footer a { color: var(--ink-2); }
.sticky-cta {
  position: fixed; z-index: 30; left: 50%; bottom: 18px; transform: translate(-50%, 140%);
  background: var(--hanko); color: #fff; text-decoration: none; font-weight: 600; padding: 14px 26px; border-radius: 999px;
  box-shadow: 0 14px 30px -12px rgba(184, 67, 43, .7); transition: transform .4s var(--ease); white-space: nowrap;
}
.sticky-cta.show { transform: translate(-50%, 0); }

/* ---------- Motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  section { padding: 64px 0; }
  .pain-grid, .pilot-grid, .kit-grid { grid-template-columns: 1fr; gap: 32px; }
  .grid-3, .steps { grid-template-columns: 1fr; }
  .result { grid-template-columns: 1fr; }
  .result-media { max-width: 420px; }
  .nav-links a:not(.btn) { display: none; }
  .dinner-cta { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .hero { min-height: 88vh; padding-top: 100px; }
  .hero-media::before { background: linear-gradient(0deg, rgba(14, 11, 8, .9) 10%, rgba(14, 11, 8, .45) 70%, rgba(14, 11, 8, .3)); }
  .hero { align-items: flex-end; }
  .course-rail { grid-auto-columns: 82vw; --rail-pad: 16px; }
  .finder-form { flex-direction: column; }
  .pair-grid { grid-template-columns: 1fr; }
  .field-2 { grid-template-columns: 1fr; gap: 0; }
  .waitlist { padding: 24px 18px; }
  .arrows { display: none; }
}
@media (min-width: 901px) {
  .sticky-cta { display: none; }
  .footer { padding-bottom: 36px; }
}
.ai-note { font-size: .68rem; color: var(--ink-2); opacity: .55; margin: 2px 0 0 !important; }
@media (max-width: 560px) {
  .styles-legend { height: 44px; font-size: .64rem; letter-spacing: -.01em; }
  .styles-legend .glass { width: 12px; height: 16px; margin-bottom: 5px; }
}
