/* ==========================================================================
   Glo Up Niles — Editorial Organic
   Magazine-cover energy. Paper texture, asymmetric grid, serif drama.
   ========================================================================== */

@layer reset, tokens, base, layout, components, motion;

/* Reset -------------------------------------------------------------- */
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html, body { margin: 0; padding: 0; }
  img, svg, iframe { display: block; max-width: 100%; }
  button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
  input, textarea { font: inherit; color: inherit; }
  a { color: inherit; text-decoration: none; }
  ol, ul { list-style: none; margin: 0; padding: 0; }
  address { font-style: normal; }
}

/* Tokens ------------------------------------------------------------- */
@layer tokens {
  :root {
    /* Palette — deeper and warmer than spec brand tokens for editorial contrast */
    --paper:     #faf6f0;
    --paper-2:   #f4ece0;
    --cream:     #efe5d5;
    --sand:      #d4ba97;
    --sand-deep: #b8a085;
    --terra:     #b55d3f;
    --terra-ink: #8c4529;
    --blush:     #e4aa9a;
    --espresso:  #2c1f17;
    --ink:       #1a1613;
    --rule:      #cdbfa7;
    --rule-soft: #e2d6c0;
    --muted:     #7d7062;

    /* Type */
    --serif: "Fraunces", "Times New Roman", serif;
    --sans:  "Jost", system-ui, -apple-system, sans-serif;
    --mono:  "JetBrains Mono", ui-monospace, monospace;

    /* Geometry */
    --gutter: clamp(20px, 4.5vw, 72px);
    --maxw: 1280px;
    --radius: 0px;  /* editorial = hard corners; pill buttons only */
    --hairline: 1px solid var(--rule);
    --hairline-soft: 1px solid var(--rule-soft);

    /* Easing */
    --ease-out: cubic-bezier(.16,.84,.32,1);
    --ease-in-out: cubic-bezier(.7,0,.3,1);
  }
}

/* Base --------------------------------------------------------------- */
@layer base {
  body {
    font-family: var(--sans);
    font-weight: 400;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
  }

  h1, h2, h3, h4 {
    font-family: var(--serif);
    font-weight: 400;
    font-variation-settings: "opsz" 144;
    color: var(--espresso);
    margin: 0;
    letter-spacing: -0.015em;
    line-height: 1.02;
  }

  em, .italic {
    font-style: italic;
    font-variation-settings: "opsz" 144;
  }

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

  /* Grain overlay — subtle paper texture */
  .grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1000;
    opacity: 0.4;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' seed='4'/><feColorMatrix values='0 0 0 0 0.1  0 0 0 0 0.08  0 0 0 0 0.05  0 0 0 0.14 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
    background-size: 200px 200px;
  }

  /* Typographic scales */
  .display {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(72px, 12vw, 188px);
    line-height: 0.92;
    letter-spacing: -0.035em;
    color: var(--espresso);
  }
  .display .line {
    display: block;
  }
  .display .italic {
    font-style: italic;
    color: var(--terra);
    font-weight: 300;
    padding-left: 0.15em;
    font-size: 1.1em;
    line-height: 0.85;
  }
  .display .period { color: var(--terra); }

  .display-2 {
    font-family: var(--serif);
    font-size: clamp(44px, 7vw, 100px);
    line-height: 0.98;
    letter-spacing: -0.025em;
    color: var(--espresso);
  }
  .display-2 em { color: var(--terra); font-weight: 300; }

  .display-3 {
    font-family: var(--serif);
    font-size: clamp(32px, 4vw, 56px);
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--espresso);
  }
  .display-3 em { color: var(--terra); font-weight: 300; }

  .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--espresso);
    margin: 0 0 20px;
  }
  .kicker-rule {
    width: 40px;
    height: 1px;
    background: var(--espresso);
    display: inline-block;
  }

  .lede, .lede-2 {
    font-family: var(--serif);
    font-size: clamp(18px, 1.8vw, 23px);
    font-weight: 300;
    line-height: 1.45;
    color: var(--espresso);
    max-width: 48ch;
    font-variation-settings: "opsz" 28;
  }
  .lede-2 { margin-top: 20px; color: var(--muted); }
}

