/* ============================================================
   Heath Coaching
   Linen canvas, ink type, white panels. Flat: no gradients, no
   shadows. One signature radius. Motion lives in the type.
   ============================================================ */

/* Inter, self-hosted. Same variable font Google Fonts served, without the
   two third-party round trips that blocked the first paint. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Surfaces */
  --linen: #f7f5f3;
  --paper: #ffffff;
  --tint: #faf9f8;
  --shade: #eeebe8;

  /* Ink */
  --ink: #0d0d0d;
  --stone: #6e6a69;
  --pebble: #9a9796;

  --line: rgba(13, 13, 13, 0.11);
  --line-soft: rgba(13, 13, 13, 0.07);
  --line-strong: rgba(13, 13, 13, 0.2);

  /* The single brand moment */
  --blue: #0069c8;
  --blue-deep: #00589f;

  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* One radius, everywhere */
  --r: 16px;
  --r-sm: 12px;
  --r-pill: 9999px;

  --page: 1280px;
  --gutter: clamp(20px, 5vw, 48px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--linen);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--ink); color: var(--linen); }

/* ---------- Layout ---------- */
.wrap { max-width: var(--page); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 6.5vw, 80px); }
.section-sm { padding-block: clamp(34px, 4vw, 52px); }
.rule { height: 1px; background: var(--line-soft); border: 0; margin: 0; }
.on-paper { background: var(--paper); }
/* Cards invert with their section so they never sit white-on-white. */
.on-paper .box:not(.tier-key) { background: var(--linen); }
.on-paper .box:not(.tier-key) .inset { background: var(--paper); }
.on-paper .tcard { background: var(--linen); }

/* ---------- Typography, Cosmos metrics ---------- */
h1, h2, h3 { margin: 0; color: var(--ink); font-weight: 400; }

h1 {
  font-size: clamp(2.75rem, 6.2vw, 4.625rem);   /* to 74px */
  line-height: 0.9;
  letter-spacing: -0.05em;
}
h2 {
  font-size: clamp(2rem, 3.6vw, 2.375rem);      /* to 38px */
  line-height: 1.08;
  letter-spacing: -0.04em;
}
h3 {
  font-size: 1.5rem;                            /* 24px */
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.h-sm { font-size: 1.125rem; line-height: 1.29; letter-spacing: -0.011em; font-weight: 500; }
em { font-style: normal; }

.eyebrow {
  display: block;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--pebble);
  margin: 0 0 20px;
}

.lede {
  font-size: 18px;
  line-height: 1.45;
  letter-spacing: -0.011em;
  color: var(--stone);
  margin: 0;
}

p { margin: 0 0 16px; line-height: 1.5; }
p:last-child { margin-bottom: 0; }
.body { color: var(--stone); }
.small { font-size: 14px; line-height: 1.5; letter-spacing: 0; }
.caption { font-size: 14px; line-height: 1.5; letter-spacing: 0; color: var(--pebble); }
.measure { max-width: 34rem; }
.measure-wide { max-width: 40rem; }

/* ---------- Buttons: one radius, matched pair ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 15px 24px;
  border-radius: var(--r);
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.011em;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 220ms var(--ease), color 220ms var(--ease),
              border-color 220ms var(--ease);
}
.btn svg { width: 14px; height: 14px; transition: transform 320ms var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn-primary { background: var(--ink); color: var(--linen); border-color: var(--ink); }
.btn-primary:hover { background: #2c2a29; border-color: #2c2a29; }

.btn-ghost { background: var(--paper); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--tint); border-color: var(--line-strong); }

.btn-sm { padding: 10px 16px; font-size: 15px; }

/* Text link */
.tlink {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 16px; font-weight: 500; color: var(--ink);
}
.tlink svg { width: 13px; height: 13px; transition: transform 320ms var(--ease); }
.tlink span { border-bottom: 1px solid var(--line); padding-bottom: 2px; transition: border-color 220ms var(--ease); }
.tlink:hover span { border-color: var(--ink); }
.tlink:hover svg { transform: translateX(4px); }

