/* Hilo & Hem — styles
   Palette: chalk (page), denim indigo (text), tape-measure yellow (actions),
   cutting-mat green (prices), basting-thread red (the hero stitch only). */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage-grotesque.woff2") format("woff2-variations"),
       url("fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("fonts/atkinson-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("fonts/atkinson-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("fonts/atkinson-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --chalk: #f2f3ee;
  --paper: #fbfbf8;
  --indigo: #1e2a4a;
  --indigo-2: #47526f;
  --line: #9aa1b2;
  --field-line: #7d8599; /* form fields: 3.7:1 on white, 3.3:1 on chalk */
  --rule: rgba(30, 42, 74, 0.14);
  --tape: #f2c53d;
  --tape-deep: #e2b021;
  --mat: #24564a;
  --mat-ink: #e9efe9;
  --mat-grid: rgba(233, 239, 233, 0.08);
  --thread: #b8322a;

  --display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2rem);
  --section: clamp(4rem, 9vw, 7.5rem);
  --radius: 6px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--chalk);
  color: var(--indigo);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1.5px; }
a:hover { text-decoration-thickness: 2.5px; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); }
h3 { font-size: 1.35rem; letter-spacing: -0.01em; line-height: 1.2; }
p { margin: 0; text-wrap: pretty; }

:focus-visible { outline: 3px solid var(--indigo); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 50;
  background: var(--indigo); color: var(--chalk);
  padding: 0.6rem 1rem; border-radius: var(--radius); font-weight: 700;
}
.skip-link:focus { top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 3.25rem; padding: 0.8rem 1.4rem;
  border: 2px solid transparent; border-radius: var(--radius);
  font-family: var(--display); font-weight: 650; font-size: 1.05rem; letter-spacing: -0.005em;
  text-decoration: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease,
              transform 160ms var(--ease-out), opacity 160ms var(--ease-out);
}
.btn svg { width: 1.15rem; height: 1.15rem; flex: none; }
.btn-primary { background: var(--tape); color: var(--indigo); }
.btn-ghost { border-color: var(--indigo); color: var(--indigo); background: transparent; }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--tape-deep); }
  .btn-ghost:hover { background: var(--indigo); color: var(--chalk); }
}
.btn:hover { text-decoration: none; }
/* Pressing a button gives way a little (the keyboard-only toggle keeps its centring) */
.btn:active:not(.mend-toggle) { transform: scale(0.97); }
.btn[aria-disabled="true"] { opacity: 0.6; cursor: progress; }

/* ---------- Header ---------- */
.site-header { padding-block: 1.1rem; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.brand {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--display); font-weight: 750; font-size: 1.45rem; letter-spacing: -0.03em;
  text-decoration: none;
}
.brand svg { width: 2rem; height: 2rem; }

.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.site-nav a:not(.btn) { text-decoration: none; font-weight: 700; font-size: 1rem; }
.site-nav a:not(.btn):hover { text-decoration: underline; }
.site-nav .btn { min-height: 2.75rem; padding: 0.55rem 1.1rem; font-size: 1rem; }

/* ---------- Hero ---------- */
/* The hero takes the photo's background (colours measured from the photo's edges). Wide windows:
   the jeans fill the hero's height, centred, under a title that runs across the full width.
   Everything else (phones, tablets, narrow windows): the photo goes under the title. */
.hero {
  --photo-top: #e4ebeb;
  --photo-mid: #dce3e2;
  --photo-low: #cdd5d3;
  --photo-bottom: #c1caca;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  padding-top: 5.5rem; /* room for the header, which sits on top of the hero */
  /* Above the photo: its top colour. Below it: its bottom colour. The switch hides behind the photo. */
  background: linear-gradient(180deg, var(--photo-top) 50%, var(--photo-bottom) 50%);
}
.home .site-header { position: absolute; z-index: 3; top: 0; left: 0; right: 0; }
.home .site-header .wrap,
.hero .wrap { max-width: 1440px; }
.hero .wrap { position: relative; z-index: 2; }

.hero-top { container-type: inline-size; }
.hero h1 { margin-top: clamp(0.25rem, 1.5vw, 1rem); }
/* The big line fills the content width exactly: the English text is 10.34× its font size wide,
   the Spanish one 11.57×. The clamp() is the fallback for browsers without container units. */
