/* =====================================================================
   HARDSEEKING — global stylesheet
   Dark · cold · minimal lifestyle philosophy brand
   ---------------------------------------------------------------------
   Structure of this file:
     1. Design tokens (CSS variables)
     2. Reset & base
     3. Typography helpers
     4. Layout primitives (container, section, grid)
     5. Navigation (top bar + Domains dropdown + mobile menu)
     6. Buttons & links
     7. Hero + stickman figure animation
     8. Content sections (domains, products, quote)
     9. Footer
    10. Utilities
    11. Reduced-motion & responsive
   ===================================================================== */

/* 1. DESIGN TOKENS ---------------------------------------------------- */
:root {
  /* Core cold monochrome palette */
  --bg:          #0A0A0B;   /* near-black page background */
  --bg-elev:     #101013;   /* slightly raised background */
  --surface:     #141418;   /* cards / panels */
  --surface-2:   #1B1B21;   /* hover surface */
  --line:        rgba(255, 255, 255, 0.09);  /* hairline borders */
  --line-strong: rgba(255, 255, 255, 0.16);

  --white:       #FFFFFF;   /* stickmen + peak emphasis */
  --text:        #F3F4F5;   /* primary text (off-white) */
  --text-dim:    #9A9BA1;   /* secondary text */
  --text-faint:  #5B5C63;   /* tertiary / meta */

  /* Icy accent — used sparingly, mostly on interactive states */
  --accent:      #8FB2CC;   /* cold steel-blue */
  --accent-dim:  rgba(143, 178, 204, 0.14);

  /* Type */
  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body:    "Inter", "Segoe UI", system-ui, sans-serif;

  /* Spacing scale (8px rhythm) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 64px;
  --space-8: 96px;
  --space-9: 128px;

  /* Layout */
  --container: 1200px;
  --nav-h: 68px;
  --radius: 4px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --pullup-dur: 2.7s;
}

/* 2. RESET & BASE ----------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Subtle cold vignette so pure black doesn't feel flat */
  background-image:
    radial-gradient(1200px 600px at 50% -10%, rgba(143, 178, 204, 0.05), transparent 70%);
  background-attachment: fixed;
}

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

a { color: inherit; text-decoration: none; }

::selection { background: var(--accent); color: #06121b; }

/* Visible focus for keyboard users */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* 3. TYPOGRAPHY ------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--white);
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.eyebrow--accent { color: var(--accent); }

.display {
  font-size: clamp(2.6rem, 8vw, 5.5rem);
  text-transform: uppercase;
  letter-spacing: -0.03em;
}

.lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-dim);
  max-width: 52ch;
  line-height: 1.65;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  text-transform: uppercase;
}

/* hollow type: the words are there, nothing inside them */
.t-hollow {
  color: transparent;
  -webkit-text-stroke: 1.1px rgba(243, 244, 245, 0.5);
  text-stroke: 1.1px rgba(243, 244, 245, 0.5);
  transition: -webkit-text-stroke-color 0.6s var(--ease);
}
@media (max-width: 760px) {
  .t-hollow { -webkit-text-stroke-width: 0.9px; }
}

p { max-width: 65ch; }

/* 4. LAYOUT PRIMITIVES ------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

.section {
  padding-block: var(--space-9);
  border-top: 1px solid var(--line);
}

.section--flush { border-top: 0; }

.section-head {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-7);
  max-width: 60ch;
}

/* 5. NAVIGATION ------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(10, 10, 11, 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav__inner {
  height: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--white);
  white-space: nowrap;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  list-style: none;
  padding: 0;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding-inline: 14px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  border-radius: var(--radius);
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
  cursor: pointer;
  background: none;
  border: 0;
}

.nav__link:hover,
.nav__link:focus-visible { color: var(--white); }

.nav__link[aria-current="page"] { color: var(--white); }

/* Dropdown (Domains) */
.nav__item--has-menu { position: relative; }

