/* ─── Tokens ──────────────────────────────────────────────────────────────── */

:root {
  --paper:      #F4F0E8;
  --paper-2:    #FFF;
  --white:      #FFFDF9;
  --ink:        #141210;
  --ink-2:      #2A2622;
  --muted:      #6E665B;
  --line:       rgba(20, 18, 16, 0.14);
  --line-light: rgba(244, 240, 232, 0.18);
  --gold:       #A27A2C;
  --gold-light: #D9B26A;
  --red:        #B23A2B;
  --error:      #A8261B;

  --font: Futura, 'Futura PT', 'Jost', 'Century Gothic', 'Trebuchet MS', sans-serif;

  --gutter:  clamp(16px, 4vw, 48px);
  --header:  76px;
  --section: clamp(28px, 6vh, 72px);
  --ease:    cubic-bezier(0.2, 0.7, 0.1, 1);
}

/* ─── Base ────────────────────────────────────────────────────────────────── */

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

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.7 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }

/* Kept for search engines and screen readers, invisible on screen. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
a { color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
button { font: inherit; color: inherit; }

::selection { background: var(--ink); color: var(--paper); }

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

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ─── Typography ──────────────────────────────────────────────────────────── */

.eyebrow {
  font: 600 11px/1.4 var(--font);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}
.eyebrow--light { color: var(--gold-light); }

.title {
  font-family: var(--font);
  font-size: clamp(2.2rem, min(5vw, 7.5vh), 4.4rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 0.95;
}

.title em,
.band-quote em {
  font-style: italic;
  color: var(--gold);
}

.lead {
  max-width: 34rem;
  margin-top: 32px;
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  color: var(--muted);
}

/* ─── Buttons ─────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 30px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font: 600 12px/1 var(--font);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
@media (hover: hover) {
  .btn:hover { background: transparent; color: var(--ink); }
}

.btn-small { min-height: 40px; padding: 0 18px; font-size: 11px; }
.btn-wide  { width: 100%; }

.btn-light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
@media (hover: hover) {
  .btn-light:hover { background: transparent; color: var(--paper); }
}

.btn[disabled] { opacity: 0.6; cursor: progress; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  border: 0;
  background: none;
  min-height: 44px;
  font: 600 12px/1 var(--font);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}
.link-arrow::after {
  content: '';
  width: 36px;
  height: 1px;
  background: currentColor;
  transition: width 0.4s var(--ease);
}
.link-arrow:hover::after { width: 56px; }

/* ─── Header ──────────────────────────────────────────────────────────────── */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  background: var(--ink);
  color: var(--paper);
  transition: box-shadow 0.4s var(--ease);
}
.site-header.is-scrolled {
  box-shadow: 0 12px 32px -16px rgba(20, 18, 16, 0.5);
}

.site-header .btn {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}
@media (hover: hover) {
  .site-header .btn:hover {
    background: transparent;
    color: var(--paper);
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header);
}

.wordmark {
  display: inline-block;
  padding: 8px 0;
  font: 500 28px/1 var(--font);
  letter-spacing: 0.04em;
  text-decoration: none;
}
.wordmark--light { color: var(--paper); }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.6vw, 36px);
}
.nav a:not(.btn) {
  padding: 14px 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  position: relative;
}
.nav a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 10px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.nav a:not(.btn):hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  cursor: pointer;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 11px; right: 11px;
  height: 1.5px;
  background: var(--paper);
  transition: transform 0.3s var(--ease);
}
.nav-toggle span:first-child { top: 18px; }
.nav-toggle span:last-child  { top: 25px; }
.nav-open .nav-toggle span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-open .nav-toggle span:last-child  { transform: translateY(-3.5px) rotate(-45deg); }

/* ─── Hero ────────────────────────────────────────────────────────────────── */

.hero { background: var(--paper-2); }
.hero-copy { max-width: 60rem; }
.hero-copy h1 em { display: block; margin-top: 0.35em; }

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 44px;
}

/* ─── Sections ────────────────────────────────────────────────────────────── */

/* Every screen fills the viewport, header included, and is a snap point. */
.hero,
.section,
.band {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header) + var(--section)) 0 var(--section);
  scroll-snap-align: start;
}
.section--tint { background: var(--paper-2); }

.section-head { margin-bottom: clamp(28px, 5vh, 64px); }

/* concept */

.concept-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2vw, 28px);
}