/* Buttons ------------------------------------------------------------ */
@layer components {
  .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 28px 17px;
    background: var(--espresso);
    color: var(--paper);
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 999px;
    transition: background 0.3s var(--ease-out), color 0.3s var(--ease-out), transform 0.2s var(--ease-out);
    position: relative;
    overflow: hidden;
  }
  .btn:hover {
    background: var(--terra);
    color: var(--paper);
  }
  .btn:hover .btn-arrow { transform: translateX(4px); }
  .btn-arrow {
    display: inline-block;
    transition: transform 0.3s var(--ease-out);
  }
  .btn:active { transform: translateY(1px); }
  .btn:disabled { opacity: 0.55; cursor: not-allowed; }

  .btn-quiet {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--espresso);
    border-bottom: 1px solid var(--espresso);
    padding-bottom: 4px;
    transition: color 0.2s, border-color 0.2s;
  }
  .btn-quiet:hover { color: var(--terra); border-color: var(--terra); }
}

/* Wordmark / logo ---------------------------------------------------- */
@layer components {
  .wordmark {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: var(--espresso);
  }
  .wordmark-serif {
    font-family: var(--serif);
    font-weight: 400;
    font-size: 22px;
    letter-spacing: -0.01em;
    font-variation-settings: "opsz" 144;
  }
  .wordmark-rule {
    width: 24px;
    height: 1px;
    background: var(--espresso);
    display: inline-block;
  }
  .wordmark-locker {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 400;
    font-size: 22px;
    color: var(--terra);
    font-variation-settings: "opsz" 144;
  }

  /* Top bar ---------------------------------------------------------- */
  .topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px var(--gutter);
    background: rgba(250, 246, 240, 0.82);
    backdrop-filter: blur(14px) saturate(120%);
    -webkit-backdrop-filter: blur(14px) saturate(120%);
    border-bottom: var(--hairline-soft);
  }
  .topbar-meta {
    display: flex;
    align-items: center;
    gap: 28px;
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.12em;
    color: var(--espresso);
  }
  .topbar .issue {
    text-transform: uppercase;
  }
  .topbar .issue em { color: var(--terra); font-style: italic; font-family: var(--serif); text-transform: none; }
  .topbar .phone {
    font-family: var(--mono);
    font-weight: 500;
    letter-spacing: 0.08em;
    transition: color 0.2s;
  }
  .topbar .phone:hover { color: var(--terra); }
}

/* HERO --------------------------------------------------------------- */
@layer layout {
  .hero {
    padding: clamp(60px, 9vw, 140px) var(--gutter) clamp(80px, 10vw, 160px);
    position: relative;
  }
  .hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(24px, 4vw, 64px);
    max-width: var(--maxw);
    margin: 0 auto;
    align-items: start;
  }
  .hero-copy {
    padding-top: 12px;
  }
  .hero-copy .eyebrow { margin-bottom: 32px; }

  .hero-copy .lede {
    margin: 40px 0 44px;
    max-width: 38ch;
    font-size: clamp(17px, 1.4vw, 21px);
  }
  .hero-cta {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
  }

  .hero-photo {
    position: relative;
    align-self: end;
    padding-top: 40px;
  }
  .photo-frame {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    position: relative;
    background: var(--sand);
    border: 1px solid var(--rule);
  }
  .photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.05) contrast(1.02);
    transition: transform 1.2s var(--ease-out);
  }
  .photo-frame:hover img { transform: scale(1.03); }
  .photo-caption {
    position: absolute;
    bottom: 14px;
    left: 14px;
    right: 14px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    color: var(--paper);
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-shadow: 0 1px 12px rgba(0,0,0,0.55);
  }
  .photo-caption .caption-num { font-family: var(--serif); font-size: 24px; font-style: italic; letter-spacing: 0; }

  .hero-stamp {
    position: absolute;
    top: -34px;
    right: -24px;
    width: 148px;
    height: 148px;
    border: 1px solid var(--espresso);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--espresso);
    background: var(--paper);
    transform: rotate(-9deg);
    box-shadow: 0 12px 28px rgba(44, 31, 23, 0.14);
  }
  .hero-stamp::after {
    content: "";
    position: absolute;
    inset: 6px;
    border: 1px dashed var(--rule);
    border-radius: 50%;
    pointer-events: none;
  }
  .hero-stamp .big {
    font-family: var(--serif);
    font-style: italic;
    font-size: 42px;
    letter-spacing: -0.02em;
    color: var(--terra);
    line-height: 1;
    margin: 6px 0;
    font-weight: 400;
  }

  @media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-photo { max-width: 400px; margin-top: 40px; }
    .hero-stamp { right: -14px; top: -28px; width: 110px; height: 110px; }
    .hero-stamp .big { font-size: 28px; }
  }
}