.nav__caret { transition: transform 0.2s var(--ease); }

.nav__item--has-menu[data-open="true"] .nav__caret { transform: rotate(180deg); }

.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  padding: var(--space-2);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.9);
  display: grid;
  gap: 2px;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease);
}

.nav__item--has-menu[data-open="true"] .dropdown {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Desktop: open on hover as well as click/keyboard */
@media (hover: hover) and (min-width: 761px) {
  .nav__item--has-menu:hover .dropdown {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav__item--has-menu:hover .nav__caret { transform: rotate(180deg); }
}

.dropdown__link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: var(--radius);
  color: var(--text);
  transition: background 0.16s var(--ease);
}

.dropdown__link:hover,
.dropdown__link:focus-visible { background: var(--surface-2); }

.dropdown__label {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
}

.dropdown__desc { font-size: 0.78rem; color: var(--text-faint); }

/* Mobile menu toggle */
.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--white);
  cursor: pointer;
}

.nav__toggle svg { width: 20px; height: 20px; }

/* 6. BUTTONS ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 26px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease),
              color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--white);
  color: #08090a;
  border: 1px solid var(--white);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
  color: #06121b;
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-strong);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--accent);
  color: var(--white);
}

.textlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.18s var(--ease), gap 0.18s var(--ease);
}

.textlink:hover,
.textlink:focus-visible { color: var(--accent); gap: 12px; }

/* 7. HERO + STICKMAN -------------------------------------------------- */
.hero {
  position: relative;
  min-height: calc(100dvh - var(--nav-h));
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: var(--space-8) var(--space-7);
  overflow: hidden;
}

/* anchored glow — a soft pool of cold light behind the hero figure,
   so the black feels lit and intentional rather than dead-empty */
.hero::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 42%;
  width: min(920px, 92vw);
  height: min(720px, 82vh);
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center,
              rgba(68, 82, 108, 0.34),
              rgba(34, 40, 54, 0.13) 42%,
              transparent 72%);
  pointer-events: none;
  z-index: 0;
  animation: hero-glow 11s ease-in-out infinite alternate;
}
@keyframes hero-glow {
  from { opacity: 0.82; transform: translate(-50%, -50%) scale(1); }
  to   { opacity: 1;    transform: translate(-50%, -50%) scale(1.05); }
}
@media (prefers-reduced-motion: reduce) {
  .hero::before { animation: none; }
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
  max-width: 900px;
}

.hero__title { margin-top: var(--space-2); }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
}

/* Stickman figure ---------------------------------------------------- */
.hs-figure {
  width: clamp(180px, 34vw, 260px);
  height: auto;
  color: var(--white);
}

.hs-figure line,
.hs-figure polyline,
.hs-figure circle,
.hs-figure path {
  stroke: currentColor;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  vector-effect: non-scaling-stroke;
}

/* the fixed bar + supports read as cold steel */
.hs-figure .rig { color: var(--text-faint); }
.hs-figure .rig line { stroke: currentColor; }
.hs-figure .bar { stroke: var(--white); }

/* Pull-up motion: body translates up/down, arms compress (scaleY) so
   the hands stay pinned to the bar. Both share identical timing. */
.hs-figure .body {
  animation: hs-pullup-body var(--pullup-dur) ease-in-out infinite;
}
.hs-figure .arm {
  transform-box: fill-box;
  transform-origin: center top;   /* top of arm bbox == the hand on the bar */
  animation: hs-pullup-arms var(--pullup-dur) ease-in-out infinite;
}

@keyframes hs-pullup-body {
  0%,  8%  { transform: translateY(0); }
  50%      { transform: translateY(-38px); }
  58%      { transform: translateY(-38px); }
  100%     { transform: translateY(0); }
}

@keyframes hs-pullup-arms {
  0%,  8%  { transform: scaleY(1); }
  50%      { transform: scaleY(0.525); }
  58%      { transform: scaleY(0.525); }
  100%     { transform: scaleY(1); }
}

