/* =========================================================
   Superior Superfoods — Site Stylesheet (polished editorial v3)
   Maintainer: Alejandro Lozano
   Edit notes:
     - All colors / fonts live in :root. Change once, applies everywhere.
     - Marker Notes is reserved for accent moments (logo SVG + a few ornaments).
     - Fraunces (serif) for headlines, Inter for body — both from Google Fonts.
     - No build step. Save the file, refresh the browser.
   ========================================================= */

/* -------- Marker Notes (kept for accent use, e.g. .accent-marker) -------- */
@font-face {
  font-family: "Marker Notes";
  src: url("../fonts/MarkerNotes.ttf") format("truetype"),
       url("../fonts/MarkerNotes.otf")  format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* -------- Design Tokens -------- */
:root {
  /* Color */
  --paper:        #FFFFFF;
  --paper-warm:   #FAF7F0;          /* warm cream for alternating sections */
  --ink:          #161616;
  --ink-soft:     #3A3A3A;
  --ink-muted:    #6E6E6E;
  --ink-dim:      #9C9C9C;
  --green-deep:   #1F3D14;
  --green-mid:    #4A6B2A;
  --green-fresh:  #8BC34A;
  --soil:         #6B4226;
  --terracotta:   #B86A4F;
  --hairline:     #E8E4DA;

  /* Type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-accent:  "Marker Notes", "Permanent Marker", "Marker Felt", cursive;

  /* Layout */
  --maxw:        1240px;
  --maxw-narrow: 760px;
  --gutter:      clamp(20px, 4vw, 56px);
  --radius:      6px;
  --radius-lg:   14px;

  --shadow-sm: 0 1px 2px rgba(22, 22, 22, 0.04), 0 2px 8px rgba(22, 22, 22, 0.03);
  --shadow-md: 0 4px 12px rgba(22, 22, 22, 0.06), 0 16px 40px rgba(22, 22, 22, 0.06);
  --shadow-lg: 0 12px 32px rgba(22, 22, 22, 0.08), 0 32px 80px rgba(22, 22, 22, 0.08);

  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
}

/* -------- Reset -------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; }
img, video, svg { max-width: 100%; height: auto; display: block; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; }

/* -------- Base -------- */
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Headings */
h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 350;
  letter-spacing: -0.015em;
  line-height: 1.08;
  margin: 0 0 0.5em;
  font-variation-settings: "opsz" 144, "SOFT" 30;
}
h1 { font-size: clamp(2.6rem, 6vw, 5rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 400; line-height: 1.25; }
h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 1rem;
}

p { margin: 0 0 1em; max-width: 64ch; color: var(--ink-soft); }
p.lead {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  color: var(--ink);
  line-height: 1.45;
  font-weight: 350;
  letter-spacing: -0.005em;
}

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--hairline);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: text-decoration-color 0.2s var(--ease), color 0.2s var(--ease);
}
a:hover { text-decoration-color: var(--green-deep); color: var(--green-deep); }

ul, ol { padding-left: 1.3rem; color: var(--ink-soft); }
ul li, ol li { margin-bottom: 0.45em; }

hr { border: 0; border-top: 1px solid var(--hairline); margin: 4rem 0; }

/* -------- Layout helpers -------- */
.container        { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: var(--maxw-narrow); margin: 0 auto; padding: 0 var(--gutter); }
.section          { padding: clamp(72px, 10vw, 128px) 0; }
.section-tight    { padding: clamp(48px, 6vw, 80px) 0; }
.section-warm     { background: var(--paper-warm); }
.section-ink      { background: var(--ink); color: var(--paper-warm); }
.section-ink h1, .section-ink h2, .section-ink h3 { color: var(--paper); }
.section-ink p    { color: rgba(247, 244, 237, 0.78); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--green-mid);
  font-weight: 600;
  margin-bottom: 1.2rem;
  display: inline-block;
}

