/* ActuallyCompliant: pixel type over a night-time synthwave sky. */

@font-face {
  font-family: "Albert Sans";
  src: url("../fonts/AlbertSans-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Jersey 15";
  src: url("../fonts/Jersey15-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;

  /* midnight navy grounds, deep navy panels */
  --night: #100b27;
  --night-block: #151034;
  --night-raise: #1c1743;
  --night-hover: #272058;
  --night-press: #332a6e;
  --dusk: #19113a;
  /* soft lavender: form-field edges */
  --lilac: #b9a5db;
  /* warm white for headings and running text; a dusty lavender for side notes only */
  --on-night: #f7f3ff;
  --on-night-muted: #b8aed0;

  /* sky in three zones: midnight blue overhead, indigo and violet through the middle,
     dusty magenta at the horizon */
  --midnight: #101027;
  --sky: #12112b;
  --tint-1: #1d2c7a;
  --tint-2: #3a3290;
  --tint-3: #6e3594;
  --tint-4: #b65a9b;
  /* cool blue lifted into the cloud shadows */
  --cloud-shade: #232b70;
  --floor-top: #2b0f4f;
  --floor-mid: #150a2f;
  --scrollbar: #4a3590;

  --magenta: #ff4fd8;
  --magenta-soft: #ff8fe6;
  --magenta-deep: #d832b6;
  /* the business name: a softer pink than the action colour */
  --name-pink: #fbb2ec;
  /* cool teal: small highlights, focus and hover */
  --teal: #7cddd5;
  --sunset: #ff8a5c;
  --error: #ff6b5a;
  --error-text: #ffb2a8;

  --font-sans: "Albert Sans", ui-sans-serif, system-ui, sans-serif;
  /* if the pixel face fails, fall back to the text face, never to monospace */
  --font-pixel: "Jersey 15", "Albert Sans", ui-sans-serif, system-ui, sans-serif;

  /* Seven sizes do all the work. The hero name and the footer name are the only sizes outside them. */
  --fs-h2: clamp(2.5rem, 5vw, 4.5rem);
  --fs-h2b: clamp(1.75rem, 3.6vw, 3.25rem);
  --fs-h3: clamp(1.5rem, 2.2vw, 2rem);
  --fs-lead: clamp(1.1875rem, 1.2rem + 0.3vw, 1.375rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.875rem;

  --gutter: clamp(20px, 4vw, 48px);
  --max: 1376px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 72px;
  --section-pad: clamp(96px, 11vw, 160px);
  --horizon-h: clamp(150px, 25vh, 250px);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  scrollbar-color: var(--scrollbar) var(--night);
}

body {
  margin: 0;
  background: var(--sky);
  color: var(--on-night);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--magenta); color: var(--night); }

::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--night); }
::-webkit-scrollbar-thumb { background: var(--scrollbar); border: 3px solid var(--night); }
::-webkit-scrollbar-thumb:hover { background: var(--magenta-deep); }

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }

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

h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: var(--space-3) var(--space-4);
  background: var(--night-block);
  color: var(--on-night);
  font-family: var(--font-pixel);
  text-decoration: none;
}
.skip:focus { top: var(--space-4); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.px { font-family: var(--font-pixel); font-weight: 400; letter-spacing: 0.01em; }
.sans { font-family: var(--font-sans); font-weight: 600; letter-spacing: -0.04em; }

/* ---------- Night sky backdrop ---------- */
/* The sky's colour layers are the vaporwave grade itself, kept on purpose. */

.sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--sky);
}
.sky picture, .sky img {
  position: absolute;
  inset: -6% -8%;
  width: 116%;
  height: 112%;
  max-width: none;
  object-fit: cover;
}
.sky img {
  filter: grayscale(1) contrast(1.35) brightness(0.9);
  animation: drift 140s ease-in-out infinite alternate;
}
.sky::before {
  /* tint the clouds: violet overhead, lit magenta toward the horizon */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, var(--tint-1) 0%, var(--tint-1) 32%, var(--tint-2) 50%, var(--tint-3) 63%, var(--tint-4) 76%, var(--tint-4) 100%); /* taste-skill-ignore: vaporwave sky grade */
  mix-blend-mode: color;
  opacity: 0.92;
}
.sky-shade {
  /* blue in the clouds' shadows: lighten only changes pixels darker than the blue */
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, color-mix(in srgb, var(--cloud-shade) 70%, black) 0%, var(--cloud-shade) 50%, var(--cloud-shade) 100%); /* taste-skill-ignore: vaporwave sky grade */
  mix-blend-mode: lighten;
  opacity: 0.85;
}
.sky-grade {
  /* night falls from the top; deepest behind the hero headline */
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 46% 44% at 25% 52%, color-mix(in srgb, var(--night) 62%, transparent), color-mix(in srgb, var(--night) 0%, transparent) 80%), /* taste-skill-ignore: scrim behind the hero copy */
    linear-gradient(180deg, color-mix(in srgb, var(--midnight) 88%, transparent) 0%, color-mix(in srgb, var(--midnight) 70%, transparent) 24%, color-mix(in srgb, var(--midnight) 50%, transparent) 46%, color-mix(in srgb, var(--night) 34%, transparent) 70%, color-mix(in srgb, var(--night) 34%, transparent) 100%); /* taste-skill-ignore: vaporwave sky grade */
}
.sky-grade::after {
  /* past the hero, night deepens so copy set straight on the sky reads without shadows */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--night) 40%, transparent) 0%, color-mix(in srgb, var(--night) 52%, transparent) 60%, color-mix(in srgb, var(--night) 58%, transparent) 100%); /* taste-skill-ignore: legibility scrim */
  opacity: 0;
  transition: opacity 900ms var(--ease-out);
}
.past-hero .sky-grade::after { opacity: 1; }
/* at the footer the night lifts again, so the closing horizon gets its sunset */
.past-hero.at-close .sky-grade::after { opacity: 0; }
.sky::after {
  /* fine scanlines */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.2) 0 1px, transparent 1px 3px); /* taste-skill-ignore: CRT scanlines */
  mix-blend-mode: multiply;
  pointer-events: none;
}

