/* ============================================================
   Rebel Tech Miami — live 3D night city + Didone overlay
   ============================================================ */

:root {
  --ink: #03060b;
  --paper: #f2f0ed;
  --paper-70: rgba(242, 240, 237, 0.72);
  --paper-45: rgba(242, 240, 237, 0.64);
  --paper-18: rgba(242, 240, 237, 0.2);
  --paper-08: rgba(242, 240, 237, 0.09);

  --font-display: 'Noto Serif Display', 'Times New Roman', serif;
  --font-body: 'Satoshi', ui-sans-serif, system-ui, sans-serif;

  --text-xs: 0.6875rem;
  --text-base: 1.0625rem;

  --gutter: clamp(1.25rem, 5vw, 5.5rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --scrim: linear-gradient(to right, rgba(3, 6, 11, 0.93) 0%, rgba(3, 6, 11, 0.72) 48%, rgba(3, 6, 11, 0.12) 100%);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; height: 100vh; height: 100svh; }

img { display: block; width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, figure, figcaption { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--paper); color: var(--ink); }
:focus-visible { outline: 1px solid var(--paper); outline-offset: 4px; }

/* ---------- type primitives ---------- */

.label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  color: var(--paper-45);
  font-variant-numeric: tabular-nums;
}
.label--wide { letter-spacing: 0.4em; color: var(--paper-70); }

.display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.018em;
  text-wrap: balance;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.75);
}
.display em { font-style: italic; font-weight: 300; }

.display--xl { font-size: clamp(2.6rem, 7.6vw, 8rem); line-height: 0.94; }
.display--lg { font-size: clamp(2.1rem, 5.4vw, 5rem); }
.display--md { font-size: clamp(1.9rem, 4.2vw, 3.9rem); }

.lede {
  font-size: clamp(1rem, 1.4vw, 1.3rem);
  line-height: 1.5;
  color: var(--paper-70);
  max-width: 36ch;
  text-shadow: 0 1px 24px rgba(0, 0, 0, 0.85);
}

.rule { display: flex; align-items: center; gap: 1.25rem; margin-bottom: clamp(1.5rem, 3vw, 2.75rem); }
.rule::after { content: ''; flex: 1; height: 1px; background: var(--paper-18); }
.rule--center { justify-content: center; }
.rule--center::after { display: none; }

/* ============================================================
   3D canvas + atmosphere
   ============================================================ */

#scene {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100svh;
  display: block;
  object-fit: cover;
  background: #03060b;
  pointer-events: none;
  z-index: 0;
}
body.no3d #scene { display: none; }
body.no3d {
  background: #03060b url('assets/real-aerial-bay.jpg') center / cover no-repeat fixed;
}

.scene-grain {
  position: fixed;
  inset: -50%;
  z-index: 2;
  pointer-events: none;
  opacity: 0.05;
  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='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(3) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(-2%, 1%); }
  66% { transform: translate(1.5%, -1.5%); }
}
.scene-vignette {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 50%, rgba(0,0,0,0) 45%, rgba(0,0,0,0.62) 100%),
    linear-gradient(to top, rgba(3,6,11,0.75) 0%, rgba(3,6,11,0) 14%),
    linear-gradient(to bottom, rgba(3,6,11,0.6) 0%, rgba(3,6,11,0) 12%);
}

/* ============================================================
   GATE
   ============================================================ */

.gate {
  position: fixed;
  inset: 0;
  z-index: 60;
  transition: opacity 1.2s var(--ease), visibility 1.2s;
}
.gate__scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(110% 70% at 50% 46%, rgba(3,6,11,0.5) 0%, rgba(3,6,11,0.34) 50%, rgba(3,6,11,0.82) 100%),
    linear-gradient(to top, rgba(3,6,11,0.9), rgba(3,6,11,0) 55%);
}
.gate__inner {
  position: relative;
  height: 100%;
  padding: clamp(1.25rem, 3.5vw, 2.5rem) var(--gutter);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 1rem;
}
.gate__top, .gate__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.gate__center {
  align-self: center;
  min-height: 0;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: clamp(1rem, 2.2vw, 1.6rem);
}
.gate__eyebrow { animation: rise 1.2s var(--ease) 0.15s both; }
.gate__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3rem, 12vw, 12rem);
  line-height: 0.86;
  letter-spacing: -0.03em;
  text-shadow: 0 4px 60px rgba(0, 0, 0, 0.8);
  animation: rise 1.4s var(--ease) 0.3s both;
}
.gate__title em { display: block; font-style: italic; font-weight: 300; letter-spacing: -0.01em; }
.gate__title .br { display: inline-block; width: 0.28em; }
.gate__sub {
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  color: var(--paper-70);
  max-width: 30ch;
  animation: rise 1.4s var(--ease) 0.5s both;
}