/* -------- Buttons (clean, refined) -------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.95em 1.7em;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  border-radius: 999px;          /* pill */
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn:hover {
  background: var(--green-deep);
  text-decoration: none;
  transform: translateY(-1px);
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--green-deep); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-arrow::after {
  content: "→";
  display: inline-block;
  transition: transform 0.2s var(--ease);
}
.btn-arrow:hover::after { transform: translateX(3px); }

/* -------- Top navigation -------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);          /* solid white — no transparency so no gray bleed from hero */
  border-bottom: 1px solid var(--hairline);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;        /* desktop: brand left, nav right */
  padding: 52px 0;                       /* thick masthead — generous air above + below */
}
.brand {
  display: inline-flex;
  align-items: center;
  border: none;
  text-decoration: none;
  line-height: 0;
}
.brand img {
  height: 120px;                         /* larger, more confident brand presence */
  width: auto;
  display: block;
  image-rendering: -webkit-optimize-contrast;
}
@media (max-width: 960px) { .brand img { height: 96px; } .nav { padding: 40px 0; } }
@media (max-width: 760px) {
  .brand img { height: 68px; max-width: 100%; }
  .nav {
    padding: 32px 0;                     /* tight proportional banner — padding ~half the logo height */
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    column-gap: 1rem;
  }
  .brand { grid-column: 2; justify-self: center; }
}
@media (max-width: 480px) {
  .brand img { height: 60px; }
  .nav { padding: 26px 0; column-gap: 0.75rem; }
}

.nav-links {
  display: flex;
  gap: 2.2rem;
  list-style: none;
  padding: 0; margin: 0;
  align-items: center;
}
.nav-links a {
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
}
.nav-links a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--green-deep);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.nav-links a:hover::after,
.nav-links a.is-active::after { transform: scaleX(1); }
.nav-cta { margin-left: 0.4rem; }
.nav-cta::after { display: none !important; }
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 8px 10px;
  color: var(--ink);
}

/* -------- Hero -------- */
.hero {
  position: relative;
  min-height: calc(100vh - 226px);   /* full viewport minus the thicker masthead */
  display: flex;
  align-items: flex-end;
  color: var(--paper);
  overflow: hidden;
  isolation: isolate;
}
.hero-media {
  position: absolute; inset: 0; z-index: -2;
  background: var(--ink);
  overflow: hidden;
}
.hero-media img,
.hero-media video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  border: 0;
}
/* Vimeo iframe needs the "cover-fill" technique because object-fit doesn't apply
   to iframes. We oversize it to 16:9 of whichever dimension is larger and center it.
   Result: the video always fills the hero, edges cropped as needed. */
.hero-media iframe {
  position: absolute;
  top: 50%; left: 50%;
  width: max(100%, 177.78vh);    /* 100vh * 16/9 */
  height: max(100%, 56.25vw);    /* 100vw * 9/16 */
  transform: translate(-50%, -50%);
  border: 0;
  pointer-events: none;
}
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.4) 60%, rgba(0, 0, 0, 0.7) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  padding: 0 0 clamp(48px, 8vw, 96px);
}
.hero h1 { color: var(--paper); margin-bottom: 0.5em; font-weight: 300; }
.hero .lead { color: rgba(255, 255, 255, 0.92); max-width: 580px; font-family: var(--font-display); }
.hero .eyebrow { color: var(--paper-warm); opacity: 0.85; }
.hero-actions { display: flex; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }
.hero-actions .btn-primary { background: var(--paper); color: var(--ink); }
.hero-actions .btn-primary:hover { background: var(--green-fresh); color: var(--ink); }
.hero-actions .btn-ghost { color: var(--paper); border-color: rgba(255,255,255,0.7); }
.hero-actions .btn-ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

/* Hero tagline accent (Marker Notes used sparingly) */
.hero-tagline {
  font-family: var(--font-accent);
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  color: var(--green-fresh);
  letter-spacing: 0;
  margin-bottom: 1rem;
  display: inline-block;
}