@keyframes drift {
  from { transform: translate3d(-3%, 0, 0); }
  to { transform: translate3d(3%, -1.5%, 0); }
}

/* ---------- Top bar and floating book button ---------- */

.topbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: var(--space-6);
  max-width: var(--max);
  margin-inline: auto;
  padding: var(--space-5) calc(var(--gutter) + 188px) var(--space-5) var(--gutter);
  color: var(--on-night);
}
/* With script on, the book button never sits in the hero, so the nav can take the corner. */
.js .topbar { padding-right: var(--gutter); }
.topnav { display: flex; gap: 2px; margin-left: auto; }
.topnav a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 4px 14px 3px;
  background: var(--night-block);
  font-family: var(--font-pixel);
  font-size: var(--fs-body);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--on-night);
  transition: background-color 140ms ease, color 140ms ease;
}
.topnav a:hover { background: var(--night-hover); color: var(--teal); }
.topnav a:active { background: var(--night-press); }

.bug {
  position: fixed;
  top: var(--space-5);
  right: var(--gutter);
  z-index: 20;
  display: flex;
  align-items: stretch;
  min-height: 44px;
  background: var(--night-block);
  color: var(--on-night);
  text-decoration: none;
  /* it floats over the page, so it keeps its drop and an edge */
  box-shadow: 0 6px 24px rgba(5, 2, 15, 0.5); /* taste-skill-ignore: floating button over the page */
  outline: 1px solid color-mix(in srgb, var(--lilac) 35%, transparent);
  outline-offset: -1px;
  transition:
    background-color 160ms ease,
    opacity 200ms ease,
    transform 300ms var(--ease-out),
    visibility 300ms;
}

/* With script on, the button waits until the booking card has scrolled away (the card is
   the call to action until then) and steps aside while the contact section is on screen.
   Without script it stays in the corner. */