.concept-card {
  padding: clamp(28px, min(3.6vw, 5.5vh), 52px);
  border: 1px solid var(--line);
  background: var(--white);
}
.concept-card--dark {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.concept-card h3 {
  font: 400 clamp(2rem, 3vw, 2.6rem)/1.05 var(--font);
  margin: clamp(12px, 3vh, 36px) 0 16px;
}
.concept-card p { color: var(--muted); max-width: 30rem; line-height: 1.6; }
.concept-card--dark p { color: rgba(244, 240, 232, 0.7); }

.numeral {
  font: italic 400 20px/1 var(--font);
  color: var(--gold);
}
.concept-card--dark .numeral { color: var(--gold-light); }

.ticks {
  list-style: none;
  margin: clamp(20px, 3.5vh, 32px) 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.concept-card--dark .ticks { border-color: var(--line-light); }
.ticks li {
  padding: clamp(8px, 1.4vh, 12px) 0 clamp(8px, 1.4vh, 12px) 28px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  position: relative;
}
.concept-card--dark .ticks li { border-color: var(--line-light); }
.ticks li::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 14px; height: 1px;
  background: var(--gold);
}

/* collectors band */

.band {
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
}

.band-quote {
  margin: 0;
  font: 400 clamp(2.6rem, 7vw, 6.4rem)/1 var(--font);
  letter-spacing: -0.02em;
}
.band-quote em { color: var(--gold-light); }

.band-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 64px);
  margin-top: clamp(40px, 8vh, 96px);
  padding-top: 40px;
  border-top: 1px solid var(--line-light);
}
.band-points h4 {
  font: italic 400 26px/1.2 var(--font);
  margin-bottom: 12px;
}
.band-points p {
  font-size: 15px;
  color: rgba(244, 240, 232, 0.66);
}

/* craft */

.craft-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(48px, 8vw, 128px);
  align-items: start;
}
.craft-intro p:not(.eyebrow) {
  margin-top: 28px;
  color: var(--muted);
  max-width: 30rem;
}
.craft-intro .title + p { margin-top: 40px; }