/* -------- Restaurant credits — ticker / marquee banner --------
   Continuous horizontal scroll. Each logo is duplicated in the markup
   so the loop reads seamlessly (track 1 follows track 2 follows track 1, etc.)
   To add/remove restaurants: edit BOTH the .ticker-track blocks in index.html
   to keep them mirrored.
*/
.credits {
  background: var(--paper);
  padding: clamp(5rem, 9vw, 7rem) 0 clamp(4rem, 7vw, 5.5rem);  /* extra room above the label to breathe off the hero CTA */
  border-bottom: 1px solid var(--hairline);
  border-top: 1px solid var(--hairline);
  overflow: hidden;
}
.credits-header {
  text-align: center;
  margin-bottom: 2.5rem;
  width: 100%;
}
.credits-label {
  font-family: var(--font-body);
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--ink-muted);
  font-weight: 600;
  display: block;
  text-align: center;
}

.ticker {
  position: relative;
  width: 100%;
  overflow: hidden;
  /* fade edges so logos appear/disappear smoothly */
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.ticker-rail {
  display: flex;
  width: max-content;
  animation: ticker-scroll 80s linear infinite;
  will-change: transform;
}
.ticker-rail:hover { animation-play-state: paused; }
.ticker-track {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 0;                      /* spacing comes from per-logo padding, uniform regardless of logo width */
  padding-right: 0;
}
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }   /* shift exactly one track-width */
}
@media (prefers-reduced-motion: reduce) {
  .ticker-rail { animation: none; }
  .ticker { -webkit-mask-image: none; mask-image: none; }
  .ticker-rail { justify-content: center; flex-wrap: wrap; gap: 3rem; }
}

/* All logos are pre-normalized to the same canvas height (240px) with content at 180px,
   padded with transparent space. No per-logo overrides needed. To regenerate, see
   the normalization script. */
.credit-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  height: 96px;
  flex-shrink: 0;
}
.credit-item img,
.credit-item svg {
  max-height: 76px;
  max-width: 220px;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.55;
  transition: opacity 0.25s var(--ease), filter 0.25s var(--ease);
}

.credit-item:hover img,
.credit-item:hover svg {
  filter: grayscale(0%);
  opacity: 1;
}
/* Text fallback for restaurants whose logo isn't a file yet — styled to match */
.credit-name {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.6vw, 2rem);
  color: var(--ink-soft);
  font-style: italic;
  font-weight: 300;
  letter-spacing: -0.005em;
  line-height: 1;
  opacity: 0.55;
  transition: color 0.25s var(--ease), opacity 0.25s var(--ease);
}
.credit-name:hover { color: var(--ink); opacity: 1; }


/* -------- Section header block -------- */
.section-head { max-width: 720px; margin-bottom: 3.5rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { margin-bottom: 0.8rem; }
.section-head .lead { color: var(--ink-soft); }

/* -------- Cards (clean, subtle) -------- */
.grid {
  display: grid;
  gap: clamp(20px, 3vw, 32px);
}
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.card h3 { margin-top: 0.25rem; }
.card .tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-mid);
  font-weight: 600;
  margin-bottom: 0.6rem;
}
.card .tag-flower { color: var(--terracotta); }
.card p { color: var(--ink-soft); margin-bottom: 0; }
.card-meta {
  display: flex; gap: 1rem 1.5rem; flex-wrap: wrap;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--hairline);
  font-size: 0.85rem; color: var(--ink-muted);
}
.card-meta span strong { color: var(--ink); font-weight: 600; }

.card-product { padding-top: 2rem; position: relative; }
.card-product::before {
  content: "";
  position: absolute; top: 0; left: 2rem; right: 2rem;
  height: 2px; border-radius: 0 0 2px 2px;
  background: var(--green-fresh);
}
.card-product.flower::before { background: var(--terracotta); }

