/* ==========================================================================
   MORROW COFFEE CO. — STYLES
   Built to Creative Direction v1.0. One serif, one grotesk, one mono. Radius
   0 everywhere. No cards, no shadows, no gradients outside photographs, no
   icons beyond the arrow. Hairlines and type carry the structure.

   Colour rules: Caramel lives in photography only. Clay is the single accent
   and appears at most once per viewport. Steel is for hairlines on dark and
   is never a background.

   Motion: one easing, three durations. Every reveal is gated behind
   html.js so nothing is hidden if script fails, and every animation is
   removed under prefers-reduced-motion.
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. FONTS
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('assets/fonts/instrument-serif-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic; font-weight: 400; font-display: swap;
  src: url('assets/fonts/instrument-serif-italic-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal; font-weight: 300 700; font-display: swap;
  src: url('assets/fonts/inter-tight-var-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal; font-weight: 400 500; font-display: swap;
  src: url('assets/fonts/jetbrains-mono-var-latin.woff2') format('woff2');
}

/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */
:root {
  --ivory:    #F2ECE1;
  --bone:     #E7DFCF;
  --espresso: #231B16;
  --roast:    #5C4F45;
  --ash:      #B8AFA1;
  --olive:    #6E7358;
  --clay:     #B3623F;
  --steel:    #A6A8A3;

  --hair-light: rgba(35, 27, 22, 0.15);   /* Espresso at 15% on light */
  --hair-dark:  rgba(166, 168, 163, 0.30); /* Steel at 30% on dark */

  --serif: 'Instrument Serif', 'Times New Roman', Georgia, serif;
  --sans:  'Inter Tight', 'Inter', system-ui, -apple-system, 'Helvetica Neue', sans-serif;
  --mono:  'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --ease:     cubic-bezier(0.76, 0, 0.24, 1);
  --t-micro:  250ms;
  --t-reveal: 700ms;
  --t-mask:   900ms;

  --gutter: clamp(24px, 6vw, 120px);
  --sec:    clamp(96px, 12vw, 200px);
  --nav-h:  72px;

  --h-hero:      clamp(4rem, 11vw, 12rem);
  --h-statement: clamp(3rem, 7vw, 8rem);
  --h-title:     clamp(2rem, 3.5vw, 3.75rem);
  --h-footer:    clamp(5rem, 14vw, 16rem);
  --lh-display:  0.9;

  --body: 17px;
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 1 0'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>");
}

@media (max-width: 767px) {
  :root {
    --gutter: 20px;
    --sec: 80px;
    --nav-h: 64px;
    --body: 16.5px;
    --h-hero:      clamp(3.25rem, 15vw, 12rem);
    --h-statement: 13vw;
    --h-title:     clamp(2rem, 9vw, 3rem);
    --lh-display:  0.88;
  }
}

/* --------------------------------------------------------------------------
   2. BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--ivory);
  color: var(--espresso);
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--nav-h);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--body);
  line-height: 1.55;
  letter-spacing: -0.01em;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

/* paper noise on every ground, barely there */
body::after {
  content: '';
  position: fixed; inset: 0;
  background-image: var(--grain);
  opacity: 0.025;
  pointer-events: none;
  z-index: 900;
}

h1, h2, h3, p, figure, ul { margin: 0; }
ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
em { font-style: italic; }
table { border-collapse: collapse; width: 100%; }
th { font-weight: inherit; text-align: left; }

:focus-visible { outline: 2px solid var(--clay); outline-offset: 4px; }
::selection { background: var(--bone); color: var(--espresso); }

.skip {
  position: absolute; left: var(--gutter); top: -100px;
  padding: 8px 12px; background: var(--espresso); color: var(--ivory);
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  z-index: 200;
}
.skip:focus { top: 12px; }

/* --------------------------------------------------------------------------
   3. TYPE SYSTEM
   -------------------------------------------------------------------------- */
.mono, .label, .index {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.5;
}
.label { color: var(--roast); }
.index { color: var(--roast); }
.mono em { font-style: normal; }

.wordmark {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
}

.title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--h-title);
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 0.7em;
}
.title + p { max-width: 38ch; }

