/* NNOVARO Web Designs: Drawing to Build */

@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("fonts/sora-var-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/geist-mono-var-latin.woff2") format("woff2");
}

:root {
  --paper: #a9b6c2;        /* drafting paper: a mid blue-grey */
  --grid: #9dabb8;         /* faint 32px grid */
  --navy: #0d2238;         /* blueprint: the one deep band */
  --navy-2: #132f4f;       /* sheets on the blueprint */
  --navy-3: #081626;       /* card edge */
  --on-navy: #eaf3fa;
  --on-navy-2: #a9c0d4;
  --line-soft: #7fd0e8;    /* cyan for small text on navy */
  --mist: #9cb2bf;         /* pale aqua band */
  --marker: #efcd5c;       /* highlighter, only for what you've ticked */
  --white: #ffffff;        /* only for text on dark or blue */
  --surface: #f4f7f9;      /* raised sheets and fields: off-white, never pure white */
  --ink: #0b1b2b;          /* type */
  --graphite: #33404c;     /* secondary type */
  --rule: #a6b3bf;
  --line: #39b4d6;         /* the drawing line, from the logo, softened */
  --cyan-ink: #034560;     /* cyan dark enough for small text */
  --blue: #2a5bd7;         /* the one action colour, calmer */
  --blue-deep: #1f47b0;
  --error: #82170f;

  --wide: 1240px;
  --gut: clamp(18px, 4.5vw, 48px);
  --bar-h: 64px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --mono: "Geist Mono", ui-monospace, Menlo, monospace;
  --lift: 0 28px 48px -26px rgba(11, 27, 43, .35), 0 6px 14px -8px rgba(11, 27, 43, .18);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--bar-h) + 16px);
  scroll-padding-bottom: 96px;
  color-scheme: light;
  scrollbar-color: #627688 var(--paper);
  -webkit-tap-highlight-color: rgba(42, 91, 215, .12);
  touch-action: manipulation;
}

body {
  /* the script blends these toward blueprint navy as How it works comes into view */
  background-color: var(--page-bg, var(--paper));
  background-image:
    linear-gradient(var(--page-grid, var(--grid)) 1px, transparent 1px),
    linear-gradient(90deg, var(--page-grid, var(--grid)) 1px, transparent 1px);
  background-size: 32px 32px;
  color: var(--ink);
  font-family: "Sora", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  caret-color: var(--blue);
}

::selection { background: var(--line); color: var(--ink); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--ink); text-decoration-color: var(--cyan-ink); text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { color: var(--cyan-ink); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-weight: 500; letter-spacing: -.028em; text-wrap: balance; color: var(--ink); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--ink); color: var(--white); padding: 10px 14px; border-radius: 8px;
}
.skip:focus { top: 12px; }
.skip:hover { color: var(--white); }

/* ---------- buttons ---------- */

.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 0 28px;
  border: 0; border-radius: 999px;
  background: var(--blue); color: var(--white);
  font: inherit; font-weight: 600; font-size: 1.0625rem; letter-spacing: -.01em;
  text-decoration: none; cursor: pointer;
  box-shadow: 0 16px 30px -14px rgba(42, 91, 215, .6);
  transform: translate3d(var(--mx, 0px), calc(var(--my, 0px) + var(--hy, 0px)), 0);
  transition: background-color .2s var(--ease), transform .6s var(--ease), box-shadow .25s var(--ease);
}
.btn-primary:hover { --hy: -2px; background: var(--blue-deep); color: var(--white); box-shadow: 0 20px 34px -14px rgba(42, 91, 215, .7); }
.btn-primary:active { --hy: 0px; }
/* magnetic: the script sets --mx and --my while the pointer is near */
.is-magnet { transition-duration: .2s, .18s, .25s; }
.btn-primary > span { display: inline-block; transform: translate3d(calc(var(--mx, 0px) * .35), calc(var(--my, 0px) * .35), 0); transition: transform .6s var(--ease); }
.is-magnet > span { transition-duration: .18s; }

.btn-line {
  display: inline-flex; align-items: center; min-height: 54px; padding: 0 4px;
  color: var(--ink); font-weight: 500; text-decoration: none;
  background: linear-gradient(var(--ink), var(--ink)) 0 calc(100% - 12px) / 100% 1px no-repeat;
  transition: color .2s var(--ease);
}
.btn-line:hover { color: var(--blue); background-image: linear-gradient(var(--blue), var(--blue)); }

/* ---------- top bar ---------- */

.bar {
  position: sticky; top: 0; z-index: 40;
  height: var(--bar-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 var(--gut);
  background: rgb(169 182 194 / .88);
  -webkit-backdrop-filter: saturate(1.5) blur(14px);
  backdrop-filter: saturate(1.5) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.bar.is-scrolled { border-bottom-color: var(--rule); box-shadow: 0 14px 28px -24px rgba(11, 27, 43, .5); }
/* how far down the page you are, drawn as a cyan line under the bar */
.bar-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none; }
.bar-progress i { display: block; height: 100%; background: var(--line); transform-origin: 0 50%; transform: scaleX(var(--read, 0)); }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 6px 14px -6px rgba(11, 27, 43, .5); }
.brand-name { font-weight: 600; letter-spacing: .08em; font-size: 1rem; }
.brand-sub { display: none; white-space: nowrap; font-size: .875rem; color: var(--cyan-ink); }
.brand:hover { color: var(--ink); }

.bar-end { display: flex; align-items: center; gap: 8px; }
.brand { flex: none; }
.bar-cta { display: none; min-height: 44px; padding: 0 20px; font-size: .9375rem; white-space: nowrap; box-shadow: 0 10px 22px -12px rgba(42, 91, 215, .55); }

