/* =============================================
   SORA OMAKASE — Stylesheet
   ============================================= */

/* -------------------------------------------
   Custom Properties
   ------------------------------------------- */
:root {
  --color-bg:           #F8F7F3;
  --color-bg-soft:      #FAF9F5;
  --color-surface:      #FFFFFF;
  --color-matcha:       #A8B79E;
  --color-matcha-soft:  #C5D1BC;
  --color-matcha-deep:  #7F9276;
  --color-text:         #1F1F1C;
  --color-muted:        rgba(31, 31, 28, 0.62);
  --color-faint:        rgba(31, 31, 28, 0.34);
  --color-faint-10:     rgba(31, 31, 28, 0.08);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --text-xs:      0.6875rem;
  --text-sm:      0.8125rem;
  --text-base:    1rem;
  --text-lg:      1.125rem;
  --text-xl:      clamp(1.25rem, 2.4vw, 1.75rem);
  --text-2xl:     clamp(1.625rem, 3.2vw, 2.5rem);
  --text-hero:    clamp(2.5rem, 7.5vw, 6rem);
  --text-course:  clamp(1.375rem, 2.6vw, 2.125rem);

  --space-xs:   0.5rem;
  --space-sm:   1rem;
  --space-md:   2rem;
  --space-lg:   3.5rem;
  --space-xl:   6.5rem;
  --space-2xl:  11rem;

  --side-pad: clamp(1.5rem, 6.5vw, 7.5rem);
  --nav-h: 64px;

  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --ease-inout:  cubic-bezier(0.4, 0, 0.2, 1);
}

/* -------------------------------------------
   Reset & Base
   ------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font);
  font-weight: 300;
  background: var(--color-bg);
  color: var(--color-text);
  overflow-x: hidden;
  line-height: 1.6;
}

img, svg { display: block; max-width: 100%; }
ul, ol   { list-style: none; }
button   { font-family: inherit; cursor: pointer; background: none; border: none; }
a        { color: inherit; text-decoration: none; }
em       { font-style: italic; }

/* <picture> is a transparent layout wrapper — don't let it collapse containers */
picture { display: contents; }

/* Anchor targets: offset from fixed nav so section links don't land underneath */
#hero, #courses, #reserve {
  scroll-margin-top: calc(var(--nav-h) + 1.5rem);
}

/* -------------------------------------------
   Skip Link
   ------------------------------------------- */
.skip-link {
  position: absolute;
  top: -200%;
  left: var(--side-pad);
  background: var(--color-text);
  color: var(--color-bg);
  padding: 0.75rem 1.25rem;
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

/* -------------------------------------------
   Focus Styles
   ------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--color-matcha-deep);
  outline-offset: 3px;
}

/* -------------------------------------------
   Entrance Overlay
   ------------------------------------------- */
.entrance {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.entrance-panels {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.entrance-panel {
  background: var(--color-bg);
  transition: transform 900ms var(--ease-out);
}

/* Promote panels to their own compositor layer only while the slice is active */
.entrance.is-slicing .entrance-panel {
  will-change: transform;
}

@keyframes bladePulse {
  0%, 100% {
    background: var(--color-faint);
    box-shadow: none;
  }
  50% {
    background: rgba(168, 183, 158, 0.45);
    box-shadow: 0 0 10px rgba(168, 183, 158, 0.2);
  }
}

.entrance-blade {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: var(--color-faint);
  transform: translateX(-50%);
  transition: background 200ms ease, box-shadow 200ms ease;
  pointer-events: none;
}

.entrance:not(.is-slicing) .entrance-blade {
  animation: bladePulse 3.8s ease-in-out 1.5s infinite;
}

.entrance-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: opacity 150ms ease;
  padding: 0 2rem;
}

.entrance-mark {
  font-size: var(--text-xs);
  letter-spacing: 0.35em;
  color: var(--color-matcha);
  margin-bottom: 1.75rem;
  font-weight: 400;
  display: block;
}

.entrance-wordmark {
  font-size: clamp(3.5rem, 14vw, 7.5rem);
  font-weight: 300;
  letter-spacing: 0.38em;
  line-height: 1;
  color: var(--color-text);
  margin-bottom: 0.6rem;
  padding-left: 0.38em;
}

.entrance-tagline {
  font-size: var(--text-sm);
  letter-spacing: 0.22em;
  color: var(--color-muted);
  font-weight: 300;
  text-transform: uppercase;
  margin-bottom: 4rem;
}

.entrance-btn {
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-muted);
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--color-faint);
  min-width: 210px;
  min-height: 44px;
  text-align: center;
  transition: color 200ms, border-color 200ms;
  font-weight: 400;
}
.entrance-btn:hover,
.entrance-btn:focus-visible {
  color: var(--color-text);
  border-color: var(--color-matcha);
}
.entrance-btn:focus-visible {
  outline: 2px solid var(--color-matcha-deep);
  outline-offset: 8px;
}