.display {
  font-family: var(--serif);
  font-weight: 400;
  line-height: var(--lh-display);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.display em { font-style: italic; text-transform: lowercase; }

p { max-width: 38ch; }

/* text links: 1px underline, arrow nudges on hover */
.cta {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 1px solid currentColor;
  line-height: 1.4;
}
.cta .arrow { display: inline-block; transition: transform var(--t-micro) var(--ease); }
.cta:hover .arrow { transform: translateX(4px); }

/* the Visit CTA: underline draws in from the left */
.cta--draw { border-bottom: 0; position: relative; }
.cta--draw::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-micro) var(--ease);
}
.cta--draw::before {
  content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: currentColor; opacity: 0.3;
}
.cta--draw:hover::after, .cta--draw:focus-visible::after { transform: scaleX(1); }

.quiet { text-decoration: none; opacity: 0.8; }
.quiet:hover { opacity: 1; }

/* --------------------------------------------------------------------------
   4. PHOTOGRAPHY — every image sits in a .photo with film grain on top
   -------------------------------------------------------------------------- */
.photo { position: relative; overflow: hidden; display: block; }
.photo picture { display: block; height: 100%; } /* inline by default; a clip-path on an inline box has no reference height */
.photo img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); }
.photo::after {
  content: ''; position: absolute; inset: 0;
  background-image: var(--grain);
  opacity: 0.04; mix-blend-mode: multiply;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   5. MOTION PRIMITIVES
   .reveal-lines  clip-path rise per line, 85ms stagger
   .mask          horizontal wipe, left to right
   .rise          opacity + 24px rise
   All three are inert without html.js and under reduced motion.
   -------------------------------------------------------------------------- */
.line { display: block; clip-path: inset(-0.08em 0 -0.15em 0); }
.line > span { display: block; }
.js .reveal-lines .line > span {
  transform: translateY(108%);
  transition: transform var(--t-reveal) var(--ease);
  transition-delay: calc(var(--i, 0) * 85ms);
}
.js .reveal-lines.is-in .line > span { transform: none; }

/* The clip sits on the image, not the figure: IntersectionObserver honours
   clip-path, so a figure clipped to nothing would never intersect. */
.js .mask > img, .js .mask > picture { clip-path: inset(0 100% 0 0); transition: clip-path var(--t-mask) var(--ease); }
.js .mask.is-in > img, .js .mask.is-in > picture { clip-path: inset(0 0 0 0); }

.js .rise {
  opacity: 0; transform: translateY(24px);
  transition: opacity var(--t-reveal) var(--ease), transform var(--t-reveal) var(--ease);
  transition-delay: var(--d, 0ms);
}
.js .rise.is-in { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   6. NAVIGATION
   -------------------------------------------------------------------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  color: var(--ivory);
  border-bottom: 1px solid transparent;
  transition: transform 400ms var(--ease), background-color var(--t-micro) var(--ease),
              color var(--t-micro) var(--ease), border-color var(--t-micro) var(--ease),
              opacity 600ms var(--ease);
}
.nav.is-scrolled { background: var(--ivory); color: var(--espresso); border-bottom-color: var(--hair-light); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__links { display: flex; align-items: center; gap: 32px; }
.nav__link {
  position: relative; text-decoration: none; font-size: 14px; line-height: 1;
}
.nav__link::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-micro) var(--ease);
}
.nav__link:hover::after, .nav__link:focus-visible::after { transform: scaleX(1); }
.nav__hours { margin-left: 16px; opacity: 0.85; }
.nav__toggle { display: none; font-size: 14px; line-height: 1; }

/* hero entrance: the nav is the last thing to arrive */
.js body:not(.is-loaded) .nav { opacity: 0; }
.js .nav { transition-delay: 0ms; }
.js body.is-loaded .nav { opacity: 1; transition-delay: 0ms, 0ms, 0ms, 0ms, 1200ms; }

