/* ==========================================================
   Morning Colors Co.
   Palette: the sky just before sunrise. Delicate blues, soft pinks,
   quiet whites, with a deep blue-hour ink for text.
   Layout: one centered column over a single sky that brightens as you scroll.
   ========================================================== */

:root {
  /* Color tokens */
  --ink: #1F2A44;              /* blue-hour ink: text and solid buttons */
  --ink-hover: #2F3E63;
  --ink-soft: #55607A;
  --white: #FFFFFF;
  --cloud: #FAFCFF;            /* daylight page background */
  --mist: #EEF4FB;
  --sky: #A9CBF2;
  --sky-pale: #CFE2F8;
  --lilac: #CFC2EE;
  --blush: #FBD9E2;
  --rose: #F4A9BC;
  --peach: #FFE6DA;
  --blue-deep: #2F5FB3;        /* icons and links on light surfaces (AA) */
  --rose-deep: #B43A64;        /* accent text on light surfaces (AA) */
  --line: rgba(31, 42, 68, .12);
  --line-strong: rgba(31, 42, 68, .22);
  --glass: rgba(255, 255, 255, .72);
  --danger: #B42318;
  --success: #0F7A4D;

  --dawn: linear-gradient(100deg, var(--sky) 0%, var(--lilac) 50%, #F7B8C8 100%);
  --dawn-deep: linear-gradient(100deg, #3F6FC4 0%, #8A6BC9 50%, #D4577F 100%);   /* for large text */

  /* Type */
  --font-display: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Spacing and shape */
  --gutter: clamp(20px, 5vw, 48px);
  --section: clamp(88px, 13vw, 176px);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;

  /* Motion */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --fast: 200ms;

  /* Layers */
  --z-sky: -1;
  --z-veil: 90;
  --z-night: 1500;
  --z-dock: 100;
  --z-skip: 1000;

  --shadow-card: 0 30px 80px -34px rgba(63, 96, 160, .4), 0 2px 8px rgba(63, 96, 160, .08);
  --shadow-soft: 0 18px 40px -28px rgba(63, 96, 160, .45);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 32px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cloud);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;   /* clip keeps position: sticky working */
}

h1, h2, h3, p, ul, ol, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
img, svg { display: block; max-width: 100%; }

.svg-defs { position: absolute; }
.icon { width: 20px; height: 20px; flex: none; }

:focus-visible {
  outline: 3px solid var(--blue-deep);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: min(880px, 100%);
  margin-inline: auto;
  padding-inline: var(--gutter);
  text-align: center;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: var(--z-skip);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  font-weight: 700;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* ---------- The sky ---------- */
.sky { position: fixed; inset: 0; z-index: var(--z-sky); pointer-events: none; }
.sky-layer { position: absolute; inset: 0; will-change: opacity; }
/* Blue hour: blue overhead, pink toward the horizon */
.sky-dawn { background: linear-gradient(180deg, #C6DDF7 0%, #DBE8FA 30%, #EFE6F6 60%, var(--blush) 86%, var(--peach) 100%); }
/* Sunrise: warm light coming up from below */
.sky-sunrise {
  opacity: 0;
  background:
    radial-gradient(120% 70% at 50% 108%, rgba(255, 214, 196, .95) 0%, rgba(251, 217, 226, .7) 38%, rgba(255, 255, 255, 0) 72%),
    linear-gradient(180deg, #E4EEFB 0%, var(--cloud) 55%);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform var(--fast) var(--ease-out), box-shadow var(--fast) var(--ease-out), background-color var(--fast);
}
.btn .icon { transition: transform var(--fast) var(--ease-out); }
.btn:hover .icon { transform: translateX(4px); }
.btn:active { transform: scale(.97); }

.btn-primary {
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 12px 28px -14px rgba(31, 42, 68, .6);
}
.btn-primary:hover { background: var(--ink-hover); box-shadow: 0 16px 32px -14px rgba(31, 42, 68, .7); }

.btn-ghost {
  background: rgba(255, 255, 255, .55);
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .9); }

.btn-lg { min-height: 56px; padding: 16px 28px; font-size: 1.0625rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: progress; }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.brand-mark { width: 36px; height: 36px; flex: none; }
.brand-word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -.02em;
  white-space: nowrap;
}
.brand-word em { font-style: normal; font-weight: 400; color: var(--rose-deep); }

.masthead {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  padding: 20px var(--gutter) 0;
}

/* ---------- Floating dock navigation ---------- */
.dock {
  position: fixed;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: var(--z-dock);
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 6px;
  border-radius: 999px;
  /* Solid instead of blurred glass: a live blur repaints on every scroll frame */
  background: rgba(255, 255, 255, .94);
  border: 1px solid var(--white);
  box-shadow: 0 18px 44px -18px rgba(63, 96, 160, .55), 0 2px 6px rgba(63, 96, 160, .1);
  transform: translateX(-50%);
  max-width: calc(100vw - 24px);
}
.dock a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  white-space: nowrap;
  transition: background-color var(--fast), color var(--fast);
}
.dock a:not(.dock-cta):hover { background: rgba(31, 42, 68, .07); }
.dock a.is-current:not(.dock-cta) { background: rgba(31, 42, 68, .1); }
.dock-cta { margin-left: 4px; background: var(--ink); color: var(--white); }
.dock-cta:hover { background: var(--ink-hover); }
@media (max-width: 420px) {
  .dock a { padding: 0 11px; font-size: .875rem; }
}
@media (max-width: 380px) {
  .dock a { padding: 0 9px; }
  .dock-cta { margin-left: 2px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 112px var(--gutter) 150px;
  text-align: center;
}
.hero-art {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
/* Last stars fading at the top of the sky */
.hero-stars {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .95) 1px, transparent 1.5px);
  background-size: 52px 52px;
  opacity: .6;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 42%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 42%);
}
/* The sun, still below the horizon */
.hero-sun {
  --d: clamp(280px, 62vmin, 640px);
  position: absolute;
  left: 50%;
  bottom: calc(var(--d) * -.42);
  width: var(--d);
  height: var(--d);
  margin-left: calc(var(--d) / -2);
  border-radius: 50%;
  background: radial-gradient(closest-side, #FFFFFF 0%, rgba(255, 240, 232, .95) 45%, rgba(255, 214, 200, .55) 72%, rgba(255, 214, 200, 0) 100%);
  will-change: transform;
}
/* Ribbons of color drifting across the horizon */
.ribbons {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 64%;
}

.hero-inner { width: min(980px, 100%); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .9);
  background: rgba(255, 255, 255, .6);
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}
.eyebrow .icon { color: var(--rose-deep); }

.hero-title {
  margin-top: 28px;
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 9.4vw, 7.25rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -.035em;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; }
.hero-title .line > span { display: block; }
.hero-title em,
.section-title em { font-style: normal; font-weight: 600; }
.grad {
  background: var(--dawn-deep);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lede {
  margin: 28px auto 0;
  max-width: 50ch;
  font-size: clamp(1.08rem, 1.5vw, 1.25rem);
  color: var(--ink-soft);
  text-wrap: balance;
}
.hero-lede span { display: block;
}
.hero-actions { margin-top: 36px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 92px;
  width: 44px;
  height: 44px;
  margin-left: -22px;
  display: grid;
  place-items: center;
}
.scroll-cue span {
  width: 2px;
  height: 34px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--ink), rgba(31, 42, 68, 0));
  transform-origin: top;
  animation: cue 2.2s var(--ease-out) infinite;
}
@keyframes cue {
  0% { transform: scaleY(0); opacity: 1; }
  60% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}