/* Slicing state */
.entrance.is-slicing .entrance-blade {
  background: var(--color-matcha);
  box-shadow: 0 0 14px rgba(168, 183, 158, 0.55);
}
.entrance.is-slicing .entrance-content {
  opacity: 0;
}
.entrance.is-slicing .entrance-panel--left {
  transform: translateX(-100%);
}
.entrance.is-slicing .entrance-panel--right {
  transform: translateX(100%);
}
.entrance.is-gone {
  pointer-events: none;
  visibility: hidden;
}

/* -------------------------------------------
   Main Site
   ------------------------------------------- */
.site[aria-hidden="true"] {
  visibility: hidden;
  pointer-events: none;
}

/* -------------------------------------------
   Scroll Progress
   ------------------------------------------- */
.scroll-progress {
  position: fixed;
  left: 0;
  top: 0;
  width: 2px;
  height: 100vh;
  background: var(--color-matcha);
  transform-origin: top;
  transform: scaleY(0);
  z-index: 50;
  pointer-events: none;
  will-change: transform;
}

@media (max-width: 768px) {
  .scroll-progress { display: none; }
}

/* -------------------------------------------
   Navigation
   ------------------------------------------- */
.nav-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background 300ms ease, backdrop-filter 300ms ease;
}
.nav-wrap.is-scrolled {
  background: rgba(248, 247, 243, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--side-pad);
}

.nav-brand {
  font-size: var(--text-xs);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 400;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.nav-link {
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--color-muted);
  transition: color 200ms;
}
.nav-link:hover { color: var(--color-text); }

.nav-link--cta {
  color: var(--color-text);
  border-bottom: 1px solid var(--color-matcha);
  padding-bottom: 2px;
}
.nav-link--cta:hover { border-color: var(--color-matcha-deep); }

/* -------------------------------------------
   Section Label (shared)
   ------------------------------------------- */
.section-label {
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-matcha-deep);
  font-weight: 400;
}

/* -------------------------------------------
   Hero
   ------------------------------------------- */
.hero {
  min-height: 100svh;
  padding-top: var(--nav-h);
}

.hero-inner {
  min-height: calc(100svh - var(--nav-h));
  display: grid;
  grid-template-columns: 58fr 42fr;
  grid-template-rows: auto 1fr auto;
  padding: var(--space-lg) var(--side-pad) var(--space-xl);
}

.hero-label {
  grid-column: 1 / -1;
  grid-row: 1;
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted);
  padding-top: var(--space-md);
  margin-bottom: var(--space-lg);
}

.hero-heading {
  grid-column: 1;
  grid-row: 2;
  font-size: var(--text-hero);
  font-weight: 300;
  line-height: 1.06;
  letter-spacing: -0.025em;
  align-self: center;
  padding-right: var(--space-lg);
}
.js .hero-heading {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 1000ms var(--ease-out), transform 1000ms var(--ease-out);
}
.js .hero-heading.is-visible {
  opacity: 1;
  transform: none;
}
.hero-heading em {
  font-style: italic;
  color: var(--color-muted);
  font-weight: 300;
}