/* mobile menu layer */
.menu {
  position: fixed; inset: 0; z-index: 150;
  background: var(--espresso); color: var(--ivory);
  padding: 0 var(--gutter) 32px;
  display: flex; flex-direction: column;
}
.menu[hidden] { display: none; }
.menu__top { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; }
.menu__close { font-size: 14px; }
.menu__links { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 0.15em; }
.menu__links a {
  font-family: var(--serif); font-size: 12vw; line-height: 1; letter-spacing: -0.02em;
  text-transform: uppercase; text-decoration: none;
}
.menu__hours { color: var(--ash); display: flex; justify-content: space-between; gap: 24px; }
.menu__hours p { margin: 0; }

/* --------------------------------------------------------------------------
   7. LAYOUT HELPERS
   -------------------------------------------------------------------------- */
main > section { position: relative; z-index: 1; }
.footer { position: relative; z-index: 1; }
.dark { background: var(--espresso); color: var(--ivory); }
.dark .index, .dark .label { color: var(--ash); }

/* --------------------------------------------------------------------------
   01 — HERO: FIRST LIGHT
   Sticky so the next section slides over it. --hero-p (0→1 over the first
   viewport of scroll) drives the scale and the headline drift from script.
   -------------------------------------------------------------------------- */
.hero {
  position: sticky; top: 0; z-index: 0 !important;
  height: 100vh; height: 100svh;
  overflow: hidden;
  color: var(--ivory);
  background: var(--espresso);
}
.hero__media { position: absolute; inset: 0; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; /* the cup sits at 62% of the 16:9 crop */
  transform: scale(calc(1 + 0.08 * var(--hero-p, 0)));
  transform-origin: 50% 50%;
  will-change: transform;
}
.hero__media picture { display: block; height: 100%; }
/* the type reads on the shadow side */
.hero__media::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: rgba(35, 27, 22, 0.12);
}

.hero__meta {
  position: absolute; top: calc(var(--nav-h) + 16px); right: var(--gutter);
  text-align: right; color: var(--ivory); opacity: 0.85; z-index: 2;
}
.hero__title {
  position: absolute; left: var(--gutter); bottom: 8vh; z-index: 2;
  font-family: var(--serif); font-weight: 400;
  font-size: var(--h-hero); line-height: var(--lh-display); letter-spacing: -0.02em;
  text-transform: uppercase;
  width: 58%;
  transform: translateY(calc(-30vh * var(--hero-p, 0)));
  opacity: calc(1 - var(--hero-p, 0));
  will-change: transform, opacity;
}
.hero__title em { font-style: italic; text-transform: lowercase; }
.hero__title .line--in { padding-left: 8.333%; }

.hero__aside {
  position: absolute; right: var(--gutter); bottom: 8vh; z-index: 2;
  width: 30%; max-width: 380px;
  display: flex; flex-direction: column; gap: 14px;
  color: var(--ivory);
}
.hero__aside .label { color: var(--ivory); opacity: 0.7; }
.hero__copy { max-width: 34ch; }
.hero__aside .cta { align-self: flex-start; margin-top: 4px; }
.hero__aside .quiet { align-self: flex-start; }

/* entrance, once, on load: horizon mask → lines → copy → nav */
.js body:not(.is-loaded) .hero__media { clip-path: inset(calc(60% - 1px) 0 calc(40% - 1px) 0); }
.js .hero__media { transition: clip-path 600ms var(--ease); }
.js body.is-loaded .hero__media { clip-path: inset(0 0 0 0); }

.js .hero__title .line > span { transition-delay: calc(400ms + var(--i, 0) * 90ms); }
.js body:not(.is-loaded) .hero__title .line > span { transform: translateY(108%); }
.js body.is-loaded .hero__title .line > span { transform: none; }

.js body:not(.is-loaded) .hero__aside,
.js body:not(.is-loaded) .hero__meta { opacity: 0; }
.js .hero__aside, .js .hero__meta { transition: opacity 500ms var(--ease) 1000ms; }
.js body.is-loaded .hero__aside { opacity: 1; }
.js body.is-loaded .hero__meta { opacity: 0.85; }

/* --------------------------------------------------------------------------
   02 — THE STATEMENT
   -------------------------------------------------------------------------- */