/* Sisyphus hero image — already white-on-near-black art. Screen blend
   melts its dark paper into the page so no rectangle shows. Parallax via JS. */
.hero__art-wrap {
  width: min(84vw, 860px);
  margin-inline: auto;
}
.hero__art {
  width: 100%;
  height: auto;
  display: block;
  /* transparent PNG — sits directly on the page, no blending tricks needed */
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .hero__art { transform: none !important; }
}

/* domain-hub hero mascot (Mind / Work landing figures) */
.hero__figure-img {
  height: clamp(200px, 38vh, 360px);
  width: auto;
  max-width: 90%;
  display: block;
}

/* 8. CONTENT SECTIONS ------------------------------------------------- */

/* Domains grid */
.domains {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

.domain-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-6);
  min-height: 340px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease),
              transform 0.2s var(--ease);
}

.domain-card:hover {
  border-color: var(--line-strong);
  background: var(--bg-elev);
  transform: translateY(-2px);
}

/* mascot: a small contained figure sitting near the top of the card */
.domain-card__mascot {
  height: 112px;
  width: auto;
  align-self: flex-start;
  opacity: 0.9;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}
.domain-card:hover .domain-card__mascot { transform: translateY(-3px) scale(1.05); opacity: 1; }

/* click feedback: quick press, then the card commits before navigating */
.domain-card.is-leaving {
  animation: hs-card-leave 0.32s var(--ease) forwards;
  border-color: var(--white);
}
.domain-card.is-leaving .domain-card__figure { transform: scale(1.14) translateY(-4px); }
.domain-card.is-leaving .domain-card__link { color: var(--accent); gap: 18px; }
@keyframes hs-card-leave {
  0%   { transform: translateY(-3px) scale(1); }
  38%  { transform: translateY(-3px) scale(0.98); }
  100% { transform: translateY(-9px) scale(1.015); }
}

.domain-card__index {
  position: absolute;
  top: var(--space-5);
  right: var(--space-5);
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--text-faint);
}

.domain-card__title {
  font-size: 1.9rem;
  text-transform: uppercase;
}

.domain-card__desc { color: var(--text-dim); font-size: 0.98rem; }

.domain-card__link {
  margin-top: auto;
  color: var(--text);
}
.domain-card:hover .domain-card__link { color: var(--accent); }

/* Products teaser */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s var(--ease);
}
.product-card:hover { border-color: var(--line-strong); }

.product-card__media {
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text-faint);
}

/* Single-product feature (Products page) */
.product__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: var(--space-7);
  align-items: center;
}
.product__cover { display: flex; justify-content: center; }

/* typographic book cover, mirrors the guide's own cover */
.book-cover {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 3 / 4;
  background: linear-gradient(160deg, #16161b, #0a0a0c);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-4);
  box-shadow: 0 40px 90px -50px rgba(0, 0, 0, 0.95);
}
.book-cover__brand {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.book-cover__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--white);
}
.book-cover__rule { height: 1px; background: var(--line-strong); }
.book-cover__sub { font-size: 0.9rem; color: var(--text-dim); }