.mediums {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.medium {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 28px;
  padding: clamp(16px, 3vh, 32px) 0;
  border-bottom: 1px solid var(--line);
}
.medium h3 {
  font: 400 30px/1.1 var(--font);
  margin-bottom: 8px;
}
.medium p { color: var(--muted); font-size: 15px; }

.medium-icon {
  width: 48px;
  height: 48px;
  color: var(--gold);
  transition: transform 0.6s var(--ease);
}
.medium:hover .medium-icon { transform: translateY(-3px); }

/* process */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.step {
  padding: 40px clamp(16px, 2.4vw, 36px) 0 0;
  position: relative;
}
.step + .step {
  padding-left: clamp(16px, 2.4vw, 36px);
  border-left: 1px solid var(--line);
}
.step-num {
  display: block;
  font: italic 400 56px/1 var(--font);
  color: var(--gold);
  margin-bottom: 36px;
}
.step h3 {
  font: 600 13px/1.4 var(--font);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.step p { color: var(--muted); font-size: 15px; }

/* ─── Window bands ────────────────────────────────────────────────────────── */

/* The image is pinned to the viewport; each band is a cut-out that slides
   over it while scrolling. clip-path (not background-attachment: fixed) so it
   also works on iOS Safari. */
.window {
  position: relative;
  height: 55vh;
  clip-path: inset(0);
  background: var(--ink);
}
/* Sized to the *largest* viewport height (lvh), not the visible one: on phones
   the visible height changes as the address bar slides in and out, which
   would rescale the cover image and make it zoom while scrolling. */
.window-image {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100lvh;
  background: url('/img/gallery.jpg') center / cover no-repeat;
  pointer-events: none;
}

/* ─── Quote ───────────────────────────────────────────────────────────────── */

.quote-grid {
  position: relative;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(48px, 7vw, 112px);
}
.quote-grid > * { min-width: 0; }

/* The intro and the form share one height: the notes sit at the bottom of the
   intro, so their last rule lines up with the bottom edge of the form. */
.quote-intro {
  display: flex;
  flex-direction: column;
}

.quote-intro > p:not(.eyebrow) {
  margin-top: 32px;
  color: var(--muted);
  max-width: 26rem;
}

.quote-notes {
  margin: auto 0 0;
  padding-top: clamp(24px, 5vh, 48px);
  border-top: 0;
}
.quote-notes > div:first-child { border-top: 1px solid var(--line); }
.quote-notes div {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.quote-notes dt {
  font: italic 500 20px/1.3 var(--font);
}
.quote-notes dd {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.quote-form,
.quote-success {
  background: var(--white);
  border: 1px solid var(--line);
  padding: clamp(28px, min(4.5vw, 6vh), 64px);
  box-shadow: 0 40px 80px -40px rgba(20, 18, 16, 0.18);
  display: flex;
  flex-direction: column;
}

.quote-form fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

/* All steps share one grid cell, so the box keeps the tallest step's height. */
.form-panes { display: grid; }
.form-panes > fieldset {
  grid-area: 1 / 1;
  transition: opacity 0.4s var(--ease);
}
.form-panes > [inert] {
  visibility: hidden;
  opacity: 0;
}

/* step indicator */

.form-steps {
  list-style: none;
  margin: 0 0 clamp(24px, 4.5vh, 40px);
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.form-steps button {
  width: 100%;
  min-height: 44px;
  padding: 12px 0 8px;
  border: 0;
  border-top: 2px solid var(--line);
  background: none;
  text-align: left;
  font: 500 12px/1.3 var(--font);
  letter-spacing: 0.06em;
  color: var(--muted);
  cursor: default;
  transition: border-color 0.4s var(--ease), color 0.4s var(--ease);
}
.form-steps span { color: var(--gold); margin-right: 4px; }
.form-steps .is-done button { border-top-color: var(--gold); color: var(--ink); cursor: pointer; }
.form-steps .is-active button { border-top-color: var(--ink); color: var(--ink); }

/* Floating the legend makes it lay out like a normal block (no fieldset quirks). */
.form-legend {
  float: left;
  width: 100%;
  padding: 0;
  margin-bottom: clamp(16px, 3vh, 28px);
  font: 400 28px/1.2 var(--font);
}
.form-legend + * { clear: both; }
.form-legend span {
  font: italic 400 18px/1 var(--font);
  color: var(--gold);
  margin-right: 10px;
}

abbr[title] {
  text-decoration: none;
  color: var(--gold);
}

.field { margin-bottom: 24px; }
.field:last-child { margin-bottom: 0; }

.field label {
  display: block;
  margin-bottom: 6px;
  font: 600 11px/1.4 var(--font);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.optional {
  margin-left: 6px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: 400 19px/1.4 var(--font);
  transition: border-color 0.3s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.field textarea {
  resize: vertical;
  min-height: 120px;
  font: 400 16px/1.6 var(--font);
}
.field select {
  cursor: pointer;
  padding-right: 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%23141210' stroke-width='1.2'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  background-size: 12px;
}
.field input::placeholder,
.field textarea::placeholder { color: rgba(110, 102, 91, 0.6); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--ink);
}

.field.has-error input,
.field.has-error textarea { border-bottom-color: var(--error); }

.field-error {
  margin-top: 6px;
  font-size: 13px;
  color: var(--error);
}
.field-error:empty { display: none; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* size picker */

.sizes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}
.size { position: relative; cursor: pointer; }
.size input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.size-card {
  display: grid;
  grid-template-columns: 40px 1fr;
  column-gap: 14px;
  align-items: center;
  height: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.size:hover .size-card { border-color: rgba(20, 18, 16, 0.4); }
.size input:checked + .size-card {
  border-color: var(--ink);
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--ink);
}
.size input:focus-visible + .size-card {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.size-shape {
  grid-row: span 2;
  display: block;
  height: 48px;
  width: 40px;
  position: relative;
}
.size-shape::before {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width:  calc(8px + var(--w, 40) / 160 * 28px);
  height: calc(10px + var(--h, 50) / 160 * 38px);
  border: 1px solid var(--ink);
  background: var(--paper-2);
}
.size input:checked + .size-card .size-shape::before { background: var(--gold-light); }

.size-shape--original::before {
  width: 30px;
  height: 40px;
  border-style: dashed;
  background: transparent;
}
.size-shape--custom::before {
  width: 36px;
  height: 28px;
  border-style: dashed;
  background: transparent;
}
.size-shape--custom::after {
  content: '+';
  position: absolute;
  left: 0; bottom: 0;
  width: 36px;
  height: 28px;
  display: grid;
  place-items: center;
  font: 300 20px/1 var(--font);
}

.size-name {
  font: 400 21px/1.1 var(--font);
}
.size-dims {
  font-size: 12px;
  color: var(--muted);
}

/* Always takes its space (last row of the Size step) so choosing "Custom"
   reveals it without resizing the form box. */
.custom-size:not(.is-open) { visibility: hidden; }
.custom-size {
  display: grid;
  grid-template-columns: 1fr auto 1fr 90px;
  align-items: end;
  gap: 16px;
  margin-top: 18px;
}
.custom-size .field { margin-bottom: 0; }

/* Medium and framing share a row to keep the Size step short. */
.medium-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  align-items: end;
  gap: 24px;
}
.medium-row .field { margin-bottom: 0; }
.medium-row .check { margin: 0 0 14px; }
.times {
  font: 300 22px/1 var(--font);
  color: var(--muted);
  padding-bottom: 16px;
}

/* checkbox */

.check {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
  font-size: 15px;
  cursor: pointer;
}
.check input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--ink);
  cursor: pointer;
}

/* dropzone */

.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 36px 20px;
  border: 1px dashed rgba(20, 18, 16, 0.32);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.dropzone:hover,
.dropzone.is-over {
  border-color: var(--ink);
  background: var(--paper);
}
/* Once images are attached the dropzone shrinks to make room for thumbnails. */
.dropzone.has-files { padding: 14px 20px; }
.dropzone.has-files .dropzone-icon,
.dropzone.has-files .dropzone-hint { display: none; }

.dropzone-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 8px;
  color: var(--gold);
}
.dropzone strong { font-weight: 600; }
.dz-touch { display: none; }
@media (pointer: coarse) {
  .dz-pointer { display: none; }
  .dz-touch { display: block; }
}
.underline { text-decoration: underline; text-underline-offset: 3px; }
.dropzone-hint {
  font-size: 12px;
  color: var(--muted);
}

.previews {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 10px;
}
.previews:empty { display: none; }
.preview {
  position: relative;
  aspect-ratio: 1;
  background: var(--paper-2);
  border: 1px solid var(--line);
  overflow: hidden;
}
.preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.preview-doc {
  display: grid;
  place-items: center;
  height: 100%;
  padding: 8px;
  font-size: 11px;
  text-align: center;
  word-break: break-all;
  color: var(--muted);
}
.preview-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(20, 18, 16, 0.78);
  color: var(--paper);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}
.preview-remove:hover { background: var(--ink); }

.form-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
  margin-top: auto;
  padding-top: clamp(28px, 5vh, 48px);
}
.form-footer [data-back] { margin-right: auto; }
.form-footer .btn { min-width: 200px; }

.link-arrow--back { flex-direction: row-reverse; }

.form-status {
  margin-top: 16px;
  font-size: 14px;
  text-align: center;
  color: var(--muted);
}
.form-status:empty { display: none; }
.form-status.is-error { color: var(--error); }

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.quote-success {
  text-align: left;
  padding-top: clamp(48px, 7vw, 96px);
  padding-bottom: clamp(48px, 7vw, 96px);
}
.quote-success:focus { outline: none; }
.quote-success .title { margin-bottom: 28px; }
.quote-success > p:not(.eyebrow) { color: var(--muted); margin-bottom: 40px; max-width: 28rem; }

/* ─── FAQ ─────────────────────────────────────────────────────────────────── */

.faq-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(32px, 7vw, 112px);
}
.faq-grid .section-head { margin-bottom: 0; }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0;
  font: 400 clamp(1.3rem, 2vw, 1.6rem)/1.3 var(--font);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  flex-shrink: 0;
  font: 300 26px/1 var(--font);
  color: var(--gold);
  transition: transform 0.4s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p {
  padding: 0 48px 28px 0;
  color: var(--muted);
}