.js .bug { --bug-away: translateX(12px); }
.js:not(.bug-on) .bug { opacity: 0; visibility: hidden; transform: var(--bug-away); }
.bug-mark {
  display: grid;
  place-items: center;
  width: 44px;
  background: var(--magenta);
  color: var(--night);
  font-family: var(--font-pixel);
  font-size: var(--fs-body);
}
.bug-label {
  display: flex;
  align-items: center;
  padding-inline: var(--space-4);
  font-family: var(--font-pixel);
  font-size: var(--fs-body);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.bug:hover { background: var(--night-hover); }
.bug:active { background: var(--night-press); }
.bug:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

/* On wide screens the button is a vertical tab near the window's right edge, inset so it
   clears overlay scrollbars, in a lane of its own: the content keeps at least --space-5
   clear of it at every width. */
@media (min-width: 961px) {
  :root { --sq: 44px; --bug-inset: var(--space-4); }
  .js .wrap {
    padding-right: max(var(--gutter), calc(var(--bug-inset) + var(--sq) + var(--space-5) - max(0px, (100% - var(--max)) / 2)));
  }
  .js .bug {
    right: var(--bug-inset);
    flex-direction: column;
    width: var(--sq);
    min-height: 0;
  }
  .js .bug-mark { width: var(--sq); height: var(--sq); }
  .js .bug-label {
    writing-mode: vertical-rl;
    justify-content: center;
    padding: var(--space-4) 0;
    letter-spacing: 0.06em;
  }
}

/* ---------- Hero ---------- */

/* The horizon runs full-bleed; never let it widen the page. */
main { overflow-x: clip; }

.hero {
  position: relative;
  min-height: min(100svh, 1080px);
  max-width: var(--max);
  margin-inline: auto;
  padding: clamp(104px, 13vh, 140px) var(--gutter) calc(var(--horizon-h) + var(--space-5));
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-content: center;
  column-gap: var(--space-5);
  row-gap: var(--space-7);
}

/* Copy on the left (the name, the tagline, the lede); the booking card on the right. */
.hero-copy {
  position: relative;
  z-index: 1;
  grid-column: 1 / span 7;
  align-self: center;
  color: var(--on-night);
  /* the name sizes to this column */
  container-type: inline-size;
}

.hero h1 { text-wrap: initial; }
.hero h1 .px,
.hero h1 .sans { display: block; }
.hero h1 .px {
  /* "ActuallyCompliant" runs about 6.7em wide: fill the copy column */
  font-size: clamp(3rem, 14.6cqi, 9.5rem);
  line-height: 0.88;
  white-space: nowrap;
  color: var(--name-pink);
  /* the one neon glow on the page's type: the name, as in the genre */
  text-shadow: 0 0 20px color-mix(in srgb, var(--magenta) 34%, transparent); /* taste-skill-ignore: the genre neon glow on the name */
}
.hero h1 .sans {
  margin-top: 0.3em;
  font-size: var(--fs-h2b);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.lede {
  margin-top: var(--space-6);
  max-width: 36em;
  color: var(--on-night);
  font-size: var(--fs-lead);
  line-height: 1.5;
  font-weight: 500;
}

/* Booking card: a solid night panel, one tone off the sky, so its copy never fights the clouds. */
.book-card {
  position: relative;
  z-index: 1;
  grid-column: 9 / -1;
  align-self: center;
  padding: clamp(24px, 2.6vw, 40px);
  background: var(--night-block);
}
.book-card h2 {
  font-family: var(--font-pixel);
  font-weight: 400;
  font-size: var(--fs-h3);
  line-height: 1.05;
}
.book-card > p:not(.cta-note) {
  margin-top: var(--space-3);
  line-height: 1.55;
}
.book-actions {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-6);
}
.book-actions .btn { width: 100%; }
.cta-note {
  margin-top: var(--space-4);
  font-size: var(--fs-small);
  color: var(--on-night-muted);
}

/* Arrival: the hero settles in on load. Pure CSS, so it never depends on the script. */
@keyframes rise {
  from { opacity: 0; transform: translate3d(0, 24px, 0); }
}
.hero h1 .px { animation: rise 900ms var(--ease-out) both; }
.hero h1 .sans { animation: rise 900ms var(--ease-out) 90ms both; }
.lede { animation: rise 900ms var(--ease-out) 180ms both; }
.book-card { animation: rise 900ms var(--ease-out) 270ms both; }

/* The horizon: a glow on the clouds, a bright line, then a grid floor running toward the viewer. */
.horizon {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 100vw;
  height: var(--horizon-h);
  transform: translateX(-50%);
  pointer-events: none;
}
.horizon-glow {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: calc(var(--horizon-h) * 0.7);
  background:
    linear-gradient(0deg, color-mix(in srgb, var(--magenta) 40%, transparent) 0, color-mix(in srgb, var(--magenta) 0%, transparent) 20px), /* taste-skill-ignore: horizon bloom */
    radial-gradient(ellipse 46% 100% at 50% 100%, color-mix(in srgb, var(--sunset) 42%, transparent), color-mix(in srgb, var(--magenta) 24%, transparent) 45%, color-mix(in srgb, var(--magenta) 0%, transparent) 75%); /* taste-skill-ignore: sunset glow */
  mix-blend-mode: screen;
}
.horizon-floor {
  position: absolute;
  inset: 0;
  overflow: hidden;
  perspective: 320px;
  perspective-origin: 50% 0;
  /* the horizon line: a 2px bar of light, the genre's one drawn line */
  border-top: 2px solid var(--magenta-soft);
  background: linear-gradient(180deg, var(--floor-top) 0%, var(--floor-mid) 45%, var(--night) 100%); /* taste-skill-ignore: grid floor falls into night */
}
.horizon-floor::after {
  /* lines dissolve as they reach the horizon */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--floor-top) 0, color-mix(in srgb, var(--floor-top) 0%, transparent) 72px); /* taste-skill-ignore: grid fade */
}
.horizon-grid {
  position: absolute;
  left: -60%;
  right: -60%;
  top: 0;
  height: 900px;
  transform-origin: 50% 0;
  transform: rotateX(80deg) translate3d(0, -32px, 0);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--magenta) 62%, transparent) 0 2px, transparent 2px) 50% 0 / 32px 32px, /* taste-skill-ignore: grid floor */
    linear-gradient(180deg, color-mix(in srgb, var(--magenta) 62%, transparent) 0 2px, transparent 2px) 0 0 / 32px 32px; /* taste-skill-ignore: grid floor */
  animation: crawl 2.4s linear infinite;
}
@keyframes crawl {
  from { transform: rotateX(80deg) translate3d(0, -32px, 0); }
  to { transform: rotateX(80deg) translate3d(0, 0, 0); }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  min-height: 52px;
  padding: var(--space-3) var(--space-5);
  border: 0;
  border-radius: 0;
  font: inherit;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease, transform 140ms var(--ease-out);
}
.btn:active { transform: translate3d(0, 2px, 0); }
.btn-primary {
  background: var(--magenta);
  color: var(--night);
  font-family: var(--font-pixel);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: var(--fs-lead);
}
.btn-primary:hover { background: var(--magenta-soft); }
.btn-primary:active { background: var(--magenta-deep); }
.btn-arrow { width: 16px; height: 14px; fill: currentColor; transition: transform 200ms var(--ease-out); }
.btn-primary:hover .btn-arrow { transform: translateX(3px); }
/* the second action: a filled tone, one step lighter than the card */
.btn-secondary {
  background: var(--night-hover);
  color: var(--on-night);
}
.btn-secondary:hover { background: var(--night-press); color: var(--teal); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* ---------- Shared section framing ---------- */

.section-title {
  font-family: var(--font-pixel);
  font-weight: 400;
  font-size: var(--fs-h2);
  line-height: 0.95;
  letter-spacing: 0.01em;
}

.sheet {
  position: relative;
  background-color: var(--dusk);
  color: var(--on-night);
}

/* Dithered pixel art, drawn by art.js at low resolution and scaled up by whole pixels.
   No frame: the objects stand straight on the sheet or the sky. Without the script the
   space is given back to the copy beside it. */
.art { position: relative; min-width: 0; }
/* sized by the script in whole art pixels and centred; it never sizes its box */
.art canvas {
  position: absolute;
  inset: 0;
  margin: auto;
  image-rendering: pixelated;
}
html:not(.js) .art { display: none; }

/* Section parts rise in once as they arrive. Only when the script has switched it on,
   and never with reduced motion, so nothing can stay hidden. */
.reveal-on [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition:
    opacity 700ms var(--ease-out) var(--d, 0ms),
    transform 900ms var(--ease-out) var(--d, 0ms);
}
.reveal-on [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- What it costs ---------- */
/* Two columns, then the pile beside the pull line. */

.cost { padding-block: var(--section-pad); }
.cost .wrap {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  column-gap: clamp(48px, 7vw, 128px);
  row-gap: clamp(72px, 8vw, 120px);
  align-items: end;
}
.cost .section-title { max-width: 9em; }
.cost-body {
  margin-top: var(--space-6);
  max-width: 34em;
  font-size: var(--fs-body);
  line-height: 1.6;
}

.cost-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-5);
}
.cost-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-5);
  font-size: var(--fs-lead);
  font-weight: 500;
  line-height: 1.3;
}
.cost-tag {
  flex-shrink: 0;
  color: var(--on-night-muted);
  font-size: var(--fs-body);
  font-weight: 400;
}
.cost-note {
  margin-top: var(--space-6);
  color: var(--on-night-muted);
}