/* the menu: a drop-down panel on phones and tablets, a pill bar of links on desktop */
.menu-btn {
  display: inline-flex; align-items: center; gap: 9px;
  min-height: 44px; padding: 0 16px;
  border: 1px solid var(--ink); border-radius: 999px;
  background: var(--ink); color: var(--white);
  font: inherit; font-weight: 500; font-size: .9375rem;
  cursor: pointer;
  transition: background-color .2s var(--ease);
}
.menu-btn:hover { background: var(--navy-2); }
.menu-lines { position: relative; width: 16px; height: 10px; }
.menu-lines i { position: absolute; left: 0; right: 0; height: 1.6px; border-radius: 2px; background: currentColor; transition: top .3s var(--ease), transform .3s var(--ease); }
.menu-lines i:first-child { top: 1px; }
.menu-lines i:last-child { top: 7.4px; }
.menu-btn[aria-expanded="true"] .menu-lines i:first-child { top: 4.2px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-lines i:last-child { top: 4.2px; transform: rotate(-45deg); }
.no-js .menu-btn { display: none; }

.menu {
  position: absolute; left: 0; right: 0; top: 100%;
  display: grid; gap: 18px;
  padding: 8px var(--gut) 24px;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  box-shadow: 0 30px 40px -30px rgba(11, 27, 43, .45);
  visibility: hidden; opacity: 0; translate: 0 -10px;
  transition: opacity .25s var(--ease), translate .4s var(--ease), visibility 0s linear .4s;
}
.bar.is-open .menu { visibility: visible; opacity: 1; translate: 0 0; transition-delay: 0s; }
.menu-list { list-style: none; padding: 0; display: grid; }
.menu-list a {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 58px;
  border-bottom: 1px solid var(--rule);
  color: var(--ink); text-decoration: none;
  font-size: 1.375rem; font-weight: 500; letter-spacing: -.02em;
}
.menu-list a::after {
  content: ""; width: 9px; height: 9px; margin-right: 4px;
  border-top: 1.6px solid var(--cyan-ink); border-right: 1.6px solid var(--cyan-ink);
  transform: rotate(45deg);
  transition: transform .3s var(--ease);
}
.menu-list a:hover { color: var(--cyan-ink); }
.menu-list a:hover::after { transform: translateX(3px) rotate(45deg); }
.menu-list a[aria-current="true"] { color: var(--cyan-ink); }
.menu-cta { width: 100%; }

.bar-call {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 16px;
  border: 1px solid var(--ink); border-radius: 999px;
  color: var(--ink); font-weight: 500; font-size: .9375rem; text-decoration: none;
  font-variant-numeric: tabular-nums;
  transform: translate3d(var(--mx, 0px), var(--my, 0px), 0);
  transition: background-color .2s var(--ease), color .2s var(--ease), transform .6s var(--ease);
}
.bar-call:hover { background: var(--ink); color: var(--white); }
.bar-call.is-magnet { transition-duration: .2s, .2s, .18s; }
.bar-call span { white-space: nowrap; }
.bar-call-long { display: none; }

/* ---------- the build (hero) ---------- */

.build { position: relative; }
.js .build { height: 330vh; }

.build-sticky {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 8px;
  padding: 20px var(--gut) 24px;
  max-width: 1360px; margin: 0 auto;
}
.no-js .build-sticky { min-height: calc(100svh - var(--bar-h)); }
.js .build-sticky {
  position: sticky; top: var(--bar-h);
  height: calc(100svh - var(--bar-h));
}

.hero-copy { max-width: 560px; }
h1 { font-size: clamp(2.25rem, 7.4vw, 4.25rem); line-height: 1.04; }
.hero-sub { margin-top: 14px; color: var(--graphite); font-size: 1.0625rem; max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 20px; }
.hero-facts { display: none; }

/* scene */
.scene {
  position: relative; margin: 0;
  min-height: 300px;
  --W: min(560px, 84vw);
  --H: calc(var(--W) * .72);
  /* assembled defaults (no JavaScript); the script drives these */
  --rx: 0deg; --rz: 0deg; --gap: 0px; --shift: 0px; --sc: .92;
  --labels: 0; --frame: 1; --p: 1;
}
/* with JavaScript the page opens on the exploded drawing; the script takes over from here */
.js .scene { --rx: 56deg; --rz: -40deg; --gap: 90px; --shift: 99px; --sc: .84; --labels: 1; --frame: 0; --p: 0; }

.rig {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  perspective: 1800px;
  perspective-origin: 50% 40%;
}
.stack {
  position: relative;
  width: var(--W); height: var(--H);
  transform-style: preserve-3d;
  will-change: transform;
  transform: translateY(var(--shift)) rotateX(calc(var(--rx) + var(--tilt-x, 0deg))) rotateY(var(--tilt-y, 0deg)) rotateZ(var(--rz)) scale(var(--sc));
  font-size: calc(var(--W) * .026);
}

.frame {
  position: absolute; left: 0; right: 0; bottom: 100%;
  height: calc(var(--H) * .075);
  display: flex; align-items: center; gap: 4%;
  padding: 0 3%;
  background: #dbe2e8;
  border: 1px solid #c9d4dc; border-bottom: 0;
  border-radius: 12px 12px 0 0;
  opacity: var(--frame);
}
.frame-dots { display: flex; gap: .45em; }
.frame-dots i { width: .7em; height: .7em; border-radius: 50%; background: var(--line); }
.frame-tag {
  margin-left: auto;
  font-family: var(--mono); font-size: .66em; color: var(--cyan-ink);
}
.frame-url {
  flex: 1; max-width: 50%;
  padding: .2em .9em; border-radius: 99px; background: var(--surface);
  font-family: var(--mono); font-size: .74em; color: var(--graphite);
}

/* each floor of the drawing:
   --land goes 0 (floating) to 1 (dropped onto the page),
   --f goes 0 (a line drawing) to 1 (finished, in colour),
   --hi lights its outline while it lands. The script sets all three per floor. */
.layer {
  --land: 1; --f: 1; --hi: 0;
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  transform: translateZ(calc(var(--gap) * var(--i) * (1 - var(--land))));
}
.js .layer { --land: 0; --f: 0; }
.l0 { --i: 0; } .l1 { --i: 3; } .l2 { --i: 2; } .l3 { --i: 1; }
.layer::before {
  content: ""; position: absolute; inset: 0;
  border: 1.5px dashed rgb(57 180 214 / calc((1 - var(--f)) * .85));
  border-radius: 0 0 12px 12px;
  background: rgb(240 244 247 / calc((1 - var(--f)) * .6));
  pointer-events: none;
}
/* a soft shadow under each floor while it floats */
.layer::after {
  content: ""; position: absolute; inset: 6% 4% 0;
  border-radius: 12px;
  box-shadow: 0 24px 40px -18px rgba(11, 27, 43, .3);
  opacity: calc(1 - var(--land));
  transform: translateZ(-1px);
  pointer-events: none;
}
.l0::after { opacity: 1; box-shadow: 0 40px 60px -30px rgba(11, 27, 43, .4); }
.l0 .page { border-color: rgb(57 180 214 / calc((1 - var(--f)) * .6)); }

.blk {
  position: absolute;
  border: 2px solid rgb(57 180 214 / max(calc(1 - var(--f)), var(--hi)));
  border-radius: .7em;
  background: rgb(var(--c, 240 244 247) / var(--f));
  overflow: hidden;
}
.blk > * { opacity: var(--f); }
/* words write themselves in from the left as the floor is finished */
.wipe { clip-path: inset(-20% calc((1 - var(--f)) * 100%) -20% 0); }

.page { inset: 0; border-radius: 0 0 12px 12px; overflow: visible; --c: 240 244 247; }
.pfoot {
  left: 0; right: 0; bottom: 0; height: 9%;
  --c: 13 34 56; border-radius: 0 0 12px 12px;
  display: flex; align-items: center; padding: 0 4%;
}
.t-foot { color: #cfe0ea; font-size: .62em; }

/* floor 3 (lands last): header, headline, photo */
.nav {
  left: 0; right: 0; top: 0; height: 10%;
  border-radius: 0;
  display: flex; align-items: center; gap: 2.4%; padding: 0 4%;
  border-left: 0; border-right: 0;
}
.dot { width: 1.3em; height: 1.3em; border-radius: 50%; background: var(--ink); transform: scale(var(--f)); }
.t-logo { font-weight: 600; font-size: .78em; }
.pill { margin-left: auto; padding: .2em .9em; border-radius: 99px; background: var(--blue); color: #fff; font-size: .66em; font-weight: 600; transform: scale(var(--f)); }

.hero { left: 4%; top: 15%; width: 52%; height: 30%; --c: 220 233 240; padding: 4.2% 4.4%; display: flex; flex-direction: column; gap: .5em; }
.t-h { font-weight: 600; font-size: 1.32em; line-height: 1.08; letter-spacing: -.02em; }
.t-s { font-size: .66em; color: var(--graphite); }
.btn-mini { align-self: flex-start; padding: .3em 1em; border-radius: 99px; background: var(--blue); color: #fff; font-size: .62em; font-weight: 600; transform: scale(var(--f)); transform-origin: 0 50%; }

.photo { right: 4%; top: 15%; width: 36%; height: 30%; --c: 205 224 232; }
/* the drafting "image goes here" cross, until the picture arrives */
.photo::before {
  content: ""; position: absolute; inset: 0;
  opacity: calc(1 - var(--f));
  background:
    linear-gradient(to top right, transparent calc(50% - 1px), var(--line) 50%, transparent calc(50% + 1px)),
    linear-gradient(to top left, transparent calc(50% - 1px), var(--line) 50%, transparent calc(50% + 1px));
}
.art { position: absolute; inset: 0; width: 100%; height: 100%; transform: scale(calc(1.25 - .25 * var(--f))); }
.t-photo {
  position: absolute; left: .6em; bottom: .6em;
  padding: .2em .7em; border-radius: 99px; background: rgb(240 244 247 / .92);
  font-family: var(--mono); font-size: .56em; color: var(--cyan-ink); white-space: nowrap;
}

/* floor 2: services */
.tile {
  top: 50%; height: 17%; width: 29.3%; padding: 3% 3.2%;
  display: grid; grid-template-columns: 1fr auto; grid-template-rows: 1fr auto; column-gap: .4em;
  --c: 233 239 243;
}
.tile:nth-child(1) { left: 4%; }
.tile:nth-child(2) { left: 35.35%; }
.tile:nth-child(3) { left: 66.7%; }
.t-t { grid-column: 1; grid-row: 1; font-weight: 600; font-size: .7em; line-height: 1.2; }
.t-p { grid-column: 1; grid-row: 2; font-family: var(--mono); font-size: .62em; color: var(--cyan-ink); }
.ico {
  grid-column: 2; grid-row: 1 / span 2; align-self: center;
  width: 2em; height: 2em; color: var(--cyan-ink);
  transform: scale(var(--f)) rotate(calc((1 - var(--f)) * -40deg));
}

/* floor 1 (lands first): map, hours, enquiry button */
.map { left: 4%; top: 71.5%; width: 44%; height: 16.5%; --c: 211 228 216; }
.map::before {
  content: ""; position: absolute; inset: 0; opacity: var(--f);
  background:
    linear-gradient(90deg, transparent 47%, #eef3ef 47%, #eef3ef 53%, transparent 53%),
    linear-gradient(0deg, transparent 40%, #eef3ef 40%, #eef3ef 48%, transparent 48%);
}
/* the pin drops onto the map */
.pin {
  position: absolute; left: 56%; top: 22%; width: 1.1em; height: 1.1em;
  border-radius: 50% 50% 50% 0; background: var(--blue);
  transform: translateY(calc((1 - var(--f)) * -3.5em)) rotate(-45deg);
}
.hours { left: 51%; top: 71.5%; width: 23%; height: 16.5%; padding: 2.6% 3%; display: flex; flex-direction: column; gap: .5em; }
.rows { display: grid; gap: .35em; }
.rows i { display: block; height: .32em; border-radius: 2px; background: #c7d3dc; transform: scaleX(var(--f)); transform-origin: 0 50%; }
.rows i:nth-child(2) { width: 80%; } .rows i:nth-child(3) { width: 60%; }
.send-mini {
  left: 77%; top: 76%; width: 19%; height: 8%; --c: 42 91 215;
  display: grid; place-items: center; border-radius: 99px;
  transform: scale(calc(.55 + .45 * var(--f)));
}
.send-mini span { color: #fff; font-size: .6em; font-weight: 600; white-space: nowrap; }

/* callouts: numbered in the order the floors are added */
.tag {
  position: absolute; top: -1.1em;
  width: 2.2em; height: 2.2em; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--line); color: var(--ink);
  font-family: var(--mono); font-size: .8em; font-weight: 500;
  opacity: var(--labels);
}
.tag-1 { right: -1.1em; } .tag-2 { right: -1.1em; top: 45%; } .tag-3 { right: -1.1em; top: 68%; }

.callouts { position: absolute; inset: 0; pointer-events: none; opacity: var(--labels); }
.call {
  position: absolute;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 10px;
  background: var(--surface); border: 1px solid var(--rule); border-radius: 8px;
  font-size: .8125rem; font-weight: 500; white-space: nowrap;
  box-shadow: 0 10px 22px -16px rgba(11, 27, 43, .5);
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.call b { font-family: var(--mono); font-weight: 500; color: var(--cyan-ink); transition: color .35s var(--ease); }
/* the floor being added right now */
.call.is-active { background: var(--ink); border-color: var(--ink); color: var(--white); }
.call.is-active b { color: var(--line-soft); }
/* floors already added get a tick */
.ck { display: none; width: .6em; height: .32em; margin: 0 2px 3px; border-left: 2px solid var(--cyan-ink); border-bottom: 2px solid var(--cyan-ink); transform: rotate(-45deg); }
.call.is-done { color: var(--graphite); }
.call.is-done .ck { display: inline-block; }
.call::before {
  content: ""; position: absolute; top: 50%;
  width: var(--leader, 64px); height: 1px; background: var(--cyan-ink);
  right: 100%;
}
.call::after {
  content: ""; position: absolute; top: calc(50% - 3px);
  right: calc(100% + var(--leader, 64px) - 3px);
  width: 6px; height: 6px; border-radius: 50%; background: var(--cyan-ink);
}
.c1 { right: 2%; top: 16%; --leader: 56px; }
.c2 { right: 0; top: 42%; --leader: 72px; }
.c3 { right: 4%; top: 68%; --leader: 64px; }

.stage-note {
  position: absolute; left: 50%; bottom: 0;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px;
  white-space: nowrap;
  font-family: var(--mono); font-size: .8125rem; color: var(--cyan-ink);
}
.stage-bar { width: 120px; height: 2px; background: var(--rule); border-radius: 2px; overflow: hidden; }
.stage-bar i { display: block; height: 100%; width: calc(var(--p) * 100%); background: var(--cyan-ink); }
.no-js .stage-note { display: none; }

.scroll-cue {
  display: none;
  position: absolute; left: var(--gut); bottom: 22px;
  align-items: center; gap: 10px;
  font-family: var(--mono); font-size: .8125rem; color: var(--graphite);
  transition: opacity .3s var(--ease);
}
.scroll-cue.is-gone { opacity: 0; }
.scroll-cue span { width: 1px; height: 28px; background: linear-gradient(var(--cyan-ink), transparent); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { from { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } to { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- how it works ---------- */

.how, .choose, .details, .about, .talk { max-width: var(--wide); margin: 0 auto; padding: 88px var(--gut) 0; }

h2 { font-size: clamp(2rem, 4.4vw, 3.25rem); line-height: 1.06; }

.dimline {
  list-style: none; padding: 36px 0 0; margin-top: 28px;
  display: grid; gap: 28px;
  position: relative;
}
/* a dimension line with arrowheads across the steps */
.dimline::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--cyan-ink);
}
.dimline::after {
  content: ""; position: absolute; left: 0; right: 0; top: -4px; height: 9px;
  background:
    linear-gradient(to bottom right, transparent 45%, var(--cyan-ink) 50%, transparent 55%) left / 9px 9px no-repeat,
    linear-gradient(to bottom left, transparent 45%, var(--cyan-ink) 50%, transparent 55%) right / 9px 9px no-repeat;
}
.dimline li { position: relative; }

/* the blueprint band */
.blueprint {
  position: relative; margin-top: 88px; padding-bottom: 104px;
  background-color: var(--navy);
  background-image:
    linear-gradient(rgb(57 180 214 / .09) 1px, transparent 1px),
    linear-gradient(90deg, rgb(57 180 214 / .09) 1px, transparent 1px);
  background-size: 32px 32px;
  color: var(--on-navy);
  overflow: hidden;
}
/* the pointer lights up the blueprint grid as it moves */
.blueprint::before, .blueprint::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: var(--lon, 0); transition: opacity .5s var(--ease); }
.blueprint::before {
  background-image:
    linear-gradient(rgb(57 180 214 / .6) 1px, transparent 1px),
    linear-gradient(90deg, rgb(57 180 214 / .6) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(200px circle at var(--lx, -999px) var(--ly, -999px), #000, transparent);
  mask-image: radial-gradient(200px circle at var(--lx, -999px) var(--ly, -999px), #000, transparent);
}
.blueprint::after { background: radial-gradient(520px circle at var(--lx, -999px) var(--ly, -999px), rgb(57 180 214 / .12), transparent 60%); }
.blueprint > .how { position: relative; z-index: 1; padding-top: 80px; }
.blueprint h2 { color: var(--white); }
/* with the script running, the band itself is see-through: the whole page fades to blueprint
   behind it, and back again as you scroll past. --bp is how far the fade has got (0 to 1). */
.bg-fade .blueprint { background: none; }
/* the heading flips from ink to white once the page is dark enough for white to read best */
.bg-fade .blueprint h2 { color: var(--ink); transition: color .4s var(--ease); }
.bg-fade.bp-dark .blueprint h2 { color: var(--white); }
.blueprint ::selection { background: var(--line); color: var(--navy); }
.blueprint .dimline { perspective: 1100px; perspective-origin: 50% 0; }
.blueprint .dimline::before, .blueprint .dimline li::before { background: var(--line); }
.blueprint .dimline::after {
  background:
    linear-gradient(to bottom right, transparent 45%, var(--line) 50%, transparent 55%) left / 9px 9px no-repeat,
    linear-gradient(to bottom left, transparent 45%, var(--line) 50%, transparent 55%) right / 9px 9px no-repeat;
}
.sheet {
  padding: 22px 22px 26px;
  background: var(--navy-2);
  border: 1px solid rgb(57 180 214 / .3);
  border-radius: 4px;
  box-shadow: 0 36px 50px -30px rgb(8 22 38 / .8);
  transform-style: preserve-3d;
  transform-origin: 50% 100%;
  transform: rotateX(var(--rx-t, 0deg)) rotateY(var(--ry-t, 0deg));
  transition: transform .7s var(--ease), border-color .3s var(--ease),
    opacity .7s var(--ease) var(--dl, 0s), translate 1.1s var(--ease) var(--dl, 0s), rotate 1.1s var(--ease) var(--dl, 0s);
}
.sheet.is-tilting { transition-duration: .2s, .3s, .7s, 1.1s, 1.1s; }
.sheet:hover { border-color: rgb(57 180 214 / .75); }
/* the light catching the sheet */
.sheet::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgb(111 220 247 / .16), transparent 60%);
  opacity: 0; transition: opacity .4s var(--ease);
}
.sheet:hover::after { opacity: 1; }
.blueprint .dim-n { display: block; color: var(--line-soft); font-size: 2rem; line-height: 1; transform: translateZ(44px); }
.blueprint .dimline h3 { color: var(--white); margin-top: 14px; transform: translateZ(26px); }
.blueprint .dimline p { color: var(--on-navy-2); transform: translateZ(12px); }
.dimline li::before { content: ""; position: absolute; left: 0; top: -44px; width: 1px; height: 16px; background: var(--cyan-ink); display: none; }
.dim-n { font-family: var(--mono); font-size: .875rem; color: var(--cyan-ink); }
.dimline h3 { margin-top: 6px; font-size: 1.25rem; line-height: 1.3; }
.dimline p { margin-top: 6px; color: var(--graphite); max-width: 34ch; }

/* ---------- choose ---------- */

.bot { position: absolute; left: -9999px; }

.choose-head p, .details-head p { margin-top: 12px; color: var(--graphite); max-width: 56ch; }
/* what every website includes: a ruled specification, like the notes on a drawing */
.includes { margin-top: 32px; }
.includes-title { font-size: 1.125rem; line-height: 1.3; }
.includes-list {
  list-style: none; padding: 0; margin-top: 12px;
  display: grid; gap: 0 28px;
  border-top: 1px solid var(--cyan-ink);
}
.includes-list li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--rule);
  font-size: .9375rem; font-weight: 500; line-height: 1.45;
}
.includes-list svg { flex: none; margin-top: 1px; color: var(--cyan-ink); }
.choose-layout { display: grid; gap: 28px; margin-top: 36px; align-items: start; }

.set { border: 0; padding: 0; min-width: 0; }
.set + .set { margin-top: 32px; }
.set legend { font-family: var(--mono); font-size: .875rem; color: var(--cyan-ink); margin-bottom: 12px; padding: 0; }
.set-grid { display: grid; gap: 14px; }

.opt {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "title tick" "note note" "no price";
  gap: 4px 0;
  padding: 18px 20px 14px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 4px;
  cursor: pointer;
  transform-style: preserve-3d;
  transform: perspective(900px) translateY(var(--ty, 0px)) translateZ(var(--tz, 0px))
    rotateX(calc(var(--brx, 0deg) + var(--rx-t, 0deg))) rotateY(var(--ry-t, 0deg));
  transition: transform .6s var(--ease), box-shadow .45s var(--ease), border-color .2s var(--ease),
    opacity .7s var(--ease) var(--dl, 0s), translate .9s var(--ease) var(--dl, 0s), rotate .9s var(--ease) var(--dl, 0s);
}
.opt.is-tilting { transition-duration: .18s, .45s, .2s, .7s, .9s, .9s; }
/* the parts of each sheet float at different depths as it tilts */
.opt-title { transform: translateZ(22px); }
.opt-note { transform: translateZ(10px); }
.opt-glare {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgb(57 180 214 / .14), transparent 55%);
  opacity: 0; transition: opacity .4s var(--ease);
}
.opt input {
  position: absolute; inset: 0; width: 100%; height: 100%;
  margin: 0; opacity: 0; cursor: pointer; z-index: 2;
}
.opt-title { grid-area: title; padding-right: 16px; font-weight: 600; font-size: 1.0625rem; letter-spacing: -.01em; line-height: 1.35; }
.opt-note { grid-area: note; color: var(--graphite); font-size: .9375rem; line-height: 1.5; }
.opt-no, .opt-price {
  margin: 12px -20px -14px; padding: 9px 20px 10px;
  border-top: 1px solid var(--rule);
  font-family: var(--mono); font-size: .8125rem; font-variant-numeric: tabular-nums;
}
.opt-no { grid-area: no; color: var(--cyan-ink); margin-right: 0; border-right: 1px solid var(--rule); }
.opt-price { grid-area: price; color: var(--ink); text-align: right; margin-left: 0; }
/* crop marks: these are drawing sheets */
.opt::before, .opt::after {
  content: ""; position: absolute; width: 10px; height: 10px; pointer-events: none;
  border: 0 solid var(--line);
}
.opt::before { left: -6px; top: -6px; border-left-width: 1.5px; border-top-width: 1.5px; }
.opt::after { right: -6px; bottom: -6px; border-right-width: 1.5px; border-bottom-width: 1.5px; }
.opt-tick {
  grid-area: tick; align-self: start; justify-self: end;
  width: 26px; height: 26px; border-radius: 50%;
  border: 1.5px solid #9fb3c1;
  transform: translateZ(32px) scale(var(--tk, 1));
  transition: background-color .25s var(--ease), border-color .25s var(--ease), transform .35s var(--ease);
}
@media (hover: hover) {
  .opt:hover { --ty: -3px; box-shadow: 0 22px 34px -24px rgba(11, 27, 43, .45); }
  .opt:hover .opt-glare { opacity: 1; }
}
.opt:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 3px; }
.opt:has(input:checked) {
  --ty: -8px; --tz: 20px; --brx: 6deg; --tk: 1.08;
  border-color: var(--line);
  box-shadow: var(--lift), 0 0 0 1px var(--line);
}
/* what you've ticked gets a highlighter stroke, like marking up a drawing */
.opt-title {
  justify-self: start;
  background: linear-gradient(transparent 60%, var(--marker) 60%, var(--marker) 92%, transparent 92%) 0 0 / 0% 100% no-repeat;
  transition: background-size .5s var(--ease);
}
.opt:has(input:checked) .opt-title { background-size: 100% 100%; }
.opt:has(input:checked) .opt-tick {
  --tk: 1.08;
  border-color: var(--ink);
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}

/* the list */
.list {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 22px;
  box-shadow: var(--lift);
}
.list-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--rule); }
.list-head h3 { font-size: 1.25rem; }
.list-ref { font-family: var(--mono); font-size: .8125rem; color: var(--cyan-ink); font-variant-numeric: tabular-nums; }
.list-items { list-style: none; padding: 0; }
.list-items li {
  display: grid; grid-template-columns: 54px 1fr; gap: 10px;
  padding: 10px 0; border-bottom: 1px dashed var(--rule);
  font-size: .9375rem; font-weight: 500;
  animation: rise .5s var(--ease) both;
}
.list-items li span { font-family: var(--mono); font-weight: 400; color: var(--cyan-ink); font-size: .8125rem; padding-top: 2px; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.list-empty { padding: 14px 0 4px; color: var(--graphite); font-size: .9375rem; }
.list-items:not(:empty) + .list-empty { display: none; }
.list-go { width: 100%; margin-top: 16px; }

/* ---------- details ---------- */

.details-grid { display: grid; gap: 18px; margin-top: 28px; max-width: 820px; }
.field { display: grid; gap: 6px; }
.field label, .reply legend { font-weight: 500; font-size: .9375rem; }
.opt-label { color: var(--graphite); font-weight: 400; }
.field input, .field textarea {
  width: 100%;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--surface);
  border: 1px solid #c9d7e0; border-radius: 12px;
  padding: 13px 16px; min-height: 52px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 104px; }
.field input::placeholder, .field textarea::placeholder { color: #5c6874; }
.field input:hover, .field textarea:hover { border-color: #9fb3c1; }
.field input:focus-visible, .field textarea:focus-visible {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(42, 91, 215, .18);
}
.err { display: none; color: var(--error); font-size: .875rem; }
.field.is-invalid input { border-color: var(--error); box-shadow: 0 0 0 3px rgba(130, 23, 15, .1); }
.field.is-invalid .err { display: block; }

.reply { border: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.reply legend { width: 100%; margin-bottom: 6px; float: left; }
.seg { position: relative; }
.seg input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.seg span {
  display: inline-flex; align-items: center; min-height: 46px; padding: 0 20px;
  border: 1px solid #c9d7e0; border-radius: 999px; background: var(--surface);
  font-weight: 500; transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.seg input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--white); }
.seg input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 3px; }
.seg:hover input:not(:checked) + span { border-color: #9fb3c1; }

.js .details-grid:has(input[value="Email"]:checked) #field-phone,
.js .details-grid:has(input[value="Phone call"]:checked) #field-email { display: none; }

.send-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 4px; }
.send { min-height: 58px; padding: 0 34px; font-size: 1.125rem; }
.send[aria-busy="true"] { background: #6b7b88; box-shadow: none; cursor: progress; }
.send-alt { color: var(--graphite); }
.send-alt a { font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- about ---------- */

.about { display: grid; gap: 40px; align-items: center; padding-top: 112px; }
.badge-wrap { perspective: 1000px; width: min(320px, 52vw); }
.badge {
  position: relative;
  border-radius: 50%;
  transform: rotateX(var(--bx, 8deg)) rotateY(var(--by, -14deg)) scale(var(--bs, 1));
  /* the silver edge of the disc: it slides round the side that tilts away (set by the script) */
  box-shadow:
    calc(var(--ex, 5px) * .5) calc(var(--ey, 3px) * .5) 0 #c3ccd4,
    var(--ex, 5px) var(--ey, 3px) 0 #56616b,
    0 50px 70px -36px rgba(11, 27, 43, .55), 0 14px 24px -14px rgba(11, 27, 43, .35);
}
.badge img { position: relative; display: block; border-radius: 50%; }
/* light catching the disc, following the pointer */
.badge::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at var(--gx, 30%) var(--gy, 25%), rgba(255, 255, 255, .34), rgba(255, 255, 255, .07) 32%, transparent 58%);
  pointer-events: none;
}
.about-text p { margin-top: 14px; max-width: 58ch; font-size: 1.0625rem; }
.about-text h2 + p { margin-top: 18px; }
.about-where { color: var(--graphite); font-size: .9375rem; }

/* ---------- questions ---------- */

.faq { max-width: var(--wide); margin: 0 auto; padding: 104px var(--gut) 0; display: grid; gap: 28px; align-items: start; }
.faq-head p { margin-top: 12px; color: var(--graphite); }
.faq-list { border-top: 1px solid var(--cyan-ink); interpolate-size: allow-keywords; }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 64px; padding: 14px 0;
  cursor: pointer; list-style: none;
  font-size: 1.125rem; font-weight: 500; letter-spacing: -.01em; line-height: 1.35;
  transition: color .2s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--cyan-ink); }
.faq-item summary:focus-visible { outline-offset: 4px; }
/* a drawn plus that turns into a minus */
.faq-icon { position: relative; flex: none; width: 28px; height: 28px; border: 1.5px solid var(--ink); border-radius: 50%; transition: background-color .3s var(--ease); }
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; margin: -.75px 0 0 -5.5px;
  background: var(--ink); transition: transform .35s var(--ease), background-color .3s var(--ease);
}
.faq-icon::after { transform: rotate(90deg); }
.faq-item[open] .faq-icon { background: var(--ink); }
.faq-item[open] .faq-icon::before, .faq-item[open] .faq-icon::after { background: var(--white); }
.faq-item[open] .faq-icon::after { transform: rotate(0deg); }
.faq-item p { padding: 0 48px 20px 0; color: var(--graphite); max-width: 62ch; }
/* the answer slides open where the browser supports it */
.faq-item::details-content { block-size: 0; overflow: hidden; transition: block-size .4s var(--ease), content-visibility .4s allow-discrete; }
.faq-item[open]::details-content { block-size: auto; }

/* ---------- talk: the business card ---------- */

.talk-band {
  margin-top: 104px;
  background-color: var(--mist);
  background-image:
    linear-gradient(rgb(8 112 154 / .07) 1px, transparent 1px),
    linear-gradient(90deg, rgb(8 112 154 / .07) 1px, transparent 1px);
  background-size: 32px 32px;
  border-top: 1px solid var(--rule);
}
.talk { display: grid; gap: 44px; align-items: center; padding-bottom: 104px; }
.talk-lines { margin-top: 16px; color: var(--graphite); max-width: 40ch; }

.card-wrap { width: 100%; max-width: 560px; }
.card {
  --card-rx: 6deg; --card-ry: -8deg;
  position: relative;
  transform-style: preserve-3d;
  transform: perspective(1400px) rotateX(calc(var(--card-rx) + var(--rx-t, 0deg))) rotateY(calc(var(--card-ry) + var(--ry-t, 0deg)));
  transition: transform .8s var(--ease);
}
.card.is-tilting { transition-duration: .2s; }
/* two slabs behind the face give the card its thickness */
.card::before, .card::after {
  content: ""; position: absolute; inset: 0; border-radius: 16px; background: var(--navy-3);
}
.card::before { transform: translateZ(-3px); }
.card::after { transform: translateZ(-6px); box-shadow: 0 50px 70px -34px rgba(11, 27, 43, .6), 0 14px 26px -16px rgba(11, 27, 43, .4); }
.card-face {
  position: relative;
  transform-style: preserve-3d;
  display: grid; gap: 6px;
  padding: clamp(22px, 5vw, 38px);
  border-radius: 16px;
  background-color: var(--navy);
  background-image:
    linear-gradient(rgb(57 180 214 / .1) 1px, transparent 1px),
    linear-gradient(90deg, rgb(57 180 214 / .1) 1px, transparent 1px);
  background-size: 24px 24px;
  border: 1px solid rgb(57 180 214 / .35);
  color: var(--on-navy);
}
.card-top {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 18px; margin-bottom: 14px;
  border-bottom: 1px solid rgb(57 180 214 / .3);
  transform: translateZ(18px);
}
.card-top img { width: 52px; height: 52px; border-radius: 50%; }
.card-name { font-size: 1rem; line-height: 1.3; }
.card-name b { display: block; font-weight: 600; letter-spacing: .08em; color: var(--white); }
.card-name span { color: var(--on-navy-2); font-size: .875rem; }
.card-phone {
  justify-self: start;
  font-size: clamp(2rem, 8vw, 3.25rem); font-weight: 500; letter-spacing: -.035em; line-height: 1.1;
  color: var(--white); text-decoration: none; font-variant-numeric: tabular-nums;
  padding-bottom: 6px;
  background: linear-gradient(var(--line), var(--line)) 0 100% / 100% 3px no-repeat;
  transform: translateZ(34px);
  transition: color .25s var(--ease);
}
.card-phone:hover { color: var(--line-soft); }
.card-email {
  justify-self: start; margin-top: 2px; padding-block: 8px; /* a taller tap target, same look */
  color: var(--on-navy); text-decoration-color: var(--line);
  transform: translateZ(20px);
}
.card-email:hover { color: var(--line-soft); }
.card-face :focus-visible { outline-color: var(--line); }
.card-glare {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(circle at var(--gx, 30%) var(--gy, 20%), rgb(255 255 255 / .14), transparent 50%);
  transform: translateZ(1px);
}

/* ---------- footer ---------- */

.foot {
  /* 84px under the footer leaves room for the phone dock */
  padding: 36px max(var(--gut), calc((100% - var(--wide)) / 2 + var(--gut))) calc(40px + 84px);
  background: var(--navy);
  color: var(--on-navy-2); font-size: .9375rem;
}
.foot-grid { display: grid; gap: 32px; }
.foot-brand img { width: 52px; height: 52px; border-radius: 50%; }
.foot-brand p { margin-top: 8px; max-width: 34ch; }
.foot-name { color: var(--white); font-weight: 600; }
.foot-brand .foot-name { margin-top: 14px; }
.foot-h { color: var(--white); font-weight: 600; margin-bottom: 10px; }
.foot ul { list-style: none; padding: 0; display: grid; gap: 8px; }
/* on phones these stack on the left, clear of the back-to-top button */
.foot-bottom {
  display: flex; flex-direction: column; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  margin-top: 36px; padding-top: 18px;
  border-top: 1px solid rgb(57 180 214 / .25);
}
.foot a { color: var(--on-navy); text-decoration: none; }
.foot a:hover { color: var(--line-soft); text-decoration: underline; }
.foot :focus-visible { outline-color: var(--line); }

/* ---------- thank-you page ---------- */

.thanks-page { padding-bottom: 0; }
.thanks-page .foot { padding-bottom: 44px; }
.thanks {
  max-width: var(--wide); margin: 0 auto;
  padding: 72px var(--gut) 96px;
  display: grid; gap: 40px; align-items: start;
  min-height: calc(100svh - var(--bar-h) - 160px);
}
.thanks h1 { font-size: clamp(2.25rem, 6vw, 4rem); line-height: 1.05; max-width: 14ch; }
.thanks-text p { margin-top: 16px; max-width: 52ch; color: var(--graphite); }
.thanks-text h1 + p { margin-top: 22px; color: var(--ink); font-size: 1.125rem; }
.thanks-list .list-head h2 { font-size: 1.25rem; }
.thanks-list { transform: rotate(-1.5deg); }

/* ---------- privacy page ---------- */

.legal { max-width: 760px; margin: 0 auto; padding: 72px var(--gut) 96px; }
.legal h1 { font-size: clamp(2.25rem, 6vw, 3.5rem); line-height: 1.05; }
.legal-lead { margin-top: 18px; font-size: 1.125rem; }
.legal h2 { margin-top: 40px; padding-top: 14px; border-top: 1px solid var(--cyan-ink); font-size: 1.25rem; line-height: 1.3; letter-spacing: -.015em; }
.legal p { margin-top: 10px; max-width: 64ch; color: var(--graphite); }
.legal p a { color: var(--ink); }
.legal .legal-lead { color: var(--ink); }
.legal-updated { margin-top: 40px; font-size: .9375rem; }

/* ---------- page not found ---------- */

.lost { max-width: 760px; margin: 0 auto; padding: 72px var(--gut) 112px; }
.lost-art { width: min(220px, 60vw); height: auto; margin-bottom: 28px; }
.lost h1 { font-size: clamp(2.25rem, 6vw, 3.5rem); line-height: 1.05; max-width: 16ch; }
.lost p { margin-top: 16px; color: var(--graphite); max-width: 46ch; }
.lost .hero-cta { margin-top: 28px; }

/* ---------- phone dock ---------- */

.dock {
  position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 8px 8px 18px;
  background: var(--surface);
  border: 1px solid var(--rule); border-radius: 999px;
  box-shadow: var(--lift);
  transition: transform .45s var(--ease), opacity .3s var(--ease);
}
.dock.is-hidden { transform: translateY(140%); opacity: 0; pointer-events: none; }
.dock-count { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9375rem; font-weight: 500; }
.dock-count.bump { animation: rise .45s var(--ease); }
.dock-btn {
  flex: none; display: inline-flex; align-items: center; min-height: 46px; padding: 0 18px;
  border-radius: 999px; background: var(--blue); color: #fff; font-weight: 600; font-size: .9375rem; text-decoration: none;
}
.dock-btn:hover { background: var(--blue-deep); color: #fff; }

/* ---------- back to top ---------- */

.to-top {
  position: fixed; right: 14px; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 31;
  width: 52px; height: 52px; padding: 0;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: var(--ink); color: var(--white);
  cursor: pointer;
  box-shadow: var(--lift), inset 0 0 0 1px rgb(255 255 255 / .22);
  opacity: 0; pointer-events: none; translate: 0 18px;
  transform: translate3d(var(--mx, 0px), var(--my, 0px), 0);
  transition: opacity .35s var(--ease), translate .5s var(--ease), transform .6s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease);
}
.to-top.is-shown { opacity: 1; translate: 0 0; pointer-events: auto; }
.to-top.is-magnet { transition-duration: .35s, .5s, .18s, .2s, .2s; }
.to-top svg { transition: transform .35s var(--ease); }
.to-top:hover { background: var(--navy-2); box-shadow: var(--lift), inset 0 0 0 1.5px var(--line); }
.to-top:hover svg { transform: translateY(-2px); }

/* ---------- cursor spotlight on the paper grid ---------- */

.spotlight { display: none; }
@media (hover: hover) and (pointer: fine) {
  .js .spotlight {
    display: block;
    position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background: radial-gradient(560px circle at var(--sx, -999px) var(--sy, -999px), rgb(57 180 214 / .09), transparent 60%);
    opacity: var(--son, 0);
    transition: opacity .5s var(--ease);
  }
  .js .spotlight::before {
    content: ""; position: absolute; inset: 0;
    background-image:
      linear-gradient(rgb(57 180 214 / .55) 1px, transparent 1px),
      linear-gradient(90deg, rgb(57 180 214 / .55) 1px, transparent 1px);
    background-size: 32px 32px;
    background-position: 0 var(--gy0, 0px);
    -webkit-mask-image: radial-gradient(220px circle at var(--sx, -999px) var(--sy, -999px), #000, transparent);
    mask-image: radial-gradient(220px circle at var(--sx, -999px) var(--sy, -999px), #000, transparent);
  }
}

/* ---------- scroll reveal: sheets settle onto the page ---------- */

@media (prefers-reduced-motion: no-preference) {
  .reveal-on [data-reveal] {
    transform-origin: 50% 100%;
    transition: opacity .8s var(--ease) var(--dl, 0s), translate 1s var(--ease) var(--dl, 0s), rotate 1s var(--ease) var(--dl, 0s);
  }
  .reveal-on [data-reveal]:not(.is-in) { opacity: 0; translate: 0 36px; rotate: x 12deg; }
  .reveal-on .set:not(.is-in) .opt { opacity: 0; translate: 0 34px; rotate: x 16deg; }
  .reveal-on .dimline:not(.is-in) .sheet { opacity: 0; translate: 0 50px; rotate: x 70deg; }
}

/* ---------- wider screens ---------- */

/* the smallest phones (320px): tighter spacing so the bar fits */
@media (max-width: 359px) {
  .bar { gap: 8px; }
  .bar-end { gap: 6px; }
  .bar-call { padding: 0 12px; }
}
@media (max-width: 399px) {
  .menu-btn { padding: 0 14px; }
  .menu-btn-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (min-width: 560px) {
  .bar-call-short { display: none; }
  .bar-call-long { display: inline; }
}
@media (min-width: 1180px) {
  .brand-sub { display: inline; }
}


@media (min-width: 720px) {
  .dimline { grid-template-columns: repeat(2, 1fr); gap: 32px 40px; }
  .set-grid { grid-template-columns: 1fr 1fr; }
  .opt-wide { grid-column: 1 / -1; }
  .includes-list { grid-template-columns: 1fr 1fr; }
  .details-grid { grid-template-columns: 1fr 1fr; gap: 20px 24px; }
  .reply, .field-wide, .send-row { grid-column: 1 / -1; }
  .details-grid > #field-email, .details-grid > #field-phone { grid-column: 1 / -1; max-width: calc(50% - 12px); }
  .about { grid-template-columns: auto 1fr; gap: 72px; }
  .talk { grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 56px; }
  .foot-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
  .card { --card-rx: 10deg; --card-ry: -14deg; }
}

@media (min-width: 1024px) {
  .menu-btn { display: none; }
  .menu {
    position: static; display: block; padding: 0;
    background: none; border: 0; box-shadow: none;
    visibility: visible; opacity: 1; translate: none; transition: none;
  }
  .menu-list {
    display: flex; gap: 2px; padding: 4px;
    background: rgb(244 247 249 / .75);
    border: 1px solid var(--rule); border-radius: 999px;
  }
  .menu-list a {
    min-height: 38px; padding: 0 16px; border: 0; border-radius: 999px;
    font-size: .9375rem; letter-spacing: 0; color: var(--graphite); white-space: nowrap;
    transition: background-color .2s var(--ease), color .2s var(--ease);
  }
  .menu-list a::after { display: none; }
  .menu-list a:hover { color: var(--ink); background: rgb(11 27 43 / .06); }
  .menu-list a[aria-current="true"] { color: var(--white); background: var(--ink); }
  .menu-cta { display: none; }
  .bar-cta { display: inline-flex; }
  .foot-bottom { flex-direction: row; }
  .foot { padding-bottom: 44px; }
  .to-top { right: 28px; bottom: 28px; }
  .blueprint, .talk-band { margin-top: 120px; }
  .blueprint > .how { padding-top: 104px; }
  html { scroll-padding-bottom: 0; }
  .dock { display: none; }

  .build-sticky {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-rows: 1fr;
    align-items: center;
    gap: 24px;
    padding: 0 var(--gut);
  }
  h1 { font-size: clamp(3rem, 4.6vw, 4.5rem); }
  .hero-sub { font-size: 1.1875rem; margin-top: 22px; }
  .hero-cta { margin-top: 32px; }
  .hero-facts {
    display: flex; gap: 22px; margin-top: 40px; padding: 0; list-style: none;
    font-family: var(--mono); font-size: .8125rem; color: var(--cyan-ink);
  }
  .hero-facts li { display: flex; align-items: center; gap: 8px; }
  .hero-facts li::before { content: ""; width: 14px; height: 1px; background: var(--cyan-ink); }
  .scene { height: min(80vh, 760px); --W: min(720px, 47vw); }
  .js .scroll-cue { display: flex; }

  .dimline { grid-template-columns: repeat(4, 1fr); }
  .dimline li::before { display: block; }

  .choose-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; }
  .faq { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 56px; padding-top: 120px; }
  .faq-head { position: sticky; top: calc(var(--bar-h) + 32px); }
  .includes-list { grid-template-columns: repeat(4, 1fr); }
  .list { position: sticky; top: calc(var(--bar-h) + 24px); }
  .thanks { grid-template-columns: minmax(0, 1fr) 360px; padding-top: 120px; }
  .how, .choose, .details, .about, .talk { padding-top: 120px; }
}
/* between 1024 and 1280 the bar is tight: the call button shows just "Call" */
@media (min-width: 1024px) and (max-width: 1279px) {
  .bar-call-long { display: none; }
  .bar-call-short { display: inline; }
}


@media (max-width: 1023px) {
  .scene { --W: min(520px, 78vw); }
  /* on phones the callouts become a small legend in the corner of the drawing */
  .callouts { inset: auto; left: 0; top: 0; display: flex; flex-direction: column-reverse; align-items: flex-start; gap: 6px; }
  .stage-bar { width: 64px; }
  .stage-note { padding: 4px 12px; border-radius: 999px; background: rgb(244 247 249 / .92); box-shadow: 0 8px 18px -12px rgba(11, 27, 43, .4); }
  .call { position: static; font-size: .6875rem; padding: 3px 8px; gap: 6px; }
  .js .rig { top: 56px; bottom: 8px; }
  .call::before, .call::after { display: none; }
  .stage-note { bottom: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .faq-item::details-content { transition: none !important; }
  .js .build { height: auto; }
  .js .build-sticky { position: relative; top: 0; height: auto; min-height: calc(100svh - var(--bar-h)); }
  .scene { min-height: 52vh; }
}