/* ─── Footer ──────────────────────────────────────────────────────────────── */

.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(64px, 8vw, 112px) 0 32px;
  scroll-snap-align: end;
}
.footer-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  padding-bottom: 56px;
}
.footer-inner .wordmark { font-size: clamp(56px, 9vw, 120px); }
.footer-inner p {
  margin-top: 20px;
  color: rgba(244, 240, 232, 0.6);
  font-size: 14px;
}
.footer-base {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 28px;
  border-top: 1px solid var(--line-light);
  font-size: 12px;
  color: rgba(244, 240, 232, 0.5);
}

/* ─── Reveal on scroll ────────────────────────────────────────────────────── */

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ─── Responsive ──────────────────────────────────────────────────────────── */

/* Touch devices (phones and tablets): drop the grey flash on tap. Snapping
   stays firm (mandatory) so the page always settles on a section or on a
   photo band; sections taller than the screen can still be scrolled through. */
@media (pointer: coarse) {
  a, button, label, summary, [role=button] { -webkit-tap-highlight-color: transparent; }

  /* Native snapping can't be slowed down and feels abrupt under a finger, so
     touch screens use the eased snapping in main.js instead. */
  html { scroll-snap-type: none; }
}

/* Phones held sideways: a slimmer header leaves room for the content. */
@media (max-height: 500px) {
  :root { --header: 56px; }
  .wordmark { font-size: 24px; }
}