.hero-title {
  display: block; text-align: center; white-space: nowrap;
  font-size: clamp(2.6rem, 8.4vw, 8rem);
  font-size: calc(100cqi / 10.6);
  line-height: 0.9; letter-spacing: -0.045em;
}
.hero-title:lang(es) { font-size: calc(100cqi / 11.85); }
.hero-place {
  display: block; margin-top: 1rem;
  font-family: var(--body); font-size: 1.05rem; line-height: 1.4; letter-spacing: 0;
}
.hero-hours {
  position: absolute; right: var(--gutter); bottom: 0;
  font-size: 1.05rem; line-height: 1.4; color: var(--indigo-2); text-align: right;
}

.hero-bottom {
  padding-block: 1.5rem 2rem;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem;
}
.hero-lede { max-width: 20rem; font-size: 1.1rem; }
.hero-lang { margin-top: 0.75rem; font-size: 1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2rem; }
.hero-bottom .hero-actions { margin: 0; flex-direction: column; align-items: stretch; width: 15.5rem; }
.hero .hem { margin-top: 0; z-index: 2; }

/* Before/after: the torn jeans sit underneath, the mended ones are revealed on top */
.mend {
  position: relative; z-index: 1; margin: 0.5rem 0 0;
  background: linear-gradient(180deg, var(--photo-top), var(--photo-bottom));
}
/* Crop the sides so the photo is narrower; the waistband fades in from the background */
.mend-frame {
  position: relative; overflow: hidden;
  width: 100%; aspect-ratio: 3 / 4; max-width: 34rem; margin-inline: auto;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 16%);
          mask-image: linear-gradient(180deg, transparent 0, #000 16%);
}
.mend-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mend-hint {
  padding: 0.6rem var(--gutter) 0; text-align: center;
  font-size: 0.95rem; color: var(--indigo-2); background: var(--photo-bottom);
}
.mend-hint:empty,
html:not(.js) .mend-hint,
html:not(.js) .mend-toggle { display: none; }
.mend-seam { display: none; }

/* Keyboard: "See it mended" only appears while it has focus */
.mend-toggle {
  position: absolute; z-index: 3; left: 50%; top: 55%; transform: translateX(-50%);
  background: var(--chalk); white-space: nowrap;
}
.mend-toggle:not(:focus) {
  clip-path: inset(50%); width: 1px; height: 1px; min-height: 0; padding: 0; border: 0; overflow: hidden;
}

/* Until the script picks a mode, show the torn jeans */
.js .mend-after { clip-path: inset(100% 0 0 0); }