.product__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--white);
  margin-top: var(--space-2);
}
.product__hook {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--text);
  max-width: 48ch;
  margin-top: var(--space-3);
  line-height: 1.5;
}
.product__desc { color: #C6C7CB; margin-top: var(--space-4); max-width: 62ch; line-height: 1.75; }

.product__inside { list-style: none; padding: 0; margin: var(--space-5) 0 0; display: grid; gap: var(--space-3); }
.product__inside li {
  display: flex;
  gap: 14px;
  color: var(--text-dim);
  line-height: 1.6;
  max-width: 64ch;
  font-size: 0.98rem;
}
.product__inside li::before {
  content: "";
  flex: 0 0 auto;
  width: 16px;
  height: 1.5px;
  margin-top: 0.7em;
  background: var(--accent);
}

.product__meta {
  margin-top: var(--space-5);
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.product__buy { display: flex; align-items: center; gap: var(--space-4); margin-top: var(--space-5); }
.product__price {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.7rem;
  color: var(--white);
}
.product__note { margin-top: var(--space-3); font-size: 0.85rem; color: var(--text-faint); }

@media (max-width: 820px) {
  .product__grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .product__cover { order: -1; max-width: 300px; margin-inline: auto; }
}

/* Product page runs tighter than the homepage — short blocks, less void */
.product-page .section { padding-block: var(--space-6); }
.product-page .section-head { margin-bottom: var(--space-5); }

/* "What it does" — three steps */
.does { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; max-width: 760px; }
.does li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-4);
  align-items: start;
  padding-block: var(--space-5);
  border-top: 1px solid var(--line);
}
.does li:first-child { border-top: 0; }
.does__n { font-family: var(--font-display); font-size: 0.9rem; letter-spacing: 0.2em; color: var(--accent); padding-top: 5px; }
.does__h { font-size: 1.3rem; text-transform: uppercase; letter-spacing: -0.01em; margin-bottom: var(--space-2); }
.does__p { color: #C6C7CB; line-height: 1.7; max-width: 60ch; }

/* Who it's for / not for */
.fortwo { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); margin-top: var(--space-7); }
.forblock { padding: var(--space-5); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.forblock--not { background: transparent; }
.forblock__h {
  font-family: var(--font-display);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-3);
  color: var(--white);
}
.forblock p { color: var(--text-dim); line-height: 1.65; }
.forblock--not p { color: var(--text-faint); }

@media (max-width: 760px) {
  .fortwo { grid-template-columns: 1fr; }
  .does li { grid-template-columns: auto 1fr; }
}

/* Big quote / ethos */
.quote {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.8rem, 5vw, 3.4rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--white);
  max-width: 20ch;
}

.quote__cite {
  display: block;
  margin-top: var(--space-4);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* Placeholder marker so unfinished content is obvious while editing */
.placeholder {
  color: var(--text-faint);
  font-style: italic;
}

/* Animated dot field (canvas) sitting behind a section.
   Masked top and bottom so it fades in / out instead of hard-cutting. */
.section--dots { position: relative; }
.section--dots > .container { position: relative; z-index: 1; }

.dotfield {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 24%, #000 76%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 24%, #000 76%, transparent 100%);
}

/* Scroll reveal — phones only. Class added by JS, so nothing is ever
   hidden if scripts fail. Kept fast so it never delays reading. */
@media (max-width: 760px) {
  .js-reveal .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  }
  .js-reveal .reveal.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .js-reveal .reveal { opacity: 1 !important; transform: none !important; }
}