/* ============================================================
   Navigation: quiet bar, linen until you scroll
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 300ms var(--ease), border-color 300ms var(--ease);
}
body.scrolled .nav {
  background: rgba(247, 245, 243, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--line-soft);
}
.nav-inner {
  max-width: var(--page);
  margin: 0 auto;
  padding-inline: var(--gutter);
  height: 76px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  transition: height 360ms var(--ease);
}
body.scrolled .nav-inner { height: 64px; }

.nav-logo { justify-self: start; }
.nav-logo img { height: 24px; width: 184px; max-width: none; }

.nav-links { display: flex; align-items: center; gap: 30px; justify-self: center; }
.nav-links a {
  position: relative; font-size: 16px; color: var(--ink); padding: 3px 0;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left center;
  transition: transform 320ms var(--ease);
}
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }

.nav-cta { justify-self: end; }

.burger {
  display: none; width: 42px; height: 42px;
  align-items: center; justify-content: center;
  background: none; border: 0; cursor: pointer; padding: 0;
  justify-self: end; position: relative;
}
.burger i {
  position: absolute; width: 18px; height: 1.5px; background: var(--ink);
  transition: transform 320ms var(--ease);
}
.burger i:nth-child(1) { transform: translateY(-4px); }
.burger i:nth-child(2) { transform: translateY(4px); }
body.menu-open .burger i:nth-child(1) { transform: rotate(45deg); }
body.menu-open .burger i:nth-child(2) { transform: rotate(-45deg); }

.mobile-nav {
  position: fixed; top: 76px; left: 0; right: 0; z-index: 59;
  background: var(--linen);
  border-bottom: 1px solid var(--line-soft);
  padding: 8px var(--gutter) 24px;
  transform: translateY(-10px); opacity: 0; pointer-events: none;
  transition: opacity 240ms var(--ease), transform 240ms var(--ease);
}
body.menu-open .mobile-nav { opacity: 1; transform: translateY(0); pointer-events: auto; }
.mobile-nav a.m {
  display: block; padding: 15px 0;
  font-size: 24px; letter-spacing: -0.02em;
  border-bottom: 1px solid var(--line-soft);
}
.mobile-nav .btn { margin-top: 20px; width: 100%; justify-content: center; }

@media (max-width: 940px) {
  .nav-links, .nav-cta { display: none; }
  .nav-inner { grid-template-columns: 1fr auto; }
  .burger { display: flex; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero { padding-block: clamp(50px, 5.2vw, 78px) clamp(32px, 3.6vw, 50px); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(40px, 6vw, 84px);
  align-items: center;
}
.hero h1 { max-width: 15ch; }
.hero .lede { max-width: 42ch; margin-top: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* Author panel */
.hero-book { text-align: center; }
.hero-book .eyebrow { margin-bottom: 18px; }
.hero-book .book3d { --bw: 224px; --bh: 338px; --bd: 30px; }
.hero-book-links {
  display: flex; gap: 20px; justify-content: center; align-items: center;
  margin-top: 44px; flex-wrap: wrap;
}
.hero-book-links a {
  font-size: 15px; color: var(--stone);
  border-bottom: 1px solid var(--line); padding-bottom: 2px;
  transition: color 220ms var(--ease), border-color 220ms var(--ease);
}
.hero-book-links a:hover { color: var(--ink); border-color: var(--ink); }

@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 64px; }
  .hero-book { margin-top: 4px; }
}

.phero { padding-block: clamp(48px, 6vw, 84px) clamp(32px, 4vw, 48px); }
.phero-grid { display: block; }
.phero-grid > div + div { margin-top: 22px; }
/* Testimonials intro: heading, line and client names read as one block. */
.t-intro { padding-bottom: clamp(26px, 3vw, 38px); }
.t-intro .lede { max-width: 44ch; margin-top: 20px; }
.t-intro .namelist { margin-top: 24px; }
/* Page title, then a quieter heading beside the portrait. */
.about-top > h1 {
  font-size: clamp(2.5rem, 5vw, 3.625rem);
  max-width: 18ch;
  margin-bottom: clamp(34px, 4vw, 52px);
}
.about-top .split h2 { font-size: clamp(1.625rem, 2.6vw, 2.125rem); }
.phero h1 { max-width: 18ch; font-size: clamp(2.5rem, 5vw, 3.625rem); }
.phero .lede { max-width: 46ch; }