.enter {
  position: relative;
  margin-top: clamp(0.75rem, 2vw, 1.5rem);
  width: clamp(7.5rem, 11vw, 10rem);
  height: clamp(7.5rem, 11vw, 10rem);
  display: grid;
  place-items: center;
  animation: rise 1.4s var(--ease) 0.7s both;
}
.enter[disabled] { cursor: progress; }
.enter__ring {
  position: absolute;
  inset: 0;
  border: 1px solid var(--paper-18);
  border-radius: 50%;
  transition: transform 0.9s var(--ease), border-color 0.6s ease;
}
.enter::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--paper-08);
  transform: scale(1.22);
  animation: pulse 3.4s ease-out infinite;
}
.enter__text { position: relative; color: var(--paper); }
@media (hover: hover) { .enter:not([disabled]):hover .enter__ring { transform: scale(0.92); border-color: var(--paper); } }

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.45); opacity: 0; }
}
@keyframes rise {
  from { opacity: 0; transform: translate3d(0, 1.1rem, 0); }
  to { opacity: 1; transform: none; }
}
.gate__note { font-size: var(--text-xs); letter-spacing: 0.04em; color: var(--paper-45); max-width: 46ch; }

.gate.is-open { opacity: 0; visibility: hidden; pointer-events: none; }

/* ============================================================
   CHROME
   ============================================================ */

.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--paper-08);
  z-index: 40;
  opacity: 0;
  transition: opacity 0.8s ease 0.5s;
}
.progress span { display: block; height: 100%; width: 0; background: var(--paper); }

.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 38;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.15rem var(--gutter);
  opacity: 0;
  transform: translateY(-0.75rem);
  transition: opacity 1s var(--ease) 0.6s, transform 1s var(--ease) 0.6s;
}
.mark { color: var(--paper); display: block; }
.topbar__nav { display: flex; gap: clamp(1rem, 2.5vw, 2.25rem); }
.topbar__nav button, .topbar__tel { color: var(--paper-70); transition: color 0.3s ease; }
@media (hover: hover) { .topbar__nav button:hover, .topbar__tel:hover { color: var(--paper); } }

.hud {
  position: fixed;
  bottom: clamp(1rem, 2.5vw, 2rem);
  left: var(--gutter);
  right: var(--gutter);
  z-index: 38;
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  opacity: 0;
  transition: opacity 1s var(--ease) 0.8s;
}
.hud__bar {
  flex: 1;
  height: 1px;
  background: var(--paper-08);
  position: relative;
  max-width: 420px;
}
.hud__bar i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--paper-45); display: block; }
#hudChapter { color: var(--paper-70); }

body.entered .progress, body.entered .hud { opacity: 1; }
body.entered .topbar { opacity: 1; transform: none; }

.scrollcue {
  position: fixed;
  z-index: 38;
  left: 50%;
  bottom: clamp(3.5rem, 8vh, 6rem);
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}
body.entered .scrollcue { opacity: 1; animation: cue 2.6s ease-in-out 1.2s infinite; }
body.moved .scrollcue { opacity: 0 !important; animation: none; }
@keyframes cue {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.35; }
  50% { transform: translate(-50%, 0.5rem); opacity: 0.9; }
}

@media (max-width: 700px) {
  .topbar__nav { display: none; }
  .hud { display: none; }
}

