/* The New Health Club: editorial design system */

:root {
  --paper: #ffffff;
  --paper-2: #f3f3f3;
  --paper-3: #e6e6e6;
  --ink: #111111;
  --ink-soft: #333333;
  --ink-muted: #6b6b6b;
  --line: rgba(17, 17, 17, 0.12);
  --line-strong: rgba(17, 17, 17, 0.28);
  --accent: #e10600;
  --moss: #b00000;
  --terracotta: #e10600;
  --white: #ffffff;
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Figtree", "Helvetica Neue", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 76px;
  --max: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --fs-label: 0.75rem;
  --fs-ui: 0.875rem;
  --fs-body: 1.0625rem;
  --fs-lede: 1.125rem;
  --fs-h3: clamp(1.35rem, 1.7vw, 1.55rem);
  --fs-h2: clamp(1.85rem, 2.8vw, 2.35rem);
  --fs-h1: clamp(2.25rem, 4.6vw, 3.5rem);
  --fs-hero: clamp(2.4rem, 5.4vw, 4.15rem);
  --lh-display: 1.12;
  --lh-body: 1.65;
  --track-label: 0.16em;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: "ss01" on, "cv11" on;
  overflow-x: hidden;
}

body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 1;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

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

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

ul,
ol {
  list-style: none;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1rem;
  z-index: 100;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
}

.wrap {
  width: min(var(--max), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

/* Type */
.eyebrow {
  font-family: var(--sans);
  font-size: var(--fs-label);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 500;
}

h1,
h2,
h3,
.display {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: var(--lh-display);
  font-variation-settings: "SOFT" 50, "WONK" 0.4;
}

h1 {
  font-size: var(--fs-h1);
}

h2 {
  font-size: var(--fs-h2);
}

h3 {
  font-size: var(--fs-h3);
}

.lede {
  font-size: var(--fs-lede);
  color: var(--ink-soft);
  max-width: 38rem;
  line-height: var(--lh-body);
}

.muted {
  color: var(--ink-muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1.3rem;
  border-radius: 0;
  font-size: var(--fs-ui);
  font-weight: 550;
  letter-spacing: 0.01em;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}

.btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.35s var(--ease);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn-primary {
  background: var(--accent);
  color: var(--paper);
}

.btn-primary:hover {
  background: var(--moss);
  transform: translateY(-1px);
}

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

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: transparent;
}

.btn-text {
  padding: 0;
  border-radius: 0;
  gap: 0.45rem;
  font-size: var(--fs-label);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.15rem;
}

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

/* Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, height 0.3s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  height: 64px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--max), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
  gap: 1.5rem;
}

.logo {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: max-content;
}

.logo-mark {
  font-size: var(--fs-label);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--accent);
}

.logo-name {
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.7rem;
}

.nav-links a {
  font-size: var(--fs-ui);
  color: var(--ink-soft);
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav-links a:hover::after,
.nav-links a.is-active::after {
  transform: scaleX(1);
  background: var(--accent);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.nav-cta .btn {
  padding: 0.7rem 1.05rem;
  font-size: var(--fs-ui);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 0;
}

.menu-lottie {
  display: block;
  width: 22px;
  height: 22px;
  pointer-events: none;
}

.menu-lottie svg {
  display: block;
  width: 100%;
  height: 100%;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 16px;
  height: 1.2px;
  background: var(--ink);
  position: relative;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
}

.menu-toggle span::before {
  top: -5px;
}

.menu-toggle span::after {
  top: 5px;
}

.mobile-nav {
  display: none;
}

/* Hero */
.hero {
  padding: clamp(2.4rem, 5.5vw, 4.5rem) 0 clamp(3rem, 6vw, 5.5rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
}

.hero h1 {
  font-size: var(--fs-hero);
  margin: 0.7rem 0 1.15rem;
  max-width: 12ch;
}

.hero-sub {
  max-width: 36rem;
  color: var(--ink-soft);
  font-size: var(--fs-lede);
  line-height: var(--lh-body);
  margin-bottom: 1.7rem;
}

.hero-sub-mobile,
.hero-support {
  display: none;
}

.hero-support {
  color: var(--ink-muted);
  max-width: 36rem;
}

.portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  background:
    linear-gradient(180deg, rgba(17, 17, 17, 0.08), rgba(17, 17, 17, 0.35)),
    radial-gradient(120% 80% at 70% 20%, #c8c8c8 0%, #6a6a6a 42%, #1a1a1a 100%);
  overflow: hidden;
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 32% 18%;
  display: block;
  filter: grayscale(1) contrast(1.08);
}

.portrait::before {
  content: "AP";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: clamp(4.5rem, 12vw, 8.5rem);
  color: rgba(250, 247, 241, 0.2);
  letter-spacing: -0.06em;
  z-index: 1;
  pointer-events: none;
}

.portrait.has-photo::before {
  content: none;
}

.portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(20, 18, 16, 0.45), transparent 42%),
    repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(20, 18, 16, 0.04) 3px, rgba(20, 18, 16, 0.04) 4px);
}

