/* JHJ Ventures
   ------------------------------------------------------------------ */

/* Fonts ------------------------------------------------------------ */
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/schibsted-grotesk-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: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/schibsted-grotesk-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;
}

/* Tokens ----------------------------------------------------------- */
:root {
  --paper: #f5f6f8;
  --ink: #12151c;
  --slate: #585e6c;
  --body: #3a3f4b;
  --body-strong: #2a2e38;
  --tekhelet: #2a45b0;
  --tekhelet-deep: #213790;
  --night: #111b3f;
  --stone: #e6e9f0;
  --rule: #c6ccda;
  --mist: #aeb9de;
  --on-night: #d5dbf0;
  --night-rule: rgba(255, 255, 255, 0.16);
  --stone-rule: rgba(18, 21, 28, 0.14);

  --gutter: 24px;
  --margin: clamp(20px, 5.6vw, 80px);
  --header-h: clamp(68px, 8vw, 96px);

  /* Type scale */
  --t-hero: clamp(2.5rem, 7.4vw, 6rem);
  --t-prompt: clamp(2.5rem, 8vw, 6.5rem);
  --t-section: clamp(2rem, 4.6vw, 3.75rem);
  --t-statement: clamp(1.625rem, 3.4vw, 2.875rem);
  --t-step: clamp(1.375rem, 2.3vw, 1.875rem);
  --t-lead: clamp(1.0625rem, 1.35vw, 1.3125rem);
  --t-lead-sm: clamp(1.0625rem, 1.2vw, 1.1875rem);
  --t-body: clamp(1rem, 1.05vw, 1.0625rem);
  --t-panel-item: clamp(1.1875rem, 1.9vw, 1.5rem);

  --ease: cubic-bezier(0.2, 0.75, 0.1, 1);
}

/* Reset ------------------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Schibsted Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: var(--t-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
  padding: 0;
}
ul,
ol {
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
}
[hidden] {
  display: none !important;
}
a {
  color: inherit;
}
button {
  font: inherit;
  color: inherit;
}

:where(a, button, input, textarea, select, summary):focus-visible {
  outline: 2px solid var(--tekhelet);
  outline-offset: 4px;
  border-radius: 4px;
}
.on-night :where(a, button):focus-visible {
  outline-color: #fff;
}

.skip-link {
  position: absolute;
  left: var(--margin);
  top: 12px;
  z-index: 200;
  transform: translateY(-160%);
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  transition: transform 0.2s var(--ease);
}
.skip-link:focus-visible {
  transform: none;
}

/* Layout ----------------------------------------------------------- */
.shell {
  padding-inline: var(--margin);
}
.grid12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
}