/* Card with photo on top (for product cards on homepage with image) */
.card-with-image {
  padding: 0;
  overflow: hidden;
}
.card-with-image::before { display: none; }
.card-with-image .card-image,
.card-with-image .photo-slot {
  aspect-ratio: 4 / 5;
  border-radius: 0;
}
.card-with-image .card-image { width: 100%; object-fit: cover; display: block; border: 0; }
.card-with-image .card-body { padding: 1.5rem 2rem 2rem; }

/* -------- Steps -------- */
.steps {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  counter-reset: step;
}
.step {
  position: relative;
  padding-top: 3.5rem;
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 0; left: 0;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--green-mid);
  line-height: 1;
  font-style: italic;
  font-weight: 300;
}
.step h3 { font-family: var(--font-body); font-size: 1.05rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink); margin-bottom: 0.5rem; }
.step p { color: var(--ink-soft); }

/* -------- Two-column feature -------- */
.two-col {
  display: grid;
  gap: clamp(32px, 5vw, 80px);
  grid-template-columns: 1fr 1fr;
  align-items: center;
}
@media (max-width: 720px) { .two-col { grid-template-columns: 1fr; } }
.two-col img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* -------- CTA banner -------- */
.cta-banner {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-lg);
  padding: clamp(48px, 6vw, 96px) clamp(32px, 5vw, 64px);
  text-align: center;
}
.cta-banner h2 { color: var(--paper); font-weight: 300; }
.cta-banner p  { color: rgba(255, 255, 255, 0.78); margin: 0 auto 2rem; max-width: 540px; }
.cta-banner .btn { background: var(--paper); color: var(--ink); }
.cta-banner .btn:hover { background: var(--green-fresh); color: var(--ink); }

/* -------- Forms -------- */
.form-row { margin-bottom: 1.25rem; }
.form-row label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  padding: 0.9em 1em;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  color: var(--ink);
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(139, 195, 74, 0.18);
}
.form-row textarea { min-height: 140px; resize: vertical; }
.form-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.form-grid .span-2 { grid-column: 1 / -1; }

/* -------- Footer -------- */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  padding: 2rem 0;
  margin-top: 0;
}
.site-footer h4 { color: var(--green-fresh); font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0.18em; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid a {
  color: rgba(255, 255, 255, 0.72);
  display: block;
  padding: 0.25rem 0;
  font-size: 0.93rem;
  text-decoration: none;
}
.footer-grid a:hover { color: var(--paper); }
.footer-brand p  { color: rgba(255, 255, 255, 0.55); font-size: 0.93rem; max-width: 32ch; }
.footer-bottom {
  display: flex; justify-content: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.45);
  flex-wrap: wrap;
  gap: 1rem;
  text-align: center;
}
.footer-bottom a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.25);
  text-underline-offset: 2px;
}
.footer-bottom a:hover { text-decoration-color: rgba(255, 255, 255, 0.6); }


.footer-logomark {
  display: inline-block;
  height: 72px;
  margin-bottom: 1.5rem;
  opacity: 0.92;
}

/* -------- Page hero (interior) -------- */
.page-hero {
  background: var(--paper-warm);
  border-bottom: 1px solid var(--hairline);
  padding: clamp(80px, 12vw, 140px) 0 clamp(56px, 8vw, 96px);
}
.page-hero h1 { margin-bottom: 0.5rem; font-weight: 300; }
.page-hero .lead { max-width: 620px; color: var(--ink-soft); }