/* ============================================================
   Panels: flat white boxes with a hairline, nothing else
   ============================================================ */
.box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 24px;
  transition: border-color 300ms var(--ease);
}
.box-lg { padding: clamp(24px, 3vw, 32px); }
.box:hover { border-color: var(--line-strong); }
.box h3 { margin-bottom: 10px; }
.box p { color: var(--stone); }

/* Nested surface inside a box, the Cursor-panel move */
.inset {
  background: var(--tint);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-sm);
  padding: 6px 16px;
}
.inset ul { list-style: none; margin: 0; padding: 0; }
.inset li {
  display: flex; gap: 12px;
  padding: 12px 0; border-top: 1px solid var(--line-soft);
  font-size: 15px; color: var(--ink);
}
.inset li:first-child { border-top: 0; }
.inset li i {
  flex: 0 0 22px;
  font-style: normal; color: var(--pebble); font-size: 13px; padding-top: 2px;
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 980px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* Offering box */
.offer { display: flex; flex-direction: column; }
.offer h3 { font-size: clamp(1.5rem, 2.2vw, 1.75rem); letter-spacing: -0.03em; margin: 0 0 12px; }
.offer > p { margin-bottom: 26px; font-size: 17px; line-height: 1.5; }
.offer .inset { margin-bottom: 24px; }
.offer .offer-cta { margin-top: auto; }

.tag {
  display: inline-flex; align-items: center;
  padding: 6px 12px; border-radius: var(--r-sm);
  background: var(--tint); border: 1px solid var(--line-soft);
  font-size: 14px; letter-spacing: 0; color: var(--stone);
  margin-bottom: 20px; width: fit-content;
}

/* Numbered rows */
.rows { border-top: 1px solid var(--line); }
.row {
  display: grid; grid-template-columns: 48px minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(16px, 3vw, 40px);
  padding-block: clamp(24px, 3vw, 34px);
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.row .idx { font-size: 14px; letter-spacing: 0; color: var(--pebble); padding-top: 5px; }
.row h3 { font-size: 1.5rem; }
.row p { color: var(--stone); }
@media (max-width: 840px) {
  .row { grid-template-columns: 32px 1fr; }
  .row .rowbody { grid-column: 2; }
}

/* Hairline list */
.hlist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.hlist li {
  padding: 15px 0; border-bottom: 1px solid var(--line);
  font-size: 16px; display: flex; gap: 20px; align-items: baseline;
}
.hlist li .k { font-size: 14px; letter-spacing: 0; color: var(--pebble); flex: 0 0 108px; }
.hlist li a { border-bottom: 1px solid var(--line); }
.hlist li a:hover { border-color: var(--ink); }

/* Tiers */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
@media (max-width: 980px) { .tiers { grid-template-columns: 1fr; } }
.tier { display: flex; flex-direction: column; }
.tier .tier-n { font-size: 14px; letter-spacing: 0; color: var(--pebble); margin-bottom: 16px; display: block; }
.tier h3 { font-size: 1.375rem; letter-spacing: -0.025em; margin-bottom: 10px; }
.tier .tier-for { font-size: 15px; color: var(--stone); margin-bottom: 20px; }
.tier .inset { margin-bottom: 22px; }
.tier .tier-foot { margin-top: auto; font-size: 14px; letter-spacing: 0; color: var(--pebble); }
.tier-key { background: var(--ink); border-color: var(--ink); }
.tier-key h3, .tier-key .tier-for { color: var(--linen); }
.tier-key .tier-for { opacity: 0.72; }
.tier-key .tier-n, .tier-key .tier-foot { color: rgba(247, 245, 243, 0.55); }
.tier-key .inset { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.12); }
.tier-key .inset li { color: var(--linen); border-color: rgba(255, 255, 255, 0.12); }
.tier-key .inset li i { color: rgba(247, 245, 243, 0.5); }
.tier-key:hover { border-color: var(--ink); }

/* Quotes */
.quote {
  font-size: clamp(1.5rem, 2.8vw, 2.125rem);
  line-height: 1.12; letter-spacing: -0.04em;
  color: var(--ink); margin: 0; font-weight: 400;
}
.quote-sm { font-size: clamp(1.125rem, 1.6vw, 1.3rem); line-height: 1.28; letter-spacing: -0.02em; }
.attr { margin-top: 24px; }
.attr .n { font-size: 15px; font-weight: 500; }
.attr .r { font-size: 14px; letter-spacing: 0; color: var(--stone); margin-top: 3px; }

/* Testimonial carousel */
.tcarousel { position: relative; }
.tcarousel .quote { font-size: clamp(1.3rem, 2.1vw, 1.65rem); line-height: 1.24; }
.tslides {
  position: relative;
  transition: height 620ms var(--ease);
}
/* Once JS has locked the stage to the tallest quote, every slide fills that
   height and centres inside it, so the section never resizes between quotes. */
.tcarousel.locked .tslide {
  bottom: 0;
  display: flex; flex-direction: column; justify-content: center;
}
.tslide {
  position: absolute; top: 0; left: 0; right: 0;
  margin: 0;
  opacity: 0;
  transform: translateY(14px);
  filter: blur(3px);
  transition: opacity 760ms var(--ease), transform 760ms var(--ease), filter 760ms var(--ease);
  pointer-events: none;
}
.tslide.on { opacity: 1; transform: none; filter: blur(0); pointer-events: auto; }
.tdots { display: flex; gap: 10px; margin-top: 36px; }
.tdot {
  position: relative; width: 40px; height: 2px;
  background: var(--line); border: 0; padding: 0; cursor: pointer;
  overflow: hidden;
}
.tdot::after {
  content: ""; position: absolute; inset: 0;
  background: var(--ink); transform: scaleX(0); transform-origin: left center;
}
.tdot.on::after { animation: tdot-fill var(--dur, 9s) linear forwards; }
.tcarousel.paused .tdot.on::after { animation-play-state: paused; }
@keyframes tdot-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Testimonial grid */
.tcols { columns: 3 300px; column-gap: 24px; }
.tcard {
  break-inside: avoid; margin-bottom: 24px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r); padding: 24px;
  transition: border-color 300ms var(--ease);
}
.tcard:hover { border-color: var(--line-strong); }
.tcard blockquote { margin: 0 0 20px; font-size: 15px; line-height: 1.5; color: var(--ink); }
.tcard .who { display: flex; align-items: center; gap: 16px; }
.who .who-text { min-width: 0; }
.who .logo {
  margin-left: auto;
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: flex-end;
  width: 112px;
}
.who .logo img {
  width: calc(104px * var(--s, 1)); max-width: 100%; height: auto;
  object-fit: contain; opacity: 0.95;
}
.tcard .n { font-size: 15px; font-weight: 500; line-height: 1.3; }
.tcard .r { font-size: 13px; letter-spacing: 0; color: var(--pebble); margin-top: 1px; line-height: 1.35; }

