/* nateherk-v2 · page styles. Tokens first, then the page's own classes.
   Nothing here restyles .sc-stage, .sc-copy or any [data-sc-*] selector. */

:root {
  /* Nate Herk brand kit: primary blue, light ground, dark ink. */
  --sc-canvas:     #F5F6F8;
  --sc-surface:    #FFFFFF;
  --sc-ink:        #0B0D10;
  --sc-ink-soft:   #5A6472;
  --sc-accent:     #3BAAFF;
  --sc-accent-ink: #FFFFFF;
  /* The one hue at a second lightness: white type needs 4.5:1 on a fill, and
     #3BAAFF gives 2.6. Buttons and links take this; marks and light take the
     brand stop. */
  --nh-blue-deep:  #0B72CC;
  --nh-blue-tint:  #E4F1FD;

  --sc-font-display: "Inter", system-ui, sans-serif;
  --sc-font-text:    "Inter", system-ui, sans-serif;
  --sc-font-mono:    "Inter", ui-monospace, monospace;

  --sc-hairline: rgb(11 13 16 / 0.10);
  --sc-hairline-strong: rgb(11 13 16 / 0.18);

  /* Light ground, cool shadow. */
  --sc-shadow-color: 214 32% 28%;
  --sc-e1: 0 1px 2px hsl(var(--sc-shadow-color) / 0.08), 0 2px 6px -1px hsl(var(--sc-shadow-color) / 0.06);
  --sc-e2: 0 2px 4px hsl(var(--sc-shadow-color) / 0.07), 0 12px 28px -8px hsl(var(--sc-shadow-color) / 0.14);
  --sc-e3: 0 4px 10px hsl(var(--sc-shadow-color) / 0.08), 0 26px 56px -14px hsl(var(--sc-shadow-color) / 0.20), 0 60px 110px -40px hsl(var(--sc-shadow-color) / 0.18);
  --sc-edge: inset 0 1px 0 rgb(255 255 255 / 0.9);

  --sc-r-md: 14px; --sc-r-lg: 22px;
}