/* ============================================================
   OVERLAY PANELS (scroll-synced, fixed above the city)
   ============================================================ */

.scrolltrack { height: 1950vh; pointer-events: none; }  /* +200vh for the previews chapter, so the older chapters keep their pace */

.stage {
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.9s ease 0.6s;
}
body.entered .stage { opacity: 1; }

.panel {
  position: absolute;
  inset: 0;
  padding: clamp(4.5rem, 11vh, 8rem) var(--gutter) clamp(4.5rem, 12vh, 8rem);
  display: grid;
  align-content: center;
  gap: clamp(1rem, 2.2vw, 1.75rem);
  opacity: 0;
  visibility: hidden;
  transition: visibility 0.2s linear;
  will-change: opacity;
}
.panel.is-live { visibility: visible; }

.panel--left { justify-items: start; text-align: left; max-width: min(74rem, 92vw); }
.panel--right {
  justify-items: end;
  text-align: right;
  margin-left: auto;
  max-width: min(60rem, 92vw);
  left: auto;
}
.panel--right .lede { max-width: 40ch; }
.panel--center { justify-items: center; text-align: center; }

.panel--left::before, .panel--right::before, .panel--split::before, .panel--contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--scrim);
  z-index: -1;
}
.panel--right::before { background: linear-gradient(to left, rgba(3,6,11,0.93) 0%, rgba(3,6,11,0.72) 48%, rgba(3,6,11,0.12) 100%); }
.panel--center::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(85% 75% at 50% 50%, rgba(3,6,11,0.92) 0%, rgba(3,6,11,0.7) 55%, rgba(3,6,11,0.1) 100%);
  z-index: -1;
}

.panel .line { display: block; }

/* split chapter panels: title one side, spec the other */
.panel--split {
  align-content: center;
  grid-template-columns: 1fr;
  gap: clamp(1.75rem, 4vw, 3.5rem);
}
@media (min-width: 900px) {
  .panel--split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
    align-items: center;
  }
  .panel--flip .panel__head { order: 2; text-align: right; }
  .panel--flip .spec { order: 1; }
  .panel--flip::before {
    background: linear-gradient(to left, rgba(3,6,11,0.93) 0%, rgba(3,6,11,0.72) 48%, rgba(3,6,11,0.12) 100%);
  }
}
.panel__head { display: grid; gap: clamp(0.75rem, 1.6vw, 1.25rem); align-content: center; }

.spec { display: grid; gap: 0.9rem; max-width: 46ch; align-self: center; }
.spec li {
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  gap: 0.75rem;
  align-items: baseline;
  font-size: clamp(0.9rem, 1.15vw, 1.0625rem);
  color: var(--paper-70);
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--paper-08);
  text-shadow: 0 1px 20px rgba(0,0,0,0.9);
}
.spec li:last-child { border-bottom: 0; padding-bottom: 0; }

/* photo insets */
.shot {
  width: min(26rem, 62vw);
  border: 1px solid var(--paper-18);
  padding: 0.5rem;
  background: rgba(3, 6, 11, 0.55);
  backdrop-filter: blur(3px);
}
.shot--wide { width: min(34rem, 74vw); }
.shot img { filter: saturate(0.95) contrast(1.05); }
.shot figcaption { margin-top: 0.75rem; }

/* process */
.steps { display: grid; gap: clamp(1.25rem, 3vw, 2.5rem); margin-top: clamp(1.5rem, 3vw, 2.5rem); text-align: left; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { display: grid; gap: 0.6rem; padding-top: 1.1rem; border-top: 1px solid var(--paper-18); max-width: 34ch; }
.step__no { font-size: clamp(2rem, 3vw, 3rem); color: var(--paper-45); line-height: 1; }
.step__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.35rem, 1.9vw, 1.85rem); line-height: 1.1; }
.step p { color: var(--paper-70); font-size: 0.98rem; text-shadow: 0 1px 20px rgba(0,0,0,0.9); }