/* Mouse: a soft spotlight under the cursor (gradient stops from the Inner Circle reference) */
.mend.is-spot .mend-after {
  clip-path: none;
  -webkit-mask-image: radial-gradient(circle var(--r, 0px) at var(--x, 50%) var(--y, 50%), #000 0, #000 40%, rgba(0, 0, 0, 0.75) 60%, rgba(0, 0, 0, 0.4) 75%, rgba(0, 0, 0, 0.12) 88%, transparent 100%);
          mask-image: radial-gradient(circle var(--r, 0px) at var(--x, 50%) var(--y, 50%), #000 0, #000 40%, rgba(0, 0, 0, 0.75) 60%, rgba(0, 0, 0, 0.4) 75%, rgba(0, 0, 0, 0.12) 88%, transparent 100%);
}

/* Mouse: the jeans also turn toward the cursor (main.js sets the transform on .mend-frame) */
.mend.is-spot { perspective: 1100px; }
.mend.is-spot .mend-frame { transform-origin: 50% 50%; will-change: transform; }
.mend-hint { position: relative; z-index: 2; }

/* Touch: the mended jeans rise from the hem as the page scrolls, behind a running stitch */
.mend.is-scroll .mend-after { clip-path: inset(calc((1 - var(--p, 0)) * 100%) 0 0 0); }
.mend.is-scroll .mend-seam {
  display: block; position: absolute; left: 0; right: 0; height: 3px; margin-top: -1.5px;
  top: calc((1 - var(--p, 0)) * 100%);
  background: repeating-linear-gradient(90deg, var(--thread) 0 14px, transparent 14px 24px);
  opacity: var(--seam, 0);
}

/* Keyboard button pressed: the whole mended photo */
.mend.is-shown .mend-after { clip-path: none; -webkit-mask-image: none; mask-image: none; }
.mend.is-shown .mend-seam { opacity: 0; }

/* Tablets: the photo is narrower than the window, so its sides fade into the background too */
@media (min-width: 600px) {
  .mend-frame {
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 16%), linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%);
    -webkit-mask-composite: source-in;
            mask-image: linear-gradient(180deg, transparent 0, #000 16%), linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%);
            mask-composite: intersect;
  }
}

/* Phones: the title wraps and everything goes in one column */
@media (max-width: 599px) {
  .hero-title,
  .hero-title:lang(es) {
    white-space: normal; text-align: left;
    font-size: clamp(2.6rem, 12vw, 4.5rem); line-height: 0.95;
  }
  .mend-hint { text-align: left; }
  .hero-bottom { flex-direction: column; align-items: stretch; }
  .hero-bottom .hero-actions { width: auto; }
}

/* Wide windows: the jeans grow with the window's height and the text columns need its width.
   Measured: it fits when the width is more than about 520px + 0.76 × the height, which these
   two conditions cover (wide-and-short laptops, and 3:2 windows at least 704px tall). */
@media (min-width: 1000px) and (min-aspect-ratio: 8/5), (min-width: 1000px) and (min-aspect-ratio: 3/2) and (min-height: 704px) {
  .hero {
    min-height: 100svh;
    background: linear-gradient(180deg, var(--photo-top) 0%, var(--photo-mid) 45%, var(--photo-low) 75%, var(--photo-bottom) 100%);
  }
  /* The jeans run up behind the menu, so it sits on a chalk bar to stay readable */
  .home .site-nav {
    gap: 0.25rem; padding: 0.375rem 0.375rem 0.375rem 0.75rem; border-radius: 12px;
    background: rgba(242, 243, 238, 0.86);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  }
  .home .site-nav a:not(.btn) { padding: 0.5rem 0.7rem; }

  .mend {
    position: absolute; top: 0; bottom: 72px; left: 50%; transform: translateX(-50%);
    aspect-ratio: 960 / 1192; margin: 0; background: none;
  }
  /* The sides fade into the background; under the title the waistband is softened so the
     indigo title keeps at least 3:1 against the denim (it measured 1.6–2.6:1 at full strength) */
  .mend-frame {
    height: 100%; aspect-ratio: auto; max-width: none; margin: 0;
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0, rgba(0, 0, 0, 0.55) 230px, #000 330px),
                        linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%);
    -webkit-mask-composite: source-in;
            mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0, rgba(0, 0, 0, 0.55) 230px, #000 330px),
                        linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%);
            mask-composite: intersect;
  }
  /* On short windows the hint can land on the cuffs, so it gets the menu's chalk bar */
  .mend-hint {
    position: absolute; z-index: 2; left: 50%; bottom: 0.5rem; transform: translateX(-50%);
    padding: 0.2rem 0.65rem; border-radius: var(--radius); white-space: nowrap;
    background: rgba(242, 243, 238, 0.86);
  }
  .hero-bottom { margin-top: auto; padding-block: 2rem; }
}