/* sized to the pile, and set against the pull line it illustrates. The aspect ratio is the
   whole pile's frame; once the pile has settled, the script closes the box down onto the
   stack. The canvas stands on the bottom edge and the box clips what is above it. */
.cost-art { grid-column: 1; justify-self: end; width: min(100%, 30rem); aspect-ratio: 4 / 5; overflow: hidden; }
.cost-art canvas { top: auto; margin-block: 0; }
html:not(.js) .cost-pull { grid-column: 1 / -1; padding-bottom: 0; }
.cost-pull {
  grid-column: 2;
  align-self: end;
  padding-bottom: calc(var(--fs-small) * 1.6 + var(--space-3));
  font-size: var(--fs-h3);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

/* ---------- How it works ---------- */

.how {
  background: var(--night);
  color: var(--on-night);
  padding-block: var(--section-pad);
}
.how-head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: var(--space-6);
  align-items: end;
}
.how-head p { max-width: 30em; }

/* The two ways in, as one split field: two tones, no frame. */
.paths {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: var(--space-8);
}
.path {
  padding: clamp(24px, 3vw, 48px);
  background: var(--night-block);
}
.path + .path { background: var(--night-raise); }
.path h3 {
  font-family: var(--font-pixel);
  font-weight: 400;
  font-size: var(--fs-h3);
  line-height: 1.1;
}
.path p { margin-top: var(--space-3); max-width: 34em; }

/* Steps: a stepped pixel line joining square nodes; labels sit above the high nodes and below the low ones.
   The order reads from the line itself. */
.steps {
  --track: 128px;
  --node: 16px;
  list-style: none;
  margin: var(--space-8) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-template-rows: auto var(--track) auto;
}
.step {
  grid-row: 1 / 4;
  display: grid;
  grid-template-rows: subgrid;
  text-align: center;
}
.step-text { padding-inline: 0; }
.step-up .step-text { grid-row: 1; align-self: end; padding-bottom: var(--space-5); }
.step-down .step-text { grid-row: 3; padding-top: var(--space-5); }
.step h3 {
  font-family: var(--font-pixel);
  font-weight: 400;
  font-size: var(--fs-h3);
  line-height: 1.1;
}
.step p {
  max-width: 15em;
  margin: var(--space-2) auto 0;
  line-height: 1.5;
}