/* MARQUEE TRUST ------------------------------------------------------ */
@layer components {
  .trust {
    background: var(--espresso);
    color: var(--paper);
    border-top: 1px solid var(--espresso);
    border-bottom: 1px solid var(--espresso);
    overflow: hidden;
    padding: 22px 0;
  }
  .marquee { overflow: hidden; }
  .marquee-track {
    display: inline-flex;
    gap: 36px;
    align-items: center;
    font-family: var(--serif);
    font-weight: 300;
    font-size: clamp(18px, 2vw, 26px);
    letter-spacing: -0.01em;
    color: var(--paper);
    white-space: nowrap;
    animation: marquee 30s linear infinite;
  }
  .marquee-track em { font-style: italic; color: var(--blush); font-weight: 300; padding: 0 4px; }
  .marquee-track .dot { color: var(--terra); font-size: 24px; }
  @keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
  }
}

/* BOOKING ------------------------------------------------------------ */
@layer layout {
  .booking {
    padding: clamp(80px, 10vw, 160px) var(--gutter);
    background: var(--paper-2);
    position: relative;
  }
  .booking::before,
  .booking::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--rule);
  }
  .booking::before { top: 0; }
  .booking::after  { bottom: 0; }

  .section-head {
    max-width: var(--maxw);
    margin: 0 auto clamp(48px, 6vw, 80px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(20px, 3vw, 48px);
    align-items: end;
  }
  .section-head .eyebrow { grid-column: 1 / -1; }
  .section-head .display-2 { grid-column: 1; }
  .section-head .lede-2 { grid-column: 2; }

  @media (max-width: 800px) {
    .section-head { grid-template-columns: 1fr; }
    .section-head .lede-2 { grid-column: 1; }
  }

  .booking-card {
    max-width: var(--maxw);
    margin: 0 auto;
    position: relative;
  }
}

/* Progress ----------------------------------------------------------- */
@layer components {
  .progress {
    margin-bottom: clamp(24px, 3vw, 40px);
    position: sticky;
    top: 72px;
    z-index: 20;
    background: var(--paper-2);
    padding: 20px 0 18px;
    border-bottom: 1px solid var(--rule-soft);
  }
  .progress ol {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    position: relative;
    z-index: 2;
  }
  .progress li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    transition: color 0.3s var(--ease-out);
    text-align: center;
  }
  .progress li.active, .progress li.done { color: var(--espresso); }
  .progress .num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--rule);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--muted);
    background: var(--paper);
    transition: all 0.3s var(--ease-out);
  }
  .progress li.active .num {
    background: var(--espresso);
    border-color: var(--espresso);
    color: var(--paper);
  }
  .progress li.done .num {
    background: var(--terra);
    border-color: var(--terra);
    color: var(--paper);
  }
  .progress .lbl {
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: inherit;
  }
  .progress-rail {
    position: absolute;
    top: 18px;
    left: 12.5%;
    right: 12.5%;
    height: 1px;
    background: var(--rule);
    z-index: 1;
  }
  .progress-fill {
    position: absolute;
    inset: 0 auto 0 0;
    background: var(--terra);
    width: 0%;
    transition: width 0.5s var(--ease-out);
  }
  @media (max-width: 640px) {
    .progress .lbl { font-size: 10px; letter-spacing: 0.06em; }
    .progress .num { width: 30px; height: 30px; font-size: 11px; }
    .progress-rail { top: 15px; }
  }
}

/* Step content — "multi-page in a sense"
   Each step occupies the full booking section with its own editorial heading. */