.statement {
  background: var(--espresso); color: var(--ivory);
  min-height: 100vh; min-height: 100svh;
  padding: var(--sec) var(--gutter);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto 1fr auto auto;
  column-gap: 24px;
  border-top: 1px solid rgba(242, 236, 225, 0.35); /* the hairline that leads the cover */
}
.statement .index { grid-column: 1 / 7; grid-row: 1; color: var(--ash); }
.statement__photo {
  grid-column: 10 / 13; grid-row: 1 / 5;
  aspect-ratio: 2 / 5; max-height: 80vh; align-self: start;
  will-change: transform;
}
.statement__title {
  grid-column: 1 / 10; grid-row: 3; align-self: end;
  font-family: var(--serif); font-weight: 400;
  font-size: var(--h-statement); line-height: var(--lh-display); letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-top: 12vh;
}
.statement__title em { font-style: italic; text-transform: lowercase; }
.statement__body { grid-column: 1 / 6; grid-row: 4; margin-top: 48px; color: var(--ivory); max-width: 38ch; }

/* --------------------------------------------------------------------------
   03 — THE BAR
   -------------------------------------------------------------------------- */
.bar {
  background: var(--ivory);
  padding: var(--sec) var(--gutter);
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px;
}
.bar__intro { grid-column: 1 / 5; position: sticky; top: calc(var(--nav-h) + 40px); align-self: start; }
.bar__intro .index { margin-bottom: 40px; }
.bar__now { margin-top: 40px; color: var(--roast); text-transform: none; letter-spacing: 0.02em; max-width: 34ch; }
.bar__now .label { color: var(--roast); }

.bar__menu { grid-column: 6 / 13; }
.bar__group + .bar__group { margin-top: 64px; }
.bar__group .label { padding-bottom: 12px; border-bottom: 1px solid var(--espresso); }
.rows { }
.row {
  display: grid; grid-template-columns: 11rem 1fr auto; column-gap: 24px; align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--hair-light);
  transition: transform var(--t-micro) var(--ease);
}
.row__name { font-size: 19px; }
.row__desc { color: var(--roast); }
.row__price { color: var(--roast); transition: color var(--t-micro) var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .row:hover { transform: translateX(6px); }
  .row:hover .row__price { color: var(--clay); }
}

.bar__cursor {
  display: none;
  position: fixed; left: 0; top: 0; z-index: 90;
  width: 240px; height: 240px;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity var(--t-micro) var(--ease);
}
.bar__cursor img { width: 240px; height: 240px; object-fit: cover; }
.bar__cursor.is-on { opacity: 1; }
@media (hover: hover) and (pointer: fine) and (min-width: 1024px) {
  .js .bar__cursor { display: block; }
}

/* --------------------------------------------------------------------------
   04 — THIS SEASON
   -------------------------------------------------------------------------- */
.season {
  background: var(--olive); color: var(--ivory);
  padding: var(--sec) 0;
}
.season__head { padding: 0 var(--gutter); margin-bottom: 64px; }
.season__head .index { color: var(--ivory); opacity: 0.8; margin-bottom: 40px; display: flex; gap: 32px; }
.season__head p { max-width: 38ch; }