/* Long-form prose (The Problem) */
.prose { max-width: 70ch; }
.prose p { max-width: none; margin-top: var(--space-4); font-size: 1.06rem; line-height: 1.78; color: #C6C7CB; }
.prose p:first-child { margin-top: 0; color: var(--text); }

/* Foundation — principles list */
.principles { display: grid; }
.principle {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: var(--space-5);
  padding-block: var(--space-6);
  border-top: 1px solid var(--line);
}
.principle:last-child { border-bottom: 1px solid var(--line); }
.principle__head {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  /* pins while its own body text scrolls past, then hands off to the next */
  position: sticky;
  top: calc(var(--nav-h) + 40px);
  align-self: start;
}

/* Focus dimming — only the principle you're reading stays lit.
   Class is added by JS, so without it everything renders fully visible. */
.principles.js-focus .principle {
  opacity: 0.28;
  transition: opacity 0.5s var(--ease);
}
.principles.js-focus .principle.is-active { opacity: 1; }

/* on phones the dim is gentler, since only one is on screen at a time */
@media (max-width: 760px) {
  .principles.js-focus .principle { opacity: 0.34; }
}

/* Mechanism diagrams — small, cold, technical */
.mech {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-top: var(--space-3);
  color: var(--white);
  overflow: visible;
}
.mech circle,
.mech line,
.mech path { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.mech .mech__dash { stroke-dasharray: 4 7; stroke-opacity: 0.42; }
.mech .mech__tick { stroke-opacity: 0.75; stroke-width: 1.4; }
.mech .mech__pulse { fill: currentColor; stroke: none; animation: mech-gap 3s cubic-bezier(0.45, 0, 0.55, 1) infinite; }

/* 02 — Voluntary Hardship: load bends the line, it rebounds thicker,
   then thins again once the demand is gone. */
.mech .mech__anchor { stroke-opacity: 0.6; }
.mech .mech__beam {
  transform-box: view-box;
  transform-origin: 120px 56px;
  animation: mech-load-beam 4.5s cubic-bezier(0.45, 0, 0.4, 1) infinite;
}
.mech .mech__weight {
  fill: currentColor;
  stroke: none;
  animation: mech-load-weight 4.5s cubic-bezier(0.45, 0, 0.4, 1) infinite;
}

@keyframes mech-load-beam {
  0%, 12%  { transform: scaleY(0); stroke-width: 1.6; }
  32%, 46% { transform: scaleY(1); stroke-width: 1.6; }
  62%, 80% { transform: scaleY(0); stroke-width: 3.4; }
  100%     { transform: scaleY(0); stroke-width: 1.6; }
}
@keyframes mech-load-weight {
  0%, 12%  { transform: translateY(0);    opacity: 0.9; }
  32%, 46% { transform: translateY(34px); opacity: 1; }
  62%      { transform: translateY(0);    opacity: 0.9; }
  80%      { transform: translateY(0);    opacity: 0.4; }
  100%     { transform: translateY(0);    opacity: 0.9; }
}

/* 03 — Comfort Drift: the path leaves the baseline so gradually you
   don't notice, and the gap only widens. */
.mech .mech__drift {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: mech-drift 5.5s cubic-bezier(0.4, 0, 0.5, 1) infinite;
}
.mech .mech__drifthead {
  fill: currentColor;
  stroke: none;
  offset-path: path("M22,40 C90,40 150,52 218,76");
  offset-rotate: 0deg;
  animation: mech-drifthead 5.5s cubic-bezier(0.4, 0, 0.5, 1) infinite;
}
.mech .mech__gapline { stroke-width: 1.2; stroke-dasharray: 3 3; stroke-opacity: 0; animation: mech-gapline 5.5s linear infinite; }

@keyframes mech-drift {
  0%   { stroke-dashoffset: 1; opacity: 1; }
  68%  { stroke-dashoffset: 0; opacity: 1; }
  90%  { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}
@keyframes mech-drifthead {
  0%   { offset-distance: 0%;   opacity: 1; }
  68%  { offset-distance: 100%; opacity: 1; }
  90%  { offset-distance: 100%; opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}
@keyframes mech-gapline {
  0%, 55%  { stroke-opacity: 0; }
  72%, 90% { stroke-opacity: 0.65; }
  100%     { stroke-opacity: 0; }
}
.mech .mech__label {
  fill: var(--text-faint);
  stroke: none;
  font-family: var(--font-display);
  font-size: 8px;
  letter-spacing: 0.22em;
}

/* the signal leaves "knowing", reaches the break, and dies. every time. */
@keyframes mech-gap {
  0%, 4%  { transform: translateX(0);    opacity: 0; }
  12%     { transform: translateX(6px);  opacity: 1; }
  52%     { transform: translateX(54px); opacity: 1; }
  68%     { transform: translateX(58px); opacity: 0; }
  100%    { transform: translateX(58px); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .mech .mech__pulse { animation: none; opacity: 0.85; }
  .mech .mech__beam,
  .mech .mech__weight,
  .mech .mech__drift,
  .mech .mech__drifthead,
  .mech .mech__gapline { animation: none; }
  .mech .mech__beam { transform: scaleY(1); }
  .mech .mech__drift { stroke-dashoffset: 0; }
  .mech .mech__drifthead { opacity: 0; }
  .mech .mech__gapline { stroke-opacity: 0.5; }
}
.principle__index {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  color: var(--accent);
}
.principle__title { font-size: clamp(1.4rem, 2.6vw, 2.1rem); text-transform: uppercase; }
.principle__body { color: #C6C7CB; font-size: 1.02rem; line-height: 1.72; max-width: 62ch; }

/* Transition — statement fills word-by-word as you scroll, mascot alongside */
.transition__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
  gap: var(--space-7);
  align-items: center;
}
.transition__figure { justify-self: end; width: 100%; }
.transition__mascot { width: 100%; height: auto; display: block; opacity: 0.85; }
.sf-word { will-change: opacity; }

@media (max-width: 760px) {
  .transition__grid { grid-template-columns: 1fr; gap: var(--space-5); }
  .transition__figure { justify-self: start; max-width: 240px; }
}

/* Transition — single bridging statement */
.statement {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.3rem, 3vw, 2rem);
  line-height: 1.32;
  letter-spacing: -0.01em;
  color: var(--white);
  max-width: 30ch;
}

/* Domain card cue line ("Go here if…") */
.domain-card__cue { color: var(--text); font-weight: 500; font-size: 0.98rem; }

/* Deep Dives — list of articles on a domain hub */
.dive-list { display: grid; gap: var(--space-3); }

.dive {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease),
              transform 0.2s var(--ease);
}
.dive:hover {
  border-color: var(--line-strong);
  background: var(--bg-elev);
  transform: translateY(-2px);
}
.dive__kicker {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.dive__kicker b { color: var(--accent); font-weight: 500; }
.dive__title {
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--white);
  max-width: 24ch;
}
.dive:hover .dive__title { color: var(--white); }
.dive__excerpt { color: var(--text-dim); font-size: 1rem; line-height: 1.6; max-width: 68ch; }
.dive__cta { color: var(--text); }
.dive:hover .dive__cta { color: var(--accent); }

/* Empty-state hint for domains with no articles yet */
.dive-empty {
  padding: var(--space-6);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--text-faint);
  text-align: center;
}

/* =====================================================================
   ARTICLE / DEEP-DIVE reading layout (reused by every deep dive page)
   ===================================================================== */
.article { padding-block: var(--space-7) var(--space-8); }

.article__wrap {
  max-width: 760px;
  margin-inline: auto;
  padding-inline: var(--space-4);
}

.article__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--space-6);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.18s var(--ease), gap 0.18s var(--ease);
}
.article__back:hover { color: var(--accent); gap: 12px; }