/* -------- Photo slots (refined, subtle) -------- */
.photo-slot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--paper-warm);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  color: var(--ink-muted);
  padding: 2rem;
  overflow: hidden;
}
.photo-slot::before {
  content: "";
  display: block;
  width: 36px; height: 36px;
  margin-bottom: 1rem;
  background-color: var(--ink-muted);
  opacity: 0.4;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'><path d='M14.5 4h-5L7 7H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-3l-2.5-3z'/><circle cx='12' cy='13' r='3'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'><path d='M14.5 4h-5L7 7H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-3l-2.5-3z'/><circle cx='12' cy='13' r='3'/></svg>") center/contain no-repeat;
}
.photo-slot .label {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.photo-slot .hint {
  font-size: 0.88rem;
  color: var(--ink-muted);
  max-width: 38ch;
  line-height: 1.5;
}
.photo-slot.aspect-16x9 { aspect-ratio: 16 / 9; }
.photo-slot.aspect-4x5  { aspect-ratio: 4 / 5; }
.photo-slot.aspect-1x1  { aspect-ratio: 1 / 1; }
.photo-slot.aspect-21x9 { aspect-ratio: 21 / 9; }
.photo-banner { margin: clamp(48px, 8vw, 80px) 0; }

/* -------- Pull quote (editorial accent) -------- */
.pull-quote {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-style: italic;
  font-weight: 300;
  color: var(--ink);
  max-width: 32ch;
  line-height: 1.3;
  margin: 0;
}

/* =========================================================
   MOBILE — drawer nav + viewport tuning
   Breakpoints: 960 / 760 / 480
   ========================================================= */

/* ----- Mobile nav drawer ----- */
@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    color: var(--ink);
    grid-column: 3;                /* sits to the right of the centered brand */
    justify-self: end;
  }
  .nav-toggle:focus-visible {
    outline: 2px solid var(--green-deep);
    outline-offset: 2px;
  }
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100dvh;
    width: min(82vw, 320px);
    background: var(--paper);
    border-left: 1px solid var(--hairline);
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 88px 28px 32px;
    transform: translateX(100%);
    transition: transform 0.25s var(--ease);
    z-index: 60;
    overflow-y: auto;
  }
  .nav-links.is-open {
    transform: translateX(0);
  }
  .nav-links li { list-style: none; }
  .nav-links a {
    display: block;
    padding: 16px 0;
    font-size: 1.1rem;
    font-weight: 500;
    border-bottom: 1px solid var(--hairline);
    text-decoration: none;
  }
  .nav-links a::after { display: none; }
  /* Lock background scroll while drawer is open. No backdrop overlay — the sticky
     header creates a stacking context that traps the drawer below any body-level
     pseudo, so an overlay would block link clicks. The drawer's white background +
     shadow provide enough visual separation. */
  body:has(.nav-links.is-open) { overflow: hidden; }
}

/* ----- Hero / general mobile tuning ----- */
@media (max-width: 760px) {
  .hero {
    min-height: calc(100svh - 134px);   /* matches mobile banner (32+68+32+1≈133; 26+60+26+1≈113) */
  }
  .hero-content { padding: 0 0 clamp(120px, 24vw, 180px); }  /* modest gap between CTAs and the credits section */
  .hero h1 {
    font-size: clamp(2.2rem, 11vw, 3.4rem);
    line-height: 1.05;
  }
  .hero .lead { font-size: 1rem; line-height: 1.5; }
  .hero-actions { gap: 0.75rem; margin-top: 1.5rem; }
  .hero-actions .btn { padding: 0.85em 1.4em; font-size: 0.9rem; }

  /* Sections breathe less on phone */
  .section { padding: clamp(56px, 12vw, 88px) 0; }
  .section-tight { padding: clamp(40px, 10vw, 64px) 0; }

  /* Page hero for interior pages */
  .page-hero { padding: clamp(56px, 14vw, 96px) 0 clamp(40px, 10vw, 64px); }

  /* Ticker on mobile — tighter and snappier */
  .credits { padding: 2rem 0; }
  .credits-label { font-size: 0.85rem; letter-spacing: 0.18em; }
  .credits-header { margin-bottom: 1.5rem; }
  .credit-item { height: 72px; padding: 0 14px; }
  .credit-item img,
  .credit-item svg { max-height: 58px; max-width: 160px; }
  .ticker-rail { animation-duration: 36s; }   /* mobile scroll — easy reading pace */

  /* Inline two-col layouts collapse */
  .two-col { gap: 1.5rem; }
  .pull-quote { font-size: 1.25rem; }

  /* Footer touch targets */
  .footer-bottom { font-size: 0.78rem; line-height: 1.6; padding: 1.25rem 0.5rem; }
  .footer-bottom a { padding: 4px 2px; }
}