/* Client marks: a continuous band, edges faded */
/* Sits directly under the hero, so it runs tighter than a standard section
   to keep both rows of marks above the fold. */
.clients-band { padding-block: clamp(20px, 2.2vw, 28px) clamp(34px, 4vw, 52px); }
.clients-band .sec-head-center { margin-bottom: clamp(14px, 1.6vw, 18px); }
.marquee-rows { display: grid; gap: 0; }
.marquee {
  position: relative;
  overflow: hidden;
  /* A long dissolve at both ends so marks melt away rather than clip */
  -webkit-mask-image: linear-gradient(to right,
    transparent 0%, rgba(0,0,0,0.06) 7%, rgba(0,0,0,0.45) 17%, #000 30%,
    #000 70%, rgba(0,0,0,0.45) 83%, rgba(0,0,0,0.06) 93%, transparent 100%);
  mask-image: linear-gradient(to right,
    transparent 0%, rgba(0,0,0,0.06) 7%, rgba(0,0,0,0.45) 17%, #000 30%,
    #000 70%, rgba(0,0,0,0.45) 83%, rgba(0,0,0,0.06) 93%, transparent 100%);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-slide 64s linear infinite;
}
/* Second row runs the other way */
.marquee-track.rev { animation-direction: reverse; animation-duration: 72s; }
.marquee-rows:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee-slide {
  from { transform: translateX(0); }
  to { transform: translateX(-33.3333%); }
}
.m-item {
  flex: 0 0 auto;
  width: 146px; height: 74px;
  display: flex; align-items: center; justify-content: center;
}
.m-item img {
  width: calc(100px * var(--s, 1));
  max-width: 100%; height: auto;
  mix-blend-mode: multiply;
  filter: grayscale(1);
  opacity: 0.46;
  transition: opacity 300ms var(--ease);
}
.m-item:hover img { opacity: 0.92; }
@media (max-width: 700px) {
  .m-item { width: 116px; height: 64px; }
  .m-item img { width: calc(82px * var(--s, 1)); }
}

/* Static logo wall (testimonials page) */
.logo-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 4px 20px;
  align-items: center;
}
.logo-wall .cell { height: 72px; display: flex; align-items: center; justify-content: center; }
.logo-wall img {
  width: calc(96px * var(--s, 1)); max-width: 100%; height: auto;
  filter: grayscale(1); opacity: 0.5;
  transition: opacity 260ms var(--ease);
}
.logo-wall .cell:hover img { opacity: 0.92; }
.logo-wall .more {
  height: 72px; display: flex; align-items: center; justify-content: center;
  font-size: 15px; color: var(--pebble);
}

/* Name list */
.namelist { display: flex; flex-wrap: wrap; gap: 8px; }
.namelist span {
  font-size: 14px; letter-spacing: 0; color: var(--stone);
  background: var(--paper); border: 1px solid var(--line-soft);
  border-radius: var(--r-sm); padding: 7px 14px;
  transition: border-color 200ms var(--ease), color 200ms var(--ease);
}
.namelist span:hover { color: var(--ink); border-color: var(--line-strong); }
.namelist .more { background: transparent; border-color: transparent; color: var(--pebble); }

/* Split */
.split {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(28px, 5vw, 72px); align-items: start;
}
.split-even {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px); align-items: start;
}
@media (max-width: 940px) { .split, .split-even { grid-template-columns: 1fr; gap: 28px; } }
.sticky { position: sticky; top: 108px; }
@media (max-width: 940px) { .sticky { position: static; } }