.article__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 5.4vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--white);
  margin-bottom: var(--space-5);
}

.article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
  padding-block: var(--space-3);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--space-6);
  font-family: var(--font-display);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.article__meta .dot { color: var(--line-strong); }
.article__meta .tag { color: var(--accent); }

.article__body { color: #C6C7CB; font-size: 1.08rem; line-height: 1.8; }
.article__body p { max-width: none; margin-top: var(--space-4); }
.article__body p:first-of-type { margin-top: 0; color: var(--text); }
.article__body h2 {
  color: var(--white);
  font-size: clamp(1.35rem, 3.2vw, 1.75rem);
  line-height: 1.22;
  letter-spacing: -0.015em;
  text-transform: none;
  margin-top: var(--space-7);
  margin-bottom: var(--space-2);
}
.article__body strong { color: var(--text); font-weight: 600; }

.article__disclaimer {
  max-width: none;
  margin-top: var(--space-7);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
  color: var(--text-faint);
  font-size: 0.82rem;
  font-style: italic;
  line-height: 1.65;
}

.article__foot { margin-top: var(--space-7); }

/* Email signup band (Kit form, restyled to the brand) */
.hs-signup__inner { max-width: 660px; }
.hs-signup__row { display: flex; gap: var(--space-2); margin-top: var(--space-5); flex-wrap: wrap; }
.hs-signup__field { flex: 1 1 240px; margin: 0; }
.hs-signup__input {
  width: 100%;
  height: 52px;
  padding: 0 18px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
}
.hs-signup__input::placeholder { color: var(--text-faint); }
.hs-signup__input:focus { outline: none; border-color: var(--accent); }
.hs-signup__btn {
  height: 52px;
  padding: 0 30px;
  background: var(--white);
  color: #08090a;
  border: 1px solid var(--white);
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.hs-signup__btn:hover { background: var(--accent); border-color: var(--accent); color: #06121b; }
.hs-signup__fine { margin-top: var(--space-3); font-size: 0.8rem; color: var(--text-faint); }

/* Kit alerts + spinner, restyled */
.hs-signup .formkit-alert { list-style: none; margin: var(--space-3) 0 0; padding: 11px 15px; border-radius: var(--radius); font-size: 0.92rem; }
.hs-signup .formkit-alert:empty { display: none; }
.hs-signup .formkit-alert-error { background: rgba(226, 75, 74, 0.12); border: 1px solid rgba(226, 75, 74, 0.4); color: #eaa; }
.hs-signup .formkit-alert-success { background: var(--accent-dim); border: 1px solid rgba(143, 178, 204, 0.4); color: var(--accent); }
.hs-signup .formkit-spinner { display: none; }
.hs-signup .formkit-submit[data-active] .formkit-spinner { display: inline-flex; gap: 4px; }
.hs-signup .formkit-submit[data-active] > span { opacity: 0.4; }
.hs-signup .formkit-spinner > div { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.5; }

/* Quiet contextual product note — deliberately understated, not a banner */
.guidenote {
  display: block;
  max-width: 760px;
  margin-inline: auto;
  padding: var(--space-4) var(--space-4) var(--space-4) var(--space-5);
  border-left: 1px solid var(--line-strong);
  transition: border-color 0.22s var(--ease);
}
.guidenote:hover { border-left-color: var(--accent); }
.guidenote__label {
  font-family: var(--font-display);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.guidenote__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  color: var(--white);
  margin: 6px 0 5px;
}
.guidenote__line { color: var(--text-dim); font-size: 0.9rem; line-height: 1.6; margin-bottom: var(--space-2); max-width: 58ch; }
.guidenote__cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.18s var(--ease), gap 0.18s var(--ease);
}
.guidenote:hover .guidenote__cta { color: var(--accent); gap: 12px; }

/* One-line variant — used on the homepage, where a box would compete */
.guideline {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: var(--space-6);
  font-size: 0.95rem;
  color: var(--text-faint);
}
.guideline__link {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.guideline__link:hover { color: var(--accent); border-color: var(--accent); }

/* Legal pages (privacy, terms) */
.legal { max-width: 760px; margin-inline: auto; padding-block: var(--space-7) var(--space-8); }
.legal__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 2.8rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: var(--space-3);
}
.legal__updated {
  font-family: var(--font-display);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--space-6);
}
.legal h2 {
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--white);
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
}
.legal p { color: #C6C7CB; line-height: 1.75; margin-bottom: var(--space-3); max-width: none; }
.legal ul { color: #C6C7CB; line-height: 1.75; padding-left: var(--space-4); margin-bottom: var(--space-3); }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* 9. FOOTER ----------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--line);
  padding-block: var(--space-7) var(--space-5);
}

.footer__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-5);
  margin-bottom: var(--space-6);
}