/* Side heading section: heading in cols 1-3, content from col 5 */
.side-section {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  border-top: 1px solid var(--rule);
  padding-top: clamp(32px, 4.4vw, 56px);
}
.side-section > .side-heading {
  grid-column: 1 / span 3;
  font-size: clamp(1rem, 1.35vw, 1.25rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.side-section > .side-body {
  grid-column: 5 / span 8;
}

/* Type ------------------------------------------------------------- */
.eyebrow {
  font-size: clamp(1rem, 1.25vw, 1.125rem);
  color: var(--slate);
  letter-spacing: 0;
}
.on-night .eyebrow {
  color: var(--mist);
}
.lead {
  font-size: var(--t-lead);
  line-height: 1.55;
  color: var(--body);
}
.measure {
  max-width: 34em;
}

/* Buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 30px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: clamp(1rem, 1.1vw, 1.0625rem);
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn:hover {
  transform: translateY(-1px);
}
.btn--primary {
  background: var(--tekhelet);
  color: #fff;
}
.btn--primary:hover {
  background: var(--tekhelet-deep);
}
.btn--secondary {
  background: var(--stone);
  color: var(--ink);
}
.btn--secondary:hover {
  background: #d9dee9;
}
.btn--light {
  background: #fff;
  color: var(--night);
}
.btn--light:hover {
  background: var(--stone);
}
.btn--outline {
  min-height: 44px;
  padding: 0 22px;
  font-size: 0.9375rem;
  border-color: var(--ink);
  color: var(--ink);
}
.btn--outline:hover {
  background: var(--ink);
  color: var(--paper);
}
.btn[disabled] {
  opacity: 0.6;
  pointer-events: none;
}

.ul {
  display: inline-block;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  font-weight: 500;
  transition: text-decoration-thickness 0.2s var(--ease);
  padding-block: 10px;
}
.ul:hover {
  text-decoration-thickness: 2px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
}

/* Header ----------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: var(--margin);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(245, 246, 248, 0.88);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom-color: var(--rule);
}
.wordmark {
  text-decoration: none;
  font-size: clamp(1.1875rem, 1.6vw, 1.375rem);
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.wordmark b {
  font-weight: 700;
}
.wordmark span {
  font-weight: 400;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.8vw, 40px);
  font-size: 1rem;
  font-weight: 500;
}
.nav a.navlink {
  text-decoration: none;
  opacity: 0.72;
  padding-block: 12px;
  transition: opacity 0.2s var(--ease);
}
.nav a.navlink:hover,
.nav a.navlink[aria-current="page"] {
  opacity: 1;
}
.nav a.navlink[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  cursor: pointer;
  margin-right: -10px;
}
.nav-toggle span {
  position: relative;
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.28s var(--ease), background-color 0.2s var(--ease);
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.28s var(--ease);
}
.nav-toggle span::before {
  top: -7px;
}
.nav-toggle span::after {
  top: 7px;
}
.nav-toggle[aria-expanded="true"] span {
  background: transparent;
}
.nav-toggle[aria-expanded="true"] span::before {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span::after {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 8px var(--margin) calc(32px + env(safe-area-inset-bottom, 0px));
    background: var(--paper);
    font-size: 1.375rem;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.26s var(--ease), transform 0.26s var(--ease),
      visibility 0.26s;
  }
  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav a.navlink {
    opacity: 1;
    padding: 22px 0;
    border-bottom: 1px solid var(--rule);
  }
  .nav .btn--outline {
    margin-top: 28px;
    align-self: flex-start;
    min-height: 56px;
    padding: 0 30px;
    font-size: 1.0625rem;
  }
  body.nav-open {
    overflow: hidden;
  }
  .site-header.is-nav-open {
    background: var(--paper);
    border-bottom-color: transparent;
  }
}

/* Hero ------------------------------------------------------------- */
.hero {
  padding: clamp(56px, 9.4vw, 136px) var(--margin) clamp(64px, 8.9vw, 128px);
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 3vw, 44px);
}
.hero h1 {
  font-size: var(--t-hero);
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 600;
}
.hero-support {
  grid-column: 7 / span 5;
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 2.5vw, 36px);
  margin-top: clamp(0px, 1.9vw, 28px);
}
.hero-support p {
  font-size: var(--t-lead);
  line-height: 1.5;
  color: var(--body-strong);
}

/* Typing reveal: the full text is in the DOM, characters are revealed */
.type-line {
  display: block;
}
.type-line .char {
  display: inline;
}
.is-typing .type-line .char {
  opacity: 0;
}
.is-typing .type-line .char.is-shown {
  opacity: 1;
}
.caret {
  display: none;
  width: 3px;
  height: 0.78em;
  margin-left: 0.06em;
  background: var(--tekhelet);
  vertical-align: baseline;
  transform: translateY(0.04em);
}
.is-typing .caret {
  display: inline-block;
}
.caret.is-blinking {
  animation: caret-blink 1s steps(1, end) 3 forwards;
}
@keyframes caret-blink {
  0%,
  50% {
    opacity: 1;
  }
  50.01%,
  100% {
    opacity: 0;
  }
}

.js .reveal {
  opacity: 0;
  transform: translateY(12px);
}
.js .reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}