@layer components {
  .booking-step {
    padding-top: clamp(32px, 4vw, 56px);
    animation: stepIn 0.5s var(--ease-out) both;
  }
  @keyframes stepIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .step-head {
    display: flex;
    align-items: baseline;
    gap: 28px;
    margin-bottom: clamp(32px, 4vw, 56px);
    flex-wrap: wrap;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--rule);
  }
  .step-title {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(40px, 6vw, 84px);
    color: var(--espresso);
    margin: 0;
    letter-spacing: -0.03em;
    line-height: 0.98;
    flex: 1 1 auto;
  }
  .step-count {
    font-family: var(--mono);
    font-size: clamp(12px, 1vw, 14px);
    letter-spacing: 0.22em;
    color: var(--terra);
    font-weight: 500;
    text-transform: uppercase;
    display: inline-block;
    margin-right: 12px;
    vertical-align: baseline;
  }
  /* First step doesn't need a step-head wrapper, but ensure title alignment */
  .booking-step[data-step="1"] .step-title {
    margin-bottom: clamp(32px, 4vw, 56px);
    padding-bottom: 24px;
    border-bottom: 1px solid var(--rule);
  }
  .back {
    font-family: var(--sans);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    padding: 10px 16px;
    border: 1px solid var(--rule);
    border-radius: 999px;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
    font-weight: 500;
    align-self: center;
  }
  .back:hover { color: var(--espresso); border-color: var(--espresso); background: var(--cream); }
}

/* Service list ------------------------------------------------------- */
@layer components {
  .service-list {
    display: grid;
    gap: 0;
    border-top: 1px solid var(--rule);
  }
  .service-tile {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: clamp(16px, 3vw, 32px);
    align-items: baseline;
    padding: clamp(20px, 2.5vw, 28px) clamp(8px, 2vw, 24px);
    border-bottom: 1px solid var(--rule);
    text-align: left;
    transition: background 0.3s var(--ease-out), color 0.3s var(--ease-out);
    position: relative;
    cursor: pointer;
    color: var(--espresso);
  }
  .service-tile:hover {
    background: var(--cream);
  }
  .service-tile.selected {
    background: var(--espresso);
    color: var(--paper);
  }
  .service-tile.selected .tile-price,
  .service-tile.selected .tile-dur { color: var(--blush); }
  .service-tile.selected .tile-num { color: var(--blush); }

  .tile-num {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.16em;
    color: var(--muted);
    width: 44px;
    align-self: center;
  }
  .tile-name {
    font-family: var(--serif);
    font-size: clamp(22px, 2.6vw, 34px);
    font-weight: 400;
    letter-spacing: -0.015em;
    line-height: 1.1;
  }
  .tile-price {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(28px, 3vw, 42px);
    color: var(--terra);
    letter-spacing: -0.02em;
  }
  .tile-dur {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.12em;
    color: var(--muted);
    text-transform: uppercase;
    min-width: 64px;
    text-align: right;
  }
  @media (max-width: 600px) {
    .service-tile {
      grid-template-columns: auto 1fr auto;
      grid-template-rows: auto auto;
    }
    .tile-dur { grid-column: 3; grid-row: 2; }
    .tile-price { grid-column: 2 / -1; grid-row: 2; text-align: left; }
    .tile-name { grid-column: 2; grid-row: 1; }
    .tile-num { grid-row: 1; }
  }
}

/* Calendar + Slots --------------------------------------------------- */
@layer components {
  .datetime-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(28px, 3vw, 48px);
    align-items: start;
  }
  @media (max-width: 820px) {
    .datetime-grid { grid-template-columns: 1fr; }
  }

  .calendar {
    border: 1px solid var(--rule);
    padding: 22px;
    background: var(--paper);
  }
  .cal-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 18px;
  }
  .cal-head h4 {
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 400;
    margin: 0;
    letter-spacing: -0.01em;
  }
  .cal-head h4 em { color: var(--terra); }
  .cal-nav {
    width: 32px;
    height: 32px;
    border: 1px solid var(--rule);
    color: var(--espresso);
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
  }
  .cal-nav:hover:not(:disabled) { border-color: var(--terra); color: var(--terra); }
  .cal-nav:disabled { opacity: 0.3; cursor: not-allowed; }

  .cal-controls { display: inline-flex; gap: 8px; }

  .cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
  }
  .cal-dow {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    text-align: center;
    padding: 10px 0 6px;
  }
  .cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--mono);
    font-size: 13px;
    color: var(--espresso);
    background: transparent;
    transition: background 0.2s, color 0.2s;
    border: 1px solid transparent;
  }
  .cal-day.empty { visibility: hidden; }
  .cal-day.disabled { color: var(--rule); cursor: not-allowed; }
  .cal-day:hover:not(.disabled):not(.selected) {
    background: var(--cream);
  }
  .cal-day.selected {
    background: var(--espresso);
    color: var(--paper);
  }
  .cal-day.today:not(.selected) { border-color: var(--terra); color: var(--terra); }

  .slots { padding-top: 4px; }
  .slots-label {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 16px;
  }
  .slots-label strong { color: var(--espresso); font-weight: 500; }
  .slot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px;
  }
  .slot {
    padding: 12px 16px;
    border: 1px solid var(--rule);
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    color: var(--espresso);
    background: var(--paper);
    transition: all 0.2s var(--ease-out);
    text-align: center;
  }
  .slot:hover { border-color: var(--terra); color: var(--terra); }
  .slot.selected {
    background: var(--espresso);
    border-color: var(--espresso);
    color: var(--paper);
  }

  .slots-empty {
    font-family: var(--serif);
    font-style: italic;
    color: var(--muted);
    font-size: 16px;
  }
}