.step-track { grid-row: 2; position: relative; }
.step-node {
  position: absolute;
  z-index: 1;
  left: 50%;
  width: var(--node);
  height: var(--node);
  margin-left: calc(var(--node) / -2);
  background: var(--teal);
}
.step-up .step-node { top: 0; }
.step-down .step-node { bottom: 0; }
/* the last stop is audit day: an open square reached by a dotted run */
.step:last-child .step-node { background: var(--night); box-shadow: inset 0 0 0 2px var(--teal); } /* taste-skill-ignore: draws the open square, not a shadow */
.step-link {
  position: absolute;
  top: 0;
  left: 50%;
  width: 100%;
  height: 100%;
  overflow: visible;
  color: var(--magenta);
  shape-rendering: crispEdges;
}
.step-down .step-link { transform: scaleY(-1); }
.step:nth-child(4) .step-link { stroke-dasharray: 2 6; }

/* ---------- Frameworks ---------- */
/* Copy here sits straight on the sky; the night grade behind it keeps it readable. */

.frameworks { padding-block: var(--section-pad) calc(var(--section-pad) * 0.5); }
/* Same two columns as the leads below, so the note starts on the ISO 27001 edge.
   Centred on the title: at the note's lead width it runs two lines on wide screens,
   which spans the title's cap height top to bottom. */
.frameworks-head {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6) clamp(32px, 5vw, 96px);
  align-items: center;
}
.frameworks-head p { font-weight: 500; max-width: 30em; }
.fw-leads {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-7) clamp(32px, 5vw, 96px);
  margin-top: var(--space-8);
}
.fw-lead h3 {
  font-family: var(--font-pixel);
  font-weight: 400;
  font-size: var(--fs-h2b);
  line-height: 0.95;
}
.fw-lead p { margin-top: var(--space-3); max-width: 30em; font-weight: 500; }
/* The regional frameworks beside a globe pinned where each one applies. */
.fw-world {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--space-7) clamp(32px, 5vw, 96px);
  align-items: center;
  margin-top: var(--space-8);
}
.fw-globe { grid-column: 1; grid-row: 1; aspect-ratio: 4 / 3; }
html:not(.js) .fw-list { grid-column: 1 / -1; }
.fw-list {
  grid-column: 2;
  grid-row: 1;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6) var(--space-6);
}
.fw-list li { display: grid; gap: var(--space-1); }
.fw-name {
  font-family: var(--font-pixel);
  font-size: var(--fs-h3);
  line-height: 1;
  transition: color 140ms ease;
}
/* pointing at a framework turns the globe to it; its name takes the pin's teal */
.fw-list li.is-lit .fw-name { color: var(--teal); }
.fw-note { font-weight: 500; }

/* ---------- Practitioner ---------- */

.practitioner { padding-block: calc(var(--section-pad) * 0.5) var(--section-pad); }
.practitioner .wrap {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--space-7) clamp(48px, 6vw, 112px);
  align-items: start;
}
.practitioner-side { display: grid; gap: var(--space-7); align-content: start; }
.practitioner-body { display: grid; gap: var(--space-7); justify-items: start; }
.practitioner-lead {
  max-width: 32em;
  font-size: var(--fs-lead);
  line-height: 1.45;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.creds {
  display: grid;
  gap: var(--space-2);
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-pixel);
  font-size: var(--fs-h3);
  line-height: 1.05;
}
.creds li:last-child { color: var(--teal); }
.practitioner-more {
  display: grid;
  gap: var(--space-4);
  max-width: 36em;
}
.practitioner-more p { font-weight: 500; }

/* ---------- Questions ---------- */

.questions { padding-block: var(--section-pad); }
.questions .wrap {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: var(--space-7) clamp(48px, 6vw, 112px);
  align-items: start;
}
/* the head stays beside the questions as they open */
.questions-side { position: sticky; top: 96px; }
/* Questions are separated by space and weight; an open one sits on a tone step. */
/* Thin low-teal rules give the list a rhythm; the open question is a night-block panel with
   a teal bar down its left edge, so it reads at a glance. */
.faq {
  --faq-pad: var(--space-5);
  --faq-rule: color-mix(in srgb, var(--teal) 16%, transparent);
  display: grid;
  margin-inline: calc(-1 * var(--faq-pad));
  border-bottom: 1px solid var(--faq-rule);
}
.faq details {
  border-top: 1px solid var(--faq-rule);
  transition: background-color 160ms ease, box-shadow 200ms var(--ease-out);
}
.faq details[open] {
  background: var(--night-block);
  /* taste-skill-ignore: the teal bar marks the open question, not a shadow */
  box-shadow: inset 3px 0 0 var(--teal), inset 48px 0 48px -48px color-mix(in srgb, var(--teal) 22%, transparent);
}
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-4) var(--faq-pad);
  font-size: var(--fs-lead);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
  transition: color 140ms ease, background-color 140ms ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--teal); background: color-mix(in srgb, var(--teal) 6%, transparent); }
.faq details[open] > summary:hover { background: none; }
/* Inline rather than a sprite <use>, so the open state can reach the vertical stroke. */
.faq-icon { flex: none; width: 14px; height: 14px; fill: var(--teal); shape-rendering: crispEdges; transition: transform 200ms var(--ease-out), fill 140ms ease; }
.faq summary:hover .faq-icon { fill: var(--on-night); transform: rotate(90deg); }
.faq details[open] .faq-icon,
.faq details[open] > summary:hover .faq-icon { transform: rotate(180deg); }
.faq details[open] .faq-icon-v { display: none; }
.faq details p { padding: 0 var(--faq-pad) var(--space-5); max-width: 40em; }