/* The hem: a running stitch sewn across the page, on top of a tape measure */
.hem { position: relative; margin-top: clamp(3rem, 7vw, 5.5rem); overflow: hidden; }
.stitch-row { position: relative; height: 26px; }
.stitch {
  position: absolute; left: 0; right: 0; top: 50%; height: 3px; margin-top: -1.5px;
  background: repeating-linear-gradient(90deg, var(--thread) 0 18px, transparent 18px 30px);
  border-radius: 2px;
  clip-path: inset(0 0 0 0);
}
.needle {
  position: absolute; top: 50%; left: 100%;
  width: 64px; height: 16px; margin-top: -8px; margin-left: -60px;
  color: var(--indigo-2);
}
.tape {
  position: relative; height: 46px; overflow: hidden;
  background:
    linear-gradient(90deg, var(--indigo) 1.5px, transparent 1.5px) 0 0 / 48px 18px repeat-x,
    linear-gradient(90deg, var(--indigo) 1px, transparent 1px) 24px 0 / 48px 12px repeat-x,
    linear-gradient(90deg, rgba(30, 42, 74, 0.7) 1px, transparent 1px) 0 0 / 12px 7px repeat-x,
    var(--tape);
}
.tape-numbers {
  position: absolute; left: 24px; bottom: 4px; display: flex;
  font-family: var(--display); font-weight: 650; font-size: 0.8rem; line-height: 1;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.tape-numbers span { width: 48px; flex: none; text-align: center; }

/* Sewn when it comes into view: main.js adds .is-sewn (on wide screens that is right away) */
@media (prefers-reduced-motion: no-preference) {
  .js .hem:not(.is-sewn) .stitch { clip-path: inset(0 100% 0 0); }
  .js .hem:not(.is-sewn) .needle { left: 0; }
  .js .hem.is-sewn .stitch { animation: sew 2.2s cubic-bezier(0.55, 0.05, 0.35, 1) 0.3s both; }
  .js .hem.is-sewn .needle { animation: needle 2.2s cubic-bezier(0.55, 0.05, 0.35, 1) 0.3s both; }
}
@keyframes sew {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}
@keyframes needle {
  from { left: 0; }
  to { left: 100%; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section-head { max-width: 40rem; margin-bottom: clamp(2.25rem, 4.5vw, 3.5rem); }
.section-head p { margin-top: 1rem; color: var(--indigo-2); }

/* What we fix */
.fix-grid {
  display: grid; gap: 2.5rem 3rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}
@media (min-width: 900px) { .fix-grid { grid-template-columns: repeat(3, 1fr); } }
.fix-grid h3 { margin-bottom: 0.85rem; }
.stitch-list { list-style: none; margin: 0; padding: 0; }
.stitch-list li { position: relative; padding-left: 1.9rem; margin-top: 0.45rem; }
.stitch-list li::before {
  content: ""; position: absolute; left: 0; top: 0.8em; width: 1.25rem; height: 2px;
  background: repeating-linear-gradient(90deg, var(--indigo) 0 4px, transparent 4px 8px);
}
.fix-note {
  margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-top: 1.5rem;
  border-top: 1.5px dashed var(--line); color: var(--indigo-2); max-width: 46rem;
}

/* Prices — on a cutting mat */
.prices {
  background-color: var(--mat);
  background-image:
    linear-gradient(var(--mat-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--mat-grid) 1px, transparent 1px);
  background-size: 32px 32px;
  color: var(--mat-ink);
}
.prices .section-head p { color: rgba(233, 239, 233, 0.82); }
.prices :focus-visible { outline-color: var(--tape); }
.price-groups {
  display: grid; gap: 2.75rem 4rem;
  grid-template-columns: repeat(auto-fit, minmax(min(19rem, 100%), 1fr));
}
.price-group h3 { margin-bottom: 0.6rem; color: var(--tape); }
.price-list { list-style: none; margin: 0; padding: 0; }
.price-list li { display: flex; align-items: baseline; gap: 0.6rem; padding-block: 0.4rem; }
.price-list .item { flex: 0 1 auto; }
.price-list .leader { flex: 1 1 1.5rem; min-width: 1.5rem; border-bottom: 2px dotted rgba(233, 239, 233, 0.35); transform: translateY(-0.3em); }
.price-list .price {
  flex: none; font-family: var(--display); font-weight: 650; font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.price-foot { margin-top: 2.75rem; max-width: 44rem; color: rgba(233, 239, 233, 0.82); }
.price-foot strong { color: var(--mat-ink); }

/* How it works — a real sequence, so it is numbered */
.steps {
  list-style: none; margin: 0; padding: 0; counter-reset: step;
  display: grid; gap: 2.25rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}
.steps li { counter-increment: step; position: relative; }
.steps li::before {
  content: counter(step);
  display: block; margin-bottom: 0.75rem;
  font-family: var(--display); font-weight: 750; font-size: 3.5rem; line-height: 1; letter-spacing: -0.04em;
}
.steps h3 { margin-bottom: 0.5rem; }
.steps p { color: var(--indigo-2); max-width: 22rem; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 0; }
  .steps li { padding-inline: 2rem; border-left: 2px dashed var(--line); }
  .steps li:first-child { padding-left: 0; border-left: 0; }
}

/* Booking */
.book { background: var(--paper); border-block: 1px solid var(--rule); }
.book-grid { display: grid; gap: 3rem; }
@media (min-width: 960px) { .book-grid { grid-template-columns: 5fr 7fr; gap: 4.5rem; } }
.book-aside p { color: var(--indigo-2); margin-top: 1rem; max-width: 30rem; }
.book-aside .call-line { margin-top: 1.75rem; color: var(--indigo); font-weight: 700; }
.book-aside .call-line a { font-family: var(--display); font-size: 1.5rem; font-weight: 700; letter-spacing: -0.01em; }

.form { display: grid; gap: 1.25rem; }
.form-row { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-weight: 700; font-size: 1rem; margin-bottom: 0.4rem; }
.field .opt { font-weight: 400; color: var(--indigo-2); }
.field .hint { display: block; font-size: 0.95rem; color: var(--indigo-2); margin-top: 0.35rem; }
.field input,
.field select,
.field textarea {
  width: 100%; font: inherit; font-size: 1.05rem; color: var(--indigo);
  background: #fff; border: 1.5px solid var(--field-line); border-radius: 8px;
  padding: 0.75rem 0.85rem; min-height: 3.1rem;
}
.field textarea { min-height: 7.5rem; resize: vertical; }
.field input[type="file"] { padding: 0.6rem; background: var(--chalk); }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: 3px solid var(--indigo); outline-offset: 2px; border-color: var(--indigo); }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%231e2a4a' stroke-width='2'%3E%3Cpath d='M5 8l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.8rem center; background-size: 1.1rem;
}
.form .btn { justify-self: start; }
.form-note { font-size: 0.95rem; color: var(--indigo-2); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.nowrap { white-space: nowrap; }

/* Questions */
.faq { max-width: 52rem; }
.faq details { border-top: 1.5px solid var(--rule); }
.faq details:last-child { border-bottom: 1.5px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 1.25rem 2.5rem 1.25rem 0;
  font-family: var(--display); font-weight: 650; font-size: 1.3rem; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 0.25rem; top: 50%; width: 1rem; height: 1rem; margin-top: -0.5rem;
  background:
    linear-gradient(var(--indigo), var(--indigo)) center / 100% 2px no-repeat,
    linear-gradient(var(--indigo), var(--indigo)) center / 2px 100% no-repeat;
  transition: transform 260ms var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq { interpolate-size: allow-keywords; }
.faq details::details-content {
  opacity: 0; overflow: clip;
  transition: opacity 150ms var(--ease-out), content-visibility 200ms allow-discrete;
}
.faq details[open]::details-content { opacity: 1; transition-duration: 220ms, 260ms; }
@media (prefers-reduced-motion: no-preference) {
  .faq details::details-content {
    block-size: 0;
    transition: block-size 200ms var(--ease-out), opacity 150ms var(--ease-out), content-visibility 200ms allow-discrete;
  }
  .faq details[open]::details-content { block-size: auto; transition-duration: 260ms, 220ms, 260ms; }
}
.faq details p { padding-bottom: 1.4rem; color: var(--indigo-2); max-width: 44rem; }

/* Footer */
.site-footer { background: var(--indigo); color: var(--chalk); padding-block: 3.5rem 2.5rem; }
.site-footer :focus-visible { outline-color: var(--tape); }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.footer-grid p { color: rgba(242, 243, 238, 0.82); }
.footer-grid .brand { color: var(--chalk); margin-bottom: 0.6rem; }
.footer-grid h3 { font-size: 1.05rem; margin-bottom: 0.5rem; color: var(--tape); }
.footer-legal { margin-top: 3rem; font-size: 0.9rem; color: rgba(242, 243, 238, 0.6); }

/* Thank-you pages */
.thanks { padding-block: clamp(4rem, 12vw, 9rem); }
.thanks h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); max-width: 14ch; }
.thanks p { margin-top: 1.25rem; max-width: 34rem; color: var(--indigo-2); font-size: 1.2rem; }
.thanks .hero-actions { margin-top: 2.25rem; }

/* Grand opening notice: a sewn-in label, shown once per visitor until opening day */
.opening {
  width: min(26rem, calc(100vw - 2 * var(--gutter))); max-width: none;
  padding: 0; border: 0; background: transparent; color: var(--indigo);
}
.opening::backdrop { background: rgba(30, 42, 74, 0.45); }
.opening,
.opening::backdrop {
  opacity: 0;
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out),
              overlay 200ms allow-discrete, display 200ms allow-discrete;
}
.opening[open],
.opening[open]::backdrop { opacity: 1; transition-duration: 280ms; }
@starting-style {
  .opening[open],
  .opening[open]::backdrop { opacity: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .opening { transform: translateY(12px) scale(0.97); }
  .opening[open] { transform: none; }
  @starting-style { .opening[open] { transform: translateY(12px) scale(0.97); } }
}
.opening-card {
  position: relative; margin: 0; padding: 2.25rem 1.75rem 1.75rem;
  background: var(--paper); border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(30, 42, 74, 0.25);
}
.opening-card::before {
  content: ""; position: absolute; inset: 8px; pointer-events: none;
  border: 1.5px dashed var(--line); border-radius: 3px;
}
.opening h2 { font-size: clamp(1.9rem, 6vw, 2.4rem); line-height: 1.05; padding-right: 2.5rem; }
.opening-kicker {
  display: block; margin-bottom: 0.4rem;
  font-family: var(--body); font-size: 1.05rem; letter-spacing: 0; color: var(--indigo-2);
}
.opening p { margin-top: 1rem; color: var(--indigo-2); }
.opening .btn-primary { position: relative; margin-top: 1.5rem; }
.opening-x {
  position: absolute; z-index: 1; top: 0.9rem; right: 0.9rem;
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem;
  border: 0; border-radius: var(--radius); background: transparent; color: var(--indigo); cursor: pointer;
}
.opening-x svg { width: 1.25rem; height: 1.25rem; }
@media (hover: hover) and (pointer: fine) {
  .opening-x:hover { background: rgba(30, 42, 74, 0.08); }
}
.opening-x { -webkit-tap-highlight-color: transparent; transition: background-color 150ms ease, transform 160ms var(--ease-out); }
.opening-x:active { transform: scale(0.95); }

/* ---------- Mobile ---------- */
.mobile-bar { display: none; }

@media (max-width: 759px) {
  .site-nav .hide-sm { display: none; }
  .mobile-bar {
    position: fixed; z-index: 40; left: 0; right: 0; bottom: 0;
    display: grid; grid-template-columns: minmax(5.5rem, auto) 1fr; gap: 0.6rem;
    padding: 0.7rem var(--gutter) calc(0.7rem + env(safe-area-inset-bottom));
    background: var(--indigo);
    box-shadow: 0 -1px 0 rgba(242, 243, 238, 0.12);
  }
  .mobile-bar .btn { min-height: 3rem; padding-inline: 0.75rem; font-size: 1rem; white-space: nowrap; text-align: center; }
  .mobile-bar .btn-ghost { color: var(--chalk); border-color: rgba(242, 243, 238, 0.55); }
  .mobile-bar :focus-visible { outline-color: var(--tape); }
  .site-footer { padding-bottom: calc(7rem + env(safe-area-inset-bottom)); }
  .hero-actions .btn { flex: 1 1 100%; }
  .form .btn { justify-self: stretch; }
  .btn:active:not(.mend-toggle) { transform: scale(0.98); }
  /* The language link is the only link left in the header: give it a 44px target */
  .site-nav a:not(.btn) { padding: 0.7rem 0.5rem; margin: -0.7rem -0.5rem; }
  .hero-hours { position: static; margin-top: 0.25rem; text-align: left; }
  /* The scroll hint sits above the photo, where the fixed bar can't cover it */
  .mend { display: flex; flex-direction: column; }
  .mend-hint { order: -1; padding: 0 var(--gutter) 0.5rem; background: none; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .btn:active:not(.mend-toggle),
  .opening-x:active { transform: none; opacity: 0.85; }
}