/* Form --------------------------------------------------------------- */
@layer components {
  .details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
  }
  .field {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .field-wide { grid-column: 1 / -1; }
  .field-label {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .field-label em { text-transform: none; letter-spacing: 0; font-family: var(--serif); font-style: italic; color: var(--muted); letter-spacing: 0; margin-left: 6px; }
  .field input, .field textarea {
    font-family: var(--sans);
    font-size: 16px;
    font-weight: 400;
    padding: 14px 16px;
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: 4px;
    outline: none;
    color: var(--espresso);
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  }
  .field input::placeholder,
  .field textarea::placeholder {
    color: var(--muted);
    opacity: 0.7;
  }
  .field input:focus,
  .field textarea:focus {
    border-color: var(--espresso);
    background: var(--paper);
    box-shadow: 0 0 0 3px rgba(44, 31, 23, 0.06);
  }
  .field textarea { resize: vertical; min-height: 80px; }
  .err {
    color: var(--terra-ink);
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    min-height: 14px;
  }
  .check {
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }
  .check input[type="checkbox"] {
    width: 18px; height: 18px;
    accent-color: var(--terra);
  }
  .check span {
    font-family: var(--serif);
    font-style: italic;
    font-size: 16px;
    color: var(--espresso);
  }
  .actions { margin-top: 16px; align-items: flex-start; }
  .actions .btn { align-self: flex-start; }
  @media (max-width: 600px) {
    .details { grid-template-columns: 1fr; }
  }
}

/* Summary / confirm -------------------------------------------------- */
@layer components {
  .summary {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px 28px;
    padding: 28px 0;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    margin: 0 0 28px;
  }
  .summary dt {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--muted);
    padding-top: 8px;
  }
  .summary dd {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(18px, 1.7vw, 22px);
    color: var(--espresso);
    letter-spacing: -0.01em;
  }
  .summary dd em { color: var(--terra); }
  .confirm-actions {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
  }
  .fine {
    font-family: var(--sans);
    font-size: 12px;
    letter-spacing: 0.04em;
    color: var(--muted);
    margin: 0;
    max-width: 40ch;
  }
}

/* Success ------------------------------------------------------------ */
@layer components {
  .booking-step.success {
    text-align: center;
    padding: clamp(40px, 5vw, 80px) 0;
  }
  .success-eyebrow {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--terra);
    margin-bottom: 20px;
  }
  .success-line {
    font-family: var(--serif);
    font-size: clamp(18px, 2vw, 22px);
    color: var(--muted);
    margin: 20px 0 32px;
  }
}

/* PREP --------------------------------------------------------------- */
@layer layout {
  .prep {
    padding: clamp(80px, 10vw, 160px) var(--gutter);
    background: var(--paper);
  }
  .prep-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(36px, 6vw, 100px);
    align-items: start;
  }
  .prep-left { position: sticky; top: 100px; }
  .prep-list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--rule);
  }
  .prep-list li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 28px;
    align-items: baseline;
    padding: clamp(20px, 2vw, 32px) 0;
    border-bottom: 1px solid var(--rule);
  }
  .prep-num {
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(32px, 4vw, 56px);
    color: var(--terra);
    font-weight: 300;
    line-height: 1;
    letter-spacing: -0.02em;
  }
  .prep-list li div {
    font-family: var(--serif);
    font-size: clamp(17px, 1.6vw, 22px);
    font-weight: 300;
    color: var(--espresso);
    line-height: 1.4;
    letter-spacing: -0.005em;
  }
  .prep-list li div strong {
    font-weight: 500;
  }
  @media (max-width: 800px) {
    .prep-inner { grid-template-columns: 1fr; }
    .prep-left { position: static; }
  }
}