.season__strip {
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x proximity; /* mandatory on mobile, where every item can reach the edge */
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 0 var(--gutter);
  scroll-padding-left: var(--gutter);
  overscroll-behavior-x: contain;
}
.season__strip::-webkit-scrollbar { display: none; }
.season__strip.is-dragging { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.season__list { display: flex; gap: clamp(16px, 2.5vw, 40px); width: max-content; }
.season__item {
  flex: 0 0 clamp(260px, 26vw, 440px);
  scroll-snap-align: start;
  position: relative;
}
.season__photo { aspect-ratio: 3 / 4; margin-bottom: 20px; }
.js .season__photo img { transition: transform var(--t-reveal) var(--ease), clip-path var(--t-mask) var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .season__item:hover .season__photo img { transform: scale(1.04); }
}
.season__tag { position: absolute; top: 16px; left: 16px; color: var(--clay); background: var(--ivory); padding: 4px 8px; z-index: 2; }
.season__name { font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1; letter-spacing: -0.01em; margin-bottom: 8px; }
.season__note { color: var(--ivory); opacity: 0.85; font-size: 15px; max-width: 32ch; }
.season__price { margin-top: 8px; opacity: 0.8; }
.season__counter { padding: 48px var(--gutter) 0; text-align: right; opacity: 0.8; max-width: none; }

/* --------------------------------------------------------------------------
   05 — BAKERY: OUT BY SIX
   -------------------------------------------------------------------------- */
.bakery { background: var(--ivory); padding: var(--sec) var(--gutter); }
.bakery .index { margin-bottom: 40px; }
.bakery__grid {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px;
  grid-template-rows: auto auto auto;
}
.bakery__title {
  grid-column: 1 / 13; grid-row: 1; z-index: 2; position: relative;
  font-family: var(--serif); font-weight: 400;
  font-size: var(--h-statement); line-height: var(--lh-display); letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: -0.42em; /* the overlap: the last line runs into the top of photo A, which must be lit */
  pointer-events: none;
}
.bakery__title em { font-style: italic; text-transform: lowercase; }
.bakery__a { grid-column: 1 / 7; grid-row: 2; aspect-ratio: 4 / 5; will-change: transform; }
.bakery__b { grid-column: 8 / 13; grid-row: 2; aspect-ratio: 1 / 1; margin-top: 20%; align-self: start; will-change: transform; }
.bakery__body { grid-column: 8 / 12; grid-row: 3; margin-top: 64px; }

/* --------------------------------------------------------------------------
   06 — WHERE IT'S FROM
   -------------------------------------------------------------------------- */
.sourcing {
  background: var(--espresso); color: var(--ivory);
  padding: var(--sec) var(--gutter);
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px;
}
.sourcing__head { grid-column: 1 / 6; }
.sourcing .index { color: var(--ash); margin-bottom: 40px; }
.sourcing__head p { color: var(--ivory); max-width: 38ch; }
.sourcing__table { grid-column: 7 / 13; align-self: end; }
.sourcing__table th, .sourcing__table td { padding: 18px 24px 18px 0; vertical-align: baseline; }
.sourcing__table thead th { color: var(--ash); border-bottom: 1px solid var(--steel); padding-top: 0; }
.sourcing__table tbody tr { border-bottom: 1px solid var(--hair-dark); }
.sourcing__table tbody th { font-family: var(--serif); font-size: 28px; line-height: 1; letter-spacing: -0.01em; white-space: nowrap; }
.sourcing__table td { color: var(--ash); }
.sourcing__table td:last-child { font-style: italic; }
.sourcing__photo { grid-column: 1 / 13; aspect-ratio: 21 / 9; margin-top: 96px; }
.sourcing__photo img { transform: scale(var(--zoom, 1)); transform-origin: 50% 50%; will-change: transform; }
.sourcing__note { grid-column: 1 / 13; margin-top: 16px; color: var(--ash); max-width: none; }

/* --------------------------------------------------------------------------
   07 — THE ROOM
   -------------------------------------------------------------------------- */
.room { background: var(--ivory); padding: var(--sec) var(--gutter); }
.room__head { max-width: 60%; margin-bottom: 96px; }
.room__head .index { margin-bottom: 40px; }
.room__gallery {
  display: grid; grid-template-columns: repeat(12, 1fr);
  column-gap: 24px; row-gap: clamp(48px, 8vw, 128px);
}
.g { display: flex; flex-direction: column; gap: 12px; }
.g figcaption { color: var(--roast); }
.g__btn { display: block; width: 100%; text-align: left; }
.g__btn .photo { aspect-ratio: var(--ar, 3 / 2); }
.g--1 { grid-column: 1 / 9; grid-row: 1; --ar: 3 / 2; }
.g--2 { grid-column: 10 / 13; grid-row: 1; --ar: 2 / 3; align-self: end; }
.room__statement {
  grid-column: 1 / 8; grid-row: 2; align-self: center;
  font-family: var(--serif); font-weight: 400;
  font-size: var(--h-statement); line-height: var(--lh-display); letter-spacing: -0.02em;
  text-transform: uppercase; max-width: none;
}
.room__statement em { font-style: italic; text-transform: lowercase; }
.g--3 { grid-column: 9 / 13; grid-row: 2; --ar: 2 / 3; }
.g--4 { grid-column: 2 / 6; grid-row: 3; --ar: 1 / 1; }
.g--5 { grid-column: 7 / 11; grid-row: 3; --ar: 1 / 1; margin-top: 25%; }
.g--6 { grid-column: 1 / 13; grid-row: 4; --ar: 21 / 9; margin-top: clamp(24px, 4vw, 64px); }

/* the lightbox */
.lightbox {
  position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: var(--espresso); color: var(--ivory);
}
.lightbox::backdrop { background: var(--espresso); }
.lightbox__figure { position: absolute; inset: 0; margin: 0; }
.lightbox__img {
  width: 100%; height: 100%; object-fit: contain;
  padding: clamp(64px, 8vw, 120px) var(--gutter);
  opacity: 1; transition: opacity 400ms var(--ease);
}
.lightbox.is-switching .lightbox__img { opacity: 0; }
.lightbox__caption { position: absolute; left: var(--gutter); bottom: 32px; color: var(--ash); }
.lightbox__counter { position: absolute; right: var(--gutter); bottom: 32px; margin: 0; color: var(--ash); }
.lightbox__close { position: absolute; top: 24px; right: var(--gutter); padding: 8px 0; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); font-size: 20px; padding: 16px; }
.lightbox__nav--prev { left: calc(var(--gutter) - 16px); }
.lightbox__nav--next { right: calc(var(--gutter) - 16px); }
.lightbox button:focus-visible { outline-color: var(--ivory); }

