/* ============================================================
   IMS — Innovative Movement Solutions
   Design system. Edit tokens here; everything downstream follows.
   ============================================================ */

:root {
  /* --- Color ------------------------------------------------ */
  --ink:        #17191c;  /* near-black — type + deep bands. Your floor. */
  --ink-2:      #212429;  /* raised surface inside dark bands */
  --ink-3:      #33383e;  /* hairline inside dark bands */

  --blue:       #2a85be;  /* brand blue, sampled from the logo */
  --blue-deep:  #1f6d9e;  /* links + small text on white — 5.62:1 */
  --blue-lift:  #8fc9ea;  /* accents on dark bands */
  --blue-wall:  #1c6a9c;  /* the one blue band. 6.4:1 with white */

  --paper:      #ffffff;  /* ground state */
  --paper-2:    #f4f6f7;  /* alternating tint — neutral, so blue stays rare */
  --paper-3:    #e3e6e9;  /* hairline on light */
  --slate:      #4f565e;  /* muted body on white — 7.3:1 */
  --slate-deep: #464d55;  /* muted body on tint */

  /* --- Type ------------------------------------------------- */
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body:    "Literata", Georgia, serif;
  --util:    "Barlow", system-ui, sans-serif;

  --t-hero:  clamp(2.9rem, 1.2rem + 7.2vw, 6.6rem);
  --t-h2:    clamp(1.65rem, 0.95rem + 4.2vw, 4rem);
  --t-h3:    clamp(1.35rem, 1.05rem + 1.3vw, 1.85rem);
  --t-lead:  clamp(1.05rem, 0.98rem + 0.42vw, 1.28rem);
  --t-body:  1.0125rem;
  --t-small: 0.875rem;
  --t-micro: 0.75rem;

  /* --- Space ------------------------------------------------ */
  --gap:     clamp(1.5rem, 1rem + 2vw, 2.75rem);
  --band:    clamp(4rem, 2.4rem + 6.6vw, 8.5rem);
  --shell:   min(100% - 2.5rem, 76rem);
  --shell-n: min(100% - 2.5rem, 62rem);

  --line:      1px solid var(--paper-3);
  --line-dark: 1px solid var(--ink-3);
  --ease:  cubic-bezier(.22,.61,.36,1);
}

/* ============================================================
   Base
   ============================================================ */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--t-body);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  overflow-wrap: break-word;
  font-family: var(--display);
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue-deep); text-underline-offset: 3px; }
.band--paper a,
.band--paper .prose a { color: var(--blue-deep); }

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

.skip {
  position: absolute; left: -9999px;
  background: var(--blue); color: #fff;
  padding: 0.75rem 1.25rem; z-index: 999;
  font-family: var(--util); font-weight: 600;
}
.skip:focus { left: 1rem; top: 1rem; }

.shell   { width: var(--shell);   margin-inline: auto; }
.shell-n { width: var(--shell-n); margin-inline: auto; }

/* Spacing lives on ONE layer. Never re-declare padding on children. */
.band { padding-block: var(--band); }

.band--paper { background: var(--paper-2); color: var(--ink); }

/* Inverted band — navy, used sparingly for emphasis */
.band--ink,
.band--blue { background: var(--ink); color: var(--paper); }