/* LOCATION ----------------------------------------------------------- */
@layer layout {
  .location {
    padding: clamp(80px, 10vw, 160px) var(--gutter);
    background: var(--cream);
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    position: relative;
  }
  .location-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(36px, 6vw, 100px);
    align-items: center;
  }
  .location-copy address { margin: 24px 0 0; font-family: var(--serif); font-size: 19px; line-height: 1.5; color: var(--espresso); }
  .location-copy address p { margin: 0; }
  .location-copy .hours {
    margin: 28px 0 0;
    font-family: var(--serif);
    font-style: italic;
    font-size: 18px;
    color: var(--muted);
    line-height: 1.5;
  }
  .location-copy .contact {
    margin: 28px 0 36px;
    font-family: var(--sans);
    font-size: 14px;
    letter-spacing: 0.02em;
    color: var(--espresso);
  }
  .location-copy .contact em {
    font-family: var(--serif);
    color: var(--terra);
    border-bottom: 1px solid var(--terra);
    padding-bottom: 1px;
  }
  .location-visual {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
    grid-template-rows: auto auto;
    gap: 16px;
    position: relative;
  }
  .location-photo {
    grid-column: 1;
    grid-row: 1 / span 2;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border: 1px solid var(--rule);
    align-self: center;
  }
  .location-photo img {
    width: 100%; height: 100%; object-fit: cover;
  }
  .map-frame {
    grid-column: 2;
    grid-row: 1 / span 2;
    aspect-ratio: 4 / 5;
    border: 1px solid var(--rule);
    overflow: hidden;
    background: var(--sand);
    align-self: center;
  }
  .map-frame iframe { width: 100%; height: 100%; border: 0; filter: saturate(0.85) contrast(1.02); }

  @media (max-width: 900px) {
    .location-inner { grid-template-columns: 1fr; }
    .location-visual { grid-template-columns: 1fr 1fr; }
    .location-photo { aspect-ratio: 1; }
    .map-frame { aspect-ratio: 1; }
  }
  @media (max-width: 520px) {
    .location-visual { grid-template-columns: 1fr; }
    .location-photo, .map-frame { grid-column: 1; grid-row: auto; }
  }
}

/* FOOTER ------------------------------------------------------------- */
@layer layout {
  .footer {
    background: var(--espresso);
    color: var(--paper);
    padding: clamp(60px, 8vw, 120px) var(--gutter) 40px;
    border-top: 1px solid var(--espresso);
  }
  .footer-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 2fr) minmax(0, 2fr);
    gap: clamp(28px, 4vw, 60px);
    align-items: start;
  }
  .footer .wordmark { color: var(--paper); }
  .footer .wordmark-rule { background: var(--paper); }
  .footer .wordmark-serif { color: var(--paper); font-size: 28px; }
  .footer .wordmark-locker { color: var(--blush); font-size: 28px; }

  .footer-tag {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 300;
    font-size: 20px;
    color: var(--sand);
    margin: 24px 0 0;
    max-width: 20ch;
    line-height: 1.4;
  }
  .footer-col p { margin: 0 0 6px; font-family: var(--sans); font-size: 14px; color: var(--sand); letter-spacing: 0.02em; }
  .footer-col .eyebrow { color: var(--blush); margin-bottom: 16px; }
  .footer-col a { color: var(--paper); transition: color 0.2s; }
  .footer-col a:hover { color: var(--blush); }

  .footer-copy { align-self: end; }
  .footer-copy .copy { color: var(--muted); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; font-family: var(--mono); }
  .footer-copy .credit { color: var(--sand); font-family: var(--serif); font-style: italic; font-size: 14px; margin-top: 10px; }
  .footer-copy .credit a { color: var(--blush); border-bottom: 1px solid var(--blush); }

  @media (max-width: 900px) {
    .footer-inner { grid-template-columns: 1fr 1fr; }
  }
  @media (max-width: 520px) {
    .footer-inner { grid-template-columns: 1fr; }
  }
}

/* MOTION ------------------------------------------------------------- */
@layer motion {
  .reveal {
    opacity: 0;
    transform: translateY(22px);
    filter: blur(6px);
    animation: reveal 1.1s var(--ease-out) forwards;
    animation-delay: var(--d, 0s);
  }
  @keyframes reveal {
    to {
      opacity: 1;
      transform: translateY(0);
      filter: blur(0);
    }
  }
  @media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; filter: none; animation: none; }
    .marquee-track { animation: none; }
  }
}