.hero-aside {
  grid-column: 2;
  grid-row: 3;
  align-self: end;
  text-align: right;
  padding-bottom: var(--space-xs);
}
.js .hero-aside {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 700ms var(--ease-out) 250ms, transform 700ms var(--ease-out) 250ms;
}
.js .hero-aside.is-visible {
  opacity: 1;
  transform: none;
}

.hero-body {
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: 1.75;
  max-width: 28ch;
  margin-left: auto;
  margin-bottom: var(--space-md);
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 400;
  border-bottom: 1px solid var(--color-matcha);
  padding-bottom: 2px;
  transition: border-color 200ms;
}
.hero-cta::after {
  content: '\2192';
  display: inline-block;
  transition: transform 350ms var(--ease-out);
  letter-spacing: 0;
}
.hero-cta:hover {
  border-color: var(--color-matcha-deep);
}
.hero-cta:hover::after {
  transform: translateX(4px);
}

.hero-rule {
  grid-column: 1;
  grid-row: 3;
  align-self: end;
  height: 1px;
  background: var(--color-matcha-soft);
  width: 38%;
  margin-bottom: var(--space-sm);
  transform-origin: left;
}
.js .hero-rule {
  opacity: 0;
  transform: scaleX(0);
  transition: opacity 500ms ease 500ms, transform 800ms var(--ease-out) 500ms;
}
.js .hero-rule.is-visible {
  opacity: 1;
  transform: scaleX(1);
}

.hero-image-wrap {
  grid-column: 2;
  grid-row: 2;
  align-self: center;
  /* Breathing room: right edge matches side-pad, left gives gap from heading */
  padding: var(--space-md) var(--side-pad) 0 var(--space-md);
}
.js .hero-image-wrap {
  opacity: 0;
  transition: opacity 900ms var(--ease-out) 500ms;
}
.js .hero-image-wrap.is-visible {
  opacity: 1;
}

.hero-img {
  width: 100%;
  height: auto;
  display: block;
  /* Natural proportions preserved — the image's own cream negative space
     acts as internal padding, so no additional cropping is needed */
}

/* -------------------------------------------
   The Experience
   ------------------------------------------- */
.experience {
  padding: var(--space-2xl) var(--side-pad);
}

.experience-inner {
  display: grid;
  grid-template-columns: 55fr 45fr;
  grid-template-rows: auto auto;
  row-gap: var(--space-xl);
}

.experience-inner .section-label {
  grid-column: 1;
  grid-row: 1;
}