/* facts */
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.75rem, 5vw, 4rem); }
@media (min-width: 900px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.fact { display: grid; gap: 0.75rem; justify-items: center; }
.fact__n { font-size: clamp(2.75rem, 6vw, 5.5rem); line-height: 0.85; font-variant-numeric: tabular-nums; }

/* contact */
.panel--contact { justify-items: start; text-align: left; }
.panel--contact.is-live { pointer-events: auto; }
.tel {
  display: inline-block;
  font-size: clamp(1.6rem, 4.6vw, 3.75rem);
  border-bottom: 1px solid var(--paper-18);
  padding-bottom: 0.12em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  transition: border-color 0.4s ease;
}
@media (hover: hover) { .tel:hover { border-color: var(--paper); } }
.contact__grid { margin-top: clamp(1.5rem, 4vw, 3rem); display: grid; gap: clamp(1.25rem, 3vw, 2.5rem); width: 100%; max-width: 70rem; }
@media (min-width: 780px) { .contact__grid { grid-template-columns: repeat(3, 1fr); } }
.contact__grid > div { display: grid; gap: 0.75rem; border-top: 1px solid var(--paper-18); padding-top: 1rem; }
.contact__val { color: var(--paper-70); font-size: 0.98rem; line-height: 1.5; }
.contact__foot { margin-top: clamp(1.25rem, 3vw, 2.5rem); }

/* ============================================================
   fallback (no WebGL)
   ============================================================ */

body.no3d .scrolltrack { height: 1340vh; }
body.no3d .hud { display: none; }

/* ============================================================
   reduced motion
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  .scene-grain { animation: none; }
  .enter::after { animation: none; }
  body.entered .scrollcue { animation: none; }
}

/* ============================================================
   small screens
   ============================================================ */

@media (max-width: 700px) {
  .panel {
    padding: clamp(4rem, 12vh, 6rem) var(--gutter) clamp(3.5rem, 10vh, 5rem);
    justify-items: start !important;
    text-align: left !important;
  }
  .panel--right { margin-left: 0; }
  .panel--flip .panel__head { order: 0; text-align: left; }
  .panel::before,
  .panel--right::before,
  .panel--center::before,
  .panel--flip::before {
    background: linear-gradient(to top, rgba(3,6,11,0.9) 0%, rgba(3,6,11,0.62) 55%, rgba(3,6,11,0.35) 100%) !important;
  }
  .lede { max-width: none; }
  .shot { width: min(20rem, 78vw); }
  .steps { gap: 1.1rem; }
  .step { padding-top: 0.85rem; }
  .step p { font-size: 0.92rem; }
  .fact { justify-items: start; }
  .gate__title { font-size: 15vw; }
  .gate__title .br { display: block; width: 0; height: 0; }
  .enter { width: 7rem; height: 7rem; }
}

/* ============================================================
   Pricing tiers, work index, FAQ
   ============================================================ */

.price {
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.lede--center { margin-inline: auto; text-align: center; }


/* ---------- previews: one tab per tier, a swipeable row of live-site clips ---------- */
.panel--previews { align-content: center; gap: clamp(0.75rem, 1.6vh, 1.25rem); }
.panel--previews.is-live { pointer-events: auto; }
.tiers { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-top: clamp(0.25rem, 1vh, 0.75rem); }
.tier {
  min-height: 44px;
  padding: 0.6rem 1.1rem;
  border: 1px solid var(--paper-18);
  border-radius: 999px;
  color: var(--paper-70);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.tier[aria-selected="true"] { background: var(--paper); color: var(--ink); border-color: var(--paper); }
@media (hover: hover) { .tier:not([aria-selected="true"]):hover { color: var(--paper); border-color: var(--paper-45); } }
.tier__price { opacity: 0.6; margin-left: 0.4em; }

.reel {
  /* two rows that swipe sideways together: 21 sites in ~11 columns instead of a mile-long single row */
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(2, auto);
  grid-auto-columns: clamp(13rem, 17.5vw, 16rem);
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
  width: min(78rem, 100%);
  margin-inline: auto;
  padding: 0.25rem 0.25rem 0.75rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0.25rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.reel::-webkit-scrollbar { display: none; }
.card {
  scroll-snap-align: start;
  display: grid;
  gap: 0.6rem;
  text-align: left;
  color: var(--paper);
  text-decoration: none;
}
.card[hidden] { display: none; }
.card__shot {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 6px;
  background: #0a0e14;
  border: 1px solid var(--paper-08);
  transition: border-color 0.4s var(--ease), transform 0.5s var(--ease);
}
.card__shot video, .card__shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card__shot::after {
  /* browser chrome: a thin bar with three dots, so it reads as a website not a photo */
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 10px;
  background: rgba(3, 6, 11, 0.55);
  backdrop-filter: blur(4px);
  pointer-events: none;
}
.card__dots {
  position: absolute;
  top: 3px; left: 6px;
  display: flex; gap: 3px;
  z-index: 1;
}
.card__dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--paper-45); display: block; }
.card__tag {
  position: absolute;
  top: 0.6rem; right: 0.6rem;
  z-index: 1;
  font-size: 0.52rem;
  letter-spacing: 0.2em;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  color: var(--paper);
  background: rgba(3, 6, 11, 0.62);
  border: 1px solid var(--paper-18);
  backdrop-filter: blur(4px);
}
.card__name { display: grid; gap: 0.15rem; font-size: 0.9rem; line-height: 1.25; }
.card__name .label { font-size: 0.56rem; color: var(--paper-45); }
@media (hover: hover) {
  .card:hover .card__shot { border-color: var(--paper-45); transform: translateY(-3px); }
}
.previews__hint { text-align: center; color: var(--paper-45); }
@media (max-width: 700px) {
  .reel { grid-template-rows: auto; grid-auto-columns: 74vw; }
  .tier { padding: 0.55rem 0.85rem; font-size: 0.6rem; letter-spacing: 0.18em; }
  .tier__price { display: none; }
  .panel--previews { padding-inline: 0; }
  .panel--previews > :not(.reel) { padding-inline: var(--gutter); }
  .reel { padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
}
@media (max-height: 700px) and (min-width: 701px) {
  /* short laptop screens: one row so the chapter still fits */
  .panel--previews .display--md { font-size: clamp(1.4rem, 3.2vw, 2rem); }
  .reel { grid-template-rows: auto; grid-auto-columns: clamp(12rem, 20vw, 16rem); }
}

.faq { display: grid; gap: clamp(1.1rem, 2.4vh, 1.9rem); max-width: 48ch; align-self: center; }
.faq dt {
  font-family: var(--font-display);
  font-size: clamp(1.02rem, 1.5vw, 1.3rem);
  line-height: 1.2;
  margin-bottom: 0.4rem;
}
.faq dd {
  margin: 0;
  color: var(--paper-70);
  font-size: 0.92rem;
  line-height: 1.55;
  max-width: 46ch;
}

.contact__val a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(244,242,239,0.3); }
@media (hover: hover) { .contact__val a:hover { border-color: var(--paper); } }

@media (max-width: 700px) {
  .faq dd { font-size: 0.85rem; }
  .faq { gap: 0.9rem; }
}

/* keep FAQ copy readable over bright footage */
.faq {
  padding: clamp(0.9rem, 2vw, 1.4rem) clamp(1rem, 2vw, 1.5rem);
  background: linear-gradient(180deg, rgba(3, 6, 11, 0.62), rgba(3, 6, 11, 0.46));
  border-left: 1px solid var(--paper-18);
  border-radius: 2px;
}
.faq dt, .faq dd { text-shadow: 0 1px 14px rgba(0, 0, 0, 0.7); }
.card__name { text-shadow: 0 1px 12px rgba(0, 0, 0, 0.72); }

/* the cloud-break descent: HUD reads out while scroll stays locked */
body.dropping .progress, body.dropping .hud { opacity: 1; }
body.dropping .topbar { opacity: 0; transform: translateY(-140%); }
body.no3d #scene { display: none; }

/* ============================================================
   WELCOME — lands with the drone, clears on the first scroll
   ============================================================ */

.welcome {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: grid;
  place-items: center;
  padding: var(--gutter);
  text-align: center;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.1s var(--ease), visibility 1.1s;
}
body.landed .welcome { opacity: 1; visibility: visible; }
body.moved .welcome { opacity: 0; visibility: hidden; transition-duration: 0.55s; }

.welcome__inner {
  display: grid;
  justify-items: center;
  gap: clamp(0.6rem, 1.4vw, 1rem);
  width: min(58rem, 100%);
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 4.5rem);
  background: radial-gradient(68% 62% at 50% 50%, rgba(3, 6, 11, 0.85) 0%, rgba(3, 6, 11, 0.6) 46%, rgba(3, 6, 11, 0) 78%);
}
body.landed .welcome__eyebrow { animation: rise 1s var(--ease) 0.3s both; }
body.landed .welcome__title { animation: rise 1.2s var(--ease) 0.45s both; }
body.landed .welcome__slogan { animation: rise 1.2s var(--ease) 0.7s both; }
body.landed .welcome__note { animation: rise 1.1s var(--ease) 1s both; }

.welcome__eyebrow { color: var(--paper-70); }
.welcome__title {
  font-size: clamp(2.75rem, 8.5vw, 7rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.75);
}
.welcome__title em { font-style: italic; font-weight: 300; }
.welcome__slogan {
  font-size: clamp(0.98rem, 1.7vw, 1.35rem);
  line-height: 1.45;
  color: var(--paper);
  max-width: 27ch;
  text-wrap: balance;
  text-shadow: 0 1px 24px rgba(0, 0, 0, 0.8);
}
/* the cue: "Scroll to fly" + a bobbing arrow, the last thing to rise once the drop stops */
.welcome__note {
  color: var(--paper);
  font-size: clamp(0.72rem, 1.1vw, 0.85rem);
  letter-spacing: 0.42em;
  text-shadow: 0 1px 18px rgba(0,0,0,0.85);
  margin-top: clamp(1rem, 2.6vh, 1.8rem);
}
.welcome__arrow {
  position: relative;
  width: 1px;
  height: clamp(2.2rem, 5vh, 3.2rem);
  background: linear-gradient(to bottom, var(--paper-18), var(--paper));
  display: block;
}
.welcome__arrow i {
  position: absolute;
  left: 50%; bottom: 0;
  width: 0.55rem; height: 0.55rem;
  border-right: 1px solid var(--paper);
  border-bottom: 1px solid var(--paper);
  transform: translate(-50%, 0) rotate(45deg);
}
body.landed .welcome__arrow { animation: rise 1.2s var(--ease) 1.2s both, bob 1.8s ease-in-out 2.4s infinite; }
@keyframes bob {
  0%, 100% { transform: translateY(0); opacity: 0.55; }
  50% { transform: translateY(0.45rem); opacity: 1; }
}
/* one cue is enough: the small bottom one stays hidden while the welcome card is up */
body.landed:not(.moved) .scrollcue { opacity: 0; animation: none; }
@media (prefers-reduced-motion: reduce) { body.landed .welcome__arrow { animation: none; } }

@media (max-width: 700px) {
  .welcome__inner { padding: 3rem 1.25rem; }
  .welcome__slogan { max-width: 24ch; }
}

/* ============================================================
   BUTTONS + CONSULT SHEET
   ============================================================ */

.topbar__right { display: flex; align-items: center; gap: clamp(0.75rem, 2vw, 1.5rem); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.62rem 1.15rem;
  border: 1px solid var(--paper-18);
  background: rgba(3, 6, 11, 0.5);
  color: var(--paper);
  cursor: pointer;
  transition: border-color 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease);
  white-space: nowrap;
}
@media (hover: hover) { .btn:hover { border-color: var(--paper); background: rgba(3, 6, 11, 0.72); } }
.btn--lg { padding: 0.85rem 1.6rem; }
.btn--solid { background: var(--paper); color: #05080e; border-color: var(--paper); }
@media (hover: hover) { .btn--solid:hover { background: #fff; color: #05080e; border-color: #fff; } }
.btn:disabled { opacity: 0.55; cursor: default; }

.contact__cta { margin-top: 0.4rem; }
.panel--contact.is-live .btn, .topbar .btn { pointer-events: auto; }

.sheet { position: fixed; inset: 0; z-index: 70; }
.sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 4, 8, 0.86);
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}
.sheet__panel {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(3.5rem, 8vh, 6rem) var(--gutter) clamp(3rem, 8vh, 5rem);
  display: grid;
  align-content: start;
  justify-items: center;
  gap: clamp(1.5rem, 4vh, 2.5rem);
  background: linear-gradient(180deg, rgba(4, 7, 12, 0.985), rgba(3, 6, 11, 1));
  transform: translateY(2.5%);
  opacity: 0;
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease);
}
body.sheet-open .sheet__backdrop { opacity: 1; }
body.sheet-open .sheet__panel { opacity: 1; transform: none; }