.portrait.has-photo::after {
  background: linear-gradient(to top, rgba(20, 18, 16, 0.38), transparent 36%);
}

.portrait figcaption {
  position: absolute;
  left: 1.1rem;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 1;
  color: var(--paper);
  font-size: var(--fs-label);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
}

.portrait.is-wide {
  aspect-ratio: 16 / 10;
}

.portrait.is-wide img {
  object-position: 28% 22%;
}

.portrait.is-square {
  aspect-ratio: 1;
}

.portrait.is-cover img {
  filter: none;
  object-position: center;
}

.portrait.is-cover::after {
  display: none;
}

.portrait.is-moss {
  background:
    linear-gradient(180deg, rgba(17, 17, 17, 0.1), rgba(17, 17, 17, 0.4)),
    radial-gradient(100% 90% at 30% 20%, #bdbdbd 0%, #555 50%, #111 100%);
}

.portrait.is-bronze {
  background:
    linear-gradient(180deg, rgba(17, 17, 17, 0.08), rgba(17, 17, 17, 0.35)),
    radial-gradient(110% 90% at 80% 10%, #d0d0d0 0%, #666 48%, #1a1a1a 100%);
}

/* Sections */
.section {
  padding: clamp(3.25rem, 6.5vw, 5.5rem) 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
  margin-bottom: clamp(1.8rem, 4vw, 3rem);
}

.section-head p {
  max-width: 28rem;
  color: var(--ink-muted);
}

.rule {
  height: 1px;
  background: var(--line);
  border: 0;
}

/* Path */
.path {
  background: var(--paper-2);
  border-block: 1px solid var(--line);
}

.path-head {
  padding: clamp(2.4rem, 5vw, 4rem) 0 clamp(1.6rem, 3vw, 2.2rem);
  max-width: 46rem;
}

.path-head h2 {
  margin-top: 0.5rem;
}

.path-intro {
  color: var(--ink-muted);
  font-size: var(--fs-lede);
  margin-top: 0.9rem;
}

.path-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}

.path-item {
  padding: clamp(2rem, 4vw, 3.2rem) clamp(1.2rem, 2.5vw, 2.4rem);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.path-item:last-child {
  border-right: 0;
}

/* Step 02 is the new centre of the funnel, lifted off the band, not decorated. */
.path-item.is-featured {
  background: var(--paper);
}

.path-num {
  font-family: var(--serif);
  font-size: var(--fs-h3);
  color: var(--accent);
  display: block;
  margin-bottom: 0.75rem;
}

.path-item p.path-verb {
  font-size: var(--fs-label);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.35rem;
}

.path-item h3 {
  margin-bottom: 0.55rem;
}

.path-item p {
  color: var(--ink-muted);
  font-size: 1em;
}

.path-asks {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  margin-top: 1.1rem;
}

.path-asks a {
  display: inline-block;
  font-family: var(--serif);
  font-size: 1rem;
  font-style: italic;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  padding: 0.4rem 0.75rem;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.path-asks a:hover {
  border-color: var(--ink);
  color: var(--ink);
}

/* margin-top:auto drops the rule to the card floor, so the three meta lines
   sit on one baseline even though the cards differ in height. */
.path-item p.path-meta {
  font-size: var(--fs-label);
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  margin-top: auto;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  width: 100%;
}

.path-item > a {
  display: inline-flex;
  margin-top: 1.1rem;
  font-size: var(--fs-label);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
}

.path-item > a:hover {
  color: var(--accent);
}

/* Press strip */
.press-strip {
  padding: 1.6rem 0;
  overflow: hidden;
}

.press-row {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  flex-wrap: wrap;
  justify-content: space-between;
}

.press-label {
  font-size: var(--fs-label);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--ink-muted);
  min-width: 7rem;
}

.press-names {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.6rem;
  font-family: var(--serif);
  font-size: var(--fs-h3);
  font-style: italic;
}

.press-names a:hover {
  color: var(--accent);
}

/* Cards */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 2vw, 1.6rem);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.6rem);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.offer-card,
.media-card,
.list-card,
.talk-card {
  display: flex;
  flex-direction: column;
  padding: 1.6rem 1.5rem 1.4rem;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--white) 70%, transparent);
  min-height: 100%;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease);
}

