/* ===========================================================================
   Rosa Glasshouse Tagaytay
   ---------------------------------------------------------------------------
   Direction taken from the Rosa mark itself: black script on an ivory plate,
   inside a gold frame. So the page is ivory, the type is near-black, and gold
   appears ONLY as a frame — hairlines, rules and the eyebrow marks. Never a
   gold button; the logo does not fill with gold either.

   Green stays, but demoted to a job rather than a brand colour: it is the
   signal for "this block is free". A garden tint on a glasshouse in Tagaytay.
   =========================================================================== */

/* ---------- tokens ---------- */
:root{
  --paper:      #F4F1E9;   /* the logo plate — light sections       */
  --paper-2:    #EBE6DA;   /* sand, for recessed panels             */
  --paper-3:    #DCD5C4;   /* deeper sand, rules                    */
  --ink:        #14120E;   /* the logo script — text and dark panels */
  --ink-2:      #221F18;
  --ink-soft:   #6A6558;   /* secondary text                        */

  /* the frame */
  --gold:       #B08A3C;   /* mid gold, legible on ivory            */
  --gold-lo:    #8C6C2A;   /* deep gold, for text on light          */
  --gold-hi:    #E7CE8D;   /* highlight, for text on dark           */

  /* semantics, not brand */
  --verdant:    #4A6B4F;   /* available                             */
  --sage:       #A9BCA6;   /* leaf tint on dark                     */
  --clay:       #9A7A44;   /* on hold                               */
  --rose:       #9B5044;   /* booked                                */
  --white:      #FFFFFF;

  /* kept so older rules resolve */
  --brass:      #B08A3C;
  --verdant-lo: #5C7D61;

  /* v2: the dark ground. Sections alternate ink -> paper -> ink so the
     animated background has somewhere to show and the photographs have
     something to sit against. */
  --ground:     #12100C;
  --ground-2:   #1A1712;
  --ground-3:   #241F18;
  --on-ground:  #EFEADF;
  --on-ground-soft: rgba(239,234,223,.72);

  --shell: min(1240px, 100% - 2.5rem);
  --rule:  1px solid var(--paper-3);
  --goldline: linear-gradient(90deg, var(--gold-lo), var(--gold-hi), var(--gold-lo));

  --ease: cubic-bezier(.22,.61,.36,1);
  --slow: .9s var(--ease);
  --med:  .45s var(--ease);
  --fast: .22s var(--ease);

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body:    "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

/* ---------- reset ---------- */
*,*::before,*::after{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:var(--font-body);
  font-size:clamp(15px,.55vw + 13.4px,17px);
  line-height:1.7;
  font-feature-settings:"kern" 1;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img,video,canvas,svg{ display:block; max-width:100%; }
img,video{ height:auto; }
a{ color:inherit; }
button{ font:inherit; color:inherit; }
h1,h2,h3,h4{ margin:0; font-family:var(--font-display); font-weight:400; letter-spacing:-.015em; }
p{ margin:0 0 1em; }
p:last-child{ margin-bottom:0; }

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

/* ---------- type scale ---------- */
.display{ font-size:clamp(2.6rem,7.2vw,5.4rem); line-height:.98; font-variation-settings:"SOFT" 30,"WONK" 0,"opsz" 120; }
.h2{ font-size:clamp(1.9rem,3.6vw,3.1rem); line-height:1.08; }
.h3{ font-size:clamp(1.3rem,1.9vw,1.65rem); line-height:1.2; }
.lede{ font-size:clamp(1.02rem,1.05vw,1.2rem); line-height:1.65; color:var(--ink-soft); }

.eyebrow{
  font-family:var(--font-mono);
  font-size:.66rem;
  letter-spacing:.3em;
  text-transform:uppercase;
  color:var(--gold-lo);
  margin:0 0 1rem;
  display:flex;
  align-items:center;
  gap:.85rem;
}
.eyebrow::before{
  content:"";
  width:2rem; height:1px;
  background:var(--goldline);
  flex:none;
}
.eyebrow--light{ color:var(--gold-hi); }
.eyebrow--light::before{ background:var(--goldline); }

.fig{ font-family:var(--font-mono); font-variant-numeric:tabular-nums; letter-spacing:-.02em; }

/* ---------- layout ---------- */
.shell{ width:var(--shell); margin-inline:auto; }
.section{ padding:clamp(4.5rem,9vw,8.5rem) 0; }
.section--tight{ padding:clamp(3rem,6vw,5rem) 0; }
.section--ink{ background:var(--ink); color:var(--paper); }
.section--ink .lede{ color:var(--sage); }

/* ===========================================================================
   NAV
   =========================================================================== */
.nav{
  position:fixed; inset:0 0 auto 0; z-index:60;
  display:flex; align-items:center; justify-content:space-between;
  gap:1rem;
  padding:.9rem clamp(1.25rem,3vw,2.5rem);
  transition:background var(--med), backdrop-filter var(--med), border-color var(--med);
  border-bottom:1px solid transparent;
}
.nav.is-stuck{
  background:color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter:blur(14px) saturate(1.2);
  -webkit-backdrop-filter:blur(14px) saturate(1.2);
  border-bottom-color:var(--paper-3);
}
.nav__brand{
  font-family:var(--font-display);
  font-size:1.22rem; letter-spacing:.01em;
  text-decoration:none; color:var(--paper);
  display:flex; align-items:baseline; gap:.6rem;
  transition:color var(--med);
}
.nav.is-stuck .nav__brand{ color:var(--ink); }
.nav__brand small{
  font-family:var(--font-mono); font-size:.56rem;
  letter-spacing:.26em; text-transform:uppercase;
  opacity:.72;
}
.nav__links{ display:flex; align-items:center; gap:clamp(1rem,2vw,2rem); }
.nav__links a{
  text-decoration:none; color:var(--paper);
  font-size:.83rem; letter-spacing:.06em;
  opacity:.86; transition:opacity var(--fast), color var(--med);
}
.nav.is-stuck .nav__links a{ color:var(--ink); }
.nav__links a:hover{ opacity:1; }
.nav__links a.nav__cta{ opacity:1; white-space:nowrap; }

/* ===========================================================================
   BUTTONS
   =========================================================================== */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:.7rem;
  padding:1rem 1.9rem;
  border:1px solid var(--ink);
  background:var(--ink); color:var(--paper);
  font-family:var(--font-mono);
  font-size:.72rem; letter-spacing:.2em; text-transform:uppercase;
  text-decoration:none; cursor:pointer;
  border-radius:2px;
  transition:transform var(--fast), background var(--fast), box-shadow var(--fast), opacity var(--fast);
}
.btn:hover{ background:var(--ink-2); border-color:var(--gold); transform:translateY(-2px); box-shadow:0 10px 26px -14px rgba(20,18,14,.55); }
.btn:active{ transform:translateY(0); }
.btn[disabled], .btn.is-disabled{ opacity:.4; pointer-events:none; }

.btn--light{ background:var(--paper); color:var(--ink); border-color:var(--paper); }
.btn--light:hover{ background:var(--white); border-color:var(--gold-hi); color:var(--ink); }
.btn--ghost{ background:transparent; color:var(--ink); border-color:var(--paper-3); }
.btn--ghost:hover{ background:var(--ink); color:var(--paper); border-color:var(--ink); }
.btn--onDark{ background:transparent; color:var(--paper); border-color:rgba(247,245,239,.4); }
.btn--onDark:hover{ background:var(--paper); color:var(--ink); border-color:var(--paper); }
.btn--danger{ background:transparent; color:var(--rose); border-color:var(--rose); }
.btn--danger:hover{ background:var(--rose); color:var(--white); border-color:var(--rose); }
.btn--sm{ padding:.7rem 1.15rem; font-size:.64rem; }
.btn--block{ width:100%; }

/* ===========================================================================
   HERO — the thesis: one glasshouse, three blocks a day
   =========================================================================== */
.hero{
  position:relative;
  min-height:100svh;
  display:flex; align-items:center;
  padding:7rem 0 3.5rem;
  overflow:hidden;
  background:var(--ink);
}
.hero__photo{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:cover; object-position:center 58%;
  opacity:.92;
}
.hero__scrim{
  position:absolute; inset:0;
  background:
    linear-gradient(100deg, rgba(12,20,16,.94) 0%, rgba(12,20,16,.78) 34%, rgba(12,20,16,.24) 62%, rgba(12,20,16,.5) 100%),
    linear-gradient(to top, rgba(12,20,16,.85), transparent 42%);
}
/* the three.js vault sits between the photograph and the type */
#vault{
  position:absolute; inset:0;
  width:100%; height:100%;
  opacity:0;
  mix-blend-mode:screen;
  transition:opacity 1.8s var(--ease);
  pointer-events:none;
}
#vault.is-ready{ opacity:.72; }