html { background: var(--sc-canvas); }
body { background: transparent; color: var(--sc-ink); font-family: var(--sc-font-text); }
.sc-grain { opacity: 0.03; }
.sc-display { font-weight: 700; letter-spacing: -0.035em; }
.sc-display--md { font-weight: 700; letter-spacing: -0.025em; }
.sc-body { font-size: var(--sc-t-base); line-height: var(--sc-leading-body); }
.sc-lede { font-weight: 500; }
.sc-label { font-family: var(--sc-font-text); font-weight: 600; letter-spacing: 0.12em; font-size: 0.72rem; }
::selection { background: var(--sc-accent); color: #fff; }

/* ---- the glass -------------------------------------------------------- */
.nh-glass {
  position: fixed; inset: 0; z-index: 0;
  /* the large viewport, so the address bar collapsing never resizes the buffer */
  width: 100vw; height: 100vh; height: 100lvh;
  display: block;
  pointer-events: none;
}
main { position: relative; z-index: 1; }
/* nothing paints until the engine has measured and pinned the acts */
/* home only: the reading pages and /terms-of-access never load the engine */
html:not(.sc-ready) main#top, html:not(.sc-ready) .nh-pill { opacity: 0; }

/* ---- buttons and links ------------------------------------------------ */
.nh-btn {
  display: inline-flex; align-items: center; gap: 0.55em;
  padding: 0.85em 1.35em; border-radius: 12px;
  background: var(--nh-blue-deep); color: #fff;
  font-weight: 600; font-size: var(--sc-t-sm); letter-spacing: -0.005em;
  text-decoration: none; white-space: nowrap;
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.25) inset, 0 8px 22px -8px rgb(11 114 204 / 0.55), 0 1px 2px rgb(11 13 16 / 0.12);
  transition: transform 140ms var(--sc-ease-out), box-shadow 160ms var(--sc-ease-out), background-color 140ms var(--sc-ease-out);
}
.nh-btn:hover { background: #0A66B8; box-shadow: 0 1px 0 rgb(255 255 255 / 0.25) inset, 0 12px 28px -8px rgb(11 114 204 / 0.6), 0 1px 2px rgb(11 13 16 / 0.12); }
.nh-btn:active { transform: translateY(1px) scale(0.985); }
.nh-btn:focus-visible { outline: 2px solid var(--sc-accent); outline-offset: 3px; }
.nh-btn--lg { padding: 1.05em 1.7em; font-size: var(--sc-t-base); border-radius: 14px; }
.nh-btn--ghost {
  background: rgb(255 255 255 / 0.62); color: var(--sc-ink);
  box-shadow: var(--sc-edge), 0 0 0 1px var(--sc-hairline), 0 6px 18px -8px hsl(var(--sc-shadow-color) / 0.25);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.nh-btn--ghost:hover { background: rgb(255 255 255 / 0.86); box-shadow: var(--sc-edge), 0 0 0 1px var(--sc-hairline-strong), 0 8px 22px -8px hsl(var(--sc-shadow-color) / 0.3); }
.nh-link {
  color: var(--nh-blue-deep); font-weight: 500; text-decoration: none;
  border-bottom: 1px solid rgb(11 114 204 / 0.35);
  transition: border-color 140ms var(--sc-ease-out);
}
.nh-link:hover { border-bottom-color: var(--nh-blue-deep); }
.nh-link:focus-visible { outline: 2px solid var(--sc-accent); outline-offset: 3px; border-radius: 2px; }
.nh-em { color: var(--nh-blue-deep); }

/* ---- planes: the sections in front of the glass ------------------------ */
.nh-plane {
  position: relative;
  width: min(100% - 2 * var(--sc-gutter), var(--sc-maxw));
  margin-inline: auto;
  background: rgb(255 255 255 / 0.80);
  border-radius: var(--sc-r-lg);
  box-shadow: var(--sc-edge), 0 0 0 1px rgb(255 255 255 / 0.65), var(--sc-e2);
  padding: clamp(2.5rem, 5.5vw, 5.5rem) clamp(1.5rem, 5vw, 5rem);
  will-change: transform, opacity;
}
.nh-plane + .nh-plane { margin-top: clamp(1.5rem, 4vw, 3rem); }
.nh-section { padding-block: clamp(1.5rem, 4vw, 3rem); }
.nh-section--first { padding-top: clamp(1rem, 3vw, 2rem); }
[data-nh-depth] { opacity: 0; transform: translate3d(0, 44px, 0) scale(0.97); }
[data-nh-depth].nh-seen { opacity: 1; transform: none; }
.nh-plane > * { position: relative; }

/* ---- words flow in -------------------------------------------------------
   Each word rises and sharpens in sequence; --i is the word's index, the step
   and delay are set per block from the markup. Blocks marked "block" (buttons)
   settle as one piece. */
[data-nh-flow] .fw {
  display: inline-block;
  opacity: 0; transform: translate3d(0, 0.45em, 0); filter: blur(6px);
  transition: opacity 820ms var(--sc-ease-out), transform 820ms var(--sc-ease-out), filter 820ms var(--sc-ease-out);
  transition-delay: calc(var(--nh-flow-delay, 0ms) + var(--i, 0) * var(--nh-flow-step, 42ms));
}
[data-nh-flow].is-flowed .fw { opacity: 1; transform: none; filter: none; }
[data-nh-flow="block"] {
  opacity: 0; transform: translate3d(0, 14px, 0);
  transition: opacity 940ms var(--sc-ease-out), transform 940ms var(--sc-ease-out);
  transition-delay: var(--nh-flow-delay, 0ms);
}
[data-nh-flow="block"].is-flowed { opacity: 1; transform: none; }
[data-nh-tick], [data-nh-count] { font-variant-numeric: tabular-nums; }

/* ---- reading progress ---------------------------------------------------
   A 3px hairline of the brand blue along the very top, over every plane and
   the pill. It starts under the notch on phones and carries a faint glow so
   it reads on the lit glass without becoming a bar. */
.nh-progress {
  top: env(safe-area-inset-top, 0px); height: 3px; z-index: 95;
  background: linear-gradient(90deg, var(--nh-blue-deep, #1E90FF), var(--sc-accent));
  box-shadow: 0 0 10px rgb(59 170 255 / 0.55);
  border-radius: 0 2px 2px 0;
}
html:not(.sc-ready) .nh-progress { opacity: 0; }

/* ---- the pill nav ------------------------------------------------------- */
.nh-pill {
  position: fixed; top: 0.9rem; left: 50%; z-index: var(--sc-z-chrome);
  transform: translate(-50%, -140%);
  display: flex; align-items: center; gap: 0.25rem;
  padding: 0.35rem 0.4rem 0.35rem 0.55rem; border-radius: 999px;
  background: rgb(255 255 255 / 0.62);
  box-shadow: var(--sc-edge), 0 0 0 1px rgb(255 255 255 / 0.7), 0 10px 30px -12px hsl(var(--sc-shadow-color) / 0.35), 0 1px 3px rgb(11 13 16 / 0.06);
  backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  transition: transform 560ms var(--sc-ease-out), opacity 420ms var(--sc-ease-out), visibility 0s linear 560ms;
  opacity: 0; visibility: hidden; /* out of the tab order while undocked */
}
.nh-pill.is-docked { transform: translate(-50%, 0); opacity: 1; visibility: visible; transition-delay: 0s, 0s, 0s; }
.nh-pill a { color: var(--sc-ink); text-decoration: none; font-size: 0.86rem; font-weight: 500; padding: 0.45rem 0.7rem; border-radius: 999px; transition: background-color 140ms var(--sc-ease-out); }
.nh-pill a:hover { background: rgb(11 13 16 / 0.05); }
.nh-pill a:focus-visible { outline: 2px solid var(--sc-accent); outline-offset: 1px; }
.nh-pill a[aria-current="page"] { color: var(--nh-blue-deep); }
.nh-pill .nh-pill__mark { display: inline-flex; align-items: center; gap: 0.5rem; padding-right: 0.55rem; margin-right: 0.15rem; border-right: 1px solid var(--sc-hairline); }
.nh-pill .nh-pill__mark { flex: 0 0 auto; }
.nh-pill .nh-pill__mark img { width: 22px; height: 22px; min-width: 22px; flex: 0 0 22px; display: block; }
.nh-pill .nh-pill__mark span { font-weight: 700; letter-spacing: -0.02em; }
.nh-pill .nh-btn { padding: 0.5em 0.95em; border-radius: 999px; font-size: 0.82rem; }
.nh-pill .nh-btn:hover { background: #0A66B8; }

/* ---- 1 · hero ----------------------------------------------------------- */
.nh-hero { display: grid; grid-template-columns: 1fr; }
.nh-hero__bar {
  position: absolute; z-index: 3; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: clamp(1rem, 2.4vw, 1.75rem) var(--sc-gutter);
}
.nh-mark { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--sc-ink); text-decoration: none; font-weight: 700; letter-spacing: -0.02em; font-size: 1.05rem; }
.nh-mark img { width: 28px; height: 28px; display: block; }
.nh-mark i { font-style: normal; color: var(--sc-accent); }
.nh-hero__links { display: flex; align-items: center; gap: 0.35rem; }
.nh-hero__links > a:not(.nh-btn) { color: var(--sc-ink); text-decoration: none; font-size: 0.9rem; font-weight: 500; padding: 0.5rem 0.8rem; border-radius: 999px; transition: background-color 140ms var(--sc-ease-out); }
.nh-hero__links > a:not(.nh-btn):hover { background: rgb(255 255 255 / 0.55); }
.nh-hero__links > a:focus-visible { outline: 2px solid var(--sc-accent); outline-offset: 2px; }
.nh-hero__links .nh-btn { padding: 0.6em 1.05em; border-radius: 999px; font-size: 0.84rem; margin-left: 0.4rem; }

.nh-hero__copy { max-width: min(44rem, 80vw); left: var(--sc-gutter); bottom: auto; top: 50%; translate: 0 -46%; }
.nh-hero__copy h1 { font-size: clamp(2.7rem, 1.6rem + 6vw, 6.6rem); max-width: 10ch; }
.nh-hero__stats { list-style: none; margin: 0 0 var(--sc-5); padding: 0; display: flex; gap: clamp(1.25rem, 3vw, 2.5rem); flex-wrap: wrap; }
.nh-hero__stats li { display: grid; gap: 0.15rem; }
.nh-hero__n { font-family: var(--sc-font-display); font-weight: 700; font-size: clamp(1.25rem, 1rem + 1.1vw, 1.85rem); letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.nh-hero__n i { font-style: normal; color: var(--sc-accent); }
.nh-hero__stats small { color: var(--sc-ink-soft); font-size: 0.8rem; font-weight: 500; }
.nh-hero__sub { margin-top: var(--sc-5); font-size: var(--sc-t-lg); line-height: 1.45; max-width: 34ch; color: #2A2F3A; font-weight: 450; }
.nh-hero__cta { margin-top: var(--sc-6); display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }

.nh-hero__portrait {
  position: absolute; z-index: 2;
  right: clamp(1rem, 6vw, 7rem); bottom: 0;
  width: clamp(16rem, 30vw, 30rem);
  height: min(84vh, 84svh);
  display: flex; align-items: flex-end; justify-content: center;
  pointer-events: none;
  will-change: transform, opacity;
}
.nh-hero__portrait img {
  width: 100%; height: 100%; object-fit: contain; object-position: bottom center;
  display: block;
  mask-image: linear-gradient(to bottom, #000 82%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent 100%);
  filter: drop-shadow(0 30px 40px rgb(20 40 70 / 0.22));
}
.nh-hero__plate {
  position: absolute; inset: 8% -8% -2% -8%; z-index: -1;
  border-radius: 999px 999px 26px 26px;
  background: radial-gradient(ellipse at 50% 30%, rgb(255 255 255 / 0.9), rgb(255 255 255 / 0.35) 60%, transparent 80%);
}
.nh-hero__scrim {
  position: absolute; z-index: 1; left: 0; top: 0; bottom: 0; width: min(64vw, 60rem);
  background: linear-gradient(to right, rgb(245 246 248 / 0.72), rgb(245 246 248 / 0.45) 55%, transparent);
  pointer-events: none;
}

/* ---- 2 · proof ---------------------------------------------------------- */
.nh-proof__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: end; }
.nh-proof__head .sc-lede { justify-self: end; max-width: 38ch; }
.nh-reg { margin-top: clamp(2rem, 4vw, 3.5rem); border-top: 1px solid var(--sc-hairline); }
.nh-reg__row {
  display: grid; grid-template-columns: minmax(8ch, 0.9fr) minmax(0, 1.05fr) minmax(0, 2fr) auto;
  gap: 1.5rem; align-items: baseline;
  padding: clamp(1rem, 2vw, 1.4rem) 0.5rem;
  border-bottom: 1px solid var(--sc-hairline);
  color: var(--sc-ink); text-decoration: none;
  transition: background-color 160ms var(--sc-ease-out);
  border-radius: 10px;
}
.nh-reg__row:hover { background: rgb(59 170 255 / 0.06); }
.nh-reg__row:focus-visible { outline: 2px solid var(--sc-accent); outline-offset: -2px; }
.nh-reg__n { font-family: var(--sc-font-display); font-weight: 700; font-size: clamp(1.6rem, 1.1rem + 2vw, 2.7rem); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1; }
.nh-reg__n i { font-style: normal; color: var(--sc-accent); }
.nh-reg__k { font-weight: 600; font-size: var(--sc-t-sm); }
.nh-reg__d { color: var(--sc-ink-soft); font-size: var(--sc-t-sm); line-height: 1.5; }
.nh-reg__go { color: var(--nh-blue-deep); display: inline-flex; transition: transform 160ms var(--sc-ease-out); }
.nh-reg__row:hover .nh-reg__go { transform: translate(2px, -2px); }
.nh-trust { margin-top: clamp(2rem, 4vw, 3.5rem); }
.nh-trust__row { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(1.4rem, 3.4vw, 3rem); margin-top: var(--sc-5); }
.nh-trust__row img { height: 22px; width: auto; opacity: 0.72; filter: grayscale(1) contrast(1.05); transition: opacity 160ms var(--sc-ease-out), filter 160ms var(--sc-ease-out); }
.nh-trust__row img.is-tall { height: 30px; }
.nh-trust__row img:hover { opacity: 1; filter: none; }

/* ---- 3 · recognition ring (peak) ---------------------------------------- */
.nh-ring-stage { perspective: 1500px; perspective-origin: 50% 46%; }
.nh-ring__copy { left: var(--sc-gutter); top: clamp(5rem, 12vh, 8rem); bottom: auto; max-width: 30rem; padding: clamp(1rem, 2vw, 1.5rem) clamp(1.1rem, 2.2vw, 1.6rem); border-radius: 16px; background: rgb(245 246 248 / 0.58); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: var(--sc-edge), 0 0 0 1px rgb(255 255 255 / 0.5); }
.nh-ring__copy .sc-body { margin-top: var(--sc-3); }
.nh-ring__scene {
  position: absolute; inset: 0; z-index: 1;
  display: grid; place-items: center;
  transform-style: preserve-3d;
}
.nh-ring {
  position: absolute; left: 50%; top: 50%; width: 1px; height: 1px;
  transform-style: preserve-3d;
  --nh-ring-r: clamp(18rem, 32vw, 32rem);
  --nh-ring-y: 0deg; --nh-ring-x: -6deg;
  transform: translateY(4vh) rotateX(var(--nh-ring-x)) rotateY(var(--nh-ring-y));
  will-change: transform;
}
.nh-plate {
  position: absolute; left: 0; top: 0;
  width: clamp(14rem, 20vw, 19rem);
  margin-left: calc(clamp(14rem, 20vw, 19rem) / -2);
  transform-style: preserve-3d;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  --nh-a: 0deg;
  transform: translateY(-50%) rotateY(var(--nh-a)) translateZ(var(--nh-ring-r));
  will-change: transform, opacity;
}
.nh-plate__in {
  display: block; text-decoration: none; color: var(--sc-ink);
  padding: 1.3rem 1.35rem 1.35rem;
  border-radius: 18px;
  background: rgb(255 255 255 / 0.62);
  box-shadow: var(--sc-edge), 0 0 0 1px rgb(255 255 255 / 0.8), 0 18px 40px -16px hsl(var(--sc-shadow-color) / 0.35), 0 1px 3px rgb(11 13 16 / 0.05);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backface-visibility: hidden; -webkit-backface-visibility: hidden; /* Safari does not inherit the parent's */
  min-height: 11.5rem;
  transition: box-shadow 160ms var(--sc-ease-out);
}
a.nh-plate__in:hover { box-shadow: var(--sc-edge), 0 0 0 1px rgb(255 255 255 / 0.95), 0 26px 48px -16px hsl(var(--sc-shadow-color) / 0.42), 0 1px 3px rgb(11 13 16 / 0.05); }
a.nh-plate__in:focus-visible { outline: 2px solid var(--sc-accent); outline-offset: 3px; }
.nh-plate__src { display: block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--nh-blue-deep); }
.nh-plate__title { display: block; margin-top: 0.9rem; font-family: var(--sc-font-display); font-weight: 700; font-size: clamp(1.25rem, 1rem + 0.9vw, 1.7rem); letter-spacing: -0.03em; line-height: 1.05; }
.nh-plate__sub { display: block; margin-top: 0.6rem; color: var(--sc-ink-soft); font-size: 0.86rem; line-height: 1.45; }
.nh-plate__go { position: absolute; right: 1.1rem; top: 1.1rem; color: var(--nh-blue-deep); }
.nh-plate__badge { position: absolute; right: 1rem; top: 0.9rem; width: 34px; height: 34px; }
.nh-ring__centre {
  position: absolute; left: 50%; top: 50%; margin: 0;
  width: clamp(12rem, 21vw, 21rem); aspect-ratio: 1;
  /* sits a little above the ring's axis so the plates cross its lower third
     rather than the faces */
  transform: translate(-50%, -50%) translateY(-5vh);
  will-change: transform;
}
.nh-ring__centre img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%;
  border-radius: 22px; display: block;
  box-shadow: 0 0 0 6px rgb(255 255 255 / 0.85), 0 30px 60px -20px hsl(var(--sc-shadow-color) / 0.45);
}
.nh-ring__caption {
  position: absolute; z-index: 2; right: var(--sc-gutter); bottom: clamp(2rem, 6vh, 4rem); max-width: 22rem;
  text-align: right; color: var(--sc-ink); font-size: var(--sc-t-sm); line-height: 1.5;
  padding: 0.7rem 0.95rem; border-radius: 12px; background: rgb(245 246 248 / 0.6);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 0 0 1px rgb(255 255 255 / 0.5);
}

/* ---- 4 · story ---------------------------------------------------------- */
.nh-story { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.nh-story h2 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.6rem); max-width: 18ch; }
.nh-story__text { margin-top: var(--sc-6); display: grid; gap: var(--sc-5); }
.nh-story__text p { font-size: var(--sc-t-lg); line-height: 1.5; color: var(--sc-ink); max-width: 44ch; font-weight: 450; }
[data-nh-words] .w { opacity: 0.16; transition: opacity 220ms var(--sc-ease-out); }
[data-nh-words] .w.on { opacity: 1; }
.nh-story__more { margin-top: var(--sc-6); }
.nh-story__photos { position: relative; min-height: 34rem; }
.nh-ph { position: absolute; margin: 0; border-radius: 16px; overflow: hidden; box-shadow: var(--sc-e3); background: #fff; }
.nh-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nh-ph--grad { left: 0; top: 0; width: 56%; aspect-ratio: 3 / 4; z-index: 1; }
.nh-ph--office { right: 0; top: 34%; width: 66%; aspect-ratio: 4 / 3; z-index: 2; }
.nh-ph figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 0.7rem 0.9rem; font-size: 0.74rem; color: #fff; background: linear-gradient(to top, rgb(11 13 16 / 0.62), transparent); letter-spacing: 0.01em; }

/* ---- 5 · rooms rail ----------------------------------------------------- */
.nh-rail-stage { display: flex; align-items: center; }
.nh-rail {
  display: flex; align-items: center; gap: clamp(1.25rem, 3vw, 2.5rem);
  padding-inline: var(--sc-gutter);
  will-change: transform;
}
/* A faint plate under the rail's text and captions: the glass runs bright
   behind them, and the plate is the least the type needs to read. */
.nh-plate-soft {
  background: rgb(245 246 248 / 0.58);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  box-shadow: var(--sc-edge), 0 0 0 1px rgb(255 255 255 / 0.5);
}
.nh-rail__lead { flex: 0 0 auto; width: min(26rem, 74vw); padding: clamp(1.2rem, 2.4vw, 2rem) clamp(1.2rem, 2.4vw, 2rem); margin-right: clamp(0.5rem, 2vw, 2rem); }
.nh-rail__lead h2 { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.8rem); }
.nh-rail__lead p { margin-top: var(--sc-4); }
.nh-room { flex: 0 0 auto; margin: 0; position: relative; --nh-lift: 0px; transform: translateY(var(--nh-lift)); }
.nh-room__frame { border-radius: 16px; overflow: hidden; box-shadow: var(--sc-e3); background: #fff; }
.nh-room__frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.nh-room--wide { width: clamp(22rem, 42vw, 40rem); --nh-lift: -4vh; }
.nh-room--wide .nh-room__frame { aspect-ratio: 3 / 2; }
.nh-room--square { width: clamp(15rem, 26vw, 24rem); --nh-lift: 8vh; }
.nh-room--square .nh-room__frame { aspect-ratio: 1; }
.nh-room--tall { width: clamp(13rem, 22vw, 20rem); --nh-lift: -6vh; }
.nh-room--tall .nh-room__frame { aspect-ratio: 3 / 4; }
.nh-room--land { width: clamp(20rem, 36vw, 34rem); --nh-lift: 6vh; }
.nh-room--land .nh-room__frame { aspect-ratio: 16 / 10; }
.nh-room figcaption { display: inline-block; margin-top: 0.8rem; padding: 0.4rem 0.7rem; border-radius: 10px; font-size: 0.82rem; color: var(--sc-ink); background: rgb(245 246 248 / 0.62); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 0 0 1px rgb(255 255 255 / 0.5); }
.nh-rail__end { flex: 0 0 auto; width: min(20rem, 60vw); padding-left: clamp(1rem, 2vw, 2rem); }
.nh-rail__end p { font-size: var(--sc-t-lg); font-weight: 500; line-height: 1.4; }
@media (prefers-reduced-motion: no-preference) {
  .nh-room { opacity: calc(0.55 + 0.45 * var(--nh-settle, 1)); transform: translateY(calc(var(--nh-lift) + (1 - var(--nh-settle, 1)) * 30px)); }
}

/* ---- 6 · book ----------------------------------------------------------- */
.nh-book { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.nh-book__art { margin: 0; position: relative; justify-self: center; width: min(100%, 24rem); }
.nh-book__plate { position: relative; border-radius: 6px 14px 14px 6px; overflow: hidden; box-shadow: var(--sc-e3), -1px 0 0 rgb(255 255 255 / 0.5) inset; transform: perspective(1200px) rotateY(10deg); }
.nh-book__plate img { display: block; width: 100%; height: auto; }
.nh-book__sheen { position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgb(255 255 255 / 0.22) 48%, transparent 60%); pointer-events: none; }
.nh-book__glow { position: absolute; inset: -12% -20%; z-index: -1; background: radial-gradient(ellipse at 50% 60%, rgb(59 170 255 / 0.28), transparent 62%); }
.nh-book h2 { font-size: clamp(2rem, 1.3rem + 3vw, 4rem); }
.nh-book__cats { list-style: none; padding: 0; margin: var(--sc-3) 0 0; display: grid; gap: 0.35rem; }
.nh-book__cats li { padding-left: 1.1rem; position: relative; color: var(--sc-ink); font-size: var(--sc-t-sm); font-weight: 500; }
.nh-book__cats li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 6px; height: 6px; border-radius: 50%; background: var(--sc-accent); }
.nh-book__cta { margin-top: var(--sc-6); display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; }

/* ---- 7 · close ---------------------------------------------------------- */
.nh-close { display: grid; grid-template-rows: 1fr auto; }
.nh-close__inner { display: grid; place-content: center; text-align: center; padding: 0 var(--sc-gutter); gap: var(--sc-5); }
.nh-close__inner h2 { font-size: clamp(2.4rem, 1.4rem + 5vw, 5.6rem); }
.nh-close__alt { color: var(--sc-ink-soft); font-size: var(--sc-t-base); }
.nh-close__sig { width: clamp(11rem, 20vw, 17rem); height: auto; opacity: 0.9; justify-self: center; margin-top: var(--sc-5); }
.nh-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  padding: 1.4rem var(--sc-gutter) max(1.4rem, env(safe-area-inset-bottom));
  border-top: 1px solid rgb(11 13 16 / 0.08);
  background: rgb(255 255 255 / 0.5);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: 0.8rem; color: var(--sc-ink-soft);
}
.nh-social { display: flex; gap: 1.2rem; }
.nh-social a { color: var(--sc-ink); text-decoration: none; font-weight: 500; }
.nh-social a:hover { color: var(--nh-blue-deep); }
.nh-social a:focus-visible { outline: 2px solid var(--sc-accent); outline-offset: 2px; border-radius: 3px; }
.nh-foot__terms { color: var(--sc-ink-soft); text-decoration: none; font-size: 0.8rem; font-weight: 500; }
.nh-foot__terms:hover { color: var(--nh-blue-deep); }
.nh-foot__terms:focus-visible { outline: 2px solid var(--sc-accent); outline-offset: 2px; border-radius: 3px; }

/* ---- responsive --------------------------------------------------------- */
@media (max-width: 1100px) {
  .nh-story { grid-template-columns: 1fr; }
  .nh-story__photos { min-height: 28rem; max-width: 34rem; }
  .nh-book { grid-template-columns: 1fr; }
  .nh-book__art { width: min(70%, 18rem); }
  .nh-proof__head { grid-template-columns: 1fr; }
  .nh-proof__head .sc-lede { justify-self: start; }
}
@media (max-width: 860px) {
  .nh-hero__copy h1 { font-size: var(--sc-t-2xl); max-width: 12ch; }
  .nh-hero__copy { top: auto; translate: 0; bottom: clamp(2.5rem, 9vh, 6rem); max-width: min(34rem, 88vw); }
  .nh-hero__portrait { width: clamp(12rem, 50vw, 17rem); height: 44svh; right: auto; left: 50%; translate: -50% 0; bottom: auto; top: 9svh; z-index: 0; }
  .nh-hero__portrait img { mask-image: linear-gradient(to bottom, #000 62%, transparent 92%); -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 92%); }
  /* the band sits ABOVE the portrait here, so the copy never reads over the shirt */
  .nh-hero__scrim { z-index: 1; width: 100%; background: linear-gradient(to top, rgb(245 246 248 / 0.96) 38%, rgb(245 246 248 / 0.7) 56%, transparent 72%); top: auto; height: 68%; }
  /* inset-inline FIRST: it is the shorthand for left+right, and the engine's
     .sc-copy sets both to the gutter, which would pin this block to the right
     gutter and squeeze it to half a screen. */
  .nh-hero__copy { inset-inline: auto; left: 50%; translate: -50% 0; width: min(34rem, 90vw); max-width: none; text-align: center; }
  .nh-hero__copy h1 { margin-inline: auto; max-width: 11ch; }
  .nh-hero__sub { margin-inline: auto; }
  .nh-hero__cta { justify-content: center; }
  /* one row, always: two stacked figures on a short phone climb into the portrait */
  .nh-hero__stats { justify-content: center; text-align: center; margin-bottom: var(--sc-4); flex-wrap: nowrap; gap: 1.5rem; }
  .nh-hero__stats li { justify-items: center; }
  .nh-hero__n { font-size: 1.2rem; }
  .nh-hero__stats small { font-size: 0.68rem; white-space: nowrap; }
  .nh-hero__sub { font-size: var(--sc-t-base); }
  .nh-hero__links > a:not(.nh-btn) { display: none; }
  .nh-hero__links .nh-btn { margin-left: 0; }
  .nh-reg__row { grid-template-columns: minmax(7ch, auto) 1fr auto; }
  .nh-reg__d { grid-column: 1 / -1; padding-top: 0; }
  /* seven plates cannot clear each other on a phone's radius, so the trophy
     photo moves above the ring instead of sitting inside it */
  /* radius grows past the plate width so neighbours clear each other
     (chord = 2r sin(pi/7) = 0.868r must exceed the plate width) */
  .nh-ring { --nh-ring-r: clamp(15rem, 70vw, 19rem); transform: translateY(8vh) rotateX(var(--nh-ring-x)) rotateY(var(--nh-ring-y)); }
  .nh-plate { width: clamp(12rem, 56vw, 14.5rem); margin-left: calc(clamp(12rem, 56vw, 14.5rem) / -2); transform-style: flat; }
  .nh-plate__in { padding: 1rem 1.05rem 1.1rem; min-height: 9.5rem; }
  .nh-ring__centre { width: clamp(8rem, 38vw, 10rem); transform: translate(-50%, -50%) translateY(-13vh); }
  .nh-ring__copy { max-width: 22rem; top: clamp(4.5rem, 10vh, 6rem); }
  .nh-ring__caption { display: none; }
  .nh-pill .nh-pill__mark span { display: none; }
  .nh-pill a:not(.nh-btn):not(.nh-pill__mark) { padding: 0.45rem 0.55rem; }
  .nh-room--wide { width: min(80vw, 24rem); }
  .nh-room--square { width: min(60vw, 16rem); }
  .nh-room--tall { width: min(52vw, 14rem); }
  .nh-room--land { width: min(76vw, 22rem); }
  .nh-story__photos { min-height: 22rem; }
  /* compact foot and a smaller close so the heading clears the pill on a
     short phone; the close is a pinned stage and clips what does not fit */
  .nh-foot { justify-content: center; text-align: center; padding: 0.9rem var(--sc-gutter) max(0.9rem, env(safe-area-inset-bottom)); gap: 0.6rem 1rem; font-size: 0.74rem; }
  .nh-foot .nh-mark { font-size: 0.92rem; }
  .nh-social { gap: 0.9rem; }
  .nh-close__inner { padding-top: 4.5rem; gap: var(--sc-4); }
  .nh-close__inner h2 { font-size: clamp(1.9rem, 8.6vw, 2.6rem); }
  .nh-close__sig { width: clamp(8rem, 34vw, 11rem); margin-top: var(--sc-3); }
}
@media (max-height: 720px) and (max-width: 860px) {
  /* below the bar, and faded out earlier so the stats row never meets the shirt */
  .nh-hero__portrait { height: 36svh; top: 11svh; }
  .nh-hero__portrait img { mask-image: linear-gradient(to bottom, #000 55%, transparent 88%); -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 88%); }
  .nh-hero__copy h1 { font-size: clamp(1.9rem, 8vw, 2.4rem); }
  .nh-hero__copy { bottom: clamp(1.5rem, 5vh, 3rem); }
  .nh-hero__scrim { height: 76%; background: linear-gradient(to top, rgb(245 246 248 / 0.96) 44%, rgb(245 246 248 / 0.7) 60%, transparent 76%); }
  /* short phone: a smaller trophy photo so the copy, the photo and the front
     plate each keep their own band */
  .nh-ring__copy { top: 3.6rem; padding: 0.85rem 1rem; }
  .nh-ring__copy .sc-body { margin-top: 0.4rem; }
  .nh-ring__centre { width: clamp(6rem, 28vw, 8rem); transform: translate(-50%, -50%) translateY(-14vh); }
  .nh-ring { transform: translateY(12vh) rotateX(var(--nh-ring-x)) rotateY(var(--nh-ring-y)); }
}

@media (prefers-reduced-motion: reduce) {
  [data-nh-depth] { opacity: 1; transform: none; }
  .nh-pill { transition: none; }
  [data-nh-words] .w { opacity: 1; }
  .nh-ring { --nh-ring-y: 0deg; }
}

/* ---- touch devices ----------------------------------------------------------
   A backdrop blur over a canvas that repaints while scrolling costs a full
   re-blur per frame on a phone GPU and is the first thing to drop frames, so
   the frosted surfaces become plain translucent plates here. Per-word blur
   goes for the same reason. */
@media (pointer: coarse) {
  .nh-pill, .nh-plate__in, .nh-btn--ghost, .nh-rail__lead, .nh-room figcaption,
  .nh-ring__copy, .nh-ring__caption, .nh-foot, .nh-plate-soft {
    backdrop-filter: none; -webkit-backdrop-filter: none;
  }
  .nh-pill { background: rgb(250 251 253 / 0.94); }
  .nh-plate__in { background: rgb(250 251 253 / 0.9); }
  .nh-btn--ghost { background: rgb(255 255 255 / 0.9); }
  .nh-rail__lead, .nh-ring__copy, .nh-plate-soft { background: rgb(245 246 248 / 0.86); }
  .nh-room figcaption, .nh-ring__caption { background: rgb(245 246 248 / 0.88); }
  .nh-foot { background: rgb(255 255 255 / 0.88); }
  [data-nh-flow] .fw { filter: none; transition: opacity 720ms var(--sc-ease-out), transform 720ms var(--sc-ease-out); }
  .nh-plate { will-change: transform; }
}