.sec-head { margin-bottom: clamp(28px, 3.4vw, 40px); }
.sec-head-center { text-align: center; margin-bottom: clamp(18px, 2.2vw, 26px); }
.sec-head-center h2 {
  max-width: 30ch; margin-inline: auto;
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  line-height: 1.3; letter-spacing: -0.011em;
  font-weight: 500; color: var(--stone);
}
.sec-head h2 { max-width: 20ch; }
.sec-head .lede { margin-top: 16px; max-width: 44ch; }

/* Portrait */
.portrait { border-radius: var(--r); overflow: hidden; background: var(--paper); max-width: 340px; border: 1px solid var(--line); }
.portrait img { width: 100%; height: auto; aspect-ratio: 1 / 1.16; object-fit: cover; object-position: 50% 8%; }
.portrait-cap { margin-top: 14px; font-size: 14px; letter-spacing: 0; color: var(--pebble); }
.portrait-cap b { display: block; font-weight: 500; color: var(--ink); }

/* Form */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-size: 14px; font-weight: 500; letter-spacing: 0; margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; background: var(--tint);
  border: 1px solid var(--line-soft); border-radius: var(--r);
  padding: 14px 16px; font-family: var(--sans); font-size: 16px;
  letter-spacing: -0.011em; color: var(--ink);
  transition: border-color 200ms var(--ease), background-color 200ms var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--pebble); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: var(--paper); }
.field textarea { resize: vertical; min-height: 120px; }

/* ============================================================
   Footer
   ============================================================ */
/* Closing call to action sits on the linen, the footer is its own surface */
.cta { background: var(--linen); border-top: 1px solid var(--line-soft); }
/* Used where the section above the CTA is already linen, so the page keeps alternating. */
.cta.cta-paper { background: var(--paper); }
.cta-inner {
  padding-block: clamp(72px, 9vw, 120px);
  display: grid; justify-items: center; text-align: center;
}
.cta-inner h2 { max-width: 18ch; }
.cta-inner .lede { margin-top: 18px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 34px; }
.footer { background: var(--shade); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-block: 44px; }
@media (max-width: 740px) { .footer-grid { grid-template-columns: 1fr; gap: 30px; } }
.footer-grid img { height: 23px; width: 176px; max-width: none; margin-bottom: 16px; }
.footer h4 { font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--pebble); margin: 0 0 12px; }
.footer p, .footer nav a { font-size: 15px; color: var(--stone); }
.footer nav a { display: block; padding: 6px 0; transition: color 200ms var(--ease); }
.footer nav a:hover { color: var(--ink); }
.footer-base {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding-block: 22px 36px; border-top: 1px solid var(--line-soft);
  font-size: 14px; letter-spacing: 0; color: var(--pebble);
}