@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(3) { border-left: 0; padding-left: 0; }
  .step:nth-child(n + 3) { margin-top: 40px; border-top: 1px solid var(--line); }
  .quote-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; z-index: 2; }
  .nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    background: var(--ink);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--ease), visibility 0.4s;
  }
  .nav a:not(.btn) { font: 400 36px/1 var(--font); }
  .nav .btn { margin-top: 12px; }
  .nav-open .nav { opacity: 1; visibility: visible; }
  .nav-open { overflow: hidden; }

  .faq-grid { grid-template-columns: 1fr; }
  .window { height: 38vh; }
}

/* Portrait tablets keep two columns; only phones stack them. */
@media (max-width: 700px) {
  .concept-grid,
  .craft-grid { grid-template-columns: 1fr; }
  .band-points { grid-template-columns: 1fr; }
}

/* Upright screens: the photo fills the whole screen like on desktop, which on
   a tall screen shows only part of the 16:9 hallway. Alternate which part —
   the left wall on one band, the right wall on the next — so scrolling down
   walks past both sides of the gallery. (The only divs in <main> are bands.) */
@media (orientation: portrait) {
  .window:nth-of-type(odd)  .window-image { background-position: left center; }
  .window:nth-of-type(even) .window-image { background-position: right center; }
}

@media (max-width: 560px) {
  .eyebrow,
  .field label { font-size: 12px; }

  /* Quote form, compact so the whole box (with its buttons) fits one phone
     screen. The step bar names each step, so the legends are hidden visually. */
  .quote-form,
  .quote-success { padding: 20px 16px; }
  .form-steps { margin-bottom: 16px; }
  .form-legend {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .field { margin-bottom: 16px; }
  .field input,
  .field select { padding: 8px 0; font-size: 17px; }
  .field textarea { min-height: 96px; }

  /* Size cards: three per row, smaller picture above the name. */
  .sizes {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 16px;
  }
  .size-card {
    grid-template-columns: 1fr;
    align-content: start;
    row-gap: 2px;
    padding: 8px 10px;
  }
  .size-shape { grid-row: auto; height: 32px; margin-bottom: 4px; }
  .size-shape::before,
  .size-shape::after { transform: scale(0.66); transform-origin: left bottom; }
  .size-name { font-size: 16px; }
  .size-dims { font-size: 11px; line-height: 1.3; }

  .field-row { grid-template-columns: 1fr; gap: 0; }
  .field-row .field { margin-bottom: 16px; }
  .custom-size { grid-template-columns: 1fr auto 1fr 64px; gap: 10px; margin-top: 12px; }
  .medium-row { gap: 12px; }
  .medium-row .check { margin: 0; }
  .dropzone { padding: 24px 16px; }
  .steps { grid-template-columns: 1fr; }
  .step,
  .step + .step { padding-left: 0; border-left: 0; }
  .step + .step { margin-top: 40px; border-top: 1px solid var(--line); }
  .faq details p { padding-right: 0; }
  .form-footer { gap: 16px; padding-top: 20px; }
  .form-footer .btn { min-width: 0; flex: 1; min-height: 48px; padding: 0 16px; }
  .medium { grid-template-columns: 44px 1fr; gap: 20px; }
  .medium-icon { width: 40px; height: 40px; }
}

/* Short laptop and landscape tablet screens: keep the quote screen within one viewport. The step
   indicator already names each step, so the legends are hidden visually only. */
@media (min-width: 901px) and (max-height: 820px) {
  .quote {
    padding-top: calc(var(--header) + 24px);
    padding-bottom: 24px;
  }
  .form-legend {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