/* ---------- Contact ---------- */

.contact {
  background: var(--night);
  color: var(--on-night);
  padding-block: var(--section-pad);
}
.contact .wrap {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: var(--space-8);
  align-items: start;
}
.contact-call { position: sticky; top: 96px; }
.contact-call .section-title { max-width: 8em; }
.contact-call p { margin-top: var(--space-5); max-width: 30em; }
.btn-large { margin-top: var(--space-6); min-height: 60px; padding-inline: var(--space-6); }
.contact-form {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-5) var(--space-4);
  padding: var(--space-6);
  background: var(--night-raise);
}
.contact-form h3 {
  grid-column: 1 / -1;
  font-family: var(--font-pixel);
  font-weight: 400;
  font-size: var(--fs-h3);
  line-height: 1;
}
.contact-form .field-wide,
.contact-form .choice,
.contact-form .btn-send,
.contact-form .form-status,
.contact-form .form-privacy { grid-column: 1 / -1; }

/* fields keep their natural height, so a note under one field doesn't stretch its neighbour */
.field { display: grid; gap: 6px; align-content: start; }
.field label,
.choice legend { font-size: var(--fs-small); font-weight: 500; }
.opt { margin-left: 6px; font-weight: 400; color: var(--on-night-muted); }
.field input,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 0;
  border-radius: 0;
  background: var(--night);
  color: var(--on-night);
  font: inherit;
  font-size: var(--fs-body);
  /* form fields keep their edges: 60% keeps an empty field above 3:1 against the panel */
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--lilac) 60%, transparent); /* taste-skill-ignore: form field edge */
  caret-color: var(--teal);
  transition: box-shadow 120ms ease; /* taste-skill-ignore: form field edge */
}
.field textarea { resize: vertical; min-height: 96px; line-height: 1.45; }
.field input:hover,
.field textarea:hover { box-shadow: inset 0 0 0 1px var(--lilac); } /* taste-skill-ignore: form field edge */
.field input:focus-visible,
.field textarea:focus-visible { outline: 2px solid transparent; outline-offset: -2px; box-shadow: inset 0 0 0 2px var(--teal); } /* taste-skill-ignore: form field focus */
.field input:user-invalid,
.field textarea:user-invalid { box-shadow: inset 0 0 0 2px var(--error); } /* taste-skill-ignore: form field error */
/* Field notes: why an address was turned away, and how much room the message has left. */
.field-error { color: var(--error-text); font-size: var(--fs-small); }
.field-error a { color: inherit; }
.field-count { justify-self: end; color: var(--on-night-muted); font-size: var(--fs-small); font-variant-numeric: tabular-nums; }
.field-count[data-state="full"] { color: var(--error-text); }

/* Qualifying questions: every answer on show, the chosen one lit. */
.choice { margin: 0; padding: 0; border: 0; min-width: 0; }
.choice legend { padding: 0; margin-bottom: var(--space-2); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { position: relative; display: inline-flex; }
.chip input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 12px;
  background: var(--night);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--lilac) 50%, transparent); /* taste-skill-ignore: radio control edge */
  font-size: var(--fs-small);
  line-height: 1.2;
  transition: box-shadow 120ms ease, color 120ms ease, background-color 120ms ease; /* taste-skill-ignore: radio control edge */
}
.chip:hover span { box-shadow: inset 0 0 0 1px var(--lilac); } /* taste-skill-ignore: radio control edge */
.chip input:checked + span {
  background: color-mix(in srgb, var(--teal) 10%, transparent);
  color: var(--teal);
  box-shadow: inset 0 0 0 2px var(--teal); /* taste-skill-ignore: radio control checked */
}
.chip input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 2px; }
.choice[data-invalid] .chip span,
.choice:has(input:user-invalid) .chip span { box-shadow: inset 0 0 0 1px var(--error); } /* taste-skill-ignore: radio control error */

.trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } /* taste-skill-ignore: hidden spam trap, not a rule */

.btn-send { margin-top: var(--space-2); }
.form-status { min-height: 1.4em; color: var(--on-night-muted); }
.form-status[data-state="error"] { color: var(--error-text); }
.form-status[data-state="sent"] { color: var(--teal); }
.form-status a { color: inherit; }
.form-privacy { margin-top: calc(var(--space-2) * -1); color: var(--on-night-muted); font-size: var(--fs-small); }
.form-privacy a { color: var(--teal); }
.form-privacy a:hover { color: var(--on-night); }

/* ---------- Footer ---------- */
/* The close: the name at full width over a second horizon, the sky's sunset showing again. */