.experience-lines {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.experience-line {
  font-size: var(--text-xl);
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.js .experience-line {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}
.js .experience-lines.is-visible .experience-line:nth-child(1) {
  opacity: 1; transform: none; transition-delay: 0ms;
}
.js .experience-lines.is-visible .experience-line:nth-child(2) {
  opacity: 1; transform: none; transition-delay: 180ms;
}
.js .experience-lines.is-visible .experience-line:nth-child(3) {
  opacity: 1; transform: none; transition-delay: 360ms;
}

.experience-note {
  grid-column: 2;
  grid-row: 2;
  padding-left: var(--space-xl);
  padding-top: var(--space-xl);
  align-self: end;
}
.experience-note p {
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: 2.1;
  border-left: 1px solid var(--color-matcha-soft);
  padding-left: var(--space-md);
}

/* -------------------------------------------
   Course Journey
   ------------------------------------------- */
.courses {
  padding-top: var(--space-xl);
}

.courses-header {
  padding: 0 var(--side-pad) var(--space-2xl);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.courses-heading {
  font-size: var(--text-2xl);
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.courses-sub {
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-muted);
}

/* Shared course pieces */
.course {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--color-faint-10);
}

.course-num {
  display: block;
  font-size: var(--text-xs);
  letter-spacing: 0.28em;
  color: var(--color-matcha-deep);
  font-weight: 400;
  margin-bottom: var(--space-sm);
}

.course-name {
  font-size: var(--text-course);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: var(--space-sm);
}

.course-note {
  font-size: var(--text-base);
  color: var(--color-muted);
  line-height: 1.6;
  margin-bottom: var(--space-xs);
}

.course-detail {
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-faint);
  font-weight: 400;
}

/* Image reveal — clip-path gated on .js so images are visible without JavaScript */
.course-img-wrap {
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.js .course-img-wrap {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1100ms var(--ease-out);
  will-change: clip-path;
}
.js .course-img-wrap.is-revealed {
  clip-path: inset(0 0% 0 0);
}

.course-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 700ms var(--ease-out),
              filter 700ms var(--ease-out);
}

/* Course hover — desktop only.
   Image transform is gated on .hover-ready (set by JS ~1200ms after clip-path
   settles) so it cannot fire during or immediately after the reveal animation. */
@media (hover: hover) {
  .course-num {
    transition: color 350ms var(--ease-out);
  }
  .course:hover .course-num {
    color: var(--color-matcha);
  }
  .course.is-revealed:hover .course-img-wrap.hover-ready .course-img {
    transform: scale(1.018);
    filter: brightness(1.03);
  }
}

/* Course text reveal — gated on .js so text is readable without JavaScript */
.js .course-text {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 600ms var(--ease-out) 380ms,
              transform 600ms var(--ease-out) 380ms;
}
.js .course.is-revealed .course-text {
  opacity: 1;
  transform: none;
}

/* All course gradient placeholders replaced — rule kept as empty anchor */

/* Per-image object-position overrides — default is center center */
/* Shima Aji: 21/8 container crops ~26% from top and bottom of the scaled source.
   Nigiri sits at ~65% from the top — nudge down so it lands at crop center */
.course-img--shimaaji { object-position: center 55%; }
/* Uni: subject lower-center, nudge up to show plate rim above */
.course-img--uni    { object-position: center 52%; }
/* Otoro: subject lower-center, pull up for plate breathing room above */
.course-img--otoro  { object-position: center 45%; }
/* Hotate: scallop lower-center with yuzu garnish, pull up slightly */
.course-img--hotate { object-position: center 45%; }
/* Anago: eel centered on plate, 2/3 portrait is a deep crop — pull up to
   keep nori/glaze top clear and show full plate rim above the subject */
.course-img--anago  { object-position: center 42%; }
/* Matcha: bowl is nearly centered in frame — keep crop centered, nudge up
   slightly so roasted rice topping clears the top edge of the 3/4 container */
.course-img--matcha { object-position: center 48%; }

/* ---- Course 01: image-left, text-right ---- */
.course--01 {
  display: grid;
  grid-template-columns: 53fr 47fr;
  min-height: 68vh;
  padding-bottom: var(--space-2xl);
}
.course--01 .course-img-wrap {
  aspect-ratio: 3 / 4;
}
.course--01 .course-text {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-xl) var(--side-pad) 0 var(--space-lg);
}

/* ---- Course 02: text-left, image-right ---- */
.course--02 {
  display: grid;
  grid-template-columns: 47fr 53fr;
  padding-bottom: var(--space-2xl);
}
.course--02 .course-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-xl) var(--space-lg) var(--space-xl) var(--side-pad);
}
.course--02 .course-img-wrap {
  aspect-ratio: 3 / 4;
}

/* ---- Course 03: full-bleed wide image, text below-left ---- */
.course--03 {
  display: grid;
  grid-template-columns: 1fr;
  padding-bottom: var(--space-2xl);
}
.course--03 .course-img-wrap {
  aspect-ratio: 21 / 8;
}
.course--03 .course-text--under {
  display: flex;
  flex-direction: column;
  padding: var(--space-md) var(--side-pad) 0;
  max-width: 52%;
}

/* ---- Course 04: large-text-left, offset-image-right ---- */
.course--04 {
  display: grid;
  grid-template-columns: 50fr 50fr;
  align-items: start;
  padding-bottom: var(--space-2xl);
}
.course--04 .course-text--large {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: var(--space-xl) var(--space-lg) var(--space-xl) var(--side-pad);
}
.course--04 .course-text--large .course-name {
  font-size: clamp(2rem, 4.2vw, 3.5rem);
  line-height: 1.05;
}
.course--04 .course-visual--offset {
  padding-top: var(--space-2xl);
  padding-right: var(--side-pad);
}
.course--04 .course-img-wrap {
  aspect-ratio: 4 / 5;
}

