/* ==========================================================================
   This is H — stylesheet
   Design system: coral/cream/ink, editorial sans display + body,
   restrained script accent used only in the logo lockup.
   ========================================================================== */

:root {
  /* Brand colour. --coral is the bright logo coral: reserved for large
     text, decorative fills and non-text UI (it doesn't clear 4.5:1 with
     white/cream text at normal sizes). Interactive text on a coral fill
     — buttons, links — uses --coral-deep, which does. */
  --coral: #e8543e;
  --coral-deep: #c43f2b;
  --coral-hover: #a8351f;
  --coral-tint: #fbe3dc;

  /* Secondary / neutral */
  --cream: #f7e4d8;
  --cream-soft: #fbf3ec;
  --paper: #ffffff;
  --stone: #f6f4f1;
  --stone-line: #eae6e0;

  /* Ink */
  --ink: #1a1613;
  --ink-soft: #4c4640;
  --ink-faint: #7a736b;

  --line: rgba(26, 22, 19, 0.12);
  --focus: #1a1613;

  /* Type */
  --font-display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-script: "Caveat", "Segoe Script", cursive;

  /* Layout */
  --max: 1180px;
  --max-narrow: 760px;
  --gutter: clamp(24px, 5vw, 64px);
  --section-pad: clamp(72px, 10vw, 140px);
  --radius-sm: 4px;
  --radius-md: 10px;

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

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4,
p,
figure {
  margin: 0;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Accessibility helpers ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--cream-soft);
  padding: 14px 20px;
  z-index: 1000;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  left: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

/* ---------- Layout helpers ---------- */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.wrap--narrow {
  max-width: var(--max-narrow);
}

section {
  padding: var(--section-pad) 0;
}

section[id] {
  scroll-margin-top: 84px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--coral-deep);
  margin-bottom: 20px;
}

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}

.section-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--ink);
}

h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(19px, 2vw, 22px);
  line-height: 1.3;
  color: var(--ink);
}

.lede {
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.7;
  color: var(--ink-soft);
  margin-top: 18px;
}

.section-alt {
  background: var(--stone);
}

.section-ink {
  background: var(--ink);
  color: var(--cream-soft);
}

.section-ink h2,
.section-ink h3 {
  color: var(--paper);
}

.rule {
  border: none;
  border-top: 1px solid var(--stone-line);
  margin: 0;
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  padding: 15px 28px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
  min-height: 48px;
}

.btn-primary {
  background: var(--coral-deep);
  color: var(--cream-soft);
}

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

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}

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

.section-ink .btn-ghost {
  color: var(--cream-soft);
  border-color: rgba(251, 243, 236, 0.35);
}

.section-ink .btn-ghost:hover {
  border-color: var(--cream-soft);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--line);
  transition: text-decoration-color 0.2s var(--ease);
}

.text-link:hover {
  text-decoration-color: currentColor;
}

/* ---------- Logo lockup ---------- */
.logo-mark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.05em;
  background: var(--coral);
  color: var(--cream-soft);
  border-radius: var(--radius-sm);
  padding: 0.28em 0.5em 0.22em 0.55em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.logo-mark__script {
  font-family: var(--font-script);
  font-weight: 500;
  font-size: 0.62em;
  transform: translateY(-0.05em);
}

.logo-mark__h {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15em;
  text-transform: uppercase;
}

.logo-mark--nav {
  font-size: 19px;
}

.logo-mark--hero {
  font-size: clamp(30px, 5vw, 44px);
}

.logo-mark--footer {
  font-size: 19px;
}