.offer-card:hover,
.list-card:hover,
.talk-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  background: var(--white);
}

.offer-card .eyebrow,
.list-card .eyebrow {
  margin-bottom: 0.85rem;
}

.offer-card h3,
.list-card h3 {
  margin-bottom: 0.7rem;
}

.offer-card p,
.list-card p {
  color: var(--ink-muted);
  flex: 1;
}

.offer-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: var(--fs-ui);
}

.price {
  font-family: var(--serif);
  font-size: var(--fs-h3);
  color: var(--ink);
}

/* Quote / about */
.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.pullquote {
  font-family: var(--serif);
  font-size: var(--fs-h2);
  line-height: 1.2;
  letter-spacing: -0.03em;
  max-width: 16ch;
}

.story p + p {
  margin-top: 1rem;
}

.story p {
  color: var(--ink-soft);
  max-width: 42rem;
}

/* Media page: Helena-inspired */
.page-hero {
  padding: clamp(2.4rem, 5vw, 4rem) 0 1.4rem;
}

.page-hero:has(.about-hero) {
  padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.page-hero .hero-grid {
  align-items: start;
}

.about-hero .about-copy {
  grid-column: 1;
  text-align: left;
  margin-top: 0.25rem;
}

.about-hero .about-copy p {
  max-width: none;
}

.about-hero .about-copy .btn-row {
  margin-top: 1.6rem;
}

.about-hero .portrait {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.page-hero h1 {
  margin-top: 0.55rem;
  max-width: 16ch;
}

.media-list {
  border-top: 1px solid var(--line);
}

.media-item {
  display: grid;
  grid-template-columns: 0.7fr 1.5fr auto;
  gap: 1.5rem;
  align-items: start;
  padding: 2.1rem 0;
  border-bottom: 1px solid var(--line);
}

.media-item h2 {
  font-size: var(--fs-h3);
}

.media-item blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--fs-lede);
  line-height: 1.45;
  margin-bottom: 0.5rem;
}

.media-item p {
  color: var(--ink-muted);
  max-width: 40rem;
}

.media-item .btn-text {
  margin-top: 0.3rem;
  white-space: nowrap;
}

.pending-tag {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: var(--fs-label);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--terracotta);
}

/* Consulting */
.consult-hero p {
  max-width: 36rem;
}

a.consult-card,
a.offer-card,
a.list-card,
a.talk-card,
a.platform {
  color: inherit;
}

.consult-card {
  padding: clamp(1.8rem, 3vw, 2.6rem);
  background: var(--white);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}

a.consult-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
}

.consult-card h3 {
  margin: 0.7rem 0 1rem;
}

.consult-card .price {
  font-size: var(--fs-h2);
  margin: 1.2rem 0 1.1rem;
}

.offerings-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 901px) {
  .offerings-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* A List */
.alist-intro {
  max-width: 34rem;
  margin-bottom: 2.5rem;
}

.list-card .num {
  font-family: var(--serif);
  font-size: var(--fs-ui);
  color: var(--accent);
}

.slot-empty {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--line-strong);
  font-size: var(--fs-ui);
  color: var(--ink-muted);
  font-style: italic;
  font-family: var(--serif);
}

/* Sidekick */
.sidekick-stage {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
  align-items: start;
}