/* ---- Course 05: narrow-image-left, text-right ---- */
.course--05 {
  display: grid;
  grid-template-columns: 38fr 62fr;
  align-items: center;
  padding-bottom: var(--space-2xl);
}
.course--05 .course-img-wrap {
  aspect-ratio: 2 / 3;
}
.course--05 .course-text {
  padding: var(--space-xl) var(--side-pad) var(--space-xl) var(--space-lg);
}

/* ---- Course 06: closing — big text, small image ---- */
.course--06 {
  display: grid;
  grid-template-columns: 62fr 38fr;
  align-items: center;
  padding-bottom: var(--space-2xl);
}
.course--06 .course-text--closing {
  display: flex;
  flex-direction: column;
  padding: var(--space-2xl) var(--space-lg) var(--space-2xl) var(--side-pad);
}
.course--06 .course-text--closing .course-name {
  font-size: clamp(2.25rem, 4.8vw, 4.25rem);
  line-height: 1.04;
  margin-bottom: var(--space-md);
}
.course--06 .course-visual--small {
  padding-right: var(--side-pad);
}
.course--06 .course-img-wrap {
  aspect-ratio: 3 / 4;
  max-width: 85%;
}

/* -------------------------------------------
   Ingredient Philosophy
   ------------------------------------------- */
.ingredients {
  padding: var(--space-2xl) var(--side-pad);
  border-top: 1px solid var(--color-faint-10);
}

.ingredients-inner {
  display: grid;
  grid-template-columns: 54fr 46fr;
  gap: var(--space-xl);
  align-items: start;
}

.ingredients-statement .section-label {
  margin-bottom: var(--space-lg);
}

.ingredients-quote {
  font-size: var(--text-2xl);
  font-weight: 300;
  line-height: 1.45;
  letter-spacing: -0.01em;
  border: none;
  margin: 0 0 var(--space-lg);
  quotes: none;
}

.ingredients-sub {
  font-size: var(--text-sm);
  color: var(--color-muted);
  letter-spacing: 0.03em;
  line-height: 1.7;
  border-left: 1px solid var(--color-matcha-soft);
  padding-left: var(--space-md);
  max-width: 36ch;
}

.ingredients-right {
  display: flex;
  flex-direction: column;
}

.ingredients-img-wrap {
  width: 100%;
  overflow: hidden;
}
.js .ingredients-img-wrap {
  opacity: 0;
  transition: opacity 900ms var(--ease-out);
}
.js .ingredients-img-wrap.is-visible {
  opacity: 1;
}
.ingredients-img {
  display: block;
  width: 100%;
  height: auto;
}

.ingredients-list {
  display: flex;
  flex-direction: column;
  padding-top: var(--space-xl);
}

.ingredient-card {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-faint-10);
}
.ingredient-card:first-child {
  border-top: 1px solid var(--color-faint-10);
}

.ingredient-name {
  font-size: var(--text-base);
  font-weight: 300;
  letter-spacing: -0.01em;
}

.ingredient-origin {
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-faint);
  transition: color 300ms;
}

@media (hover: hover) {
  .ingredient-card:hover .ingredient-origin {
    color: var(--color-muted);
  }
}

/* -------------------------------------------
   Reservation
   ------------------------------------------- */
.reserve {
  padding: var(--space-2xl) var(--side-pad);
  border-top: 1px solid var(--color-faint-10);
  background: var(--color-bg-soft);
}

.reserve-inner {
  display: grid;
  grid-template-columns: 38fr 62fr;
  gap: var(--space-xl);
  align-items: start;
}

.reserve-intro .section-label {
  margin-bottom: var(--space-lg);
}

.reserve-heading {
  font-size: var(--text-2xl);
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: var(--space-md);
}

.reserve-note {
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: 2.1;
  border-left: 1px solid var(--color-matcha-soft);
  padding-left: var(--space-md);
}

.reserve-form {
  padding-top: var(--space-xl);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.form-label {
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-muted);
  font-weight: 400;
  transition: color 220ms;
}