/* ============================================================
   Motion: the type does the work
   ============================================================ */

/* Word-by-word reveal on headings */
.reveal-words .w {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.42em);
  filter: blur(5px);
  transition: opacity 620ms var(--ease), transform 620ms var(--ease), filter 620ms var(--ease);
  transition-delay: var(--wd, 0ms);
  will-change: opacity, transform;
}
.reveal-words.in .w { opacity: 1; transform: translateY(0); filter: blur(0); }

/* Everything else: a quiet lift */
.fade {
  opacity: 0; transform: translateY(18px);
  transition: opacity 720ms var(--ease), transform 720ms var(--ease);
  transition-delay: var(--d, 0ms);
}
.fade.in { opacity: 1; transform: none; }

/* Panels rise and settle rather than just fading */
.box.fade, .tcard.fade {
  opacity: 0;
  transform: translateY(26px) scale(0.985);
  filter: blur(4px);
  transition: opacity 760ms var(--ease), transform 760ms var(--ease), filter 760ms var(--ease);
  transition-delay: var(--d, 0ms);
}
.box.fade.in, .tcard.fade.in { opacity: 1; transform: none; filter: blur(0); }

@media (prefers-reduced-motion: reduce) {
  .fade, .reveal-words .w {
    opacity: 1 !important; transform: none !important;
    filter: none !important; transition: none !important;
  }
  .logo-cell img { transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Interactive book
   ============================================================ */
.book3d {
  --bw: 268px; --bh: 404px; --bd: 36px;
  perspective: 2000px;
  perspective-origin: 50% 45%;
  width: var(--bw); height: var(--bh);
  position: relative;
  touch-action: none;
  user-select: none;
  margin-inline: auto;
}
.book3d-stage {
  width: 100%; height: 100%;
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
  cursor: grab;
  transform: rotateX(-4deg) rotateY(-12deg);
}
.book3d-stage:active { cursor: grabbing; }
.book3d-face { position: absolute; backface-visibility: hidden; overflow: hidden; }
.book3d-face img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }

.bf-front {
  width: var(--bw); height: var(--bh); left: 0; top: 0;
  transform: translateZ(calc(var(--bd) / 2));
  border-radius: 2px 4px 4px 2px;
  box-shadow: inset 1px 0 0 rgba(255,255,255,0.18), inset -1px 0 0 rgba(0,0,0,0.18),
              inset 0 1px 0 rgba(255,255,255,0.12), inset 0 -1px 0 rgba(0,0,0,0.18);
}
.bf-front::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 18px; z-index: 2;
  background: linear-gradient(90deg, rgba(0,0,0,0.22), rgba(0,0,0,0));
}
.bf-back {
  width: var(--bw); height: var(--bh); left: 0; top: 0;
  transform: rotateY(180deg) translateZ(calc(var(--bd) / 2));
  border-radius: 4px 2px 2px 4px;
}
.bf-back::before {
  content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 18px; z-index: 2;
  background: linear-gradient(-90deg, rgba(0,0,0,0.22), rgba(0,0,0,0));
}
.bf-spine {
  width: var(--bd); height: var(--bh);
  left: calc((var(--bw) - var(--bd)) / 2); top: 0;
  transform: rotateY(-90deg) translateZ(calc(var(--bw) / 2));
  box-shadow: inset 2px 0 4px rgba(0,0,0,0.32), inset -2px 0 4px rgba(0,0,0,0.32);
}
.bf-spine img { object-fit: fill; }
.bf-edge {
  width: calc(var(--bd) - 4px); height: calc(var(--bh) - 4px);
  left: calc((var(--bw) - var(--bd) + 4px) / 2); top: 2px;
  transform: rotateY(90deg) translateZ(calc(var(--bw) / 2));
}
.bf-top, .bf-bot {
  width: calc(var(--bw) - 4px); height: calc(var(--bd) - 4px);
  left: 2px; top: calc((var(--bh) - var(--bd) + 4px) / 2);
}
.bf-top { transform: rotateX(90deg) translateZ(calc(var(--bh) / 2)); }
.bf-bot { transform: rotateX(-90deg) translateZ(calc(var(--bh) / 2)); }
.pages {
  background: repeating-linear-gradient(to right, #faf6ed 0 1px, #e8e0cf 1px 2px), #faf6ed;
  box-shadow: inset 0 0 8px rgba(0,0,0,0.12);
}
.pages-h {
  background: repeating-linear-gradient(to top, #faf6ed 0 1px, #e8e0cf 1px 2px), #faf6ed;
  box-shadow: inset 0 0 8px rgba(0,0,0,0.12);
}
.book3d-shadow {
  position: absolute; left: 50%; bottom: -30px;
  width: calc(var(--bw) * 0.95); height: 26px;
  margin-left: calc(var(--bw) * -0.475);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(13,13,13,0.3) 0%, rgba(13,13,13,0) 70%);
  filter: blur(14px);
  pointer-events: none;
}
@media (max-width: 900px) { .book3d { --bw: 224px; --bh: 338px; --bd: 30px; } }

/* Book section layout */
.book-split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
@media (max-width: 900px) {
  .book-split { grid-template-columns: 1fr; gap: 56px; }
  .book-stage-col { order: -1; }
}
.book-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.book-meta { margin-top: 26px; font-size: 14px; letter-spacing: 0; color: var(--pebble); }

/* ============================================================
   Contact modal
   ============================================================ */
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  padding: 24px;
  opacity: 0; pointer-events: none;
  transition: opacity 300ms var(--ease);
}
.modal.open { opacity: 1; pointer-events: auto; }
.modal-scrim {
  position: absolute; inset: 0;
  background: rgba(13, 13, 13, 0.42);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.modal-card {
  position: relative;
  width: min(520px, 100%);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(32px, 4vw, 44px);
  text-align: center;
  transform: translateY(20px) scale(0.97);
  transition: transform 460ms var(--ease);
}
.modal.open .modal-card { transform: none; }
.modal-mark { width: 44px; height: 44px; margin: 0 auto 22px; }
.modal-card h3 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  letter-spacing: -0.04em; line-height: 1.05; margin-bottom: 12px;
}
.modal-card > p { color: var(--stone); margin: 0 auto 30px; max-width: 34ch; }
.modal-rows { display: grid; gap: 10px; text-align: left; }
.modal-item {
  display: flex; align-items: center; gap: 14px;
  width: 100%;
  padding: 16px 18px;
  background: var(--tint);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  font-family: var(--sans); font-size: 16px; color: var(--ink);
  cursor: pointer; text-align: left;
  transition: border-color 220ms var(--ease), background-color 220ms var(--ease);
}
.modal-item:hover { border-color: var(--line-strong); background: var(--paper); }
.modal-item .k {
  font-size: 13px; letter-spacing: 0; color: var(--pebble);
  flex: 0 0 52px;
}
.modal-item .v { flex: 1 1 auto; font-weight: 500; }
.modal-item .act {
  font-size: 13px; letter-spacing: 0; color: var(--pebble);
  display: inline-flex; align-items: center; gap: 6px;
}
.modal-item .act svg { width: 13px; height: 13px; }
.modal-item.copied { border-color: var(--ink); }
.modal-item.copied .act { color: var(--ink); }
.modal-note { margin-top: 28px; font-size: 14px; letter-spacing: 0; color: var(--pebble); }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 34px; height: 34px; border-radius: 9px;
  background: none; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--pebble);
  transition: background-color 200ms var(--ease), color 200ms var(--ease);
}
.modal-close:hover { background: var(--tint); color: var(--ink); }
.modal-close svg { width: 15px; height: 15px; }
body.modal-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .tslide, .modal, .modal-card { transition: none !important; }
  .tdot.on::after { animation: none !important; transform: scaleX(1); }
}