/* ---------- Header / nav ---------- */
/* The translucent blur lives on a ::before rather than directly on
   .site-header — backdrop-filter establishes a containing block for
   position:fixed descendants, which would otherwise trap the fixed
   mobile nav panel inside the header's own (short) box. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.site-header.is-scrolled {
  border-bottom-color: var(--stone-line);
  box-shadow: 0 8px 24px -20px rgba(26, 22, 19, 0.35);
}

.site-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-nav-panel {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-primary {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-primary a {
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
}

.nav-primary a:hover {
  color: var(--ink);
}

.nav-primary a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 1.5px;
  background: var(--coral);
  transition: right 0.25s var(--ease);
}

.nav-primary a:hover::after {
  right: 0;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-actions .text-link {
  font-size: 14.5px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  padding-top: clamp(64px, 10vw, 96px);
  padding-bottom: clamp(72px, 10vw, 120px);
}

.hero__mark {
  margin-bottom: 40px;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  max-width: 16ch;
  color: var(--ink);
}

.hero__body {
  margin-top: 28px;
  max-width: 620px;
  display: grid;
  gap: 16px;
}

.hero__body p {
  font-size: clamp(17px, 1.7vw, 19px);
  line-height: 1.7;
  color: var(--ink-soft);
}

.hero__support {
  margin-top: 8px;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--ink);
  border-top: 1px solid var(--stone-line);
  padding-top: 20px;
  max-width: 520px;
}

.hero__actions {
  margin-top: 40px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
}

/* ---------- Reveal on scroll ----------
   Content is fully visible by default so it never depends on JavaScript.
   Only once main.js confirms it's running (adding .js-reveal to <html>)
   do sections start hidden, ready to be faded in by the IntersectionObserver. */
.reveal {
  opacity: 1;
  transform: none;
}

html.js-reveal .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

html.js-reveal .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero__mark,
.hero h1,
.hero__body,
.hero__support,
.hero__actions {
  opacity: 0;
  animation: fade-up 0.8s var(--ease) forwards;
}

.hero h1 {
  animation-delay: 0.08s;
}
.hero__body {
  animation-delay: 0.18s;
}
.hero__support {
  animation-delay: 0.26s;
}
.hero__actions {
  animation-delay: 0.34s;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__mark,
  .hero h1,
  .hero__body,
  .hero__support,
  .hero__actions {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Problems accordion ---------- */
.problems-list {
  border-top: 1px solid var(--stone-line);
}

.problem {
  border-bottom: 1px solid var(--stone-line);
}

.problem > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 4px;
  font-family: var(--font-display);
  font-size: clamp(17px, 1.9vw, 21px);
  font-weight: 500;
  color: var(--ink);
}

.problem > summary::-webkit-details-marker {
  display: none;
}

.problem > summary::marker {
  content: "";
}

.problem__icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  position: relative;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.problem__icon::before,
.problem__icon::after {
  content: "";
  position: absolute;
  background: var(--ink);
  transition: transform 0.25s var(--ease), background-color 0.2s var(--ease);
}

.problem__icon::before {
  left: 6px;
  right: 6px;
  top: 50%;
  height: 1.5px;
  transform: translateY(-50%);
}

.problem__icon::after {
  top: 6px;
  bottom: 6px;
  left: 50%;
  width: 1.5px;
  transform: translateX(-50%);
}

.problem[open] > summary .problem__icon::after {
  transform: translateX(-50%) rotate(90deg);
  opacity: 0;
}

.problem[open] > summary .problem__icon {
  border-color: var(--coral);
  background: var(--coral);
}

.problem[open] > summary .problem__icon::before,
.problem[open] > summary .problem__icon::after {
  background: var(--cream-soft);
}

.problem:hover > summary {
  color: var(--coral-deep);
}

.problem__answer {
  padding: 0 4px 30px;
  max-width: 62ch;
}

.problem__answer p {
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--ink-soft);
}

/* ---------- Offer cards ---------- */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--stone-line);
  border: 1px solid var(--stone-line);
}

.offer-card {
  background: var(--paper);
  padding: clamp(32px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.offer-card__num {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--coral-deep);
}

.offer-card p {
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.7;
}

.offer-card ul {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

.offer-card li {
  font-size: 15px;
  color: var(--ink-soft);
  padding-left: 18px;
  position: relative;
  line-height: 1.6;
}

.offer-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 1.5px;
  background: var(--coral);
}

.offer-card--callout {
  background: var(--ink);
  color: var(--cream-soft);
}

.offer-card--callout .offer-card__num {
  color: var(--cream);
}

.offer-card--callout p {
  color: rgba(251, 243, 236, 0.82);
}

.offer-card--callout .pull {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 500;
  line-height: 1.35;
  color: var(--paper);
  margin: 4px 0 8px;
}

/* ---------- Who we help ---------- */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 12px;
}

.audience-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  background: var(--paper);
}