@media (max-height: 700px) { .scroll-cue { display: none; } }

/* ---------- Manifesto ---------- */
.manifesto { padding: var(--section) var(--gutter); }
.manifesto-text {
  width: min(1000px, 100%);
  margin-inline: auto;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4.3vw, 3.3rem);
  font-weight: 300;
  line-height: 1.22;
  letter-spacing: -.02em;
  text-align: center;
  text-wrap: balance;
}
.manifesto-text .w { display: inline-block; }

/* ---------- Shared section type ---------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--rose-deep);
}
.kicker::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(180deg, #6FA3E0, #F59DB4);
}
.section-title {
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.6vw, 4.2rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -.03em;
  text-wrap: balance;
}
.section-lede { margin: 22px auto 0; max-width: 52ch; font-size: 1.125rem; color: var(--ink-soft); }

/* ---------- Craft: the self-assembling site ---------- */
.craft { padding: var(--section) 0; }

.stage {
  position: relative;
  width: min(860px, 100% - 2 * var(--gutter));
  margin: clamp(40px, 6vw, 72px) auto 0;
}
.browser {
  background: var(--white);
  border: 1px solid var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  background: var(--mist);
  border-bottom: 1px solid var(--line);
}
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--sky); }
.browser-bar i:nth-child(2) { background: var(--lilac); }
.browser-bar i:nth-child(3) { background: var(--rose); }
.browser-url { flex: 1; max-width: 46%; height: 16px; margin-inline: auto; border-radius: 999px; background: var(--white); }
.browser-body {
  position: relative;
  container-type: inline-size;            /* everything inside scales with the window, like a picture */
  padding: 4.5% 6% 5.5%;                 /* percentages, so the frame scales with the window too */
  overflow: hidden;
}

/* ----- The sample site ----- */
/* A sample client's brand, on purpose not ours: warm stone, slate and clay with a refined
   serif and square corners. Its dawn image links it back to our sunrise. */
.mock {
  --mk-ink: #2B3238;
  --mk-soft: #6A7076;
  --ease-mk: cubic-bezier(.22, 1, .36, 1);
  background: #F4F0E9;
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-synthesis: none;
  transition: background .9s var(--ease-mk);
}
/* Fine blueprint squares behind the wireframe stage */
.mock::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(47, 95, 179, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(47, 95, 179, .07) 1px, transparent 1px);
  background-size: 2cqw 2cqw;
  opacity: 0;
  transition: opacity .6s ease;
}
.mk-el { transition: background .7s var(--ease-mk), box-shadow .7s var(--ease-mk), outline-color .5s, transform .7s var(--ease-mk), opacity .7s var(--ease-mk); transition-delay: var(--d, 0s); }
.mk-t {
  border-radius: .4cqw;
  transition: color .6s var(--ease-mk), background-color .6s var(--ease-mk);
  transition-delay: var(--d, 0s);
}
.mk-el .mk-t { transition-delay: inherit; }