.footer__brand { max-width: 32ch; }
.footer__brand p { color: var(--text-dim); margin-top: var(--space-3); font-size: 0.95rem; }

.footer__col h4 {
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: var(--space-3);
}

.footer__legal {
  max-width: 74ch;
  margin-bottom: var(--space-5);
  color: var(--text-faint);
  font-size: 0.8rem;
  line-height: 1.65;
}

.footer__col ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.footer__col a { color: var(--text-dim); font-size: 0.92rem; transition: color 0.16s var(--ease); }
.footer__col a:hover { color: var(--white); }

.footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
  color: var(--text-faint);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

/* 10. UTILITIES ------------------------------------------------------- */
.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;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--white);
  color: #000;
  border-radius: var(--radius);
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

.stack-lg { display: flex; flex-direction: column; gap: var(--space-5); }
.center   { text-align: center; align-items: center; }

/* 11. REDUCED MOTION & RESPONSIVE ------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
  html { scroll-behavior: auto; }
  /* park the stickman in a static hanging pose */
  .hs-figure .body { transform: translateY(0); }
  .hs-figure .arm  { transform: scaleY(1); }
}

@media (max-width: 900px) {
  .product-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  :root { --nav-h: 60px; }

  /* mobile nav: hide inline menu, show toggle */
  .nav__toggle { display: inline-flex; }

  /* Mobile menu: drops straight down from the bar. Nothing ever moves
     sideways, so it can never create horizontal overflow. */
  .nav__menu {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    width: 100%;
    max-height: calc(100dvh - var(--nav-h));
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--space-2) var(--space-4) var(--space-5);
    background: rgba(10, 10, 11, 0.98);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line-strong);
    box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.9);
    overflow-y: auto;
    overscroll-behavior: contain;

    opacity: 0;
    transform: translateY(-10px);
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease),
                visibility 0s linear 0.22s;
  }
  .nav__menu[data-open="true"] {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease),
                visibility 0s;
  }

  .nav__menu > li { border-bottom: 1px solid var(--line); }
  .nav__menu > li:last-child { border-bottom: 0; }

  .nav__link {
    width: 100%;
    height: 56px;
    padding-inline: 2px;
    font-size: 1rem;
    letter-spacing: 0.06em;
    justify-content: space-between;
  }

  /* Domains expands inline underneath its own row */
  .nav__item--has-menu { position: static; }
  .dropdown {
    position: static;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    box-shadow: none;
    border: 0;
    border-left: 1px solid var(--line-strong);
    border-radius: 0;
    background: transparent;
    margin: 0 0 var(--space-3) 2px;
    padding: 0 0 0 var(--space-3);
    display: none;
  }
  .nav__item--has-menu[data-open="true"] .dropdown { display: grid; }
  .dropdown__link { padding: 12px 10px; }
  .dropdown__label { font-size: 0.95rem; }

  .domains { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }

  /* stack the hero buttons at matching width instead of ragged */
  .hero__actions { flex-direction: column; width: 100%; max-width: 290px; margin-inline: auto; }
  .hero__actions .btn { width: 100%; }
  .principle { grid-template-columns: 1fr; gap: var(--space-4); padding-block: var(--space-6); }
  /* single column on mobile — nothing to pin against */
  .principle__head { position: static; gap: var(--space-2); }

  /* the mechanism diagram becomes a real visual break, not a footnote */
  .mech { max-width: 100%; margin-top: var(--space-4); margin-bottom: var(--space-2); }

  /* let long-form text breathe so it stops reading as a wall */
  .prose p { margin-top: var(--space-5); line-height: 1.8; }
  .principle__body { line-height: 1.8; }
  /* tuned for a phone: slightly smaller type fits more words per line,
     which reads far better than fewer, wider-spaced words */
  .article__title { font-size: 1.85rem; line-height: 1.14; }
  .article__body { font-size: 1.02rem; }
  .article__body p { margin-top: var(--space-5); line-height: 1.78; }
  .article__body h2 { font-size: 1.25rem; margin-top: var(--space-6); }
  .article__meta { font-size: 0.68rem; letter-spacing: 0.12em; gap: var(--space-2); }
  .section { padding-block: var(--space-8); }
}