.impact-list {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.impact-list li {
  font-size: 15px;
  color: var(--ink-soft);
  padding: 8px 4px;
}

.impact-list li:not(:last-child)::after {
  content: "·";
  margin-left: 14px;
  color: var(--coral-deep);
}

/* ---------- Why H word list ---------- */
.h-words {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
}

.h-words li {
  font-family: var(--font-display);
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 500;
  color: var(--ink);
  padding: 10px 4px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.h-words li:hover {
  border-color: var(--coral);
  color: var(--coral-deep);
}

/* ---------- Process ---------- */
.process {
  position: relative;
  margin-top: 24px;
}

.process-step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  padding: 32px 0;
  border-top: 1px solid var(--stone-line);
}

.process-step:last-child {
  border-bottom: 1px solid var(--stone-line);
}

.process-step__num {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--coral-deep);
  padding-top: 4px;
}

.process-step__body h3 {
  margin-bottom: 8px;
}

.process-step__body p {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.7;
  max-width: 46ch;
}

/* ---------- Principles ---------- */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 32px;
  margin-top: 8px;
}

.principle__icon {
  width: 40px;
  height: 40px;
  margin-bottom: 20px;
  color: var(--coral);
}

.principle__tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral-deep);
  margin-bottom: 10px;
}

.principle h3 {
  margin-bottom: 10px;
}

.principle p {
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.7;
}

.pull-quote {
  margin-top: 72px;
  padding-top: 56px;
  border-top: 1px solid var(--stone-line);
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 500;
  line-height: 1.4;
  max-width: 780px;
  color: var(--ink);
}

/* ---------- Philosophy ---------- */
.philosophy-list {
  margin: 28px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 8px;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.6vw, 30px);
  font-weight: 500;
}

.philosophy-list li {
  color: var(--ink-soft);
}

.philosophy-list li::after {
  content: ",";
}

.philosophy-list li:last-child::after {
  content: ".";
}

/* ---------- Working together ---------- */
.together-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 40px;
  margin-top: 8px;
}

.together-grid p {
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--ink-soft);
  padding: 20px 0 20px 24px;
  border-left: 2px solid var(--coral);
}

/* ---------- About ---------- */
.about-badges {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.about-badges li {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 9px 16px;
}

.about-founded {
  margin-top: 32px;
  font-size: 14.5px;
  color: var(--ink-faint);
}

/* ---------- Contact ---------- */
.contact {
  text-align: center;
}

.contact__inner {
  max-width: 620px;
  margin: 0 auto;
}

.contact .lede {
  margin-left: auto;
  margin-right: auto;
}

.contact__actions {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--cream-soft);
  padding: 72px 0 32px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 48px;
}

.footer-brand {
  max-width: 380px;
}

.footer-brand p {
  margin-top: 18px;
  color: rgba(251, 243, 236, 0.72);
  font-size: 15px;
  line-height: 1.7;
}

.footer-contact {
  display: grid;
  gap: 10px;
  align-content: start;
}

.footer-contact a {
  font-size: 15px;
  text-decoration: none;
  color: var(--cream-soft);
}

.footer-contact a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(251, 243, 236, 0.14);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-legal {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-legal a {
  font-size: 13.5px;
  text-decoration: none;
  color: rgba(251, 243, 236, 0.62);
}

.footer-legal a:hover {
  color: var(--cream-soft);
}

.footer-note {
  font-size: 13.5px;
  color: rgba(251, 243, 236, 0.62);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .offer-grid,
  .audience-grid,
  .together-grid {
    grid-template-columns: 1fr;
  }

  .principles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 780px) {
  .nav-primary,
  .nav-actions .btn-primary {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-actions {
    gap: 8px;
  }

  .site-nav-panel {
    position: fixed;
    inset: 0;
    top: 68px;
    background: var(--paper);
    padding: 32px var(--gutter);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    transform: translateX(100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.3s var(--ease), visibility 0s linear 0.3s;
    z-index: 99;
  }

  .site-nav-panel.is-open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
    transition: transform 0.3s var(--ease), visibility 0s linear 0s;
  }

  .site-nav-panel .nav-primary {
    display: flex;
    flex-direction: column;
    gap: 22px;
  }

  .site-nav-panel a {
    font-size: 22px;
    font-family: var(--font-display);
    font-weight: 500;
  }

  .site-nav-panel .nav-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-top: 4px;
  }

  .site-nav-panel .btn-primary {
    display: inline-flex;
  }

  .principles-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .audience-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-top {
    flex-direction: column;
  }

  .together-grid p {
    padding: 16px 0 16px 18px;
  }
}