.sheet__close {
  position: fixed;
  top: clamp(1rem, 3vh, 2rem);
  right: var(--gutter);
  z-index: 2;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--paper-18);
  padding: 0.25rem 0;
  color: var(--paper-70);
  cursor: pointer;
}
@media (hover: hover) { .sheet__close:hover { color: var(--paper); border-color: var(--paper); } }

.sheet__head { width: min(52rem, 100%); display: grid; gap: 0.85rem; }
.sheet__note { color: var(--paper-70); font-size: 0.95rem; line-height: 1.55; max-width: 52ch; }
.sheet__note a { color: var(--paper); }

.form {
  width: min(52rem, 100%);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.1rem, 2.6vh, 1.6rem) 2rem;
}
@media (min-width: 760px) { .form { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 0.45rem; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field__opt { color: var(--paper-45); letter-spacing: 0.12em; }

.field label { color: var(--paper-70); }
.field input, .field select, .field textarea {
  width: 100%;
  background: rgba(244, 242, 239, 0.03);
  border: 0;
  border-bottom: 1px solid var(--paper-18);
  padding: 0.7rem 0.15rem;
  color: var(--paper);
  font-family: var(--font-body);
  /* Must stay at or above 16px: iOS Safari zooms the whole page when a smaller
     field takes focus, and the visitor has to pinch back out mid-enquiry. */
  font-size: 1rem;
  border-radius: 0;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.field textarea { resize: vertical; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: rgba(242, 240, 237, 0.3); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--paper);
  background: rgba(244, 242, 239, 0.06);
}
.field select { appearance: none; cursor: pointer; }
.field select option { background: #05080e; color: var(--paper); }
.field .is-empty { border-color: #d98a7a; }

.honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.form__foot { display: grid; justify-items: start; gap: 0.9rem; margin-top: 0.4rem; }
.form__err { color: #e2a08f; }
.form__alt { color: var(--paper-45); }
.form__alt a { color: var(--paper); border-bottom: 1px solid var(--paper-18); }

.sheet__done { width: min(46rem, 100%); display: grid; gap: 1rem; justify-items: start; }
.sheet__done .btn { margin-top: 0.6rem; }

@media (max-width: 700px) {
  .topbar__tel { display: none; }
  .btn { padding: 0.5rem 0.85rem; }
  .sheet__panel { padding-top: 4.5rem; }
}

[hidden] { display: none !important; }

/* ============================================================
   LANGUAGE SWITCH
   ============================================================ */

.langswitch { display: inline-flex; align-items: center; gap: 0.5rem; }
.langswitch__btn {
  background: none;
  border: 0;
  padding: 0.55rem 0.4rem;
  min-height: 44px;
  /* Real width, not a pseudo-element expander: these two sit side by side, and an
     invisible overlay would spill across its neighbour and swallow the wrong tap. */
  min-width: 44px;
  color: var(--paper-45);
  cursor: pointer;
  letter-spacing: 0.22em;
  transition: color 0.3s ease;
}
@media (hover: hover) { .langswitch__btn:hover { color: var(--paper); } }
.langswitch__btn.is-on { color: var(--paper); }
.langswitch__btn.is-on::after {
  content: '';
  display: block;
  height: 1px;
  margin-top: 0.3rem;
  background: var(--paper);
}
.langswitch__sep { color: rgba(242, 240, 237, 0.32); }

.gate__topright { display: flex; align-items: center; gap: clamp(0.75rem, 2vw, 1.75rem); }

/* ============================================================
   ACCESSIBILITY (WCAG 2.1 AA)
   ============================================================ */

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: fixed;
  top: 0.5rem;
  left: 50%;
  transform: translate(-50%, -160%);
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--paper);
  color: #05080e;
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  transition: transform 0.2s ease;
}
.skip:focus { transform: translate(-50%, 0); }

/* every interactive element gets a visible keyboard ring */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 3px;
  border-radius: 1px;
}
.enter:focus-visible { outline-offset: 8px; }

/* touch targets */
.topbar__nav button { min-height: 44px; padding: 0.5rem 0.25rem; }
.topbar__tel { display: inline-flex; align-items: center; min-height: 44px; }

/* the descent can always be skipped — WCAG 2.2.2 */
.skipdrop {
  position: fixed;
  z-index: 65;
  bottom: clamp(4.5rem, 12vh, 7rem);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(3, 6, 11, 0.72);
}

/* honour a visitor's reduced-motion setting */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .scene-grain { display: none; }
}

.contact__foot { margin-bottom: clamp(1.75rem, 4vh, 2.75rem); }

@media (max-width: 780px) {
  .topbar { gap: 0.75rem; }
  .topbar__right { gap: 0.85rem; flex-wrap: nowrap; }
  .topbar__tel { display: none; }
  .btn--book { padding: 0.6rem 0.85rem; font-size: 0.6rem; letter-spacing: 0.16em; white-space: nowrap; }
  .langswitch { flex: 0 0 auto; }
}

.field__hint {
  margin-top: -0.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--paper-45);
}
.form__errlink {
  color: var(--paper);
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-left: 0.4rem;
}