/* --------------------------------------------------------------------------
   08 — VISIT
   -------------------------------------------------------------------------- */
.visit {
  background: var(--bone);
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px;
  min-height: 100vh;
}
.visit__content {
  grid-column: 1 / 7; grid-row: 1;
  padding: var(--sec) 24px var(--sec) var(--gutter);
  display: flex; flex-direction: column; align-items: flex-start;
}
.visit__content .index { margin-bottom: 40px; }
.visit__address {
  font-family: var(--serif); font-size: clamp(1.75rem, 2.6vw, 2.75rem); line-height: 1.05; letter-spacing: -0.01em;
  margin-bottom: 40px;
}
.hours { color: var(--roast); margin-bottom: 32px; width: 100%; max-width: 380px; }
.hours__status { min-height: 1.5em; margin-bottom: 8px; color: var(--espresso); } /* the day row carries the Clay; one accent per viewport */
.hours__status:empty { display: none; }
.hours__table th, .hours__table td { padding: 12px 0; border-bottom: 1px solid var(--hair-light); }
.hours__table th { padding-right: 32px; }
.hours__table td { text-align: right; }
.hours__row.is-today { color: var(--clay); }
.visit__note { margin-bottom: 40px; color: var(--roast); }
.visit__photo {
  grid-column: 7 / 13; grid-row: 1;
  min-height: 100%;
}
.visit__photo img { height: 100%; }

/* --------------------------------------------------------------------------
   09 — FOOTER: UNTIL MORROW
   -------------------------------------------------------------------------- */