/* ----- About page vertical video ----- */
@media (max-width: 760px) {
  /* The about page section sets min-height: calc(100vh - 145px) and the video uses
     max-height: calc(100vh - 245px). On phones the sticky header is ~80px, not 141,
     and address-bar chrome eats into 100vh — switch to svh and trim offsets so the
     video fits without scroll. */
  section[style*="100vh"][style*="226px"] {
    min-height: calc(100svh - 134px) !important;
    padding: 1.5rem 0 !important;
  }
  section[style*="100vh"][style*="226px"] .two-col {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  section[style*="100vh"][style*="226px"] video {
    max-height: 70svh !important;
    width: 100% !important;
    margin: 0 auto !important;
  }
  section[style*="100vh"][style*="226px"] h1 {
    font-size: clamp(2rem, 9vw, 2.8rem) !important;
  }
  section[style*="100vh"][style*="226px"] p { font-size: 0.98rem; }
}

/* ----- Touch targets — make all clickable things at least 44px ----- */
@media (max-width: 760px) {
  .btn { min-height: 44px; }
  .form-row input,
  .form-row textarea,
  .form-row select { min-height: 48px; font-size: 16px; /* prevents iOS zoom on focus */ }
  .form-row textarea { min-height: 120px; }
  .nav-links a { min-height: 44px; display: flex; align-items: center; }
}

/* ----- Below 480px — phones in portrait ----- */
@media (max-width: 480px) {
  body { font-size: 16px; }
  /* Use horizontal-only padding so we don't clobber vertical padding on
     elements that combine .container with .nav or .hero-content */
  .container { padding-left: 18px; padding-right: 18px; }
  h1 { letter-spacing: -0.02em; }
  .card { padding: 1.5rem; }
  .card h3 { font-size: 1.1rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .credit-item { height: 56px; padding: 0 10px; }
  .credit-item img,
  .credit-item svg { max-height: 44px; max-width: 130px; }
}

/* ----- Performance: avoid layout shift on slow video loads ----- */
.hero-media { background: #0a0a0a; }

/* ----- Reduce iframe pointer overhead on mobile ----- */
@media (hover: none) {
  .credit-item img,
  .credit-item svg { opacity: 0.7; filter: grayscale(80%); }
}

/* =========================================================
   CENTERED LAYOUT — applies to desktop AND mobile
   Matches the catalog page treatment consistently across all pages.
   Form fields stay left-aligned (inputs need it for legibility).
   ========================================================= */
/* Center the hero on the homepage */
.hero-content {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.hero-content .lead {
  margin-left: auto;
  margin-right: auto;
}
.hero-actions {
  justify-content: center;
}
.hero-tagline {
  display: block;
  text-align: center;
}

/* Center the interior page heros (contact) */
.page-hero .container {
  text-align: center;
}
.page-hero .lead {
  margin-left: auto;
  margin-right: auto;
}

/* Center the about page text column */
.about-section .two-col > div {
  text-align: center;
}
.about-section p,
.about-section h1,
.about-section .eyebrow {
  margin-left: auto;
  margin-right: auto;
}

/* Center body paragraphs in main sections */
.section p:not(.form-row p) {
  margin-left: auto;
  margin-right: auto;
}

/* Center the contact-page right-side card */
.card { text-align: center; }
.card .tag,
.card h3,
.card p { margin-left: auto; margin-right: auto; }

/* Keep form fields and labels left-aligned — centering them looks broken */
.form-row,
.form-row label,
.form-row input,
.form-row textarea,
.form-row select {
  text-align: left;
}