.footer {
  color: var(--on-night-muted);
  font-size: var(--fs-small);
}
.footer-close {
  position: relative;
  overflow: hidden;
  padding-top: var(--section-pad);
}
.footer-name-wrap { position: relative; z-index: 1; container-type: inline-size; }
.footer-name {
  font-family: var(--font-pixel);
  font-size: 14.6cqi;
  line-height: 0.8;
  letter-spacing: 0.01em;
  white-space: nowrap;
  color: var(--name-pink);
  /* sits on the horizon */
  margin-bottom: -0.02em;
}
.horizon-end {
  position: relative;
  left: auto;
  bottom: auto;
  width: auto;
  height: clamp(120px, 20vh, 220px);
  transform: none;
}
.horizon-end .horizon-glow { height: clamp(140px, 30vh, 320px); }
.footer-meta {
  background: var(--night);
  padding-block: var(--space-5) var(--space-6);
}
.footer-meta .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-6);
  align-items: baseline;
}
.footer-links { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); margin-left: auto; }
.footer-links a { color: var(--on-night-muted); text-decoration: underline; transition: color 140ms ease; }
.footer-links a:hover { color: var(--teal); }
.footer-links a[aria-current="page"] { color: var(--on-night); text-decoration: none; }

/* ---------- Legal pages ---------- */
/* Long-form text on a dusk sheet, under the same sky; no booking tab, no reveal script. */

.legal-topbar { position: relative; padding-right: var(--gutter); }
.legal-home {
  font-size: 1.75rem;
  line-height: 1;
  color: var(--name-pink);
  text-decoration: none;
}
.legal-home:hover { color: var(--on-night); }
.legal-head { padding-block: clamp(48px, 9vh, 112px) var(--space-7); }
.legal-updated { margin-top: var(--space-4); color: var(--on-night-muted); font-size: var(--fs-small); }
.legal-sheet { padding-block: var(--space-8) var(--section-pad); }
/* Desktop: contents on the left, text on the right, the same split as the FAQ section.
   Head, contents and text all share the wrap's left edge. */
.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: var(--space-7) clamp(48px, 6vw, 112px);
  align-items: start;
}
.legal-body { max-width: 46rem; }
.legal-toc { position: sticky; top: var(--space-6); }
.legal-toc-title {
  margin-bottom: var(--space-4);
  font-family: var(--font-pixel);
  font-size: var(--fs-body);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--on-night-muted);
}
.legal-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 1px solid color-mix(in srgb, var(--teal) 16%, transparent);
}
.legal-toc a {
  display: block;
  padding: var(--space-2) var(--space-4);
  margin-left: -1px;
  border-left: 2px solid transparent;
  color: var(--on-night-muted);
  font-size: var(--fs-small);
  text-decoration: none;
  transition: color 140ms ease, border-color 140ms ease;
}
.legal-toc a:hover { color: var(--teal); border-left-color: var(--teal); }
.legal-body section { scroll-margin-top: var(--space-6); }
@media (max-width: 960px) {
  .legal-layout { grid-template-columns: minmax(0, 1fr); }
  .legal-toc { display: none; }
}
.legal-body > * + * { margin-top: var(--space-7); }
.legal-lead { font-size: var(--fs-lead); line-height: 1.5; font-weight: 500; }
.legal-body h2 {
  margin-bottom: var(--space-4);
  font-family: var(--font-pixel);
  font-weight: 400;
  font-size: var(--fs-h3);
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: var(--name-pink);
}
/* every block inside a section gets the same gap, whatever follows what */
.legal-body section > * + * { margin-top: var(--space-4); }
.legal-body a { color: var(--teal); }
.legal-body a:hover { color: var(--on-night); }
.legal-list { margin: 0; display: grid; gap: var(--space-5); }
.legal-list div { padding-left: var(--space-4); border-left: 2px solid color-mix(in srgb, var(--teal) 40%, transparent); }
.legal-list dt { font-weight: 600; }
.legal-list dd { margin: var(--space-1) 0 0; color: var(--on-night-muted); }
.legal-bullets { margin: 0; padding-left: 1.25em; display: grid; gap: var(--space-2); }
.legal-bullets li::marker { color: var(--magenta); }
/* Placeholders the owner must fill in before launch. Loud on purpose. */
mark.ph {
  padding: 0 0.25em;
  background: var(--sunset);
  color: var(--night);
  font-weight: 700;
  outline: 2px dashed var(--magenta);
  outline-offset: 1px;
}
.page-legal .footer-meta { padding-bottom: var(--space-6); }
@media (max-width: 1180px) { .page-legal .topnav { display: flex; } }

/* ---------- Responsive ---------- */

@media (max-width: 1180px) {
  .topnav { display: none; }
  .book-card { grid-column: 8 / -1; }
}