.form-field:focus-within .form-label {
  color: var(--color-matcha-deep);
}

.form-input {
  font-family: var(--font);
  font-size: var(--text-base);
  font-weight: 300;
  color: var(--color-text);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-faint);
  padding: var(--space-xs) 0;
  width: 100%;
  border-radius: 0;
  transition: border-color 220ms;
}

/* Selects: remove native chrome so we control appearance */
select.form-input {
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

/* Date input: keep native calendar picker affordance for usability */
input[type="date"].form-input {
  min-height: 44px;
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}
.form-input:focus {
  border-color: var(--color-matcha-deep);
}
.form-input:focus-visible {
  outline: 2px solid var(--color-matcha-deep);
  outline-offset: 2px;
}
.form-input::-webkit-calendar-picker-indicator { opacity: 0.5; }

.form-submit {
  font-family: var(--font);
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--color-text);
  background: transparent;
  border: 1px solid var(--color-text);
  padding: 1.05rem 2.75rem;
  cursor: pointer;
  min-height: 48px;
  transition: background 260ms, color 260ms;
}
.form-submit:hover {
  background: var(--color-text);
  color: var(--color-bg);
}
.form-submit:focus-visible {
  outline: 2px solid var(--color-matcha-deep);
  outline-offset: 2px;
}
.form-submit:disabled {
  opacity: 0.6;
  cursor: default;
}

/* -------------------------------------------
   Footer
   ------------------------------------------- */