/* Split panels ----------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.panel {
  padding: clamp(56px, 6.1vw, 88px) var(--margin) clamp(60px, 6.7vw, 96px);
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 1.9vw, 28px);
}
.panel--night {
  background: var(--night);
  color: #fff;
}
.panel--stone {
  background: var(--stone);
  color: var(--ink);
}
.panel h2 {
  font-size: var(--t-section);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 600;
}
.panel > p.panel-intro {
  font-size: var(--t-lead-sm);
  line-height: 1.55;
  max-width: 520px;
}
.panel--night p.panel-intro,
.panel--night p.panel-note {
  color: var(--on-night);
}
.panel--stone p.panel-intro {
  color: var(--body);
}
.panel--night p.panel-note {
  font-size: var(--t-body);
  line-height: 1.55;
  max-width: 520px;
  margin-top: 8px;
}
.panel .actions {
  margin-top: auto;
  padding-top: 16px;
}

.feature-list {
  margin-top: clamp(12px, 1.7vw, 24px);
  display: flex;
  flex-direction: column;
}
.feature-list li {
  display: grid;
  grid-template-columns: minmax(150px, 210px) minmax(0, 1fr);
  gap: var(--gutter);
  padding: clamp(16px, 1.4vw, 20px) 0;
  border-top: 1px solid var(--night-rule);
}
.feature-list li:last-child {
  border-bottom: 1px solid var(--night-rule);
}
.feature-list dt,
.feature-list .f-name {
  font-size: clamp(1rem, 1.25vw, 1.125rem);
  font-weight: 500;
}
.feature-list .f-desc {
  font-size: clamp(0.9375rem, 1.15vw, 1rem);
  line-height: 1.5;
  color: var(--mist);
}

.service-list {
  margin-top: clamp(12px, 1.7vw, 24px);
  display: flex;
  flex-direction: column;
}
.service-list li {
  padding: clamp(16px, 1.7vw, 24px) 0;
  border-top: 1px solid var(--stone-rule);
  font-size: var(--t-panel-item);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.25;
}
.service-list li:last-child {
  border-bottom: 1px solid var(--stone-rule);
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 1fr);
  }
  .feature-list li {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }
}

/* How we work ------------------------------------------------------ */
.how {
  padding: clamp(72px, 10.5vw, 152px) var(--margin) clamp(72px, 10vw, 144px);
  display: flex;
  flex-direction: column;
  gap: clamp(44px, 6.1vw, 88px);
}
.how-head {
  align-items: end;
}
.how-head h2 {
  grid-column: 1 / span 5;
  font-size: var(--t-section);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 600;
}
.how-head p {
  grid-column: 7 / span 5;
  font-size: var(--t-lead);
  line-height: 1.55;
  color: var(--body);
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: clamp(40px, 5vw, 56px);
}
.steps li {
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 1.9vw, 28px);
}
.step-rule {
  display: flex;
  align-items: center;
}
.step-rule .dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--tekhelet);
  flex: none;
}
.step-rule .line {
  flex-grow: 1;
  height: 1px;
  background: var(--rule);
  transform-origin: left center;
}
.js .step-rule .line {
  transform: scaleX(0);
}
.js .steps.is-in .step-rule .line {
  transform: scaleX(1);
  transition: transform 0.9s var(--ease);
}
.js .steps.is-in li:nth-child(2) .step-rule .line {
  transition-delay: 0.14s;
}
.js .steps.is-in li:nth-child(3) .step-rule .line {
  transition-delay: 0.28s;
}
.step-num {
  font-size: clamp(1rem, 1.25vw, 1.125rem);
  font-weight: 600;
  color: var(--tekhelet);
}
.step-title {
  font-size: var(--t-step);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 500;
  max-width: 320px;
}

/* Narrow screens: the timeline turns vertical. Three full width horizontal
   rules stacked up read as stray dividers rather than as one sequence. */