@media (max-width: 960px) {
  :root { --horizon-h: 150px; }
  .hero {
    grid-template-columns: minmax(0, 1fr);
    row-gap: var(--space-7);
    padding-top: 112px;
    min-height: 0;
  }
  .hero-copy { grid-column: 1; grid-row: 1; }
  /* full-width copy again, so the name goes back to its viewport size */
  .hero h1 .px { font-size: clamp(3rem, 10.4vw, 9.5rem); }
  /* the card drops under the copy, left-aligned */
  .book-card { grid-column: 1; grid-row: 2; justify-self: start; width: 100%; max-width: 32rem; }
  .hero { grid-template-rows: auto auto var(--horizon-h); padding-bottom: var(--space-7); }
  /* the floor starts right under the copy */
  .hero .horizon {
    position: relative;
    left: auto;
    bottom: auto;
    width: auto;
    transform: none;
    grid-column: 1;
    grid-row: 3;
    height: auto;
    margin-inline: calc(-1 * var(--gutter));
    margin-bottom: calc(-1 * var(--space-7));
  }

  .cost .wrap { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-7); }
  .cost-art, .cost-pull { grid-column: 1; }
  .cost-art { justify-self: start; width: 100%; max-width: 28rem; aspect-ratio: 1 / 1; }
  .cost-pull { padding-bottom: 0; }
  .how-head, .frameworks-head { grid-template-columns: minmax(0, 1fr); }
  .paths { grid-template-columns: minmax(0, 1fr); }
  /* steps run down the left edge instead */
  .steps { display: block; margin-top: var(--space-7); }
  .step {
    position: relative;
    grid-template-columns: var(--node) minmax(0, 1fr);
    grid-template-rows: none;
    column-gap: var(--space-5);
    padding-bottom: var(--space-6);
    text-align: left;
  }
  .step:last-child { padding-bottom: 0; }
  .step-up .step-text, .step-down .step-text { grid-row: 1; grid-column: 2; align-self: start; padding: 0; }
  .step p { margin-inline: 0; max-width: 28em; }
  .step-track { grid-row: 1; grid-column: 1; }
  .step-up .step-node, .step-down .step-node { top: 4px; bottom: auto; }
  .step-link { display: none; }
  .step:not(:last-child)::before {
    content: "";
    position: absolute;
    top: 4px;
    bottom: -4px;
    left: calc(var(--node) / 2 - 1px);
    width: 2px;
    background: var(--magenta);
  }
  .step:nth-child(4)::before { background: repeating-linear-gradient(var(--magenta) 0 2px, transparent 2px 8px); } /* taste-skill-ignore: dotted pixel run */

  /* the list first, the map closing the section */
  .fw-world { grid-template-columns: minmax(0, 1fr); }
  .fw-globe, .fw-list { grid-column: 1; grid-row: auto; }
  .fw-globe { width: 100%; max-width: 34rem; justify-self: center; }
  .practitioner .wrap, .questions .wrap, .contact .wrap { grid-template-columns: minmax(0, 1fr); }
  .contact-call, .questions-side { position: static; }
}

/* Tablet: a floating tab would cover copy, so the button docks as the bottom bar.
   It is hidden while the contact section is on screen, so the footer needs no room for it. */
@media (min-width: 641px) and (max-width: 960px) {
  .js .bug {
    --bug-away: translateY(100%);
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    min-height: 60px;
    box-shadow: 0 -8px 24px rgba(5, 2, 15, 0.5); /* taste-skill-ignore: floating bottom bar */
    padding-bottom: env(safe-area-inset-bottom);
  }
  .js .bug-mark { width: 60px; }
  .js .bug-label { flex: 1; justify-content: center; }
}

@media (max-width: 640px) {
  :root { --horizon-h: 120px; }
  html { scroll-padding-top: 72px; }
  /* without script the bar never hides, so the footer makes room for it */
  html:not(.js) .footer-meta { padding-bottom: calc(var(--space-6) + 60px + env(safe-area-inset-bottom)); }
  .topbar { padding: var(--space-4) var(--gutter); }
  .js .bug { --bug-away: translateY(100%); }
  .bug {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    min-height: 60px;
    box-shadow: 0 -8px 24px rgba(5, 2, 15, 0.5); /* taste-skill-ignore: floating bottom bar */
    padding-bottom: env(safe-area-inset-bottom);
  }
  .bug-mark { width: 60px; }
  .bug-label { flex: 1; justify-content: center; }
  .hero { padding-top: 96px; }
  .hero h1 .px { font-size: clamp(2rem, 12.5vw, 4.5rem); }
  .fw-globe { aspect-ratio: 1 / 1; }
  .fw-leads { grid-template-columns: minmax(0, 1fr); }
  .contact-form { grid-template-columns: minmax(0, 1fr); padding: var(--space-5); }
  .faq { --faq-pad: var(--space-4); }
  .footer-links { margin-left: 0; }
  html:not(.js) .page-legal .footer-meta { padding-bottom: var(--space-6); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sky img, .horizon-grid { animation: none; }
  .hero h1 .px, .hero h1 .sans, .lede, .book-card { animation: none; }
  .reveal-on [data-reveal] { opacity: 1; transform: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* Windows High Contrast: fills are dropped, so give controls and panels real edges
   and mark the chosen chip with the system highlight. */
@media (forced-colors: active) {
  .btn, .bug, .book-card, .path, .contact-form, .field input, .field textarea, .chip span { border: 1px solid CanvasText; }
  .chip input:checked + span { forced-color-adjust: none; background: Highlight; color: HighlightText; border-color: Highlight; }
  .choice:has(input:user-invalid) .chip span, .field input:user-invalid, .field textarea:user-invalid { border: 2px dashed CanvasText; }
}