.mk-nav { display: flex; align-items: center; justify-content: space-between; }
.mk-logo { display: inline-flex; align-items: center; gap: 1.2cqw; font-size: 2.7cqw; color: var(--mk-ink); }
.mk-logo i { width: 2.2cqw; height: 2.2cqw; background: linear-gradient(135deg, #2B3238 50%, #B4694A 50%); transition: background .6s, outline-color .5s; transition-delay: inherit; outline: 1.5px dashed transparent; }
.mk-links { display: inline-flex; gap: 3cqw; font-size: 1.95cqw; color: var(--mk-soft); }

.mk-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 5cqw; align-items: center; margin-top: 6cqw; }
.mk-copy { display: grid; justify-items: start; gap: 1.6cqw; }
.mk-kicker { font-size: 1.5cqw; letter-spacing: .16em; text-transform: uppercase; color: #9A5436; }
.mk-h1 { text-wrap: balance; font-size: 6.2cqw; line-height: 1.02; letter-spacing: -.012em; color: var(--mk-ink); }
.mk-p { font-size: 2.15cqw; color: var(--mk-soft); }
.mk-btns { display: inline-flex; gap: 1.6cqw; margin-top: 1cqw; }
.mk-btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  padding: 1.3cqw 2.6cqw;
  border-radius: .3cqw;
  font-size: 1.95cqw;
  transition: transform .45s var(--ease-mk), box-shadow .45s var(--ease-mk), background .6s, outline-color .5s;
  outline: 1.5px dashed transparent;
}
.mk-btn-solid { background: var(--mk-ink); color: #F4F0E9; }
.mk-btn-line { box-shadow: inset 0 0 0 1.5px rgba(43, 50, 56, .35); color: var(--mk-ink); }
.mk-ripple { position: absolute; left: 50%; top: 50%; width: 1cqw; height: 1cqw; margin: -.5cqw; border-radius: 50%; background: rgba(244, 240, 233, .5); transform: scale(0); opacity: 0; }

.mk-image { position: relative; aspect-ratio: 4 / 3; border-radius: .4cqw; overflow: hidden; box-shadow: 0 2cqw 4cqw -2.4cqw rgba(43, 50, 56, .6); outline: 1.5px dashed transparent; outline-offset: -1px; }
.mk-scene { display: block; width: 100%; height: 100%; transition: opacity .8s var(--ease-mk); transition-delay: inherit; }
.mk-plan { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .4s ease; fill: none; stroke: #2F5FB3; stroke-width: 1; pointer-events: none; }
.mk-plan path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 0s linear .45s; }
.mk-sun { transform-box: fill-box; transform-origin: center; transition: transform 1.8s var(--ease-mk); transition-delay: calc(var(--d, 0s) + .25s); }
.mk-win { fill: #F6D9A8; transition: fill .8s ease; transition-delay: calc(var(--d, 0s) + .7s + var(--w, 0s)); }
.mk-light { transition: opacity 1.6s ease; transition-delay: calc(var(--d, 0s) + .5s); }

.mk-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.4cqw; margin-top: 6cqw; }
.mk-card { display: grid; gap: 1.2cqw; padding: 1.2cqw; border-radius: .4cqw; background: #FBF9F5; box-shadow: 0 1.6cqw 3cqw -2cqw rgba(43, 50, 56, .45); font-size: 2.05cqw; color: var(--mk-ink); outline: 1.5px dashed transparent; outline-offset: -1px; }
.mk-card-img { display: block; aspect-ratio: 16 / 10; border-radius: .2cqw; overflow: hidden; transition: background .7s var(--ease-mk); transition-delay: inherit; }
.mk-card-img svg { display: block; width: 100%; height: 100%; transition: opacity .7s var(--ease-mk); transition-delay: inherit; }
.mk-card:nth-child(1) .mk-card-img { background: linear-gradient(160deg, #E7E0D5, #D2C8B8); }
.mk-card:nth-child(2) .mk-card-img { background: linear-gradient(160deg, #4A545D, #2F373E); }
.mk-card:nth-child(3) .mk-card-img { background: linear-gradient(160deg, #EBCDB8, #D2A386); }

/* The plan layer: a column grid and spacing measurements */
.mk-grid { position: absolute; inset: 0 6%; display: grid; grid-template-columns: repeat(6, 1fr); gap: 2.4cqw; opacity: 0; transition: opacity .6s ease; pointer-events: none; }
.mk-grid i { background: rgba(111, 163, 224, .05); border-left: 1px solid rgba(111, 163, 224, .22); border-right: 1px solid rgba(111, 163, 224, .22); }
.mk-measure {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(.8);
  transition: opacity .4s ease, transform .5s var(--ease-mk);
}
.mk-measure::before { content: ""; position: absolute; background: #2F5FB3; }
.mk-measure b { position: relative; padding: .25cqw .8cqw; border-radius: .6cqw; background: #2F5FB3; color: #fff; font-size: 1.15cqw; font-weight: 700; line-height: 1.3; }
/* Space between the menu and the headline */
.mk-measure-a { left: 1.4cqw; top: 9.6cqw; width: 4cqw; height: 7.8cqw; }
.mk-measure-a::before { left: 50%; top: 0; bottom: 0; width: 1px; }
/* Space between two project cards */
.mk-measure-b { left: 38.6cqw; top: 68.1cqw; width: 2.4cqw; height: 0; }
.mk-measure-b::before { left: 0; right: 0; top: 0; height: 1px; }

/* ----- Stage: wireframe (the plan) ----- */
.stage[data-state="wire"] .mock { background: #F5F8FD; }
.stage[data-state="wire"] .mock::before { opacity: 1; }
.stage[data-state="wire"] .mk-grid { opacity: 1; }
.stage[data-state="wire"] .mk-measure { opacity: 1; transform: none; transition-delay: .5s; }
.stage[data-state="wire"] .mk-measure-b { transition-delay: .7s; }
.stage[data-state="wire"] .mk-t { color: transparent; background-color: rgba(47, 95, 179, .13); }
.stage[data-state="wire"] .mk-logo i,
.stage[data-state="wire"] .mk-btn,
.stage[data-state="wire"] .mk-image,
.stage[data-state="wire"] .mk-card { outline-color: rgba(47, 95, 179, .45); }
.stage[data-state="wire"] .mk-logo i,
.stage[data-state="wire"] .mk-card-img { background: rgba(47, 95, 179, .07); }
.stage[data-state="wire"] .mk-btn-solid { background: transparent; }
.stage[data-state="wire"] .mk-btn-line { box-shadow: none; }
.stage[data-state="wire"] .mk-image { box-shadow: none; background: transparent; }
.stage[data-state="wire"] .mk-scene { opacity: 0; }
.stage[data-state="wire"] .mk-plan { opacity: 1; }
.stage[data-state="wire"] .mk-plan path { stroke-dashoffset: 0; transition: stroke-dashoffset 1.5s ease-in-out .15s; }
.stage[data-state="wire"] .mk-card { box-shadow: none; background: transparent; }
.stage[data-state="wire"] .mk-card-img svg { opacity: 0; }
.stage[data-state="wire"] .mk-sun { transform: translateY(55%); transition-delay: 0s; }
.stage[data-state="wire"] .mk-win { fill: #55626D; transition-delay: 0s; }
.stage[data-state="wire"] .mk-light { opacity: 0; transition-delay: 0s; }

/* ----- Stage: live (it responds) ----- */
.stage[data-state="live"] .mk-btn-solid.is-hover { transform: translateY(-.3cqw); box-shadow: 0 1.4cqw 2.6cqw -1cqw rgba(43, 50, 56, .6); }
.stage[data-state="live"] .mk-card.is-hover { transform: translateY(-1cqw); box-shadow: 0 2.6cqw 4cqw -2cqw rgba(43, 50, 56, .6); }

.mock-cursor { position: absolute; left: 82%; top: 88%; width: 2.6cqw; min-width: 14px; opacity: 0; pointer-events: none; z-index: 2; filter: drop-shadow(0 2px 3px rgba(31, 42, 68, .25)); }

.stage-chips { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--white);
  box-shadow: 0 14px 30px -14px rgba(63, 96, 160, .6);
  font-size: .85rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(10px) scale(.94);
  transition: opacity 500ms, transform 600ms var(--ease-out);
}
.chip .icon { width: 16px; height: 16px; color: var(--blue-deep); }
.chip-a { left: -4%; top: 22%; }
.chip-b { right: -5%; top: 44%; transition-delay: 120ms; }
.chip-c { left: -3%; bottom: 9%; transition-delay: 240ms; }
.stage[data-state="live"] .chip { opacity: 1; transform: none; }
@media (max-width: 720px) {
  .chip { font-size: .75rem; padding: 6px 10px; }
  .chip-a { left: auto; right: -6px; top: -14px; }
  .chip-b { right: -6px; top: 50%; }
  .chip-c { left: -6px; bottom: 15%; }
}

.stage-steps { margin-top: 24px; display: flex; justify-content: center; gap: 8px; }
.stage-steps button {
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .5);
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background-color 400ms, color 400ms, border-color 400ms;
}
.stage-steps button:hover { background: rgba(255, 255, 255, .9); color: var(--ink); }
.stage[data-state="wire"] [data-step="wire"],
.stage[data-state="design"] [data-step="design"],
.stage[data-state="live"] [data-step="live"] { background: var(--ink); border-color: var(--ink); color: var(--white); }

/* ---------- Craft: services ---------- */
.services { margin-top: clamp(64px, 9vw, 120px); border-bottom: 1px solid var(--line-strong); }
.service { border-top: 1px solid var(--line-strong); }
.service button {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  width: 100%;
  min-height: 72px;
  padding: clamp(14px, 2.4vw, 26px) 0;
  border: 0;
  background: none;
  cursor: pointer;
  text-align: center;
  touch-action: manipulation;
}
.service-num { font-size: .8rem; font-weight: 700; letter-spacing: .1em; color: var(--ink-soft); text-align: left; font-variant-numeric: tabular-nums; }
.service-name {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 5vw, 3.3rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -.025em;
  /* Room below the baseline so the gradient fill reaches the tails of g, p and y */
  padding: .06em 0 .16em;
  margin: -.06em 0 -.16em;
  transition: letter-spacing 500ms var(--ease-out);
}
.service.is-open .service-name,
.service button:hover .service-name {
  background: var(--dawn-deep);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.service-plus { position: relative; justify-self: end; width: 20px; height: 20px; }
.service-plus::before,
.service-plus::after {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 400ms var(--ease-out);
}
.service-plus::after { transform: rotate(90deg); }
.service.is-open .service-plus::after { transform: rotate(0deg); }
.service-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 500ms var(--ease-out); }
.service-panel > p {
  min-height: 0;
  overflow: hidden;
  max-width: 54ch;
  margin-inline: auto;
  color: var(--ink-soft);
  opacity: 0;
  transition: opacity 400ms, padding 500ms var(--ease-out);
}
.service.is-open .service-panel,
html:not(.js) .service-panel { grid-template-rows: 1fr; }
.service.is-open .service-panel > p,
html:not(.js) .service-panel > p { opacity: 1; padding-bottom: clamp(20px, 3vw, 32px); }

.standards-title {
  margin-top: clamp(56px, 8vw, 96px);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.standards { margin-top: 22px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.standards li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .9);
  background: var(--glass);
  font-size: .95rem;
  font-weight: 600;
}
.standards .icon { color: var(--blue-deep); }

/* ---------- Process: the sun's path ---------- */
.process { padding: var(--section) 0; }
.process-sticky { text-align: center; }
.arc { width: min(900px, 100% - 2 * var(--gutter)); margin: clamp(20px, 4vw, 44px) auto 0; }
.arc svg { width: 100%; height: auto; overflow: visible; }
.arc-track { stroke: rgba(31, 42, 68, .22); stroke-width: 2; stroke-dasharray: 3 9; stroke-linecap: round; }
.arc-fill { stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.arc-horizon { stroke: rgba(31, 42, 68, .16); stroke-width: 2; }
.arc-dot { fill: var(--white); stroke: rgba(31, 42, 68, .3); stroke-width: 2; transition: fill 400ms, stroke 400ms; }
.arc-dot.is-on { fill: var(--ink); stroke: var(--white); }
.arc-dot { transition: fill 250ms, stroke 250ms, r 300ms var(--ease-out); }
.arc-dot.is-current { r: 10; }
.arc-point { cursor: pointer; outline: none; }
.arc-hit { fill: transparent; pointer-events: all; }
.arc-point:hover .arc-dot { r: 12; stroke: var(--blue-deep); }
.arc-point:focus-visible .arc-dot { r: 12; stroke: var(--blue-deep); stroke-width: 4; }
.arc-sun { pointer-events: none; }
.arc-sun { opacity: 0; }
.arc-sun-glow { fill: rgba(255, 196, 176, .55); }
.arc-sun-core { fill: #FFE3D2; stroke: var(--white); stroke-width: 4; }

.steps { width: min(640px, 100% - 2 * var(--gutter)); margin: clamp(20px, 3vw, 36px) auto 0; display: grid; gap: 16px; }
.step {
  padding: clamp(20px, 3vw, 30px);
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: var(--shadow-soft);
}
.step-tag { font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--rose-deep); }
.step h3 { margin-top: 6px; font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 400; letter-spacing: -.02em; line-height: 1.2; }
.step > p:last-child { margin-top: 10px; color: var(--ink-soft); }

/* Scroll-driven version, switched on by the script on tall-enough screens */
.process.is-scrolly { height: 380vh; padding: 0; }
.process.is-scrolly .process-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 72px;
}
.process.is-scrolly .arc-sun { opacity: 1; }
.process.is-scrolly .steps {
  display: block;
  position: relative;
  min-height: 15.5rem;
  /* One steady card; only its contents change from step to step */
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.process.is-scrolly .step {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  background: none;
  border: 0;
  box-shadow: none;
  opacity: 0;
  transform: translateY(10px);
  /* Leaving: quick */
  transition: opacity 160ms ease-in, transform 160ms ease-in;
  pointer-events: none;
}
.process.is-scrolly .step.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  /* Arriving: right behind the outgoing step */
  transition: opacity 340ms var(--ease-out) 90ms, transform 420ms var(--ease-out) 90ms;
}
@media (max-width: 480px) {
  .process.is-scrolly .steps { min-height: 18.5rem; }
}

/* ---------- Story ---------- */
.story { padding: var(--section) 0; }
.flag { width: clamp(84px, 12vw, 120px); margin: 0 auto 28px; overflow: visible; }
.flag-pole { stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }
.flag-cloth path { transform-box: fill-box; transform-origin: left center; animation: wave 3.2s ease-in-out infinite alternate; }
@keyframes wave { from { transform: skewY(-3deg) scaleX(.98); } to { transform: skewY(3deg) scaleX(1.02); } }
.story-text { margin: 22px auto 0; max-width: 58ch; font-size: 1.125rem; color: var(--ink-soft); }
.values { margin-top: clamp(40px, 6vw, 64px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.values li {
  padding: 28px 22px;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: var(--shadow-soft);
}
.values .icon {
  width: 44px;
  height: 44px;
  margin-inline: auto;
  padding: 11px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 6px 16px -8px rgba(63, 96, 160, .5);
  color: var(--blue-deep);
}
.values h3 { margin-top: 14px; font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; }
.values p { margin-top: 4px; font-size: .97rem; color: var(--ink-soft); }
@media (max-width: 720px) {
  .values { grid-template-columns: 1fr; }
}

/* ---------- Start a project ---------- */
.start { padding: var(--section) 0 clamp(56px, 8vw, 96px); }
.quote-card {
  width: min(720px, 100% - 2 * var(--gutter));
  margin: clamp(36px, 5vw, 56px) auto 0;
  padding: clamp(22px, 4vw, 40px);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .9);
  border: 1px solid var(--white);
  box-shadow: var(--shadow-card);
}
.quote-form { display: grid; gap: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; margin-bottom: 6px; font-size: .875rem; font-weight: 700; }
.field label span { color: var(--rose-deep); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--cloud);
  font-size: 1rem;
  transition: border-color var(--fast), box-shadow var(--fast), background-color var(--fast);
}
.field textarea { resize: vertical; min-height: 112px; }
.field select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%231F2A44' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
}
.form-note { font-size: .875rem; text-align: center; color: var(--ink-soft); }
.form-note a,
.footer-base a { color: var(--blue-deep); text-decoration: underline; text-underline-offset: 3px; }
.field input:hover,
.field textarea:hover { border-color: rgba(31, 42, 68, .45); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: var(--white);
  border-color: var(--blue-deep);
  box-shadow: 0 0 0 4px rgba(169, 203, 242, .55);
}
.field [aria-invalid="true"] { border-color: var(--danger); background: #FFF6F5; }
.field-error { margin-top: 6px; font-size: .85rem; font-weight: 600; color: var(--danger); }
.form-status { min-height: 1.4em; font-size: .9rem; font-weight: 600; text-align: center; }
.form-status.is-success { color: var(--success); }
.form-status.is-error { color: var(--danger); }
@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
}

.next-steps { margin-top: 10px; }
.next-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.next-title::before,
.next-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.next-steps ol { margin-top: 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.next-steps li { display: grid; justify-items: center; gap: 6px; font-size: .82rem; font-weight: 700; line-height: 1.3; }
.next-steps .icon { width: 26px; height: 26px; color: var(--rose-deep); }

/* ---------- Footer ---------- */
.site-footer {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 40px var(--gutter) calc(112px + env(safe-area-inset-bottom, 0px));
  text-align: center;
  color: var(--ink-soft);
}
.site-footer .brand { color: var(--ink); }
.footer-tag { max-width: 44ch; }
.footer-contact { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; }
.footer-contact a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-weight: 600; border-bottom: 0; }
.footer-contact a:hover { color: var(--rose-deep); }
.footer-contact span { display: inline-flex; align-items: center; min-height: 44px; }
.booking { gap: 10px; color: var(--ink); font-weight: 600; }
.booking i {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--success);
}
.booking i::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--success);
  animation: pulse 2.4s var(--ease-out) infinite;
}
@keyframes pulse { from { transform: scale(1); opacity: .6; } to { transform: scale(3); opacity: 0; } }
.footer-base { display: grid; justify-items: center; gap: 8px; margin-top: 12px; font-size: .9rem; }
.footer-badge { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 700; }
.footer-badge .icon { color: var(--rose-deep); }

/* ---------- Animation start states (only when JS runs) ---------- */
.js .reveal { opacity: 0; }                       /* a soft fade only: content is already in its place */
.js [data-hero] { opacity: 0; transform: translateY(20px); }
.js .hero-title .line > span { transform: translateY(112%); }
.js .hero-sun { opacity: 0; transform: translateY(30%); }
.js .ribbons { opacity: 0; }
.js .dock { opacity: 0; transform: translate(-50%, 140%); }

/* Fallback if the animation library fails to load */
.no-gsap .reveal,
.no-gsap [data-hero],
.no-gsap .hero-title .line > span,
.no-gsap .hero-sun,
.no-gsap .ribbons { opacity: 1; transform: none; }
.no-gsap .dock { opacity: 1; transform: translateX(-50%); }

@media (prefers-reduced-motion: reduce) {
  .js .reveal,
  .js [data-hero],
  .js .hero-title .line > span,
  .js .hero-sun,
  .js .ribbons { opacity: 1; transform: none; }
  .js .dock { opacity: 1; transform: translateX(-50%); }
  .scroll-cue span,
  .booking i::after,
  .flag-cloth path { animation: none; }
  .scroll-cue span { transform: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* Smooth scrolling (Lenis) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* Soft fade used when a link travels a long way down or up the page */
.veil {
  position: fixed;
  inset: 0;
  z-index: var(--z-veil);
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(180deg, #E4EEFB 0%, var(--cloud) 55%, #FDF1F4 100%);
}

/* ---------- Pricing ---------- */
.pricing { padding: var(--section) 0; }
.tiers {
  width: min(1120px, 100% - 2 * var(--gutter));
  margin: clamp(40px, 6vw, 64px) auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}
.tier {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 3vw, 36px);
  border-radius: var(--radius-lg);
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: var(--shadow-soft);
  text-align: left;
}
.tier-featured { background: rgba(255, 255, 255, .94); box-shadow: var(--shadow-card); }
.tier-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.tier-name { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; letter-spacing: -.02em; }
.tier-for { margin-top: 2px; color: var(--ink-soft); }
.tier-price { margin-top: 18px; font-family: var(--font-display); font-size: 1.75rem; font-weight: 300; letter-spacing: -.02em; line-height: 1.1; }
.tier-price span { display: block; margin-bottom: 6px; font-family: var(--font-sans); font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--rose-deep); }
.tier-list { margin: 22px 0; display: grid; gap: 10px; flex: 1; }
.tier-list li { display: flex; gap: 10px; align-items: flex-start; font-size: .97rem; }
.tier-list .icon { margin-top: 3px; width: 18px; height: 18px; color: var(--blue-deep); }
.tier-time { margin-bottom: 16px; font-size: .9rem; font-weight: 600; color: var(--ink-soft); }
.tier .btn { font-size: .95rem; white-space: nowrap; }
.tier-extras { width: min(640px, 100% - 2 * var(--gutter)); margin: 28px auto 0; text-align: center; color: var(--ink-soft); }
/* Selection: one package is always chosen. It stands forward; the others sit back. */
.tier { cursor: pointer; transition: scale 450ms var(--ease-out), filter 450ms var(--ease-out), box-shadow 450ms var(--ease-out); }
.tier.is-selected { cursor: default; box-shadow: var(--shadow-card); }
.tier::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: inherit;
  background: var(--dawn-deep);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0;
  transition: opacity 450ms var(--ease-out);
  pointer-events: none;
}
.tier.is-selected::before { opacity: 1; }
.tiers.has-selection .tier:not(.is-selected) { scale: .95; filter: saturate(.8) opacity(.7); }
.tiers.has-selection .tier:not(.is-selected):hover { scale: .97; filter: saturate(.9) opacity(.85); }

/* Dots: one per package, with a marker that glides to the selected one */
.tier-dots { position: relative; display: flex; justify-content: center; gap: 4px; width: max-content; margin: 28px auto 0; }
.tier-dots button {
  position: relative;
  width: 32px;
  height: 32px;
  border: 0;
  background: none;
  cursor: pointer;
}
.tier-dots button::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 999px;
  background: rgba(31, 42, 68, .22);
  transition: background-color 300ms, scale 300ms var(--ease-out);
}
.tier-dots button:hover::after { background: rgba(31, 42, 68, .45); }
.tier-dots button[aria-current="true"]::after { scale: 0; }
.tier-dots-pill {
  position: absolute;
  left: 5px;
  top: 50%;
  width: 22px;
  height: 8px;
  margin-top: -4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #3F6FC4, #8A6BC9 55%, #D4577F);
  box-shadow: 0 4px 12px -4px rgba(138, 107, 201, .8);
  pointer-events: none;
  transition: transform 500ms var(--ease-out), width 500ms var(--ease-out);
}
/* While a finger or trackpad is moving the row, the marker follows it directly */
.tier-dots.is-following .tier-dots-pill { transition: none; }

/* Narrower screens: the packages sit side by side and scroll sideways */
@media (max-width: 900px) {
  .tiers {
    display: flex;
    width: 100%;
    gap: 16px;
    padding: 20px var(--gutter) 28px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .tiers::-webkit-scrollbar { display: none; }
  .tiers:focus-visible { outline-offset: -3px; border-radius: var(--radius-lg); }
  .tier { flex: 0 0 min(82%, 360px); scroll-snap-align: center; }
  .tier-dots { margin-top: 4px; }
}

/* ---------- FAQ ---------- */
.faq { padding: var(--section) 0 0; }
.faq-list { margin-top: clamp(32px, 5vw, 48px); text-align: left; border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary {
  position: relative;
  display: block;
  min-height: 64px;
  padding: 20px 44px 20px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  font-weight: 500;
  letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq-plus { position: absolute; right: 4px; top: 50%; width: 18px; height: 18px; margin-top: -9px; }
.faq-plus::before,
.faq-plus::after {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 300ms var(--ease-out);
}
.faq-plus::after { transform: rotate(90deg); }
.faq details[open] .faq-plus::after { transform: rotate(0deg); }
.faq details p { padding: 0 44px 22px 0; max-width: 64ch; color: var(--ink-soft); }

/* ---------- Simple pages (privacy policy) ---------- */
.page { width: min(760px, 100% - 2 * var(--gutter)); margin: 0 auto; padding: 120px 0 80px; }
.page h1 { font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 300; letter-spacing: -.03em; line-height: 1.1; }
.page h2 { margin-top: 36px; font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; }
.page p, .page ul { margin-top: 12px; color: var(--ink-soft); }
.page ul { padding-left: 1.2em; list-style: disc; }
.page li { margin-top: 6px; }
.page a { color: var(--blue-deep); text-decoration: underline; text-underline-offset: 3px; }
.page-updated { font-size: .9rem; }
.page-back { margin-top: 48px; }

/* ---------- Night sky: shown before the first scroll, then lifted like a stage curtain ---------- */
.night { display: none; }
html.night-on,
html.night-on body { overflow: hidden; }
html.night-on .night {
  display: block;
  position: fixed;
  inset: 0;
  z-index: var(--z-night);
  overflow: hidden;
  color: #EEF1FF;
  background:
    radial-gradient(120% 60% at 50% 115%, rgba(96, 112, 196, .38) 0%, rgba(40, 52, 110, .25) 40%, rgba(0, 0, 0, 0) 70%),
    linear-gradient(180deg, #03061A 0%, #070D2A 45%, #0E1A44 100%);
  box-shadow: 0 40px 90px rgba(3, 6, 26, .6), 0 12px 24px rgba(3, 6, 26, .35);   /* the curtain's heavy edge */
  will-change: transform;
}
.night-stars { position: absolute; inset: 0; width: 100%; height: 100%; }
/* The moon: surface, phases and drift are drawn by the script; the halo is here */
.night-moon {
  --m: clamp(54px, 8vw, 104px);
  position: absolute;
  top: 14%;
  right: 14%;
  width: var(--m);
  height: var(--m);
  border-radius: 50%;
  /* The surface and its shadow are drawn by the script */
  will-change: transform;
  /* Its glow is drawn into the sky itself by the script, so the moon lights the night around it */
  filter: saturate(.9) brightness(.94);
  opacity: .94;                                           /* lets a breath of the sky show through */
}
.night-moon-shadow { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; }
/* The faintest hint of dawn along the bottom edge */
.night-horizon {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 28%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(247, 184, 200, .07));
  pointer-events: none;
}
.night-content {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  padding: 0 var(--gutter);
  text-align: center;
  transition: opacity .45s ease, transform .6s ease;
}
.night-mark { width: 64px; height: 64px; opacity: .95; filter: drop-shadow(0 0 22px rgba(185, 167, 230, .45)); }
.night-brand {
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 500;
  letter-spacing: -.02em;
}
.night-brand span { font-weight: 300; color: #F4A9BC; }
.night-line {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: rgba(220, 226, 255, .66);
}
.night-cue {
  position: absolute;
  left: 50%;
  bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  display: grid;
  justify-items: center;
  gap: 12px;
  min-width: 160px;
  min-height: 72px;
  padding: 8px 16px;
  border: 0;
  background: none;
  color: rgba(220, 226, 255, .75);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  cursor: pointer;
  transform: translateX(-50%);
  animation: cue-breathe 2.4s ease-in-out infinite;
}
.night-cue-line {
  width: 1.5px;
  height: 34px;
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(220, 226, 255, .9), rgba(220, 226, 255, 0));
  transform-origin: top;
  animation: cue 2.2s var(--ease-out) infinite;
}
@keyframes cue-breathe { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

/* The lift: the words dim first, the curtain catches with a small tug, then rises with weight */
html.night-lifting .night { animation: curtain-rise 2.2s .25s both; }
html.night-lifting .night-content { opacity: 0; transform: translateY(-16px); }
html.night-lifting .night-cue { opacity: 0; transition: opacity .3s ease; animation: none; }
/* A darker hem along the bottom of the curtain while it moves */
.night::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 70px;
  background: linear-gradient(180deg, rgba(3, 6, 26, 0), rgba(3, 6, 26, .55));
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}
html.night-lifting .night::after { opacity: 1; }
/* The rise travels past the top (to -118%) so the curtain and its shadow clear the screen while
   still moving; the gentle slow-down happens out of sight, so it never lingers at the top edge */
@keyframes curtain-rise {
  0%   { transform: translateY(0);     animation-timing-function: cubic-bezier(.3, 0, .5, 1); }
  9%   { transform: translateY(14px);  animation-timing-function: cubic-bezier(.6, 0, .35, 1); }
  100% { transform: translateY(-118%); }
}

@media (prefers-reduced-motion: reduce) {
  html.night-on .night { transition: opacity .5s ease; }
  html.night-lifting .night { animation: none; transform: none; opacity: 0; }
  .night-cue, .night-cue-line { animation: none; }
}

/* ---------- Back to the top ---------- */
.to-top {
  position: fixed;
  right: calc(20px + env(safe-area-inset-right, 0px));
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  z-index: var(--z-dock);
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  border: 1px solid var(--white);
  color: var(--ink);
  box-shadow: 0 16px 36px -16px rgba(63, 96, 160, .6), 0 2px 6px rgba(63, 96, 160, .1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(.92);
  transition: opacity .5s var(--ease-out), transform .6s var(--ease-out), visibility 0s linear .6s, background-color var(--fast), box-shadow var(--fast);
}
.to-top svg { width: 22px; height: 22px; transition: transform var(--fast) var(--ease-out); }
.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .5s var(--ease-out), transform .6s var(--ease-out), visibility 0s, background-color var(--fast), box-shadow var(--fast);
}
.to-top:hover { background: var(--white); box-shadow: 0 20px 40px -16px rgba(63, 96, 160, .75), 0 2px 6px rgba(63, 96, 160, .12); }
.to-top:hover svg { transform: translateY(-3px); }
.to-top:active { transform: scale(.94); }
/* On phones the menu spans the bottom of the screen, so the button sits just above it */
@media (max-width: 720px) {
  .to-top { right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(86px + env(safe-area-inset-bottom, 0px)); width: 48px; height: 48px; }
}
html.night-on .to-top { display: none; }

/* Footer on phones: stack the email and the booking line, keeping the green dot beside its words */
@media (max-width: 560px) {
  .footer-contact { flex-direction: column; align-items: center; gap: 0; }
  .footer-contact > span[aria-hidden="true"] { display: none; }
  .footer-contact .booking { display: block; min-height: 0; padding: 4px 0 8px; text-align: center; }
  .footer-contact .booking span { display: inline; min-height: 0; }
  .footer-contact .booking i { display: inline-block; margin-right: 8px; vertical-align: 1px; }
}


/* The hero badge doubles as a link to Our Story */
a.eyebrow {
  cursor: pointer;
  transition: background-color var(--fast), box-shadow var(--fast), border-color var(--fast);
}
a.eyebrow .eyebrow-arrow {
  width: 14px;
  height: 14px;
  margin-left: -2px;
  color: var(--rose-deep);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity var(--fast) var(--ease-out), transform var(--fast) var(--ease-out);
}
a.eyebrow:hover,
a.eyebrow:focus-visible {
  background: rgba(255, 255, 255, .92);
  border-color: var(--white);
  box-shadow: 0 10px 24px -14px rgba(63, 96, 160, .55);
}
a.eyebrow:hover .eyebrow-arrow,
a.eyebrow:focus-visible .eyebrow-arrow { opacity: 1; transform: none; }
/* Touch screens have no hover, so the arrow stays faintly visible there as a hint */
@media (hover: none) {
  a.eyebrow .eyebrow-arrow { opacity: .7; transform: none; }
}

/* Below the packages: a quiet path to the FAQ */
.tier-faq { margin-top: 12px; text-align: center; color: var(--ink-soft); }
.tier-faq a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-weight: 600;
  color: var(--blue-deep);
}
.tier-faq a .icon { width: 16px; height: 16px; transition: transform var(--fast) var(--ease-out); }
.tier-faq a:hover .icon,
.tier-faq a:focus-visible .icon { transform: translateX(4px); }
.tier-faq a:hover { text-decoration: underline; text-underline-offset: 4px; }