.chat {
  background: var(--white);
  border: 1px solid var(--line);
  min-height: 560px;
  height: min(68vh, 720px);
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
}

.chat-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-ui);
  color: var(--ink-muted);
  flex: none;
}

.chat-live {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--ink);
  font-size: var(--fs-label);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  font-weight: 500;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(225, 6, 0, 0.5);
  animation: livePulse 2s ease-out infinite;
}

@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(225, 6, 0, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(225, 6, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(225, 6, 0, 0); }
}

.chat-log {
  flex: 1;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.bubble {
  max-width: 85%;
  padding: 0.85rem 1rem;
  font-size: 1em;
  line-height: 1.55;
}

.bubble-ai {
  background: var(--paper-2);
  align-self: flex-start;
}

.bubble-user {
  background: var(--ink);
  color: var(--paper);
  align-self: flex-end;
}

.chat-form {
  display: flex;
  gap: 0.6rem;
  padding: 0.9rem;
  border-top: 1px solid var(--line);
}

.chat-form input {
  flex: 1;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 0.85rem 1rem;
  outline: none;
}

.chat-form input:focus {
  border-color: var(--ink);
}

.sk-reassure {
  margin-top: 0.9rem;
  color: var(--ink-soft);
  border-left: 2px solid var(--accent);
  padding-left: 0.9rem;
}

/* Podcast */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.platform {
  border: 1px solid var(--line);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 140px;
  background: var(--white);
}

.platform:hover {
  border-color: var(--ink);
}

.platform strong {
  font-family: var(--serif);
  font-size: var(--fs-h3);
  font-weight: 400;
}

/* Forms */
.newsletter {
  background: var(--ink);
  color: var(--paper);
}

.newsletter .eyebrow,
.newsletter .muted {
  color: color-mix(in srgb, var(--paper) 62%, transparent);
}

.newsletter h2 {
  margin: 0.45rem 0 1.1rem;
  max-width: 16ch;
}

@media (min-width: 901px) {
  .newsletter .wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .newsletter .muted,
  .newsletter .form-row,
  .newsletter .form-success {
    width: 100%;
    max-width: 32rem;
  }
}

.form-row {
  display: flex;
  gap: 0.6rem;
  max-width: 32rem;
}

.form-row input {
  flex: 1;
  background: transparent;
  border: 1px solid rgba(243, 238, 228, 0.28);
  color: var(--paper);
  padding: 0.95rem 1rem;
  outline: none;
}

.form-row input:focus {
  border-color: var(--paper);
}

.form-row .btn-primary {
  background: var(--accent);
  color: var(--paper);
}

.form-row .btn-primary:hover {
  background: var(--moss);
}

.form-success {
  display: none;
  font-family: var(--serif);
  font-size: var(--fs-h3);
}

.form-success.is-on {
  display: block;
}

.newsletter.is-done .form-row {
  display: none;
}

/* Newsletter popup */
.nl-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(20, 18, 16, 0.46);
}

.nl-overlay[hidden] {
  display: none;
}

.nl-modal {
  width: min(32rem, 100%);
  background: var(--ink);
  color: var(--paper);
  padding: clamp(1.6rem, 4vw, 2.4rem);
  position: relative;
}

.nl-modal .eyebrow,
.nl-modal .muted {
  color: color-mix(in srgb, var(--paper) 62%, transparent);
}

.nl-modal h2 {
  margin: 0.5rem 0 0.8rem;
  font-size: var(--fs-h2);
  max-width: 14ch;
}

.nl-modal .form-row {
  margin-top: 1.3rem;
}

.nl-close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  width: 2.4rem;
  height: 2.4rem;
  color: var(--paper);
  border: 1px solid rgba(243, 238, 228, 0.22);
}

.nl-close:hover {
  background: rgba(243, 238, 228, 0.08);
}

.nl-later {
  display: inline-block;
  margin-top: 1rem;
  font-size: var(--fs-label);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: color-mix(in srgb, var(--paper) 62%, transparent);
  border-bottom: 1px solid currentColor;
}

.nl-modal.is-done .form-row,
.nl-modal.is-done .nl-later {
  display: none;
}