@media (max-width: 800px) {
  .steps {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 0;
  }
  .steps li {
    display: grid;
    grid-template-columns: 12px minmax(0, 1fr);
    column-gap: 20px;
    row-gap: 6px;
    padding-bottom: clamp(30px, 6vw, 44px);
  }
  .steps li:last-child {
    padding-bottom: 0;
  }
  .steps li {
    position: relative;
  }
  /* Taken out of flow so the connector can run past the item's padding and
     meet the next dot, rather than stopping short in the gap. */
  .steps .step-rule {
    position: absolute;
    left: 0;
    top: 0;
    bottom: -7px;
    width: 12px;
    flex-direction: column;
    align-items: center;
    height: auto;
  }
  .steps .step-rule .dot {
    margin-top: 7px;
  }
  .steps .step-rule .line {
    width: 1px;
    height: auto;
    flex-grow: 1;
    margin-top: 10px;
    transform-origin: center top;
  }
  .steps li:last-child .step-rule .line {
    display: none;
  }
  .steps .step-num {
    grid-column: 2;
    grid-row: 1;
  }
  .steps .step-title {
    grid-column: 2;
    grid-row: 2;
    max-width: none;
  }
  .js .steps .step-rule .line {
    transform: scaleY(0);
  }
  .js .steps.is-in li .step-rule .line {
    transform: scaleY(1);
  }
}

/* Aim and leadership ----------------------------------------------- */
.closing-blocks {
  padding: 0 var(--margin) clamp(72px, 10.5vw, 152px);
  display: flex;
  flex-direction: column;
}

.people {
  display: contents;
}
.person {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 1.4vw, 20px);
  padding-right: var(--gutter);
}
.leadership .side-body {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: clamp(40px, 4vw, 56px);
}
.leadership .person:nth-of-type(1) {
  grid-column: 1 / span 4;
}
.leadership .person:nth-of-type(2) {
  grid-column: 5 / span 4;
}
.leadership .more {
  grid-column: 1 / span 8;
  padding-top: clamp(32px, 4.2vw, 56px);
}
.avatar {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  object-fit: cover;
  background: var(--night);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  flex: none;
}
.person h3 {
  font-size: clamp(1.375rem, 1.9vw, 1.75rem);
  letter-spacing: -0.02em;
  font-weight: 600;
  line-height: 1.15;
}
.person .role {
  font-size: clamp(1rem, 1.15vw, 1.0625rem);
  color: var(--slate);
  margin-top: 4px;
}
.person .bio {
  font-size: var(--t-body);
  line-height: 1.6;
  color: var(--body);
}