.hero__inner{
  position:relative; z-index:2;
  display:grid;
  grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);
  gap:clamp(2rem,5vw,4.5rem);
  align-items:center;
  color:var(--paper);
}
.hero h1{ font-variation-settings:"SOFT" 40,"WONK" 1,"opsz" 144; }
.hero h1 em{
  font-style:italic;
  color:var(--sage);
  font-variation-settings:"SOFT" 60,"WONK" 1,"opsz" 144;
}
.hero__lede{
  max-width:38ch; margin-top:1.5rem;
  color:rgba(247,245,239,.82);
  font-size:clamp(1rem,1.05vw,1.16rem);
}
.hero__actions{ display:flex; flex-wrap:wrap; gap:.85rem; margin-top:2.2rem; }

/* the three-block strip: this IS the product, so it opens the page */
.hero__blocks{
  display:flex; flex-wrap:wrap; gap:0;
  margin-top:2.8rem;
  border-top:1px solid rgba(176,138,60,.5);
}
.hero__block{
  padding:1rem 1.6rem 0 0; margin-right:1.6rem;
  border-right:1px solid rgba(247,245,239,.14);
}
.hero__block:last-child{ border-right:0; margin-right:0; }
.hero__block b{
  display:block;
  font-family:var(--font-mono); font-size:.94rem; font-weight:500;
  letter-spacing:-.01em; color:var(--paper);
}
.hero__block span{
  display:block; margin-top:.15rem;
  font-family:var(--font-mono); font-size:.6rem;
  letter-spacing:.24em; text-transform:uppercase;
  color:var(--gold-hi);
}

/* the portrait reel, framed rather than cropped */
.reel{
  position:relative;
  width:min(100%,318px);
  margin-inline:auto;
  aspect-ratio:9/16;
  border-radius:3px;
  overflow:hidden;
  border:1px solid rgba(176,138,60,.55);
  box-shadow:0 40px 90px -40px rgba(0,0,0,.85), 0 0 0 7px rgba(244,241,233,.06);
  background:var(--ink-2);
}
.reel video{
  width:100%; height:100%;
  object-fit:cover;
}
.reel__tag{
  position:absolute; left:0; bottom:0; right:0;
  display:flex; align-items:center; gap:.5rem;
  padding:.75rem .9rem;
  background:linear-gradient(to top, rgba(12,20,16,.9), transparent);
  font-family:var(--font-mono); font-size:.58rem;
  letter-spacing:.22em; text-transform:uppercase;
  color:rgba(247,245,239,.9);
}
.reel__dot{
  width:6px; height:6px; border-radius:50%;
  background:var(--gold-hi); flex:none;
}

.scrollcue{
  position:absolute; left:50%; bottom:1.6rem; z-index:3;
  transform:translateX(-50%);
  font-family:var(--font-mono); font-size:.58rem;
  letter-spacing:.26em; text-transform:uppercase;
  color:rgba(247,245,239,.55);
  text-decoration:none;
  display:flex; flex-direction:column; align-items:center; gap:.5rem;
}
.scrollcue::after{
  content:""; width:1px; height:2.2rem;
  background:linear-gradient(to bottom, rgba(247,245,239,.6), transparent);
}

/* ===========================================================================
   INTRO / MEASURE
   =========================================================================== */
.split{
  display:grid;
  grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);
  gap:clamp(2rem,6vw,5rem);
  align-items:start;
}
.measure{ max-width:60ch; }

.spec{
  list-style:none; margin:2.2rem 0 0; padding:0;
  display:grid; gap:0;
  border-top:var(--rule);
}
.section--ink .spec{ border-top-color:rgba(247,245,239,.16); }
.spec li{
  display:grid;
  grid-template-columns:8.5rem minmax(0,1fr);
  gap:1.25rem;
  padding:1.05rem 0;
  border-bottom:var(--rule);
}
.section--ink .spec li{ border-bottom-color:rgba(247,245,239,.16); }
.spec dt, .spec b{
  font-family:var(--font-mono); font-size:.64rem; font-weight:400;
  letter-spacing:.2em; text-transform:uppercase;
  color:var(--gold-lo);
  padding-top:.3rem;
}
.section--ink .spec b{ color:var(--gold-hi); }
.spec span{ color:inherit; }

/* ===========================================================================
   THE BOOKING LEDGER — the signature interaction
   =========================================================================== */
.book{ background:var(--paper-2); }
.ledger{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,.92fr);
  gap:clamp(1.5rem,3vw,2.75rem);
  align-items:start;
  margin-top:2.75rem;
}
.panel{
  background:var(--white);
  border:var(--rule);
  border-radius:3px;
  padding:clamp(1.25rem,2.4vw,1.9rem);
}
.panel__head{
  display:flex; align-items:baseline; justify-content:space-between;
  gap:1rem; margin-bottom:1.25rem;
}
.panel__title{
  font-family:var(--font-mono); font-size:.66rem;
  letter-spacing:.24em; text-transform:uppercase;
  color:var(--ink-soft);
}

/* ---- calendar ---- */
.cal__bar{
  display:flex; align-items:center; justify-content:space-between;
  gap:.5rem; margin-bottom:1rem;
}
.cal__month{ font-family:var(--font-display); font-size:1.4rem; }
.cal__month span{ color:var(--ink-soft); }
.cal__nav{
  display:flex; gap:.35rem;
}
.iconbtn{
  width:2.3rem; height:2.3rem;
  display:grid; place-items:center;
  border:var(--rule); border-radius:2px;
  background:var(--white); cursor:pointer;
  transition:background var(--fast), border-color var(--fast), color var(--fast);
}
.iconbtn:hover:not([disabled]){ background:var(--ink); border-color:var(--ink); color:var(--paper); }
.iconbtn[disabled]{ opacity:.3; cursor:not-allowed; }

.cal__dow{
  display:grid; grid-template-columns:repeat(7,1fr);
  gap:.3rem; margin-bottom:.4rem;
}
.cal__dow span{
  text-align:center;
  font-family:var(--font-mono); font-size:.56rem;
  letter-spacing:.16em; text-transform:uppercase;
  color:var(--ink-soft);
}
.cal__grid{ display:grid; grid-template-columns:repeat(7,1fr); gap:.3rem; }