body.nl-open {
  overflow: hidden;
}

body.nl-open .sticky-cta {
  display: none;
}

/* Footer */
.site-footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand .logo-name {
  font-size: 1.15rem;
}

.footer-brand p {
  margin-top: 0.85rem;
  color: var(--ink-muted);
  max-width: 22rem;
  font-size: 1em;
}

.footer-col h4 {
  font-size: var(--fs-label);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.9rem;
  font-weight: 550;
}

.footer-col a,
.footer-col span {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--ink-soft);
  font-size: 1em;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: var(--fs-label);
}

/* Sticky mobile CTA */
.sticky-cta {
  display: none;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.9s var(--ease) forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.22s; }
.delay-3 { animation-delay: 0.34s; }

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* Mobile nav overlay */
@media (max-width: 900px) {
  .nav-links,
  .nav-cta .btn-ghost {
    display: none;
  }

  .menu-toggle {
    display: grid;
  }

  .mobile-nav {
    display: none;
    position: fixed;
    inset: 64px 0 0;
    background: var(--paper);
    z-index: 45;
    padding: 1.5rem var(--gutter) 2rem;
    border-top: 1px solid var(--line);
  }

  .mobile-nav.is-open {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
  }

  .mobile-nav a {
    font-family: var(--serif);
    font-size: var(--fs-h2);
  }

  body.nav-open {
    overflow: hidden;
  }

  body.nav-open .sticky-cta {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1.15fr 0.72fr;
    align-items: end;
    gap: 1.2rem;
  }

  .hero .hero-grid {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 1.5rem;
  }

  .hero h1 {
    max-width: 10ch;
    margin-bottom: 0.85rem;
  }

  .hero-support {
    display: block;
    grid-column: 1 / -1;
    margin-top: 0.5rem;
  }

  .hero .portrait {
    min-height: 0;
    width: 100%;
  }

  .portrait {
    min-height: 220px;
  }

  .about-hero .portrait {
    grid-column: 2;
    grid-row: 1;
  }

  .about-hero .about-copy {
    grid-column: 1 / -1;
    margin-top: 0.4rem;
  }

  .path-grid,
  .split,
  .grid-2,
  .grid-3,
  .grid-4,
  .media-item,
  .sidekick-stage,
  .platform-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .path-item {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .path-item:last-child {
    border-bottom: 0;
  }

  .hero-sub-desktop {
    display: none;
  }

  .hero-sub-mobile {
    display: block;
  }

  body {
    padding-bottom: 5.5rem;
  }

  .sticky-cta {
    display: flex;
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 40;
    justify-content: center;
  }

  .sticky-cta .btn {
    width: 100%;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(20, 18, 16, 0.18);
  }

  .media-item .btn-text {
    margin-top: 0.8rem;
  }

  .form-row {
    flex-direction: column;
  }

  h1 {
    max-width: none;
  }
}

@media (max-width: 600px) {
  .section-head {
    flex-direction: column;
    align-items: start;
  }
}

/* Live Sidekick sits inside the editorial chat panel, not a phone frame */
.chat .sk-mount {
  position: relative;
  flex: 1;
  min-height: 0;
  border: 0;
  background: transparent;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.chat .sk-mount:empty {
  display: none;
  flex: none;
}

.chat .sk-embed-col {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  transform: none !important;
  inset: auto !important;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-width: 0;
  flex: 1;
  margin: 0 !important;
  align-items: stretch;
  justify-content: stretch;
  gap: 0;
  --sk-frame-h: 100%;
}

.chat .sk-live-cue,
.chat .sk-fs-toggle {
  display: none !important;
}

.chat .sk-frame-wrap {
  width: 100% !important;
  height: 100% !important;
  min-height: 0;
  aspect-ratio: auto !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  border: 0 !important;
  background: var(--paper);
}

body.sk-fs .chat .sk-embed-col {
  position: absolute !important;
  inset: 0 !important;
  transform: none !important;
}

@media (max-width: 991px) {
  .chat {
    height: min(78vh, 680px);
  }

  .chat .sk-embed-col,
  .chat .sk-frame-wrap {
    height: 100% !important;
    aspect-ratio: auto !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .live-dot {
    animation: none;
  }
}