/* Closing prompt --------------------------------------------------- */
.prompt {
  margin-inline: var(--margin);
  padding: clamp(64px, 8.3vw, 120px) 0 clamp(80px, 11vw, 160px);
  border-top: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 4.4vw, 64px);
}
.prompt h2 {
  font-size: var(--t-prompt);
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 600;
}
.prompt-grid {
  align-items: end;
  row-gap: clamp(28px, 3vw, 40px);
}
.prompt-grid p {
  grid-column: 1 / span 5;
  font-size: var(--t-lead);
  line-height: 1.55;
  color: var(--body);
}
.prompt-grid .actions {
  grid-column: 7 / span 6;
  gap: 16px 32px;
}
.prompt-email {
  font-size: clamp(1.125rem, 1.9vw, 1.625rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

/* Footer ----------------------------------------------------------- */
.site-footer {
  background: var(--night);
  color: #fff;
  padding: clamp(56px, 6.1vw, 88px) var(--margin) clamp(40px, 3.9vw, 56px);
  display: flex;
  flex-direction: column;
  gap: clamp(44px, 5vw, 72px);
}
.footer-top {
  row-gap: clamp(36px, 4vw, 48px);
}
.footer-brand {
  grid-column: 1 / span 5;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer-brand p {
  font-size: clamp(1rem, 1.25vw, 1.125rem);
  color: var(--mist);
}
.footer-brand .wordmark {
  font-size: clamp(1.375rem, 1.8vw, 1.625rem);
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: clamp(1rem, 1.2vw, 1.0625rem);
}
.footer-col.pages {
  grid-column: 7 / span 3;
}
.footer-col.contact {
  grid-column: 10 / span 3;
}
.footer-col h2 {
  margin-bottom: 6px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--mist);
}
.footer-col a {
  text-decoration: none;
  padding-block: 8px;
  opacity: 0.92;
  transition: opacity 0.2s var(--ease);
  overflow-wrap: anywhere;
}
.footer-col a:hover {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 6px;
}
.footer-col span {
  padding-block: 8px;
}
.footer-legal {
  margin-top: auto;
  padding-top: 32px;
  border-top: 1px solid var(--night-rule);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px 48px;
  flex-wrap: wrap;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--mist);
}
.footer-legal p {
  max-width: 720px;
}
.footer-legal .legal-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

@media (max-width: 860px) {
  .footer-brand,
  .footer-col.pages,
  .footer-col.contact {
    grid-column: 1 / -1;
  }
}

/* Inner pages ------------------------------------------------------ */
.page-head {
  padding: clamp(48px, 7vw, 104px) var(--margin) clamp(40px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2vw, 28px);
}
/* Quiet staggered fade on load. Pure CSS, so it works without JS and
   settles on the visible state whatever happens. */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.page-head > * {
  animation: fade-up 0.7s var(--ease) both;
}
.page-head > *:nth-child(1) {
  animation-delay: 0.04s;
}
.page-head > *:nth-child(2) {
  animation-delay: 0.12s;
}
.page-head > *:nth-child(3) {
  animation-delay: 0.2s;
}
.page-head > *:nth-child(4) {
  animation-delay: 0.28s;
}
.page-head h1 {
  font-size: var(--t-section);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 600;
  max-width: 16em;
}
.page-head .lead {
  max-width: 44em;
}
.page-section {
  padding: 0 var(--margin) clamp(64px, 8vw, 112px);
}
.page-section + .page-section {
  padding-top: 0;
}

/* Services list */
.numbered {
  border-top: 1px solid var(--rule);
}
.numbered li {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  column-gap: var(--gutter);
  align-items: baseline;
  padding: clamp(28px, 3.4vw, 44px) 0;
  border-bottom: 1px solid var(--rule);
}
.numbered .n {
  font-size: clamp(1rem, 1.2vw, 1.0625rem);
  font-weight: 600;
  color: var(--tekhelet);
}
.numbered h2 {
  font-size: var(--t-step);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 500;
}
.numbered p {
  margin-top: 12px;
  font-size: var(--t-body);
  line-height: 1.6;
  color: var(--body);
  max-width: 44em;
}
@media (max-width: 640px) {
  .numbered li {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 10px;
  }
}

.callout {
  margin-top: clamp(48px, 5.5vw, 80px);
  background: var(--stone);
  padding: clamp(32px, 4vw, 56px) clamp(24px, 3.4vw, 48px);
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 2.6vw, 36px);
}
.callout p {
  font-size: var(--t-statement);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 500;
  max-width: 20em;
}