.footer {
  background: var(--espresso); color: var(--ivory);
  padding: var(--sec) var(--gutter) 0;
  overflow: hidden;
}
.footer__top {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px;
  padding-bottom: 64px; border-bottom: 1px solid var(--hair-dark);
}
.footer__brand { grid-column: 1 / 5; display: flex; flex-direction: column; gap: 20px; }
.mark { color: var(--ivory); }
.lockup { display: flex; flex-direction: column; gap: 6px; }
.lockup .wordmark { font-size: 28px; }
.lockup__sub { font-size: 9px; letter-spacing: 0.3em; }
.footer__line { color: var(--ash); text-transform: none; letter-spacing: 0.02em; max-width: none; }
.footer__cols {
  grid-column: 6 / 13;
  display: grid; grid-template-columns: repeat(4, 1fr); column-gap: 24px;
}
.footer__col { display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.footer__col .label { color: var(--ash); margin-bottom: 8px; }
.footer__col a { text-decoration: none; white-space: nowrap; }
.footer__col a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.footer__col p { color: var(--ivory); }
.footer__col .mono { color: var(--ash); white-space: nowrap; }
.copy { position: relative; }
.copy.is-copied .copy__text { visibility: hidden; }
.copy.is-copied::after {
  content: 'COPIED'; position: absolute; left: 0; top: 0;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; line-height: 1.55;
}
.footer__bottom {
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 24px 0 0; color: var(--ash);
}
.footer__bottom a { text-decoration: none; color: var(--ivory); }
.footer__bottom a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer__statement {
  margin-top: 12vh;
  margin-bottom: -0.22em; /* cropped by the bottom edge, so it feels like it continues */
  font-family: var(--serif); font-weight: 400;
  font-size: var(--h-footer); line-height: var(--lh-display); letter-spacing: -0.02em;
  text-transform: uppercase; max-width: none;
  white-space: nowrap;
}
.footer__statement em { font-style: italic; text-transform: lowercase; }
.footer__statement .line { display: inline-block; }
.footer__statement .line + .line { margin-left: 0.22em; }

/* --------------------------------------------------------------------------
   CURSOR LABEL — desktop only. VIEW over gallery images, DRAG on the strip.
   -------------------------------------------------------------------------- */
.cursor-label {
  display: none;
  position: fixed; left: 0; top: 0; z-index: 95;
  padding: 6px 8px; background: var(--ivory); color: var(--espresso);
  pointer-events: none; opacity: 0;
  transform: translate(12px, 12px);
  transition: opacity var(--t-micro) var(--ease);
}
.cursor-label.is-on { opacity: 1; }
@media (hover: hover) and (pointer: fine) and (min-width: 1024px) {
  .js .cursor-label { display: block; }
  .js .season__strip { cursor: grab; }
}

/* --------------------------------------------------------------------------
   TABLET — 768–1023: keep the desktop compositions, loosen the columns
   -------------------------------------------------------------------------- */
@media (max-width: 1023px) {
  .bar__intro { grid-column: 1 / 13; position: static; margin-bottom: 64px; }
  .bar__menu { grid-column: 1 / 13; }
  .sourcing__head { grid-column: 1 / 13; margin-bottom: 64px; }
  .sourcing__table { grid-column: 1 / 13; }
  .footer__brand { grid-column: 1 / 13; margin-bottom: 48px; }
  .footer__cols { grid-column: 1 / 13; grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
}

/* --------------------------------------------------------------------------
   MOBILE — under 768: the same brand at closer range. Not a stacked desktop.
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; font-size: 15px; }
  .menu__close { font-size: 15px; }
  /* readability: mono and secondary text sit a step larger on a phone */
  .mono, .label, .index { font-size: 12.5px; line-height: 1.6; }
  .hours { font-size: 13px; }
  .g figcaption { font-size: 12.5px; margin-top: 2px; }
  .footer__col { font-size: 16px; gap: 10px; }
  .footer__bottom { font-size: 12.5px; gap: 12px; }

  /* hero: 4:5 crop from <picture>; headline in the top third, copy at the bottom */
  .hero__media img { object-position: 50% 55%; }
  .hero__meta { display: none; }
  .hero__title { top: calc(var(--nav-h) + 24px); bottom: auto; width: auto; right: var(--gutter); }
  .hero__title .line--in { padding-left: 12%; }
  .hero__aside { left: var(--gutter); right: var(--gutter); width: auto; max-width: none; bottom: 32px; }

  /* statement: photo above as a short 4:5 band, type still oversized */
  .statement { display: block; padding-top: 0; }
  .statement__photo { aspect-ratio: 4 / 5; max-height: 60vh; width: 100%; }
  .statement__photo img { object-position: 50% 40%; }
  .statement .index { margin-top: var(--sec); }
  .statement__title { margin-top: 32px; }
  .statement__body { margin-top: 32px; }

  /* the bar: rows stay rows; descriptor wraps beneath the name */
  .bar__intro { margin-bottom: 48px; }
  .row { grid-template-columns: 1fr auto; grid-template-rows: auto auto; column-gap: 16px; padding: 16px 0; }
  .row__name { grid-column: 1; grid-row: 1; }
  .row__desc { grid-column: 1; grid-row: 2; font-size: 16px; margin-top: 2px; }
  .row__price { grid-column: 2; grid-row: 1; }
  .bar__group + .bar__group { margin-top: 48px; }

  /* this season: native swipe, 85vw with a peek */
  .season__head { margin-bottom: 40px; }
  .season__strip { scroll-snap-type: x mandatory; }
  .season__item { flex-basis: 85vw; }
  .season__name { font-size: 28px; }
  .season__note { font-size: 16px; }
  .season__counter { padding-top: 32px; }

  /* bakery: the overlap is dropped; the headline sits between the photos */
  .bakery__grid { display: block; }
  .bakery__a { aspect-ratio: 4 / 5; }
  .bakery__title { margin: 40px 0; pointer-events: auto; }
  .bakery__b { aspect-ratio: 1 / 1; margin: 0 0 0 20px; width: calc(100% - 20px); }
  .bakery__body { margin-top: 40px; }

  /* sourcing: rows become stacked entries, hairline between */
  .sourcing { display: block; }
  .sourcing__head { margin-bottom: 48px; }
  .sourcing__table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .sourcing__table tr { display: block; padding: 20px 0; border-bottom: 1px solid var(--hair-dark); }
  .sourcing__table th, .sourcing__table td { display: block; padding: 0; }
  .sourcing__table tbody th { font-size: 32px; margin-bottom: 8px; }
  .sourcing__photo { aspect-ratio: 4 / 3; margin-top: 64px; }

  /* the room: single column, alternating width and alignment */
  .room__head { max-width: none; margin-bottom: 56px; }
  .room__gallery { display: flex; flex-direction: column; gap: 48px; }
  .g--1, .g--3 { width: 100%; }
  .g--2, .g--4 { width: 80%; align-self: flex-end; }
  .g--5 { width: 80%; align-self: flex-start; margin-top: 0; }
  .g--6 { width: 100%; --ar: 4 / 3; margin-top: 8px; }
  .room__statement { margin: 16px 0; }
  .lightbox__img { padding: 80px 16px; }

  /* visit: photo first as a 3:2 band, then the words, then a full-width bordered CTA */
  .visit { display: block; min-height: 0; }
  .visit__photo { aspect-ratio: 3 / 2; min-height: 0; }
  .visit__photo img { object-position: 50% 50%; }
  .visit__content { padding: var(--sec) var(--gutter); }
  .visit .cta--draw {
    display: block; width: 100%; text-align: center;
    padding: 18px 16px; border: 1px solid var(--espresso);
  }
  .visit .cta--draw::before, .visit .cta--draw::after { display: none; }

  /* footer: 2×2 columns, statement in two lines, still cropped */
  .footer__cols { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .footer__col .mono { font-size: 12px; white-space: nowrap; }
  .footer__statement { white-space: normal; font-size: 22vw; margin-top: 64px; margin-bottom: -0.2em; }
  .footer__statement .line { display: block; }
  .footer__statement .line + .line { margin-left: 0; }
  .footer__bottom { flex-direction: column; gap: 8px; }
}

/* --------------------------------------------------------------------------
   REDUCED MOTION — everything appears at 0ms, nothing moves with scroll
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal-lines .line > span,
  .js .mask > img, .js .mask > picture, .js .rise,
  .js .hero__media, .js .hero__title .line > span, .js .hero__aside, .js .hero__meta, .js .nav,
  .season__photo img, .lightbox__img, .cta .arrow, .row, .row__price,
  .nav__link::after, .cta--draw::after {
    transition: none !important;
  }
  .js body:not(.is-loaded) .hero__media { clip-path: none; }
  .js body:not(.is-loaded) .hero__title .line > span { transform: none; }
  .js body:not(.is-loaded) .hero__aside, .js body:not(.is-loaded) .hero__meta, .js body:not(.is-loaded) .nav { opacity: 1; }
  .js .reveal-lines .line > span { transform: none; }
  .js .mask > img, .js .mask > picture { clip-path: none; }
  .js .rise { opacity: 1; transform: none; }
  .hero__media img, .hero__title, .sourcing__photo img { transform: none !important; opacity: 1 !important; }
  .row:hover { transform: none; }
  .season__item:hover .season__photo img { transform: none; }
}