/* The one blue wall. Used once per page, on the closing ask. */
.band--wall { background: var(--blue-wall); color: var(--paper); }
.band--wall h1, .band--wall h2 { color: var(--paper); }
.band--wall .lead { color: #d3e9f7; }
.band--wall .eyebrow { color: #bfe0f4; }
.band--wall .eyebrow::before { background: #bfe0f4; }
.band--wall .btn--primary { background: var(--paper); color: var(--blue-wall); }
.band--wall .btn--primary:hover { background: #d3e9f7; }
.band--wall .btn--ghost { color: var(--paper); border-color: rgba(255,255,255,.42); }
.band--wall .btn--ghost:hover { border-color: var(--paper); color: var(--paper); }
.band--ink h1, .band--ink h2, .band--ink h3 { color: var(--paper); }
.band--ink .eyebrow { color: #9aa3ad; }
.band--ink .lead { color: #aeb6be; }
.band--ink a { color: var(--blue-lift); }
.band--ink .grid { background: var(--ink-3); border-color: var(--ink-3); }
.band--ink .cell { background: var(--ink); }
.band--ink .cell p { color: #aeb6be; }
.band--ink .method__list { background: var(--ink-3); border-top-color: var(--ink-3); }
.band--ink .method__step { background: var(--ink); }
.band--ink .method__step p { color: #aeb6be; }
.band--ink .method__n b { color: #3d444c; }
.band--ink .tiers { background: var(--ink-3); border-color: var(--ink-3); }
.band--ink .tier { background: var(--ink); }
.band--ink .tier--best { background: var(--paper-2); }
.band--ink .tier li { border-top-color: var(--ink-3); color: #aeb6be; }
.band--ink .tier__unit { color: #9aa3ad; }
.band--ink .btn--ghost { color: var(--paper); border-color: var(--ink-3); }
.band--ink .btn--ghost:hover { border-color: var(--blue); color: var(--blue-lift); }
.band--ink .tbl th, .band--ink .tbl td { border-bottom-color: var(--ink-3); }
.band--ink .tbl th { color: #9aa3ad; }
.band--ink .faq, .band--ink .faq details { border-color: var(--ink-3); }
.band--ink .faq .faq__a { color: #aeb6be; }
.band--ink .form__note { color: #aeb6be; }

/* ============================================================
   Type utilities
   ============================================================ */

.eyebrow {
  font-family: var(--util);
  font-size: var(--t-micro);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1.4rem;
}
.eyebrow::before {
  content: "";
  width: 1.9rem; height: 1px;
  background: var(--blue);
  flex: none;
}

.lead {
  font-size: var(--t-lead);
  color: var(--slate);
  max-width: 46ch;
  line-height: 1.62;
}

.h2 { font-size: var(--t-h2); max-width: 20ch; }
.h3 { font-size: var(--t-h3); }

/* Degree tick — the measurement motif, used on numbers */
.deg {
  font-family: var(--util);
  font-size: var(--t-small);
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--blue);
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0.85rem 1.6rem;
  font-family: var(--util);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .22s var(--ease), border-color .22s var(--ease), color .22s var(--ease);
}

.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-lift); color: var(--ink); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--paper-3); }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue-deep); }

.band--paper .btn--ghost { color: var(--ink); border-color: #c8d2da; }
.band--paper .btn--ghost:hover { border-color: var(--blue-deep); color: var(--blue-deep); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* ============================================================
   Header
   ============================================================ */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(14px);
  border-bottom: var(--line);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--gap);
  min-height: 4.5rem;
}

.nav__logo { display: flex; align-items: center; flex: none; }
.nav__logo img { height: 34px; width: auto; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin-left: auto;
  list-style: none;
  padding: 0; margin-block: 0;
}

.nav__links a {
  font-family: var(--util);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
  padding: 0.6rem 0;
  border-bottom: 1px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.nav__links a:hover { color: var(--blue-deep); border-bottom-color: var(--blue); }

.nav__cta { flex: none; }

.nav__toggle {
  display: none;
  margin-left: auto;
  min-width: 44px; height: 44px;
  padding: 0 .55rem;
  background: none; border: var(--line);
  color: var(--ink);
  font-family: var(--util); font-size: 0.6875rem;
  font-weight: 600; letter-spacing: .06em;
  cursor: pointer;
}

@media (max-width: 62rem) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: block; }

  .nav--open .nav__links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--paper);
    border-bottom: var(--line);
    padding: 0.5rem 1.25rem 1.5rem;
  }
  .nav--open .nav__links a {
    display: block;
    width: 100%;
    padding: 0.9rem 0;
    border-bottom: var(--line);
  }
  .nav--open .nav__cta {
    display: block;
    position: absolute;
    left: 1.25rem; right: 1.25rem;
    top: calc(100% + 1rem);
  }
}

/* ============================================================
   Hero — the goniometer arc is the signature
   ============================================================ */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  border-bottom: var(--line);
}
@media (min-width: 62rem) {
  .hero { grid-template-columns: .86fr 1.14fr; align-items: stretch; }
}

.hero__media { position: relative; order: -1; }
@media (min-width: 62rem) { .hero__media { order: 2; } }
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 46% 56%;
  aspect-ratio: 4 / 5;
}
@media (min-width: 62rem) {
  .hero__media img { aspect-ratio: auto; position: absolute; inset: 0; }
}

/* Pulls the bright daylight photography into the navy palette.
   Remove the saturate/hue filter once regraded stills replace these. */
.hero__media::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background: linear-gradient(95deg, var(--paper) 0%, rgba(255,255,255,0) 14%);
}
@media (max-width: 62rem) {
  .hero__media::after { background: linear-gradient(0deg, var(--paper) 0%, rgba(255,255,255,0) 22%); }
}

/* On narrow screens the side-gradient buries the subject.
   Switch to a bottom-weighted scrim and recentre on the people. */
@media (max-width: 46rem) {
  .hero__media img { object-position: 46% 54%; aspect-ratio: 5 / 6; }
}

.hero__arc {
  position: absolute;
  right: -34%; top: 46%;
  transform: translateY(-50%);
  width: min(92vw, 62rem);
  z-index: -1;
  opacity: .62;
  pointer-events: none;
  overflow: visible;
}
/* On stacked layouts the instrument must fit the frame, not bleed out of it.
   Centre it and scale to the viewport so the full sweep reads. */
@media (max-width: 62rem) {
  .hero__arc {
    right: 50%;
    top: 62%;
    transform: translate(50%, -50%);
    width: min(94vw, 27rem);
    opacity: .5;
  }
}
@media (max-width: 30rem) {
  .hero__arc { top: 64%; width: min(96vw, 21rem); opacity: .55; }
}

.hero__inner {
  width: auto;
  margin: 0;
  padding: clamp(2.75rem, 1.5rem + 5vw, 6.5rem) clamp(1.25rem, 4vw, 5rem);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (min-width: 62rem) {
  .hero__inner { padding-left: max(1.25rem, calc((100vw - 76rem) / 2)); }
}
.hero__copy { max-width: 34rem; }

.hero h1 {
  font-size: clamp(2.5rem, 1rem + 5.4vw, 5.2rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  margin-bottom: 1.5rem;
}
.hero h1 em {
  font-style: normal;
  color: var(--blue-deep);
}

.hero .lead { margin-bottom: 2.2rem; max-width: 38ch; }

/* ============================================================
   Credential strip
   ============================================================ */

.creds {
  border-block: var(--line);
  background: var(--paper);
}
.creds__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
}
.creds__item {
  padding: 1.5rem clamp(1rem, 2vw, 1.75rem);
  border-right: var(--line);
}
.creds__item:last-child { border-right: 0; }
.creds__k {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.creds__v {
  font-family: var(--util);
  font-size: var(--t-micro);
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--slate);
}

/* ============================================================
   Generic section head + card grids
   ============================================================ */

.head { margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4rem); }
.head--split {
  display: grid;
  gap: var(--gap);
  grid-template-columns: 1fr;
  align-items: end;
}
@media (min-width: 56rem) {
  .head--split { grid-template-columns: 1.15fr 1fr; }
}

.grid {
  display: grid;
  gap: 1px;
  background: var(--paper-3);
  border: var(--line);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}
.band--paper .grid { background: #d7dee4; border-color: #d7dee4; }

.cell {
  background: var(--paper);
  padding: clamp(1.6rem, 1rem + 1.6vw, 2.4rem);
}
.band--paper .cell { background: var(--paper-2); }

.cell h3 { margin-bottom: 0.8rem; }
.cell p { color: var(--slate); font-size: 0.9688rem; }
.band--paper .cell p { color: var(--slate-deep); }

/* ============================================================
   Method — numbered because the order is real
   ============================================================ */

.method__list {
  display: grid;
  gap: 1px;
  background: var(--paper-3);
  border-top: var(--line);
}
.method__step {
  background: var(--paper);
  display: grid;
  gap: 0.5rem var(--gap);
  grid-template-columns: 1fr;
  padding-block: clamp(1.8rem, 1.2rem + 1.6vw, 2.6rem);
  align-items: start;
}
@media (min-width: 52rem) {
  .method__step { grid-template-columns: 8rem 1fr 1.15fr; gap: var(--gap); }
}
.method__n {
  display: flex; align-items: baseline; gap: 0.5rem;
}
.method__n b {
  font-family: var(--display);
  font-size: 2.6rem; font-weight: 800;
  line-height: 1; color: #cfd9e2;
}
.method__step p { color: var(--slate); margin: 0; }

/* ============================================================
   Feature — image beside copy
   ============================================================ */

.feature {
  display: grid;
  gap: var(--gap);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 56rem) {
  .feature { grid-template-columns: 1fr 1fr; gap: clamp(2rem, 1rem + 4vw, 5rem); }
  .feature--flip .feature__media { order: 2; }
}
.feature__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.feature ul {
  list-style: none;
  padding: 0;
  margin: 1.6rem 0 2rem;
  border-top: var(--line);
}
.band--paper .feature ul { border-color: #d7dee4; }
.feature li {
  padding: 0.85rem 0;
  border-bottom: var(--line);
  font-family: var(--util);
  font-size: 0.9375rem;
  display: flex; gap: 0.9rem; align-items: baseline;
}
.band--paper .feature li { border-color: #d7dee4; }
.feature li::before {
  content: "";
  width: 0.5rem; height: 0.5rem;
  border: 1px solid var(--blue);
  border-radius: 50%;
  flex: none;
  transform: translateY(-1px);
}

/* ============================================================
   Proof
   ============================================================ */

.quotes {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
}
.quote {
  border-top: 2px solid var(--blue);
  padding-top: 1.5rem;
}
.quote blockquote {
  margin: 0 0 1.4rem;
  font-size: 1.0625rem;
  line-height: 1.66;
}
.quote figcaption {
  font-family: var(--util);
  font-size: var(--t-small);
  color: var(--slate);
}
.quote figcaption b { display: block; color: var(--ink); font-weight: 600; }
.band--paper .quote figcaption b { color: var(--ink); }

/* ============================================================
   Pricing
   ============================================================ */

.tiers {
  display: grid;
  gap: 1px;
  background: var(--paper-3);
  border: var(--line);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
}
.tier { background: var(--paper); padding: clamp(1.6rem, 1rem + 1.6vw, 2.2rem); }
.tier--best { background: var(--paper-2); }
.tier__tag {
  font-family: var(--util); font-size: var(--t-micro);
  font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 0.9rem; min-height: 1rem;
}
.tier__price {
  font-family: var(--display); font-size: 2.9rem; font-weight: 800;
  line-height: 1; margin: 0.5rem 0 0.25rem;
}
.tier__unit { font-family: var(--util); font-size: var(--t-small); color: var(--slate); }
.tier ul { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.tier li {
  padding: 0.6rem 0; border-top: var(--line);
  font-family: var(--util); font-size: 0.9063rem; color: var(--slate);
}

/* ============================================================
   FAQ
   ============================================================ */

.faq { border-top: var(--line); }
.band--paper .faq { border-color: #d7dee4; }
.faq details { border-bottom: var(--line); }
.band--paper .faq details { border-color: #d7dee4; }
.faq summary {
  font-family: var(--display);
  font-size: var(--t-h3);
  text-transform: uppercase;
  padding: 1.35rem 3rem 1.35rem 0;
  cursor: pointer;
  position: relative;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: 0.4rem; top: 50%;
  transform: translateY(-50%);
  font-family: var(--util); font-weight: 400; font-size: 1.6rem;
  color: var(--blue-lift);
}
.band--paper .faq summary::after { color: var(--blue-deep); }
.faq details[open] summary::after { content: "\2212"; }
.faq .faq__a { padding: 0 0 1.5rem; color: var(--slate); max-width: 62ch; }
.band--paper .faq .faq__a { color: var(--slate-deep); }

/* ============================================================
   Closing CTA
   ============================================================ */

.close { text-align: center; }
.close .h2 { margin-inline: auto; margin-bottom: 1.2rem; }
.close .lead { margin-inline: auto; margin-bottom: 2rem; }
.close .btn-row { justify-content: center; }

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  background: var(--ink);
  color: var(--paper);
  border-top: var(--line);
  padding-block: clamp(3rem, 2rem + 3vw, 4.5rem) 2rem;
}
.footer__grid {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  padding-bottom: 2.5rem;
  border-bottom: var(--line);
}
.footer__logo img { height: 78px; width: auto; margin-bottom: 1.1rem; }
.footer__tag {
  font-family: var(--display); text-transform: uppercase;
  font-size: 1.1rem; color: var(--paper); max-width: 16ch; line-height: 1.05;
}
.site-footer .ftr-label {
  font-size: 0.8125rem; font-family: var(--util); font-weight: 600;
  letter-spacing: .14em; color: var(--slate); margin-bottom: 1rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.6rem; }
.site-footer a {
  font-family: var(--util); font-size: 0.9063rem;
  color: var(--paper); text-decoration: none;
}
.site-footer a:hover { color: var(--blue-lift); }
.site-footer address { font-style: normal; font-family: var(--util); font-size: 0.9063rem; color: var(--slate); }

.legal {
  padding-top: 2rem;
  font-family: var(--util);
  font-size: var(--t-small);
  color: var(--slate);
  line-height: 1.6;
}
.legal p { max-width: 78ch; margin-bottom: 0.9rem; }

/* ============================================================
   Motion
   ============================================================ */

.rise { opacity: 0; transform: translateY(18px); }
.rise.in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  .rise, .rise.in { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ============================================================
   HERO ANIMATION — the goniometer takes a measurement
   One orchestrated moment on load. Nothing loops.
   Every rule here has a reduced-motion counterpart at the end.
   ============================================================ */

/* --- Headline: line-by-line mask reveal ------------------- */
.hero__h1 .ln {
  display: block;
  overflow: hidden;
}
.hero__h1 .ln > span {
  display: block;
  transform: translateY(105%);
  animation: lnUp .92s var(--ease) forwards;
}
.hero__h1 .ln:nth-child(1) > span { animation-delay: .55s; }
.hero__h1 .ln:nth-child(2) > span { animation-delay: .67s; }
.hero__h1 .ln:nth-child(3) > span { animation-delay: .79s; }

@keyframes lnUp { to { transform: translateY(0); } }

.hero__eyebrow,
.hero__lead,
.hero__cta {
  opacity: 0;
  animation: fadeUp .8s var(--ease) forwards;
}
.hero__eyebrow { animation-delay: .35s; }
.hero__lead    { animation-delay: 1.05s; }
.hero__cta     { animation-delay: 1.2s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* --- The instrument --------------------------------------- */
.gon-pivot {
  opacity: 0;
  animation: pop .4s var(--ease) .1s forwards;
}
@keyframes pop {
  from { opacity: 0; transform: scale(.2); }
  to   { opacity: .9; transform: scale(1); }
}
.gon-pivot { transform-origin: 450px 450px; transform-box: view-box; }

.gon-guides circle {
  opacity: 0;
  stroke-dasharray: 2470;
  stroke-dashoffset: 2470;
  animation: draw 1.7s var(--ease) forwards;
}
.gon-guides circle:nth-child(1) { animation-delay: .18s; }
.gon-guides circle:nth-child(2) { animation-delay: .30s; }
.gon-guides circle:nth-child(3) { animation-delay: .42s; }

@keyframes draw {
  from { stroke-dashoffset: 2470; opacity: 0; }
  25%  { opacity: 1; }
  to   { stroke-dashoffset: 0; opacity: 1; }
}

.gon-ref {
  stroke-dasharray: 392;
  stroke-dashoffset: 392;
  animation: line .7s var(--ease) .42s forwards;
}
@keyframes line { to { stroke-dashoffset: 0; } }

/* The measuring ray sweeps from 0° through 55°, and the arc
   draws underneath it at exactly the same rate. Rotation and
   opacity are separate animations so the bezier applies across
   the whole sweep — that's what keeps the JS counter in step. */
.gon-ray {
  transform-origin: 450px 450px;
  transform-box: view-box;
  opacity: 0;
  animation:
    sweep 2.4s cubic-bezier(.42,.03,.18,1) .72s forwards,
    gonFade .4s linear .72s forwards;
}
@keyframes sweep {
  from { transform: rotate(0deg); }
  to   { transform: rotate(-132deg); }
}
@keyframes gonFade { to { opacity: .9; } }

.gon-arc {
  stroke-dasharray: 903;
  stroke-dashoffset: 903;
  opacity: .9;
  animation: line 2.4s cubic-bezier(.42,.03,.18,1) .72s forwards;
}

.gon-ticks path {
  opacity: 0;
  stroke-width: 1.5;
  animation: tick .45s var(--ease) forwards;
}
.gon-ticks path:nth-child(1) { animation-delay: .80s; }
.gon-ticks path:nth-child(2) { animation-delay: 1.02s; }
.gon-ticks path:nth-child(3) { animation-delay: 1.24s; }
.gon-ticks path:nth-child(4) { animation-delay: 1.46s; }
.gon-ticks path:nth-child(5) { animation-delay: 1.68s; }
.gon-ticks path:nth-child(6) { animation-delay: 1.90s; }
.gon-ticks path:nth-child(7) { animation-delay: 2.12s; }
.gon-ticks path:nth-child(8) { animation-delay: 2.34s; }

@keyframes tick {
  from { opacity: 0; }
  55%  { opacity: 1; }
  to   { opacity: .7; }
}

/* --- Live degree readout ---------------------------------- */
.gon-readout {
  display: none;
  position: absolute;
  left: clamp(1.25rem, 4vw, 5rem);
  bottom: clamp(.5rem, 2vw, 1.5rem);
  text-align: left;
  z-index: -1;
  opacity: 0;
  animation: fadeUp .7s var(--ease) .95s forwards;
  pointer-events: none;
}
.gon-readout__n,
.gon-readout__d {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(5.5rem, 2rem + 13vw, 15rem);
  line-height: .82;
  letter-spacing: -.03em;
  color: var(--blue);
  opacity: .26;
  font-variant-numeric: tabular-nums;
}
.gon-readout__d { opacity: .14; }
.gon-readout__d { color: var(--blue); }
.gon-readout__l {
  display: none;
  margin-top: .1rem;
  font-family: var(--util);
  font-size: var(--t-micro);
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--slate);
}

@media (max-width: 62rem) {
  .gon-readout { bottom: -1rem; }
  .gon-readout__n, .gon-readout__d { font-size: clamp(4.5rem, 2rem + 15vw, 9rem); }
}

/* --- Method step arcs: draw in on scroll ------------------- */
.step-arc { flex: none; }
.step-arc path { stroke-dasharray: 60; stroke-dashoffset: 60; }
.rise.in .step-arc path {
  animation: line 1s var(--ease) .15s forwards;
}

/* ============================================================
   Reduced motion — everything lands in its final state instantly
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .hero__h1 .ln > span,
  .hero__eyebrow, .hero__lead, .hero__cta,
  .gon-readout, .gon-pivot {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .gon-guides circle,
  .gon-ref, .gon-arc,
  .step-arc path {
    animation: none !important;
    stroke-dashoffset: 0 !important;
    opacity: .6 !important;
  }
  .gon-ticks path { animation: none !important; opacity: .55 !important; }
  .gon-ray {
    animation: none !important;
    opacity: .85 !important;
    transform: rotate(-55deg) !important;
  }
}

/* ============================================================
   MEASUREMENT RAIL — site-wide scroll instrument
   The hero's goniometer, carried through every page. Scroll
   position drives the arc; section markers latch as you pass.
   Quiet by design: it reads as an instrument, not an animation.
   ============================================================ */

.rail {
  position: fixed;
  right: clamp(1rem, 1.6vw, 2rem);
  top: 50%;
  transform: translateY(-50%);
  z-index: 60;
  width: 74px;
  pointer-events: none;
  opacity: 0;
  animation: fadeUp .8s var(--ease) 1.4s forwards;
}

.rail svg { display: block; width: 74px; height: 74px; }

/* Slim scroll bar for tablet and phone — same data, less furniture */
.rail__bar { display: none; height: 3px; background: rgba(58,139,196,.18); }
.rail__bar i {
  display: block; height: 100%;
  background: var(--blue-deep);
  width: calc(var(--p, 0) * 100%);
  transition: width .12s linear;
}

.rail__track { stroke: var(--blue); opacity: .22; }
.rail__prog {
  stroke: var(--blue-deep);
  stroke-linecap: round;
  /* circumference of r=30 ≈ 188.5; JS drives --p from 0 → 1 */
  stroke-dasharray: 188.5;
  stroke-dashoffset: calc(188.5 - (188.5 * var(--p, 0)));
  transition: stroke-dashoffset .12s linear;
}
.rail__hand {
  stroke: var(--blue-deep);
  transform-origin: 40px 40px;
  transform-box: view-box;
  transform: rotate(calc(var(--p, 0) * 300deg));
  transition: transform .12s linear;
}
.rail__pivot { fill: var(--blue-deep); }

.rail__n {
  display: block;
  text-align: center;
  margin-top: .45rem;
  font-family: var(--util);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--slate);
  font-variant-numeric: tabular-nums;
}

/* section markers — one dot per major band */
.rail__dots {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  margin-top: .7rem;
}
.rail__dot {
  width: 5px; height: 5px;
  border: 1px solid var(--blue);
  border-radius: 50%;
  opacity: .35;
  transition: opacity .3s var(--ease), background .3s var(--ease), transform .3s var(--ease);
}
.rail__dot.on {
  opacity: 1;
  background: var(--blue-deep);
  border-color: var(--blue-deep);
  transform: scale(1.5);
}

/* On paper bands the rail needs the darker blue to stay legible */
.rail.on-paper .rail__n { color: var(--slate-deep); }

/* Below 64rem the dial moves to the bottom-left as a compact instrument.
   Bottom-left specifically: the chat bubble owns the bottom-right corner. */
@media (max-width: 64rem) {
  .rail {
    right: auto;
    left: .85rem;
    top: auto;
    bottom: .85rem;
    width: 52px;
    transform: none;
    animation-delay: .8s;
  }
  .rail svg { width: 52px; height: 52px; }
  .rail__n { font-size: .625rem; margin-top: .2rem; }
  .rail__dots { display: none; }
  .rail__bar { display: none; }
}
@media (max-width: 26rem) {
  .rail { left: .6rem; bottom: .6rem; width: 44px; }
  .rail svg { width: 44px; height: 44px; }
  .rail__n { font-size: .5625rem; }
}

@media (prefers-reduced-motion: reduce) {
  .rail { animation: none; opacity: 1; }
  .rail__prog, .rail__hand { transition: none; }
}

/* ============================================================
   Page hero (interior pages — lighter than the homepage hero)
   ============================================================ */

.phero {
  position: relative;
  isolation: isolate;
  border-bottom: var(--line);
  overflow: hidden;
  background: var(--paper);
}
.phero__media { position: absolute; inset: 0; z-index: -2; }
.phero__media img { width: 100%; height: 100%; object-fit: cover; }
.phero__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(255,255,255,.97) 0%, rgba(255,255,255,.93) 38%, rgba(255,255,255,.55) 100%);
}
.phero__inner { padding-block: clamp(3.5rem, 2rem + 7vw, 7rem); }
.phero h1 {
  font-size: clamp(2.4rem, 1.3rem + 4.6vw, 4.6rem);
  font-weight: 800;
  max-width: 20ch;
  margin-bottom: 1.2rem;
}
.phero .lead { max-width: 44ch; }

/* breadcrumb */
.crumb {
  font-family: var(--util);
  font-size: var(--t-micro);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 1.2rem;
}
.crumb a { color: var(--slate); text-decoration: none; }
.crumb a:hover { color: var(--blue-lift); }

/* ============================================================
   Prose (blog + long-form)
   ============================================================ */

.prose { max-width: 68ch; }
.prose h2 { font-size: var(--t-h3); margin: 2.4rem 0 .9rem; }
.prose h3 { font-size: 1.15rem; margin: 1.8rem 0 .7rem; }
.prose p, .prose li { color: var(--slate); }
.prose ul, .prose ol { padding-left: 1.2rem; margin: 0 0 1.2rem; }
.prose li { margin-bottom: .5rem; }
.band--paper .prose p, .band--paper .prose li { color: var(--slate-deep); }

/* article cards */
.cards {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
}
.card {
  border-top: 2px solid var(--blue);
  padding-top: 1.4rem;
}
.card h3 { font-size: var(--t-h3); margin-bottom: .7rem; }
.card p { color: var(--slate); font-size: .9375rem; }
.card a {
  font-family: var(--util); font-size: .875rem; font-weight: 600;
  text-decoration: none; display: inline-block; margin-top: .8rem;
}

/* ============================================================
   Forms
   ============================================================ */

.form { max-width: 34rem; }
.field { margin-bottom: 1.25rem; }
.field label {
  display: block;
  font-family: var(--util);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: .45rem;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: .8rem .9rem;
  min-height: 3rem;
  font-family: var(--util);
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: var(--line);
}
.band--paper .field label { color: var(--slate-deep); }
.band--paper .field input,
.band--paper .field select,
.band--paper .field textarea {
  color: var(--ink); background: #fff; border-color: #cdd6dd;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 2px solid var(--blue); outline-offset: 1px;
}
.form__note {
  font-family: var(--util); font-size: var(--t-small); color: var(--slate); margin-top: 1rem;
}
.band--paper .form__note { color: var(--slate-deep); }

/* two-column info split */
.split {
  display: grid; gap: var(--gap);
  grid-template-columns: 1fr;
}
@media (min-width: 56rem) { .split { grid-template-columns: 1.1fr 1fr; gap: clamp(2rem,1rem+4vw,5rem); } }

/* table */
.tbl { width: 100%; border-collapse: collapse; font-family: var(--util); font-size: .9375rem; }
.tbl th, .tbl td { text-align: left; padding: .95rem .8rem; border-bottom: var(--line); }
.band--paper .tbl th, .band--paper .tbl td { border-color: #d7dee4; }
.tbl th { font-weight: 600; letter-spacing: .05em; color: var(--slate); font-size: .8125rem; text-transform: uppercase; }
.band--paper .tbl th { color: var(--slate-deep); }
.tbl td:first-child { font-weight: 500; }

/* TODO markers for content Jason still owes */
.todo {
  border: 1px dashed var(--blue);
  background: rgba(58,139,196,.08);
  padding: 1.1rem 1.25rem;
  font-family: var(--util);
  font-size: .9063rem;
  color: var(--blue-lift);
}
.band--paper .todo { color: var(--blue-deep); }

/* Visually hidden but available to screen readers (table captions) */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   Gallery — studio photography, tiled
   ============================================================ */

.gallery {
  display: grid;
  gap: 2px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 46rem) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 68rem) { .gallery { grid-template-columns: repeat(4, 1fr); } }

.gallery figure { margin: 0; position: relative; overflow: hidden; }
.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform .6s var(--ease), filter .6s var(--ease);
  filter: saturate(.94);
}
.gallery figure:hover img { transform: scale(1.04); filter: saturate(1) contrast(1.04); }

.gallery figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 2.2rem .9rem .7rem;
  font-family: var(--util);
  font-size: var(--t-micro);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(0deg, rgba(23,25,28,.85), transparent);
}

/* wide feature image band */
.plate { position: relative; }
.plate img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  display: block;
}
@media (max-width: 46rem) { .plate img { aspect-ratio: 4 / 3; } }

/* ============================================================
   Print — people do print pricing and directions
   ============================================================ */
@media print {
  .site-header, .rail, .gon-readout, .hero__arc,
  .btn, .gallery, .site-footer ul, .nav { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .band { padding-block: 1rem; }
  .band--ink, .band--wall, .band--paper { background: #fff !important; color: #000 !important; }
  .band--ink *, .band--wall * { color: #000 !important; }
  .hero { display: block; }
  .hero__media, .phero__media { display: none; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
  .legal { font-size: 9pt; }
  section, article, figure { break-inside: avoid; }
}

/* ============================================================
   Movement self-check
   ============================================================ */

.sc__note {
  border-left: 3px solid var(--blue);
  background: var(--paper-2);
  padding: 1.1rem 1.35rem;
  font-family: var(--util);
  font-size: .9375rem;
  line-height: 1.62;
  color: var(--slate-deep);
  margin-bottom: clamp(2rem, 1rem + 3vw, 3.5rem);
  border-radius: 0;
}

.sc { list-style: none; padding: 0; margin: 0; counter-reset: sc; }

.sc__q {
  border-top: var(--line);
  padding-block: clamp(1.6rem, 1rem + 1.8vw, 2.6rem);
  transition: opacity .3s var(--ease);
}
.sc__q:last-of-type { border-bottom: var(--line); }
.sc__q.done .sc__how { opacity: .55; }

.sc__qhead { margin-bottom: .9rem; }
.sc__qhead .deg { display: block; margin-bottom: .35rem; }

.sc__how {
  color: var(--slate);
  max-width: 62ch;
  margin-bottom: 1.3rem;
  transition: opacity .3s var(--ease);
}

.sc__opts { display: grid; gap: .5rem; }

.sc__opt {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  width: 100%;
  min-height: 3rem;
  padding: .85rem 1rem;
  text-align: left;
  font-family: var(--util);
  font-size: .9375rem;
  line-height: 1.5;
  color: var(--ink);
  background: transparent;
  border: var(--line);
  cursor: pointer;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.sc__opt:hover { border-color: var(--blue); }

.sc__dot {
  flex: none;
  width: .95rem; height: .95rem;
  margin-top: .18rem;
  border: 1.5px solid var(--paper-3);
  border-radius: 50%;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.sc__opt:hover .sc__dot { border-color: var(--blue); }
.sc__opt.on { border-color: var(--blue); background: var(--paper-2); }
.sc__opt.on .sc__dot {
  border-color: var(--blue);
  box-shadow: inset 0 0 0 3px var(--blue);
}

/* --- results --- */
.sc__result {
  margin-top: clamp(2.5rem, 1.5rem + 3vw, 4rem);
  padding-top: clamp(2rem, 1rem + 3vw, 3rem);
  border-top: 3px solid var(--blue);
}
.sc__result[hidden] { display: none; }

.sc__flags {
  display: grid;
  gap: 1px;
  background: var(--paper-3);
  border: var(--line);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  margin: 2rem 0;
}
.sc__flag { background: var(--paper); padding: 1.25rem 1.4rem; }
.sc__flag ul { list-style: none; padding: 0; margin: .7rem 0 0; }
.sc__flag li {
  font-family: var(--util);
  font-size: .9375rem;
  padding: .38rem 0;
  border-bottom: var(--line);
}
.sc__flag li:last-child { border-bottom: 0; }
.sc__flag--limited .deg { color: var(--blue-deep); }
.sc__flag--partial .deg { color: var(--slate); }
.sc__flag--clear .deg { color: var(--blue-deep); }

.sc__meaning { margin: 2.2rem 0; max-width: 66ch; }
.sc__meaning h3 { margin-bottom: .8rem; }
.sc__meaning p { color: var(--slate); }

.sc__cta {
  background: var(--paper-2);
  padding: clamp(1.5rem, 1rem + 1.6vw, 2.2rem);
  margin: 2.2rem 0;
}
.sc__cta h3 { margin-bottom: .7rem; }
.sc__cta p { color: var(--slate-deep); max-width: 58ch; margin-bottom: 1.4rem; }

.sc__form {
  border-top: var(--line);
  padding-top: 2.2rem;
  max-width: 32rem;
}
.sc__formnote {
  font-family: var(--util);
  font-size: .875rem;
  color: var(--slate);
  margin-bottom: 1.4rem;
  max-width: 46ch;
}

@media (min-width: 40rem) {
  .sc__opts { grid-template-columns: repeat(3, 1fr); }
  .sc__opt { flex-direction: column; gap: .6rem; }
}

/* ============================================================
   Vagaro booking widget
   ============================================================ */
.vagaro {
  position: relative;
  border: var(--line);
  background: var(--paper-2);
  min-height: 30rem;
}
.vagaro iframe {
  display: block;
  width: 100%;
  height: 46rem;
  border: 0;
}
@media (max-width: 46rem) { .vagaro iframe { height: 40rem; } }

@media (min-width: 56rem) {
  .split--book { grid-template-columns: .8fr 1.2fr; }
}

/* ============================================================
   Morning routine
   ============================================================ */

.rt { list-style: none; padding: 0; margin: 0; }

.rt__move {
  display: grid;
  gap: var(--gap);
  grid-template-columns: 1fr;
  align-items: start;
  border-top: var(--line);
  padding-block: clamp(1.8rem, 1.2rem + 2vw, 3rem);
}
.rt__move:last-child { border-bottom: var(--line); }

@media (min-width: 48rem) {
  .rt__move { grid-template-columns: 14rem 1fr; gap: clamp(1.5rem, 1rem + 3vw, 3.5rem); }
}

.rt__figwrap {
  background: var(--paper-2);
  border: var(--line);
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rt__fig { width: 100%; max-width: 13rem; height: auto; display: block; }

.rt__body .deg { display: block; margin-bottom: .4rem; }
.rt__body h2 { margin-bottom: 1.1rem; }

.rt__dl { margin: 0; display: grid; gap: 0; }
.rt__dl dt {
  font-family: var(--util);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--blue-deep);
  padding-top: .85rem;
  border-top: var(--line);
}
.rt__dl dt:first-of-type { border-top: 0; padding-top: 0; }
.rt__dl dd {
  margin: .35rem 0 .9rem;
  color: var(--slate);
  max-width: 58ch;
}
.rt__dl dd:last-child { margin-bottom: 0; }

@media print {
  .rt__move { break-inside: avoid; page-break-inside: avoid; }
  .rt__figwrap { background: #fff; }
}

/* ============================================================
   Embedded map
   ============================================================ */
.mapwrap { border: var(--line); background: var(--paper-2); }
.mapwrap iframe {
  display: block;
  width: 100%;
  height: 20rem;
  border: 0;
  filter: saturate(.9);
}
@media (max-width: 46rem) { .mapwrap iframe { height: 15rem; } }
@media print { .mapwrap { display: none; } }

/* ============================================================
   Tables stack on phones rather than scrolling sideways
   ============================================================ */
@media (max-width: 40rem) {
  .tbl, .tbl tbody, .tbl tr, .tbl td { display: block; width: 100%; }
  .tbl thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tbl tr {
    border: var(--line);
    margin-bottom: .75rem;
    padding: .35rem .9rem;
    background: var(--paper);
  }
  .band--paper .tbl tr { background: #fff; }
  .tbl td {
    border-bottom: var(--line);
    padding: .6rem 0;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: baseline;
    text-align: right;
  }
  .tbl tr td:last-child { border-bottom: 0; }
  .tbl td[data-l]::before {
    content: attr(data-l);
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--slate);
    text-align: left;
    flex: none;
  }
  .tbl td:first-child { font-weight: 500; }
}

/* ============================================================
   Portrait hero — About. The standard phero washes its photo out
   to near-white so text can sit on it; that's wrong when the photo
   IS the subject. This splits instead, and shows the face at full
   strength.
   ============================================================ */

.phero--face { display: grid; grid-template-columns: 1fr; }
@media (min-width: 56rem) {
  .phero--face { grid-template-columns: .92fr 1.08fr; align-items: stretch; }
}

.phero--face .phero__media { position: relative; order: -1; inset: auto; }
@media (min-width: 56rem) { .phero--face .phero__media { order: 2; } }

.phero--face .phero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 53% 30%;
  aspect-ratio: 4 / 5;
}
@media (min-width: 56rem) {
  .phero--face .phero__media img { position: absolute; inset: 0; aspect-ratio: auto; }
}
@media (max-width: 46rem) {
  .phero--face .phero__media img { object-position: 53% 26%; aspect-ratio: 1 / 1; }
}

/* only a soft edge blend, so the face stays fully readable */
.phero--face .phero__media::after {
  background: linear-gradient(95deg, var(--paper) 0%, rgba(255,255,255,0) 12%);
}
@media (max-width: 56rem) {
  .phero--face .phero__media::after {
    background: linear-gradient(0deg, var(--paper) 0%, rgba(255,255,255,0) 18%);
  }
}

.phero--face .phero__inner {
  width: auto;
  margin: 0;
  padding: clamp(2.5rem, 1.5rem + 4vw, 5.5rem) clamp(1.25rem, 4vw, 4rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (min-width: 56rem) {
  .phero--face .phero__inner { padding-left: max(1.25rem, calc((100vw - 76rem) / 2)); }
}
.phero--face h1 { font-size: clamp(2.1rem, 1rem + 4vw, 4rem); max-width: 16ch; }
.phero--face .lead { max-width: 38ch; }

/* Client login — quiet utility link beside the nav CTA */
.nav__login {
  font-family: var(--util);
  font-size: .875rem;
  font-weight: 600;
  color: var(--blue-deep);
  text-decoration: none;
  margin-right: 1.1rem;
  white-space: nowrap;
}
.nav__login:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 61.99rem) {
  .nav__login { display: none; }
}

/* the in-menu copy shows only in the collapsed menu; desktop uses the header link */
.nav__loginitem { display: none; }
@media (max-width: 61.99rem) {
  .nav--open .nav__loginitem { display: block; }
}