/* About page people */
.about-people {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(32px, 5vw, 72px);
  row-gap: clamp(48px, 5.5vw, 72px);
  border-top: 1px solid var(--rule);
  padding-top: clamp(36px, 4.4vw, 56px);
}
.about-people .person {
  padding-right: 0;
  gap: clamp(16px, 1.7vw, 24px);
}
.about-people .avatar {
  width: clamp(96px, 11vw, 140px);
  height: clamp(96px, 11vw, 140px);
  font-size: clamp(1.625rem, 2.4vw, 2.25rem);
}
.about-people .bio {
  font-size: var(--t-lead-sm);
  line-height: 1.6;
}
@media (max-width: 760px) {
  .about-people {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Contact ---------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  column-gap: clamp(32px, 5vw, 88px);
  row-gap: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--rule);
  padding-top: clamp(36px, 4.4vw, 56px);
}
.contact-aside {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 2.6vw, 36px);
}
.contact-aside h2 {
  font-size: clamp(0.9375rem, 1.1vw, 1rem);
  font-weight: 600;
  color: var(--slate);
  margin-bottom: 6px;
}
.contact-aside a,
.contact-aside p.value {
  font-size: var(--t-lead-sm);
  overflow-wrap: anywhere;
}
.contact-aside a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 2.2vw, 28px);
}
.field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.field.full {
  grid-column: 1 / -1;
}
.field label {
  font-size: var(--t-body);
  font-weight: 500;
}
.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: var(--t-body);
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 0;
  padding: 0 16px;
  min-height: 56px;
  width: 100%;
  transition: border-color 0.2s var(--ease);
  appearance: none;
  -webkit-appearance: none;
}
.field textarea {
  padding: 16px;
  min-height: 180px;
  resize: vertical;
  line-height: 1.6;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2312151C' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 12px 8px;
  padding-right: 44px;
}
.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--slate);
}
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  border-color: var(--tekhelet);
  outline-offset: 2px;
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-foot {
  margin-top: clamp(24px, 2.6vw, 36px);
  display: flex;
  align-items: center;
  gap: 20px 28px;
  flex-wrap: wrap;
}
.form-note {
  font-size: 0.9375rem;
  color: var(--slate);
  max-width: 34em;
}
.form-error {
  color: #a3182b;
  font-size: var(--t-body);
}
.form-success {
  border-top: 1px solid var(--tekhelet);
  padding-top: clamp(28px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-success h2 {
  font-size: var(--t-step);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 500;
}
.form-success p {
  font-size: var(--t-lead-sm);
  color: var(--body);
  max-width: 34em;
}
@media (max-width: 860px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Legal pages ------------------------------------------------------ */
.prose {
  max-width: 44em;
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 3.4vw, 44px);
  border-top: 1px solid var(--rule);
  padding-top: clamp(36px, 4.4vw, 56px);
}
.prose section h2 {
  font-size: clamp(1.25rem, 1.9vw, 1.625rem);
  letter-spacing: -0.02em;
  font-weight: 600;
  line-height: 1.2;
}
.prose section p {
  margin-top: 12px;
  font-size: var(--t-body);
  line-height: 1.7;
  color: var(--body);
}
.prose a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Narrow layout collapse ------------------------------------------- */
@media (max-width: 900px) {
  .hero-support,
  .how-head h2,
  .how-head p,
  .prompt-grid p,
  .prompt-grid .actions,
  .side-section > .side-heading,
  .side-section > .side-body,
  .leadership .person:nth-of-type(1),
  .leadership .person:nth-of-type(2),
  .leadership .more {
    grid-column: 1 / -1;
  }
  .side-section {
    row-gap: clamp(20px, 3vw, 28px);
  }
  .leadership .side-body {
    grid-template-columns: minmax(0, 1fr);
  }
  .person {
    padding-right: 0;
  }
  .how-head {
    row-gap: clamp(20px, 3vw, 28px);
  }
}

/* Motion preferences ----------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal,
  .reveal {
    opacity: 1;
    transform: none;
  }
  .step-rule .line {
    transform: none !important;
  }
  .is-typing .type-line .char {
    opacity: 1;
  }
  .caret,
  .is-typing .caret {
    display: none;
  }
}

/* Print ------------------------------------------------------------ */
@media print {
  .site-header,
  .site-footer,
  .prompt {
    display: none;
  }
  body {
    background: #fff;
  }
}

/* Plain divided rows (services page) ------------------------------- */
.rows {
  border-top: 1px solid var(--rule);
}
.rows li {
  border-bottom: 1px solid var(--rule);
}
.rows li h2 {
  padding: clamp(26px, 3.2vw, 40px) 0;
  font-size: var(--t-step);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 500;
}