.footer {
  padding: var(--space-xl) var(--side-pad);
  border-top: 1px solid var(--color-faint-10);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.footer-name {
  font-size: var(--text-sm);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 400;
  margin-bottom: var(--space-xs);
}

.footer-location {
  font-size: var(--text-xs);
  color: var(--color-muted);
  letter-spacing: 0.08em;
}

.footer-credit {
  font-size: var(--text-xs);
  color: var(--color-faint);
  line-height: 1.9;
  letter-spacing: 0.04em;
  text-align: right;
}

/* -------------------------------------------
   Reduced Motion
   ------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  /* Entrance: fade instead of slice */
  .entrance-panel {
    transition: none;
  }
  .entrance.is-slicing {
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
  }
  .entrance.is-slicing .entrance-panel--left,
  .entrance.is-slicing .entrance-panel--right {
    transform: none;
  }
  /* No blade pulse */
  .entrance:not(.is-slicing) .entrance-blade {
    animation: none;
  }

  /* No scroll progress animation */
  .scroll-progress {
    display: none;
  }

  /* Course image wrappers — skip clip-path reveal */
  .js .course-img-wrap {
    clip-path: none !important;
    transition: none;
    will-change: auto;
  }
  .course-img {
    transition: none;
  }

  /* No hover transforms on images */
  .course.is-revealed:hover .course-img-wrap .course-img {
    transform: none !important;
    filter: none !important;
  }

  /* No hero arrow shift */
  .hero-cta::after {
    transition: none;
  }

  /* All scroll-driven reveals: show immediately */
  .course-text,
  .hero-heading,
  .hero-aside,
  .hero-rule,
  .hero-image-wrap,
  .ingredients-img-wrap,
  .experience-line {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* -------------------------------------------
   Mobile — max 768px
   ------------------------------------------- */
@media (max-width: 768px) {
  :root {
    --side-pad: 1.5rem;
    --space-lg:  2.5rem;  /* reduce from 3.5rem — used for padding/gap throughout */
    --space-xl:  4rem;
    --space-2xl: 6.5rem;
  }

  /* Safe word-wrap on all editorial headings */
  .hero-heading,
  .course-name,
  .courses-heading,
  .ingredients-quote,
  .reserve-heading {
    overflow-wrap: break-word;
  }

  /* Hero */
  .hero-inner {
    grid-template-columns: 1fr;
    /* All rows auto — heading no longer gets 1fr allocation which would push
       image/aside down on tall viewports */
    grid-template-rows: auto auto auto auto auto;
    min-height: 0;  /* let content dictate height; .hero keeps min-height: 100svh */
    padding: var(--space-md) var(--side-pad) var(--space-xl);
  }
  .hero-label {
    grid-column: 1; grid-row: 1;
    margin-bottom: var(--space-md);
  }
  .hero-heading {
    grid-column: 1; grid-row: 2;
    padding-right: 0;
    font-size: clamp(2.5rem, 12.5vw, 4rem);
  }
  .hero-image-wrap {
    grid-column: 1; grid-row: 3;
    padding: var(--space-lg) 0 0;
    width: 78%;
  }
  .hero-aside {
    grid-column: 1; grid-row: 4;
    text-align: left;
    padding-top: var(--space-lg);
  }
  .hero-body { margin-left: 0; max-width: 100%; }
  .hero-rule {
    grid-column: 1; grid-row: 5;
  }

  /* Experience */
  .experience-inner {
    grid-template-columns: 1fr;
    /* Reduce row-gap from the desktop var(--space-xl) to keep sections tight */
    row-gap: var(--space-lg);
  }
  .experience-note {
    grid-column: 1;
    /* CRITICAL: desktop places note at grid-row 2 same as experience-lines.
       On single-column mobile this causes hard text overlap — move to row 3. */
    grid-row: 3;
    padding-left: 0;
    padding-top: 0;  /* row-gap provides the separation */
  }
  .experience-line { font-size: var(--text-lg); }

  /* Courses header */
  .courses-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
    padding-bottom: var(--space-xl);
  }

  /* All courses: single column */
  .course--01,
  .course--02,
  .course--03,
  .course--04,
  .course--05,
  .course--06 {
    display: block;
  }

  /* Clear desktop min-height on course-01 — irrelevant once display: block */
  .course--01 { min-height: 0; }

  /* Course 02 and 04: flip order so visual is first */
  .course--02,
  .course--04 {
    display: flex;
    flex-direction: column-reverse;
  }

  /* Mobile image aspect ratios */
  .course--01 .course-img-wrap,
  .course--02 .course-img-wrap,
  .course--04 .course-img-wrap,
  .course--05 .course-img-wrap,
  .course--06 .course-img-wrap {
    aspect-ratio: 4 / 3;
  }
  .course--03 .course-img-wrap {
    aspect-ratio: 16 / 9;
  }

  /* Mobile course text padding */
  .course--01 .course-text,
  .course--02 .course-text,
  .course--04 .course-text--large,
  .course--05 .course-text {
    padding: var(--space-md) var(--side-pad);
  }
  .course--03 .course-text--under {
    max-width: 100%;
    padding: var(--space-md) var(--side-pad) 0;
  }
  .course--04 .course-visual--offset {
    padding-top: 0;
    padding-right: 0;
  }
  .course--04 .course-text--large .course-name {
    font-size: clamp(1.75rem, 9vw, 2.5rem);
  }
  .course--06 .course-visual--small {
    padding: 0;
  }
  .course--06 .course-img-wrap { max-width: 100%; }
  .course--06 .course-text--closing {
    padding: var(--space-md) var(--side-pad);
  }
  .course--06 .course-text--closing .course-name {
    font-size: clamp(2rem, 11vw, 3rem);
  }

  /* Ingredients */
  .ingredients-inner {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  /* Restore spacing between the knifeprep image and ingredient cards */
  .ingredients-list { padding-top: var(--space-md); }

  /* Reserve */
  .reserve-inner { grid-template-columns: 1fr; gap: var(--space-lg); }
  .reserve-form  { padding-top: 0; }
  .form-row {
    grid-template-columns: 1fr;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
  }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-lg);
  }
  .footer-credit { text-align: left; }
}

/* -------------------------------------------
   Tablet — 769px–1024px
   ------------------------------------------- */
@media (min-width: 769px) and (max-width: 1024px) {
  :root {
    --side-pad: 3rem;
    --space-xl:  5rem;
    --space-2xl: 8.5rem;
  }
  .hero-inner { grid-template-columns: 60fr 40fr; }
  .course--03 .course-text--under { max-width: 65%; }
  .ingredients-inner { gap: var(--space-lg); }
}