/* ============================================================
   Touch parity
   Everything reachable with a mouse has to be reachable with a thumb. These grow
   the hit areas to the 44px minimum without shifting anything visually.
   ============================================================ */

@media (pointer: coarse) {
  .tel, .mark, .btn, .work a, .contact__val a, .foot a, .topbar__tel { position: relative; }
  .tel::after, .mark::after, .btn::after, .work a::after,
  .contact__val a::after, .foot a::after, .topbar__tel::after {
    content: '';
    position: absolute; left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    width: 100%; height: 100%;
    min-width: 44px; min-height: 44px;
  }
  .btn { min-height: 44px; }
}

/* ============================================================
   Gate: fit the viewport HEIGHT, not just its width
   ------------------------------------------------------------
   The gate sized its headline and enter button from vw alone
   (12vw title, 11vw button). On a wide-but-SHORT window the
   centre row overflowed and pushed the enter button past the
   bottom edge. Because the gate locks page scrolling, the
   button then could not be reached at all and the site looked
   frozen. Measured broken at 1366x600 and 1280x500.

   Every vertical measure is now capped against vh as well as
   vw, and the gate can scroll as a last-resort safety net so
   the button is reachable no matter how short the window is.
   Keep this block LAST in the file: it intentionally overrides
   the base rules above at equal specificity.
   ============================================================ */
.gate__inner { overflow-y: auto; overscroll-behavior: contain; }
.gate__title { font-size: clamp(2.4rem, min(12vw, 16vh), 12rem); }
.gate__sub   { font-size: clamp(0.9rem, min(1.4vw, 2.2vh), 1.15rem); }
.gate__center { gap: clamp(0.6rem, min(2.2vw, 1.8vh), 1.6rem); }
.enter {
  margin-top: clamp(0.5rem, min(2vw, 1.6vh), 1.5rem);
  width:  clamp(5rem, min(11vw, 19vh), 10rem);
  height: clamp(5rem, min(11vw, 19vh), 10rem);
}

@media (max-height: 46rem) {
  .gate__inner { padding-top: clamp(0.75rem, 2vw, 1.5rem); padding-bottom: clamp(0.75rem, 2vw, 1.5rem); gap: 0.5rem; }
  .gate__note { font-size: 0.7rem; }
}