.day{
  position:relative;
  aspect-ratio:1;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:.22rem;
  border:1px solid transparent;
  border-radius:2px;
  background:transparent;
  cursor:pointer;
  font-family:var(--font-mono); font-size:.84rem;
  color:var(--ink);
  transition:background var(--fast), border-color var(--fast), color var(--fast), transform var(--fast);
}
.day:hover:not(:disabled){ border-color:var(--ink); transform:translateY(-1px); }
.day:disabled{ cursor:not-allowed; color:#BFC5BC; }
.day--blank{ visibility:hidden; }
.day__pips{ display:flex; gap:2px; height:4px; }
.day__pip{ width:4px; height:4px; border-radius:50%; background:var(--verdant); }
.day__pip.is-gone{ background:var(--paper-3); }
.day__bar{
  display:block; width:1.5rem; height:3px;
  border-radius:999px; overflow:hidden;
  background:var(--paper-3);
}
.day__barfill{ display:block; height:100%; background:var(--verdant); border-radius:999px; }
.section--ground .day__bar{ background:rgba(239,234,223,.18); }
.section--ground .day__barfill{ background:var(--verdant-lo); }
.day.is-selected .day__bar{ background:rgba(18,16,12,.30); }
.day.is-selected .day__barfill{ background:var(--ground); }
.day--full .day__pip{ background:var(--paper-3); }
.day--closed{ color:#C7CCC5; text-decoration:line-through; text-decoration-thickness:1px; }
.day--today{ box-shadow:inset 0 0 0 1px var(--brass); }
.day.is-selected{
  background:var(--ink); color:var(--paper); border-color:var(--ink);
}
.day.is-selected .day__pip{ background:var(--gold-hi); }
.day.is-selected .day__pip.is-gone{ background:rgba(247,245,239,.28); }

.cal__key{
  display:flex; flex-wrap:wrap; gap:1rem;
  margin-top:1.1rem; padding-top:1rem; border-top:var(--rule);
  font-family:var(--font-mono); font-size:.6rem;
  letter-spacing:.1em; text-transform:uppercase;
  color:var(--ink-soft);
}
.cal__key span{ display:flex; align-items:center; gap:.42rem; }
.keydot{ width:6px; height:6px; border-radius:50%; background:var(--verdant); }
.keydot--gone{ background:var(--paper-3); }
.keydot--closed{ background:transparent; box-shadow:inset 0 0 0 1px #C7CCC5; }
.keybar{ width:14px; height:3px; border-radius:999px; background:var(--verdant); }
.keybar--gone{ background:var(--paper-3); }
.section--ground .keybar{ background:var(--verdant-lo); }
.section--ground .keybar--gone{ background:rgba(239,234,223,.20); }

/* ---- slots ---- */
.slots{ display:grid; gap:.6rem; }
.slot{
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center; gap:1rem;
  width:100%; text-align:left;
  padding:1.1rem 1.2rem;
  border:1px solid var(--paper-3);
  border-radius:2px;
  background:var(--white);
  cursor:pointer;
  transition:border-color var(--fast), background var(--fast), transform var(--fast), box-shadow var(--fast);
}
.slot:hover:not(:disabled){ border-color:var(--ink); transform:translateY(-1px); box-shadow:0 10px 24px -18px rgba(22,36,30,.55); }
.slot__time{
  font-family:var(--font-mono); font-size:1rem; letter-spacing:-.02em;
  display:block;
}
.slot__name{
  font-family:var(--font-mono); font-size:.58rem;
  letter-spacing:.24em; text-transform:uppercase;
  color:var(--gold-lo); display:block; margin-bottom:.3rem;
}
.slot__note{
  display:block; margin-top:.4rem;
  font-size:.83rem; line-height:1.5; color:var(--ink-soft);
}
.slot__state{
  font-family:var(--font-mono); font-size:.58rem;
  letter-spacing:.18em; text-transform:uppercase;
  padding:.4rem .7rem;
  border:1px solid currentColor; border-radius:999px;
  white-space:nowrap;
}
.slot--open  .slot__state{ color:var(--verdant); }
.slot--held  .slot__state{ color:var(--clay); }
.slot--booked .slot__state{ color:var(--rose); }
.slot--past  .slot__state,
.slot--closed .slot__state{ color:#A9B0A8; }

.slot:disabled{ cursor:not-allowed; background:var(--paper); }
.slot:disabled .slot__time{ color:#8E968C; text-decoration:line-through; text-decoration-thickness:1px; }
.slot:disabled .slot__name{ color:#A9B0A8; }
.slot.is-selected{
  border-color:var(--ink); background:var(--ink); color:var(--paper);
  box-shadow:0 14px 34px -20px rgba(22,36,30,.8);
}
.slot.is-selected .slot__name{ color:var(--gold-hi); }
.slot.is-selected .slot__note{ color:rgba(247,245,239,.72); }
.slot.is-selected .slot__state{ color:var(--gold-hi); }

.slots__empty{
  padding:2.4rem 1rem; text-align:center;
  color:var(--ink-soft); border:1px dashed var(--paper-3); border-radius:2px;
}
.slots__empty strong{ display:block; font-family:var(--font-display); font-size:1.2rem; color:var(--ink); margin-bottom:.4rem; }

.picked{
  margin-top:1.25rem; padding-top:1.25rem;
  border-top:var(--rule);
}
.picked__line{
  display:flex; align-items:baseline; justify-content:space-between; gap:1rem;
  font-family:var(--font-mono); font-size:.78rem;
  padding:.35rem 0;
}
.picked__line dt{ color:var(--ink-soft); letter-spacing:.14em; text-transform:uppercase; font-size:.6rem; }
.picked__line dd{ margin:0; }

/* loading shimmer while availability is fetched */
.is-loading{ position:relative; }
.is-loading::after{
  content:""; position:absolute; inset:0;
  background:linear-gradient(90deg, transparent, rgba(255,255,255,.65), transparent);
  animation:sweep 1.1s linear infinite;
  pointer-events:none;
}
@keyframes sweep{ from{ transform:translateX(-100%);} to{ transform:translateX(100%);} }

/* ===========================================================================
   FORMS
   =========================================================================== */
.form{ display:grid; gap:1.15rem; }
.grid2{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1.15rem; }
.field{ display:grid; gap:.45rem; }
.field label{
  font-family:var(--font-mono); font-size:.6rem;
  letter-spacing:.2em; text-transform:uppercase;
  color:var(--ink-soft);
}
.field .req{ color:var(--rose); }
.field input, .field select, .field textarea{
  width:100%;
  padding:.85rem .95rem;
  border:1px solid var(--paper-3);
  border-radius:2px;
  background:var(--white);
  color:var(--ink);
  font-family:var(--font-body); font-size:.98rem;
  transition:border-color var(--fast), box-shadow var(--fast);
}
.field textarea{ min-height:7.5rem; resize:vertical; line-height:1.6; }
.field select{
  appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235F6D63' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 1rem center;
  padding-right:2.5rem;
}
.field input:focus, .field select:focus, .field textarea:focus{
  outline:none;
  border-color:var(--gold);
  box-shadow:0 0 0 3px rgba(176,138,60,.18);
}
.field small{ font-size:.78rem; color:var(--ink-soft); }
.field.has-error input, .field.has-error select, .field.has-error textarea{ border-color:var(--rose); }
.field .err{ font-size:.8rem; color:var(--rose); }

.check{
  display:flex; align-items:flex-start; gap:.7rem;
  font-size:.88rem; color:var(--ink-soft); line-height:1.55;
}
.check input{ margin-top:.28rem; width:1rem; height:1rem; accent-color:var(--ink); flex:none; }

/* honeypot — must stay invisible and unreachable */
.hp{
  position:absolute !important;
  left:-9999px !important;
  width:1px; height:1px; overflow:hidden;
}

/* ===========================================================================
   NOTICES
   =========================================================================== */
.notice{
  padding:1.05rem 1.25rem;
  border-left:3px solid var(--gold);
  background:var(--paper-2);
  border-radius:0 2px 2px 0;
  font-size:.93rem; line-height:1.6;
}
.notice strong{ display:block; margin-bottom:.2rem; }
.notice--warn{ border-left-color:var(--clay); }
.notice--error{ border-left-color:var(--rose); }
.notice--ok{ border-left-color:var(--verdant); }

/* ===========================================================================
   STEPS
   =========================================================================== */
.steps{
  display:flex; align-items:center; gap:.8rem;
  font-family:var(--font-mono); font-size:.6rem;
  letter-spacing:.2em; text-transform:uppercase;
  color:var(--ink-soft);
  margin-bottom:1.75rem; flex-wrap:wrap;
}
.steps b{ font-weight:400; color:var(--ink); }
.steps i{ font-style:normal; color:var(--paper-3); }

/* ===========================================================================
   GALLERY
   =========================================================================== */
.gallery{
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:.75rem;
  margin-top:3rem;
}
.shot{
  position:relative; overflow:hidden;
  border-radius:3px; background:var(--paper-3);
}
.shot img{
  width:100%; height:100%; object-fit:cover;
  transition:transform 1.1s var(--ease), filter var(--med);
}
.shot:hover img{ transform:scale(1.045); }
.shot__cap{
  position:absolute; inset:auto 0 0 0;
  padding:1.6rem 1.1rem .95rem;
  background:linear-gradient(to top, rgba(12,20,16,.88), transparent);
  color:var(--paper);
}
.shot__cap b{
  display:block; font-family:var(--font-display); font-size:1.08rem; font-weight:400;
}
.shot__cap span{
  display:block; margin-top:.1rem;
  font-family:var(--font-mono); font-size:.56rem;
  letter-spacing:.18em; text-transform:uppercase; color:var(--gold-hi);
}
.shot--a{ grid-column:span 4; aspect-ratio:16/10; }
.shot--b{ grid-column:span 2; aspect-ratio:4/5; }
.shot--c{ grid-column:span 2; aspect-ratio:4/3; }
.shot--d{ grid-column:span 2; aspect-ratio:4/3; }
.shot--e{ grid-column:span 2; aspect-ratio:4/3; }

/* ===========================================================================
   FOOTER
   =========================================================================== */
.foot{ background:var(--ink); color:var(--paper); padding:clamp(3rem,6vw,5rem) 0 2rem; }
.foot__grid{
  display:grid; grid-template-columns:minmax(0,1.4fr) repeat(2,minmax(0,1fr));
  gap:2.5rem;
}
.foot h4{ font-size:1.6rem; margin-bottom:.6rem; }
.foot a{ color:var(--gold-hi); text-decoration:none; }
.foot a:hover{ color:var(--paper); text-decoration:underline; text-underline-offset:3px; }
.foot__list{ list-style:none; margin:0; padding:0; display:grid; gap:.5rem; font-size:.9rem; }
.foot__label{
  font-family:var(--font-mono); font-size:.6rem;
  letter-spacing:.22em; text-transform:uppercase;
  color:var(--gold-hi); margin-bottom:.9rem;
}
.foot__base{
  margin-top:3rem; padding-top:1.4rem;
  border-top:1px solid rgba(231,206,141,.22);
  display:flex; flex-wrap:wrap; gap:1rem; justify-content:space-between;
  font-family:var(--font-mono); font-size:.6rem;
  letter-spacing:.14em; text-transform:uppercase;
  color:rgba(247,245,239,.55);
}

/* ===========================================================================
   OWNER TABLE (manage.php)
   =========================================================================== */
.table-wrap{ overflow-x:auto; border:var(--rule); border-radius:3px; background:var(--white); }
table.data{ width:100%; border-collapse:collapse; min-width:820px; }
table.data th{
  text-align:left; padding:.85rem 1rem;
  font-family:var(--font-mono); font-size:.58rem;
  letter-spacing:.18em; text-transform:uppercase;
  color:var(--ink-soft);
  background:var(--paper-2);
  border-bottom:var(--rule);
  white-space:nowrap;
}
table.data td{ padding:.9rem 1rem; border-bottom:var(--rule); vertical-align:top; font-size:.92rem; }
table.data tr:last-child td{ border-bottom:0; }
table.data tr:hover td{ background:var(--paper); }

.pill{
  display:inline-block;
  font-family:var(--font-mono); font-size:.56rem;
  letter-spacing:.16em; text-transform:uppercase;
  padding:.3rem .6rem; border-radius:999px;
  border:1px solid currentColor;
  white-space:nowrap;
}
.pill--confirmed{ color:var(--verdant); }
.pill--pending{ color:var(--clay); }
.pill--cancelled{ color:var(--rose); }
.pill--expired{ color:#9AA29A; }
.pill--completed{ color:var(--ink-soft); }

.tiles{ display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); gap:.75rem; margin-bottom:1.5rem; }
.tile{ background:var(--white); border:var(--rule); border-radius:3px; padding:1.1rem 1.2rem; }
.tile b{ display:block; font-family:var(--font-mono); font-size:1.7rem; font-weight:400; letter-spacing:-.03em; }
.tile span{
  display:block; margin-top:.15rem;
  font-family:var(--font-mono); font-size:.58rem;
  letter-spacing:.18em; text-transform:uppercase; color:var(--ink-soft);
}

/* ===========================================================================
   REVEAL ON SCROLL
   =========================================================================== */
@media (prefers-reduced-motion: no-preference){
  .reveal{ opacity:0; transform:translateY(22px); }
  .reveal.is-in{ opacity:1; transform:none; transition:opacity var(--slow), transform var(--slow); }
  .reveal.d1{ transition-delay:.08s; }
  .reveal.d2{ transition-delay:.16s; }
  .reveal.d3{ transition-delay:.24s; }

  .reel{ animation:drift 9s ease-in-out infinite; }
  @keyframes drift{
    0%,100%{ transform:translateY(0); }
    50%    { transform:translateY(-11px); }
  }
}

/* ===========================================================================
   RESPONSIVE
   =========================================================================== */
@media (max-width:1000px){
  .hero__inner{ grid-template-columns:1fr; gap:2.5rem; }
  .reel{ width:min(100%,272px); }
  .ledger{ grid-template-columns:1fr; }
  .split{ grid-template-columns:1fr; }
  .foot__grid{ grid-template-columns:1fr 1fr; }
  .gallery{ grid-template-columns:repeat(4,1fr); }
  .shot--a{ grid-column:span 4; }
  .shot--b,.shot--c,.shot--d,.shot--e{ grid-column:span 2; }
}

@media (max-width:680px){
  :root{ --shell:min(1240px, 100% - 2rem); }
  .nav__links a:not(.nav__cta){ display:none; }
  .hero{ min-height:auto; padding:6.5rem 0 3rem; }
  .hero__blocks{ gap:.25rem; }
  .hero__block{ padding-right:1rem; margin-right:1rem; }
  .grid2{ grid-template-columns:1fr; }
  .spec li{ grid-template-columns:1fr; gap:.2rem; }
  .spec dt, .spec b{ padding-top:0; }
  .gallery{ grid-template-columns:repeat(2,1fr); }
  .shot--a{ grid-column:span 2; aspect-ratio:4/3; }
  .foot__grid{ grid-template-columns:1fr; }
  .slot{ grid-template-columns:1fr; gap:.6rem; }
  .slot__state{ justify-self:start; }
  .scrollcue{ display:none; }
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{
    animation-duration:.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.01ms !important;
  }
  #vault{ display:none; }
}

@media print{
  .nav,.scrollcue,.reel,#vault,.hero__photo{ display:none !important; }
  body{ background:#fff; }
}


/* ===========================================================================
   THE MARK
   ---------------------------------------------------------------------------
   The Rosa plate is already a complete lockup — an ivory field inside a gold
   frame — so it is never given a border, a shadow or a background of its own.
   It simply sits on the page at three sizes.
   =========================================================================== */
.mark{ display:block; width:auto; }
.mark--nav{ height:clamp(38px,4.4vw,52px); }
.mark--hero{ height:clamp(70px,9vw,104px); margin-bottom:1.6rem; }
.mark--foot{ height:64px; margin-bottom:1.1rem; }
.mark--slim{ height:44px; }

.nav__brand{ gap:.75rem; }
.nav__brand .nav__wordmark{
  display:flex; flex-direction:column; line-height:1.15;
}
.nav__brand .nav__wordmark b{
  font-family:var(--font-display); font-weight:400; font-size:1.02rem;
  letter-spacing:.005em;
}

/* On the dark hero the plate can look pasted on; a whisper of gold glow
   seats it into the photograph without adding a visible box. */
.hero .mark--hero{ filter:drop-shadow(0 18px 38px rgba(0,0,0,.55)); }

/* a gold hairline used to open dark sections, echoing the frame */
.frameline{ height:1px; background:var(--goldline); opacity:.65; }

/* ===========================================================================
   MOBILE OVERRIDES FOR THE MARK
   ---------------------------------------------------------------------------
   These live LAST on purpose. The logo rules above are unqualified, so a
   media query written earlier in the file loses to them on source order even
   though it is more specific in intent. Keep new mark tweaks below this line.
   =========================================================================== */
@media (max-width:680px){
  .nav{ padding:.7rem 1rem; }
  .nav__brand .nav__wordmark{ display:none; }
  .mark--nav{ height:34px; }
  .mark--hero{ height:clamp(56px,15vw,74px); margin-bottom:1.2rem; }
  .mark--foot{ height:54px; }
  .btn--sm{ padding:.6rem .9rem; font-size:.6rem; letter-spacing:.14em; }
}

/* ===========================================================================
   v2 — DESIGN REFINEMENTS
   ---------------------------------------------------------------------------
   Layered on top of the base rather than replacing it, so nothing that was
   already verified can regress. Everything here is decoration: with this
   block deleted the site still works and still looks intentional.
   =========================================================================== */

/* ---- paper grain ---------------------------------------------------------
   The Rosa plate is a printed mark, and flat screen colour reads cheaper than
   print. A barely-there grain over the whole page gives the ivory some tooth.
   Pointer-events none, fixed, and only 3.5% opaque — you should never
   consciously see it, only miss it if it were gone. */
body::after{
  content:"";
  position:fixed; inset:0; z-index:1;
  pointer-events:none;
  opacity:.035;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* NOTE (v4): `.nav` used to be in this selector list. Because this rule sits
   BELOW the `.nav{ position:fixed }` rule near the top of the file and has the
   same specificity, it silently overwrote it — the header dropped into normal
   flow, stopped being sticky, and rendered its near-white text on the ivory
   page background, i.e. invisible. Do not put `.nav` back in here. */
.hero__inner, .reel{ position:relative; z-index:2; }

/* ---- the gold frame, used to open and close dark sections ---- */
.frameline{ height:1px; background:var(--goldline); opacity:.55; }
.nav.is-stuck{ border-bottom-color:transparent; box-shadow:0 1px 0 rgba(176,138,60,.35); }

/* ---- hero entrance -------------------------------------------------------
   Staggered, and short. A long entrance animation on a booking page is a
   toll gate between the client and the calendar. */
@media (prefers-reduced-motion: no-preference){
  .hero__inner > div > *{ animation:riseIn .9s var(--ease) both; }
  .hero__inner > div > *:nth-child(1){ animation-delay:.05s; }
  .hero__inner > div > *:nth-child(2){ animation-delay:.14s; }
  .hero__inner > div > *:nth-child(3){ animation-delay:.23s; }
  .hero__inner > div > *:nth-child(4){ animation-delay:.32s; }
  .hero__inner > div > *:nth-child(5){ animation-delay:.41s; }
  @keyframes riseIn{
    from{ opacity:0; transform:translateY(18px); }
    to  { opacity:1; transform:none; }
  }
  .scrollcue{ animation:cueBreathe 2.8s ease-in-out infinite; }
  @keyframes cueBreathe{
    0%,100%{ opacity:.45; transform:translateX(-50%) translateY(0); }
    50%    { opacity:.85; transform:translateX(-50%) translateY(4px); }
  }
}

/* ---- headline detail: a hairline under the italic word ---- */
.hero h1 em{ position:relative; }
.hero h1 em::after{
  content:""; position:absolute; left:.06em; right:.06em; bottom:.12em;
  height:1px; background:var(--goldline); opacity:.5;
}

/* ---- panels: lift them off the sand ---- */
.panel{
  box-shadow:0 1px 2px rgba(20,18,14,.03), 0 12px 34px -28px rgba(20,18,14,.45);
  transition:box-shadow var(--med);
}
.book .panel:hover{ box-shadow:0 1px 2px rgba(20,18,14,.04), 0 20px 46px -30px rgba(20,18,14,.5); }

/* ---- the slot cards: a gold rule marks the chosen block ---- */
.slot{ overflow:hidden; }
.slot::before{
  content:""; position:absolute; left:0; top:0; bottom:0; width:3px;
  background:var(--goldline); opacity:0;
  transition:opacity var(--fast);
}
.slot:hover:not(:disabled)::before{ opacity:.45; }
.slot.is-selected::before{ opacity:1; }
.slot__state{ transition:color var(--fast), background var(--fast); }
.slot--open:hover:not(:disabled) .slot__state{ background:rgba(74,107,79,.08); }

/* ---- calendar: the selected day gets the gold, not just the black ---- */
.day.is-selected{ box-shadow:inset 0 0 0 1px var(--gold); }
.day--today{ font-weight:600; }
.day{ position:relative; }
.day--full::after{
  content:""; position:absolute; left:22%; right:22%; top:50%;
  height:1px; background:currentColor; opacity:.28;
}

/* ---- gallery: a gold hairline appears on approach ---- */
.shot::after{
  content:""; position:absolute; inset:0; pointer-events:none;
  border:1px solid transparent;
  transition:border-color var(--med);
}
.shot:hover::after{ border-color:rgba(231,206,141,.55); }
.shot__cap{ transform:translateY(6px); opacity:.92; transition:transform var(--med), opacity var(--med); }
.shot:hover .shot__cap{ transform:none; opacity:1; }

/* ---- section rhythm: a gold tick opens each dark section ---- */
.section--ink{ position:relative; }
.section--ink::before{
  content:""; position:absolute; left:0; right:0; top:0; height:1px;
  background:var(--goldline); opacity:.4;
}

/* ---- the reel: seat it with a frame rather than a hard edge ---- */
.reel::after{
  content:""; position:absolute; inset:0; pointer-events:none;
  border:1px solid rgba(231,206,141,.28);
  border-radius:3px;
}

/* ---- buttons: a gold underline grows on hover, echoing the plate ---- */
.btn{ position:relative; overflow:hidden; }
.btn::after{
  content:""; position:absolute; left:0; right:0; bottom:0; height:2px;
  background:var(--goldline);
  transform:scaleX(0); transform-origin:left;
  transition:transform var(--med);
}
.btn:hover::after{ transform:scaleX(1); }

/* ---- form focus: gold, matching the frame ---- */
.field input:focus, .field select:focus, .field textarea:focus{
  border-color:var(--gold);
}

/* ---- tables: quieter rules, so the numbers carry ---- */
table.data th{ letter-spacing:.2em; }
table.data tr:hover td{ background:var(--paper-2); }

/* ---- print: the diary should print cleanly for a coordinator ---- */
@media print{
  body::after{ display:none; }
  .panel{ box-shadow:none; border:1px solid #ccc; }
  .btn{ display:none; }
}

/* ===========================================================================
   ANIMATED BACKGROUND  (added in the v2 design pass)
   ---------------------------------------------------------------------------
   Three layers, cheapest first, so the page still feels alive even where the
   3D canvas is not running:

     .aurora      slow drifting gold/green light, pure CSS gradients
     .grain       a static film grain, stops the gradients banding
     .emberfield  a few slow-rising motes, CSS only, no canvas

   All of it is decorative and sits behind a `pointer-events:none` wrapper, so
   it can never intercept a click on the calendar. All of it stops dead under
   prefers-reduced-motion.
   =========================================================================== */

.bgfx{
  position:absolute; inset:0;
  overflow:hidden;
  pointer-events:none;
  z-index:0;
}
.bgfx > *{ position:absolute; }

/* --- drifting light ------------------------------------------------- */
.aurora{
  inset:-30%;
  background:
    radial-gradient(38% 44% at 22% 30%, rgba(176,138,60,.30), transparent 62%),
    radial-gradient(34% 40% at 78% 24%, rgba(74,107,79,.28),  transparent 64%),
    radial-gradient(46% 50% at 60% 78%, rgba(231,206,141,.20), transparent 66%),
    radial-gradient(30% 36% at 12% 72%, rgba(107,81,30,.24),  transparent 60%);
  filter:blur(28px);
  opacity:.85;
}
.aurora--soft{ opacity:.42; filter:blur(40px); }

/* --- film grain ------------------------------------------------------ */
.grain{
  inset:0;
  opacity:.10;
  mix-blend-mode:overlay;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

/* --- a hairline of gold, like the plate on the logo ------------------ */
.topline{
  top:0; left:0; right:0; height:1px;
  background:linear-gradient(90deg, transparent, var(--gold-hi), transparent);
  opacity:.5;
}

/* --- slow rising motes ----------------------------------------------- */
.emberfield{ inset:0; }
.ember{
  bottom:-12px;
  width:3px; height:3px;
  border-radius:50%;
  background:var(--gold-hi);
  opacity:0;
}

@media (prefers-reduced-motion: no-preference){
  .aurora{ animation:aurora-drift 26s ease-in-out infinite alternate; }
  .aurora--slow{ animation-duration:44s; }

  @keyframes aurora-drift{
    0%   { transform:translate3d(-3%, -2%, 0) scale(1);    }
    50%  { transform:translate3d( 3%,  2%, 0) scale(1.08); }
    100% { transform:translate3d(-2%,  3%, 0) scale(1.03); }
  }

  .ember{ animation:ember-rise linear infinite; }
  @keyframes ember-rise{
    0%   { opacity:0;   transform:translateY(0)       scale(.6); }
    12%  { opacity:.85; }
    88%  { opacity:.5;  }
    100% { opacity:0;   transform:translateY(-92vh)   scale(1.1); }
  }

  /* a slow sheen across section headings, like light moving through glass */
  .sheen{
    background:linear-gradient(100deg,
      var(--paper) 20%, var(--gold-hi) 42%, var(--paper) 64%);
    background-size:280% 100%;
    -webkit-background-clip:text; background-clip:text;
    color:transparent;
    animation:sheen-sweep 9s ease-in-out infinite;
  }
  @keyframes sheen-sweep{
    0%,100%{ background-position:150% 0; }
    50%    { background-position:-30% 0; }
  }
}

/* Motion off: everything holds its finished state, nothing moves. */
@media (prefers-reduced-motion: reduce){
  .ember{ display:none; }
  .sheen{ color:var(--paper); background:none; -webkit-text-fill-color:currentColor; }
}

/* Sections that carry the effect need their content lifted above it. */
.layer{ position:relative; z-index:1; }

/* ===========================================================================
   DARK SECTIONS (v2)
   =========================================================================== */
.section--ground{
  position:relative;
  background:var(--ground);
  color:var(--on-ground);
  overflow:hidden;
}
.section--ground .lede{ color:var(--on-ground-soft); }
.section--ground .panel{
  background:rgba(239,234,223,.04);
  border-color:rgba(231,206,141,.20);
  color:var(--on-ground);
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
}
.section--ground .panel__title{ color:var(--gold-hi); }
.section--ground .spec li{ border-bottom-color:rgba(231,206,141,.18); }
.section--ground .spec{ border-top-color:rgba(231,206,141,.18); }
.section--ground .spec b{ color:var(--gold-hi); }
.section--ground .picked__line dt{ color:var(--gold-hi); }
.section--ground .cal__key{ border-top-color:rgba(231,206,141,.18); color:var(--on-ground-soft); }
.section--ground .cal__month span{ color:var(--gold-hi); }
.section--ground .iconbtn{
  background:transparent; border-color:rgba(231,206,141,.28); color:var(--on-ground);
}
.section--ground .iconbtn:hover:not([disabled]){
  background:var(--gold); border-color:var(--gold); color:var(--ground);
}
.section--ground .day{ color:var(--on-ground); }
.section--ground .day:disabled{ color:rgba(239,234,223,.30); }
.section--ground .day--closed{ color:rgba(239,234,223,.28); }
.section--ground .day:hover:not(:disabled){ border-color:var(--gold-hi); }
.section--ground .day.is-selected{
  background:var(--gold); border-color:var(--gold); color:var(--ground);
}
.section--ground .day.is-selected .day__pip{ background:var(--ground); }
.section--ground .day.is-selected .day__pip.is-gone{ background:rgba(18,16,12,.35); }
.section--ground .day__pip{ background:var(--verdant-lo); }
.section--ground .day__pip.is-gone{ background:rgba(239,234,223,.20); }
.section--ground .keydot{ background:var(--verdant-lo); }
.section--ground .keydot--gone{ background:rgba(239,234,223,.22); }
.section--ground .keydot--closed{ box-shadow:inset 0 0 0 1px rgba(239,234,223,.35); }
.section--ground .slot{
  background:rgba(239,234,223,.03);
  border-color:rgba(231,206,141,.18);
  color:var(--on-ground);
}
.section--ground .slot:hover:not(:disabled){ border-color:var(--gold-hi); }
.section--ground .slot__note{ color:var(--on-ground-soft); }
.section--ground .slot:disabled{ background:rgba(0,0,0,.22); }
.section--ground .slot:disabled .slot__time{ color:rgba(239,234,223,.34); }
.section--ground .slot.is-selected{
  background:var(--gold); border-color:var(--gold); color:var(--ground);
}
.section--ground .slot.is-selected .slot__name,
.section--ground .slot.is-selected .slot__state,
.section--ground .slot.is-selected .slot__note{ color:rgba(18,16,12,.78); }
.section--ground .slots__empty{ border-color:rgba(231,206,141,.22); color:var(--on-ground-soft); }
.section--ground .picked{ border-top-color:rgba(231,206,141,.18); }
.section--ground .btn--ghost{ color:var(--on-ground); border-color:rgba(231,206,141,.32); }
.section--ground .btn--ghost:hover{ background:var(--gold); border-color:var(--gold); color:var(--ground); }
.section--ground .btn{ background:var(--gold); border-color:var(--gold); color:var(--ground); }
.section--ground .btn:hover{ background:var(--gold-hi); border-color:var(--gold-hi); color:var(--ground); }
.section--ground .notice{ background:rgba(239,234,223,.05); color:var(--on-ground); }
.section--ground .field label{ color:var(--gold-hi); }
.section--ground .field input,
.section--ground .field select,
.section--ground .field textarea{
  background:rgba(0,0,0,.28); border-color:rgba(231,206,141,.22); color:var(--on-ground);
}
.section--ground .field small{ color:var(--on-ground-soft); }
.section--ground .check{ color:var(--on-ground-soft); }


/* ===========================================================================
   v4 — VISIBLE STICKY HEADER + PAGE-WIDE ANIMATED BACKGROUND
   ---------------------------------------------------------------------------
   Two things were asked for and both are here.

   1. THE HEADER.  It was neither sticky nor visible, and for one reason:
      further up this file a decoration rule listed `.nav` alongside
      `.hero__inner` and set `position:relative`. That rule sits BELOW the
      `.nav{ position:fixed }` declaration and carries the same specificity,
      so it won. The bar dropped into normal flow, and since `.nav` colours
      its text `--paper` (near-white) for the dark hero, it then rendered
      near-white on the ivory page — present in the DOM, invisible on screen.
      `.nav` has been removed from that rule and the bar is re-declared here,
      last, with a background of its own so it can never again depend on
      whatever happens to be behind it.

   2. THE BACKGROUND.  Previously the aurora/ember layer was pasted into two
      individual sections of index.php and the 3D canvas lived inside the
      hero, so it stopped at the fold and no other page had any of it. It is
      now ONE fixed layer printed by header.php, behind every page, the way
      rosabyillos.com carries its canvas the whole way down. The palette is
      pulled to that dark ground so the animation has somewhere to live.

   This block is last on purpose. Everything above it is untouched apart from
   that one deleted selector, so nothing already verified regresses.
   =========================================================================== */

/* ---------------------------------------------------------------------------
   1. THE GROUND
   The page is dark end to end now. Sections no longer paint their own opaque
   ivory; they carry a soft scrim instead, which keeps text legible while the
   moving background reads through the joins between them.
   --------------------------------------------------------------------------- */
html{
  background:var(--ground);
  scroll-padding-top:5.75rem;      /* anchor jumps clear the fixed bar */
}
body{
  background:var(--ground);
  color:var(--on-ground);
}

/* the paper grain becomes a film grain: lighter, and above the content */
body::after{ opacity:.045; z-index:3; mix-blend-mode:soft-light; }

/* Content must sit above the fixed background layer. Without this the
   z-index:0 background paints over in-flow section text. */
.hero, .section, .foot, .skip{ position:relative; z-index:1; }

.section--ground{
  background:linear-gradient(180deg,
    rgba(18,16,12,.10) 0%,
    rgba(18,16,12,.62) 12%,
    rgba(18,16,12,.62) 88%,
    rgba(18,16,12,.10) 100%);
}
/* let the animation come all the way through where there is little text */
.section--clear{ background:transparent; }

.foot{
  background:linear-gradient(180deg, rgba(10,9,7,.86), rgba(10,9,7,.97));
  color:var(--on-ground);
}

/* ---------------------------------------------------------------------------
   2. THE FIXED BACKGROUND LAYER
   One wrapper, printed once by header.php, on every page. pointer-events:none
   the whole way down — it must never be able to swallow a calendar click.
   --------------------------------------------------------------------------- */
.bgfx--page{
  position:fixed; inset:0; z-index:0;
  overflow:hidden;
  pointer-events:none;
  /* layout+paint containment keeps the animation's repaints off the rest of
     the page. Deliberately NOT `contain:strict` — that adds size containment,
     which is a trap on a layer whose size comes from inset:0. */
  contain:layout paint style;
}
.bgfx--page > *{ position:absolute; }

/* a deep vignette so the middle of the page stays calm behind body copy */
.bgfx__vignette{
  inset:0;
  background:radial-gradient(120% 90% at 50% 0%,
    transparent 0%, rgba(10,9,7,.35) 55%, rgba(10,9,7,.85) 100%);
}

/* the 3D canvas is now the page background, not a hero ornament */
.bgfx--page #vault{
  position:absolute; inset:0;
  width:100%; height:100%;
  opacity:0;
  mix-blend-mode:screen;
  transition:opacity 2.2s var(--ease);
  pointer-events:none;
}
.bgfx--page #vault.is-ready{ opacity:.55; }

/* ---------------------------------------------------------------------------
   3. THE HEADER
   Re-declared last, and given a bar of its own. Legible from the first pixel
   of every page, not only after 40px of scroll on the one page with a dark
   photograph behind it.
   --------------------------------------------------------------------------- */
.nav{
  position:fixed; top:0; left:0; right:0; z-index:90;
  display:flex; align-items:center; justify-content:space-between;
  gap:1rem;
  padding:.75rem clamp(1rem,3vw,2.5rem);
  color:var(--on-ground);
  background:linear-gradient(180deg,
    rgba(10,9,7,.94) 0%, rgba(10,9,7,.78) 62%, rgba(10,9,7,0) 100%);
  backdrop-filter:blur(10px) saturate(1.15);
  -webkit-backdrop-filter:blur(10px) saturate(1.15);
  border-bottom:1px solid transparent;
  transition:background var(--med), border-color var(--med), box-shadow var(--med);
}
.nav::after{                       /* the gold hairline from the logo plate */
  content:"";
  position:absolute; left:0; right:0; bottom:0; height:1px;
  background:var(--goldline);
  opacity:.35;
  transition:opacity var(--med);
}
.nav.is-stuck{
  background:rgba(10,9,7,.90);
  box-shadow:0 14px 34px -22px rgba(0,0,0,.95);
  border-bottom-color:transparent;
}
.nav.is-stuck::after{ opacity:.7; }

/* these beat the earlier `.nav.is-stuck .nav__brand{ color:var(--ink) }`
   pair, which turned the type near-black against the new dark bar */
.nav__brand,
.nav.is-stuck .nav__brand,
.nav__links a,
.nav.is-stuck .nav__links a{ color:var(--on-ground); }
.nav__brand small{ color:var(--gold-hi); opacity:.85; }
.nav__links a:not(.nav__cta):hover{ color:var(--gold-hi); }
.nav__cta{ border-color:rgba(231,206,141,.55); color:var(--gold-hi); }
.nav__cta:hover{ background:var(--gold-hi); color:var(--ground); border-color:var(--gold-hi); }

/* skip link — it existed nowhere before, and a fixed bar makes one worth having */
.skip{
  position:absolute; left:.75rem; top:-4rem; z-index:120;
  background:var(--gold-hi); color:var(--ground);
  padding:.6rem 1rem; border-radius:2px;
  font-family:var(--font-mono); font-size:.7rem; letter-spacing:.16em;
  text-transform:uppercase; text-decoration:none;
  transition:top var(--fast);
}
.skip:focus{ top:.75rem; }

/* ---- the mobile menu ------------------------------------------------------
   Under 680px the earlier rules simply deleted the links, leaving a bar with
   nothing in it but a button. They fold into a drawer instead. */
.nav__burger{
  display:none;
  width:2.6rem; height:2.6rem;
  align-items:center; justify-content:center;
  background:transparent;
  border:1px solid rgba(231,206,141,.32);
  border-radius:2px;
  cursor:pointer;
  color:var(--on-ground);
}
.nav__burger span{
  display:block; position:relative;
  width:16px; height:1px; background:currentColor;
  transition:transform var(--fast), background var(--fast);
}
.nav__burger span::before,
.nav__burger span::after{
  content:""; position:absolute; left:0;
  width:16px; height:1px; background:currentColor;
  transition:transform var(--fast), top var(--fast);
}
.nav__burger span::before{ top:-5px; }
.nav__burger span::after{  top:5px; }
.nav__burger[aria-expanded="true"] span{ background:transparent; }
.nav__burger[aria-expanded="true"] span::before{ top:0; transform:rotate(45deg); }
.nav__burger[aria-expanded="true"] span::after{  top:0; transform:rotate(-45deg); }

@media (max-width:680px){
  .nav{ padding:.6rem 1rem; }
  .nav__burger{ display:inline-flex; }

  /* The drawer hangs off the bottom of the bar. `.nav` is fixed, so it is the
     containing block — no negative z-index needed, which is what made an
     earlier attempt at this render see-through. */
  .nav__links{
    position:absolute; top:100%; left:0; right:0;
    flex-direction:column; align-items:stretch;
    gap:0;
    padding:.25rem 1.25rem 1.25rem;
    background:#0B0A08;
    border-bottom:1px solid rgba(231,206,141,.22);
    box-shadow:0 22px 40px -26px rgba(0,0,0,.95);
    transform-origin:top center;
    transform:translateY(-6px);
    opacity:0;
    visibility:hidden;
    transition:transform .30s var(--ease), opacity .30s var(--ease), visibility .30s;
  }
  /* undoes the earlier `display:none` on the links at this width */
  .nav__links a:not(.nav__cta){
    display:block;
    padding:1rem .25rem;
    font-size:1rem; letter-spacing:.04em;
    border-bottom:1px solid rgba(231,206,141,.14);
  }
  .nav__links a.nav__cta{ margin-top:1.1rem; align-self:flex-start; }
  .nav__links.is-open{ transform:none; opacity:1; visibility:visible; }
}

/* ---------------------------------------------------------------------------
   4. DARK VARIANTS FOR THE PIECES THAT HAD NONE
   The v2 pass wrote a full dark set for the calendar and the form, because
   only those two sections were dark. Now every section is, so the remaining
   components need the same treatment.
   --------------------------------------------------------------------------- */
.section--ground .eyebrow{ color:var(--gold-hi); }
.section--ground .h2,
.section--ground h1,
.section--ground h2,
.section--ground h3,
.section--ground h4{ color:var(--on-ground); }
.section--ground .split{ border-top-color:rgba(231,206,141,.18); }
.section--ground .ledger{ border-color:rgba(231,206,141,.18); }
.section--ground .ledger > *{ border-color:rgba(231,206,141,.18); }
.section--ground .steps{ color:var(--on-ground-soft); }
.section--ground .steps b{ color:var(--gold-hi); }
.section--ground .steps i{ color:rgba(239,234,223,.35); }
.section--ground .notice{
  background:rgba(239,234,223,.06);
  color:var(--on-ground);
  border-left-color:var(--gold);
}
.section--ground .notice--warn{  border-left-color:var(--clay); }
.section--ground .notice--error{ border-left-color:var(--rose); }
.section--ground .notice--ok{    border-left-color:var(--sage); }
.section--ground .shot__cap b{ color:var(--white); }
.section--ground .shot__cap span{ color:var(--sage); }
.section--ground .scrollcue{ color:var(--on-ground-soft); }
.section--ground .measure{ color:var(--on-ground-soft); }

/* tables — manage.php and db-check.php */
.section--ground .table-wrap{
  background:rgba(0,0,0,.30);
  border-color:rgba(231,206,141,.20);
}
.section--ground table.data th{
  background:rgba(231,206,141,.07);
  color:var(--gold-hi);
  border-bottom-color:rgba(231,206,141,.22);
}
.section--ground table.data td{
  color:var(--on-ground);
  border-bottom-color:rgba(231,206,141,.12);
}
.section--ground table.data tr:hover td{ background:rgba(231,206,141,.06); }

.section--ground .tile{
  background:rgba(239,234,223,.04);
  border-color:rgba(231,206,141,.18);
  color:var(--on-ground);
}
.section--ground .tile b{ color:var(--gold-hi); }
.section--ground .tile span{ color:var(--on-ground-soft); }

.section--ground .pill{ border-color:rgba(231,206,141,.28); }
.section--ground .pill--confirmed{ color:var(--sage); }
.section--ground .pill--expired{   color:rgba(239,234,223,.45); }
.section--ground .pill--completed{ color:var(--on-ground-soft); }

.section--ground .btn--light{ background:var(--gold-hi); border-color:var(--gold-hi); color:var(--ground); }
.section--ground .btn--light:hover{ background:var(--white); border-color:var(--white); }
.section--ground .btn--onDark{ background:transparent; color:var(--on-ground); border-color:rgba(231,206,141,.42); }
.section--ground .btn--onDark:hover{ background:var(--gold-hi); color:var(--ground); border-color:var(--gold-hi); }

/* the hero already lived on a photograph; it only needs the scrim deepened
   so the new fixed canvas behind it does not fight the headline */
.hero__scrim{
  background:linear-gradient(180deg,
    rgba(10,9,7,.72) 0%, rgba(10,9,7,.45) 38%, rgba(10,9,7,.88) 100%);
}
.hero__photo{ opacity:.55; }

/* ---------------------------------------------------------------------------
   5. MORE MOVEMENT — the part of rosabyillos.com that reads as "alive"
   A second, slower aurora on its own path, and a drifting starfield rendered
   as one repeating gradient rather than a hundred elements.
   --------------------------------------------------------------------------- */
.aurora--deep{
  inset:-40%;
  background:
    radial-gradient(40% 46% at 70% 66%, rgba(176,138,60,.26), transparent 64%),
    radial-gradient(36% 42% at 26% 82%, rgba(231,206,141,.16), transparent 62%),
    radial-gradient(50% 44% at 50% 10%, rgba(74,107,79,.20),  transparent 66%);
  filter:blur(54px);
  opacity:.55;
}
.driftfield{
  inset:-25%;
  background-image:
    radial-gradient(1.6px 1.6px at 12% 18%, rgba(231,206,141,.55), transparent 60%),
    radial-gradient(1.2px 1.2px at 68% 42%, rgba(255,248,225,.45), transparent 60%),
    radial-gradient(1.8px 1.8px at 34% 74%, rgba(231,206,141,.40), transparent 60%),
    radial-gradient(1.2px 1.2px at 86% 12%, rgba(255,248,225,.38), transparent 60%),
    radial-gradient(1.4px 1.4px at 52% 92%, rgba(231,206,141,.42), transparent 60%),
    radial-gradient(1.2px 1.2px at 8%  58%, rgba(255,248,225,.34), transparent 60%);
  background-size:420px 420px, 560px 560px, 380px 380px, 640px 640px, 500px 500px, 460px 460px;
  opacity:.75;
}

@media (prefers-reduced-motion: no-preference){
  .aurora--deep{ animation:aurora-deep 62s ease-in-out infinite alternate; }
  @keyframes aurora-deep{
    0%   { transform:translate3d( 4%, 3%, 0) scale(1.06); }
    50%  { transform:translate3d(-5%,-2%, 0) scale(1);    }
    100% { transform:translate3d( 2%,-4%, 0) scale(1.09); }
  }
  .driftfield{ animation:drift 150s linear infinite; }
  @keyframes drift{
    from{ background-position:0 0, 0 0, 0 0, 0 0, 0 0, 0 0; }
    to  { background-position:420px -840px, -560px -1120px, 380px -760px,
                              -640px -1280px, 500px -1000px, -460px -920px; }
  }
}
@media (prefers-reduced-motion: reduce){
  .driftfield{ animation:none; }
  .bgfx--page #vault{ display:none; }
}

/* phones: keep the layer, drop the two most expensive parts of it */
@media (max-width:680px){
  .bgfx--page #vault.is-ready{ opacity:.42; }
  .aurora--deep{ filter:blur(38px); opacity:.45; }
  .driftfield{ opacity:.5; }
  .section--ground{
    background:linear-gradient(180deg,
      rgba(18,16,12,.24) 0%, rgba(18,16,12,.74) 10%,
      rgba(18,16,12,.74) 90%, rgba(18,16,12,.24) 100%);
  }
}

@media print{
  .bgfx--page{ display:none !important; }
  body{ background:#fff; color:#000; }
  .section--ground{ background:none; color:#000; }
}

/* ---------------------------------------------------------------------------
   6. v5 — THE DAY LINE, and the reCAPTCHA credit
   ---------------------------------------------------------------------------
   A booking is now three consecutive parts (ingress, event, egress) rather
   than one block, so there is a small component for showing them in order.

   NOTE ON PLACEMENT: these rules sit at the very end of the file on purpose,
   AFTER the .nav re-declaration and the .mark overrides. Nothing here targets
   .nav or .mark, so source order costs nothing — but if you ever add a rule
   that does, put it below this block, not above it.
   --------------------------------------------------------------------------- */

.dayline{
  list-style:none;
  margin:1.35rem 0 0;
  padding:0;
  display:grid;
  gap:.5rem;
}
.dayline--wide{ margin-top:2rem; }

@media (min-width:720px){
  .dayline{ grid-template-columns:repeat(3, minmax(0,1fr)); gap:.65rem; }
  /* with ingress or egress switched off in config the list has two items or
     one; auto-fit keeps them filling the row instead of leaving a hole */
  .dayline{ grid-template-columns:repeat(auto-fit, minmax(11rem,1fr)); }
}

.dayline__seg{
  position:relative;
  padding:.85rem 1rem .9rem;
  border:1px solid rgba(20,18,14,.14);
  border-radius:.35rem;
  background:rgba(255,255,255,.5);
  overflow:hidden;
}
.dayline__seg::before{
  content:"";
  position:absolute; inset:0 auto 0 0;
  width:3px;
  background:var(--gold, #B08A3C);
}
.dayline__seg--in::before{    background:rgba(176,138,60,.55); }
.dayline__seg--event::before{ background:var(--verdant, #4A6B4F); }
.dayline__seg--out::before{   background:rgba(176,138,60,.35); }

.dayline__seg b{
  display:block;
  font:500 .62rem/1.4 var(--font-body, system-ui);
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--ink-soft, #6A6558);
  margin-bottom:.25rem;
}
.dayline__seg span{
  display:block;
  font-size:1rem;
  color:var(--ink, #14120E);
}
.dayline__seg small{
  display:block;
  margin-top:.3rem;
  font-size:.78rem;
  line-height:1.5;
  color:var(--ink-soft, #6A6558);
}

/* on the dark sections, and inside the dark "holding for you" panel */
.section--ground .dayline__seg,
.panel[style*="--ink"] .dayline__seg{
  background:rgba(239,234,223,.05);
  border-color:rgba(231,206,141,.20);
}
.section--ground .dayline__seg b,
.panel[style*="--ink"] .dayline__seg b{ color:var(--gold-hi, #E7CE8D); }
.section--ground .dayline__seg span,
.panel[style*="--ink"] .dayline__seg span{ color:var(--on-ground, #EFEADF); }
.section--ground .dayline__seg small,
.panel[style*="--ink"] .dayline__seg small{ color:var(--on-ground-soft, rgba(239,234,223,.66)); }

/* the ingress/egress line under each start time in the ledger */
.slot__span{
  display:block;
  margin-top:.12rem;
  font-family:var(--font-mono, ui-monospace, monospace);
  font-size:.7rem;
  letter-spacing:.04em;
  color:var(--ink-soft, #6A6558);
}
.slot:disabled .slot__span{ color:#9AA298; }
.slot.is-selected .slot__span{ color:rgba(247,245,239,.62); }
.section--ground .slot__span{ color:var(--on-ground-soft, rgba(239,234,223,.6)); }

/* Send button while reCAPTCHA is fetching a score. Usually invisible — it
   takes about 200ms — but it must exist, or a slow phone looks frozen. */
.btn.is-busy{
  opacity:.6;
  cursor:progress;
  pointer-events:none;
}

/* Google requires this credit whenever the reCAPTCHA badge is hidden. */
.recaptcha-note{
  margin:1.1rem 0 0;
  font-size:.74rem;
  line-height:1.6;
  color:var(--ink-soft, #6A6558);
}
.recaptcha-note a{ color:inherit; text-decoration:underline; text-underline-offset:2px; }
.recaptcha-note a:hover{ color:var(--gold, #B08A3C); }
.section--ground .recaptcha-note{ color:var(--on-ground-soft, rgba(239,234,223,.6)); }
.section--ground .recaptcha-note a:hover{ color:var(--gold-hi, #E7CE8D); }

/* RECAPTCHA_HIDE_BADGE in config.php is what makes this legitimate; the
   credit line above is the condition Google attaches to it. */
.hide-recaptcha-badge .grecaptcha-badge{ visibility:hidden; }

/* ===========================================================================
   7. v5.1 — THE reCAPTCHA v2 TICK BOX
   ---------------------------------------------------------------------------
   Appended at the very end, deliberately, and AFTER the .nav re-declaration
   and the .mark overrides. Nothing below targets .nav or .mark, so nothing
   here can revive the invisible-header bug of v4. If you add more rules
   later, add them BELOW this block and keep them off .nav and .mark.

   THE THING TO KNOW BEFORE EDITING ANY OF THIS: the tick box is a Google
   iframe. Its insides cannot be styled from here — not the tick, not the
   wording, not the colours. Only two levers exist, and both are in
   config/config.php: RECAPTCHA_THEME (dark / light) and RECAPTCHA_SIZE
   (normal / compact). Everything below dresses the frame it sits in.
   =========================================================================== */

.captcha{
  margin:1.75rem 0 1.5rem;
  padding:1.1rem 1.15rem 1.2rem;
  border:1px solid rgba(176,138,60,.28);
  border-radius:14px;
  background:rgba(0,0,0,.18);

  /* THESE TWO LINES ARE LOAD-BEARING, do not tidy them away.
     The form is display:grid, and a grid item defaults to min-width:auto,
     which means MIN-CONTENT. Google's tick box is a rigid 304px, so without
     min-width:0 this panel shoves itself wider than the form that contains
     it — measured at 332px inside a 288px column on a 320px phone, hanging
     off the right of the page. overflow:hidden then keeps the scaled frame
     below inside its own border. It cannot clip the image puzzle: Google
     renders that in a fixed overlay attached to <body>, not in here. */
  min-width:0;
  overflow:hidden;
}
.captcha__label{
  margin:0 0 .8rem;
  font-size:.82rem;
  letter-spacing:.02em;
  color:var(--ink-soft, #6A6558);
}
.section--ground .captcha{
  border-color:rgba(231,206,141,.22);
  background:rgba(0,0,0,.3);
}
.section--ground .captcha__label{ color:var(--on-ground-soft, rgba(239,234,223,.72)); }

/* The widget itself. Google hands us a fixed 304x78 iframe; letting it size
   itself and only constraining the wrapper keeps it crisp — scaling a frame
   full of small text is the one thing guaranteed to make it hard to read. */
.captcha .g-recaptcha{
  display:inline-block;
  line-height:0;
}
.captcha .g-recaptcha > div{ max-width:100%; }

/* The message line. Hidden until there is something to say — the [hidden]
   attribute is set by the server on first paint and by recaptcha.js after
   that, so the two never fight over an inline style. */
.captcha__msg{
  margin:.85rem 0 0;
  font-size:.82rem;
  line-height:1.55;
  color:var(--rose, #B4534E);
}
.captcha__msg[hidden]{ display:none; }

/* --rose is #9B5044, chosen to read on ivory. On the dark panel — and worse,
   on the washed-red background of .captcha--bad — it sinks into the
   backdrop. Rendered and checked: this lighter rose is the one that stays
   readable. Placed ABOVE the --static rules below on purpose; they have the
   same specificity, so source order is what decides between them. */
.section--ground .captcha__msg{ color:#E99A92; }

.captcha__msg--static{ color:var(--ink-soft, #6A6558); }
.section--ground .captcha__msg--static{ color:var(--on-ground-soft, rgba(239,234,223,.72)); }

/* Untouched or timed out. A warm ring, not a red alarm: the usual cause is a
   client who typed carefully for four minutes, which is not misbehaviour. */
.captcha--bad{
  border-color:rgba(180,83,78,.55);
  background:rgba(180,83,78,.08);
}
.section--ground .captcha--bad{ background:rgba(180,83,78,.14); }

/* The Send row, lifted out of the inline style it used to carry so that the
   tick box above it and the button below share one rhythm. */
.form__send{
  display:flex;
  flex-wrap:wrap;
  gap:1rem;
  align-items:center;
}

/* THE 304px PROBLEM.
   Google's tick box is a fixed 304 x 78 iframe and cannot be made narrower —
   data-size="compact" is the only other option and it is harder to read. So
   below a certain width we scale it down instead.

   WHERE THE BREAKPOINTS COME FROM, so nobody has to guess later:
   usable width = viewport - 32 (the shell's side padding) - this panel's own
   side padding. At the default 1.15rem padding that leaves 304px of room only
   from about 373px up — which means a 360px Android and a 375px iPhone would
   BOTH have overflowed if the breakpoint had been set at the obvious 360.
   Hence 389px, not 360.

   transform does not change the space an element reserves, so each step also
   pulls the leftover back with a negative margin: 78px tall scaled by 0.92
   renders 72, so 6px has to come off, and by 0.84 renders 66, so 13px does.
   The second step is set at 349px, not at the width where 0.92 stops fitting
   exactly (336px), so that there is real slack rather than a third of a pixel.
   Without that the panel keeps a visible gap under the box. */
@media (max-width:389px){
  .captcha{ padding:1rem .75rem 1.05rem; }
  .captcha .g-recaptcha{
    transform:scale(.92);
    transform-origin:0 0;
    margin-bottom:-6px;
  }
}
@media (max-width:349px){
  .captcha .g-recaptcha{
    transform:scale(.84);
    margin-bottom:-13px;
  }
}
