/* Hofund Horizon — launch site
   Tokens come from the Hofund Horizon design system (tokens.json, Phase 1 brand sheet).
   Sizes, spacing and radius beyond the sheet are the design system's *proposed* values,
   scaled up for a marketing page. */

/* ---------- Fonts (Latin subsets, SIL OFL) ---------- */
@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/montserrat-latin-300-normal.woff2") format("woff2");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/montserrat-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("/assets/fonts/source-serif-4-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("/assets/fonts/source-serif-4-latin-400-italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
/* Metric-matched fallbacks, so text barely reflows when the web fonts swap in. Ratios measured
   against the real faces; Android has neither local font and falls through to the stack. */
@font-face { font-family: "Source Serif 4 Fallback"; src: local("Georgia"); font-style: normal; size-adjust: 107.4%; }
@font-face { font-family: "Source Serif 4 Fallback"; src: local("Georgia Italic"); font-style: italic; size-adjust: 96.5%; }
@font-face { font-family: "Montserrat Fallback"; src: local("Arial"); font-weight: 300; size-adjust: 111.4%; }
@font-face { font-family: "Montserrat Fallback"; src: local("Arial Bold"); font-weight: 600; size-adjust: 108.5%; }

/* ---------- Tokens ---------- */
:root {
  /* palette */
  --baltic-blue: #2a5d79;
  --gold: #fcc12b;
  --aqua: #0ca5ad;
  --carrot: #f09638;
  --shadow: #211924;
  --parchment: #f6f3ec;
  --white: #ffffff;
  --aqua-tint: #85d2d6;
  --gold-tint: #fde095;
  --carrot-tint: #f7ca9b;
  --baltic-blue-tint: #94aebc;

  /* semantic (light) */
  --surface: var(--parchment);
  --ink: var(--shadow);
  --ink-muted: var(--baltic-blue);
  --action: var(--baltic-blue);
  --on-action: var(--white);
  --line: var(--baltic-blue);

  /* type */
  --font-sans: "Montserrat", "Montserrat Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Source Serif 4", "Source Serif 4 Fallback", Georgia, "Times New Roman", serif;

  /* spacing (4px base) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;

  /* radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-full: 9999px;

  --focus-ring: 0 0 0 2px var(--parchment), 0 0 0 4px var(--baltic-blue);
  --focus-ring-dark: 0 0 0 2px var(--shadow), 0 0 0 4px var(--aqua);

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(72px, 10vw, 136px);
  --header-h: 72px;

  /* the lockup files carry their clear space inside the viewBox: 64.64 units of 755 (757 with the
     tagline), equal to the diameter of the "o", which is the brand's clear-space unit */
  --logo-w: 150px;
  --logo-inset: calc(var(--logo-w) * 64.64 / 755);

  --ease-out: cubic-bezier(.2, .7, .2, 1);
}

/* Rules take the `line` token, which each ground sets to its own documented colour. */
.section--shadow, .closing, .site-footer { --line: var(--baltic-blue-tint); }
.section--blue { --line: var(--aqua-tint); }
.kinetic { --line: var(--shadow); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  /* `only light` also opts out of browsers' forced dark modes, which invert the brand colours */
  color-scheme: only light;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + var(--space-4));
}
/* Smooth scrolling is switched on after load (site.js), so a deep link lands straight on its
   section instead of gliding down the whole page. */
@media (prefers-reduced-motion: no-preference) {
  html.smooth-scroll { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
::selection { background: var(--gold); color: var(--shadow); }
/* gold selection would vanish on the gold band and the gold number discs */
.kinetic ::selection, .card__num::selection { background: var(--shadow); color: var(--gold); }
.kinetic .btn::selection { background: var(--gold); color: var(--shadow); }

/* The ring is a box-shadow so it follows the radius; the transparent outline is what forced-colours
   (Windows High Contrast) mode draws instead, since it drops box-shadows. */
:focus-visible {
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-sm);
}
.section--shadow :focus-visible,
.closing :focus-visible,
.site-footer :focus-visible { box-shadow: var(--focus-ring-dark); }
/* On baltic-blue the aqua ring is only 2.4:1, so this ground gets a parchment ring (6.4:1). */
.section--blue :focus-visible { box-shadow: 0 0 0 2px var(--baltic-blue), 0 0 0 4px var(--parchment); }
.kinetic :focus-visible { box-shadow: 0 0 0 2px var(--gold), 0 0 0 4px var(--shadow); }

/* Keeps a compound or a name on one line ("PE-backed", "founder-led", "Hofund Labs") without
   swapping in a non-breaking hyphen, which would change what people copy or find on the page. */
.nowrap { white-space: nowrap; }
/* A unit that only breaks inside itself: used to keep whole sentences together in a headline. */
.keep { display: inline-block; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.skip-link {
  position: absolute; left: var(--space-4); top: -100px; z-index: 100;
  padding: var(--space-3) var(--space-4);
  background: var(--shadow); color: var(--parchment);
  font-family: var(--font-sans); font-weight: 600; font-size: .9375rem;
  border-radius: var(--radius-md); text-decoration: none;
}
.skip-link:focus { top: var(--space-4); }

/* ---------- Type ---------- */
.h2 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(1.875rem, 1.25rem + 2.6vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.deck {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: clamp(1.125rem, 1rem + .55vw, 1.5rem);
  line-height: 1.5;
  text-wrap: pretty;
}
.prose { display: grid; gap: var(--space-4); max-width: 38rem; }
.prose p { text-wrap: pretty; }

/* Section label: Montserrat Semibold caps with a hairline rule running to the content edge, as the
   brand sheet sets its own. */
.eyebrow {
  display: flex; align-items: center; gap: var(--space-4);
  margin-bottom: var(--space-6);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: .8125rem;
  line-height: 1.25;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
}
.eyebrow::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--line);
}
.eyebrow--on-dark, .eyebrow--on-blue { color: var(--parchment); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 52px;
  padding: 0 var(--space-8);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, transform .2s var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 44px; padding: 0 var(--space-6); font-size: .9375rem; }

/* hover fills stay on the palette */
.btn--primary { background: var(--baltic-blue); color: var(--white); }
.btn--primary:hover { background: var(--shadow); }
.btn--dark { background: var(--shadow); color: var(--parchment); }
.btn--dark:hover { background: var(--baltic-blue); color: var(--white); }
.btn--aqua { background: var(--aqua); color: var(--shadow); }
.btn--aqua:hover { background: var(--aqua-tint); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--parchment);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__inner {
  display: flex; align-items: center; gap: var(--space-8);
  min-height: var(--header-h);
}
/* The drawn mark sits flush with the content edge; the file's built-in clear space hangs into the
   gutter. 150px keeps the drawn lockup (~124px) above the ~120px floor where the design system
   switches to the mark alone, at every width. */
.site-header__logo { display: block; flex: none; margin-left: calc(-1 * var(--logo-inset)); }
.site-header__logo img { width: var(--logo-w); height: auto; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: var(--space-6); }
.site-nav a {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: .875rem;
  text-decoration: none;
  color: var(--ink);
  padding: var(--space-2) 0;
  background: linear-gradient(var(--gold), var(--gold)) left bottom / 0 2px no-repeat;
  transition: background-size .25s var(--ease-out);
}
.site-nav a:hover { background-size: 100% 2px; }
.site-header__cta { flex: none; }

@media (max-width: 1080px) {
  .site-nav { display: none; }
  .site-header__cta { margin-left: auto; }
}
/* pages without the section nav (the 404) still push the CTA to the right */
.site-header__logo + .site-header__cta { margin-left: auto; }
@media (max-width: 479px) {
  :root { --header-h: 64px; }
  .site-header__inner { gap: var(--space-3); }
  /* the flush logo sits too near the screen edge for an outer ring; draw it inside the link */
  .site-header__logo:focus-visible { box-shadow: none; outline: 2px solid var(--baltic-blue); outline-offset: -2px; }
  /* allowed to wrap, so user text-spacing overrides (WCAG 1.4.12) never clip the label */
  .site-header__cta {
    flex: 0 1 auto; min-width: 0;
    padding: 0 var(--space-4);
    font-size: .875rem; line-height: 1.15;
    white-space: normal; text-align: center;
  }
}
@media (max-width: 359px) {
  .site-header__cta { display: none; }
}
/* Short viewports (landscape phones, 400% zoom): a sticky bar would eat a third of the screen. */
@media (max-height: 30em) {
  .site-header { position: relative; }
  html { scroll-padding-top: var(--space-4); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 7vw, 104px) 0 clamp(64px, 9vw, 128px);
}
.hero__texture {
  position: absolute; inset: auto 0 0 0;
  height: 70%;
  background: url("/assets/img/topo/topo-01-lines-1200.webp") center bottom / cover no-repeat;
  opacity: .22;
  pointer-events: none;
  /* fades in from the top and out again before the section edge, so it never ends in a hard line */
  -webkit-mask-image: linear-gradient(to top, transparent 0, #000 22%, #000 55%, transparent 100%);
  mask-image: linear-gradient(to top, transparent 0, #000 22%, #000 55%, transparent 100%);
}
@media (min-width: 1200px) {
  .hero__texture { background-image: url("/assets/img/topo/topo-01-lines-2400.webp"); }
}
.hero__grid {
  position: relative;
  display: grid;
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}
.hero__copy { display: grid; gap: var(--space-6); justify-items: start; }
.hero__title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(2.75rem, 1.4rem + 5.6vw, 5.75rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.hero__title-turn { display: block; }
.hero__sub {
  max-width: 34rem;
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: clamp(1.1875rem, 1rem + .8vw, 1.5rem);
  line-height: 1.5;
  text-wrap: pretty;
}
.hero__copy .btn { margin-top: var(--space-2); }

.hero__media { position: relative; justify-self: center; width: min(100%, 520px); }
.hero__photo {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 30%;
  /* an arch: a half-round top over a square base, from the mark's sun on the horizon */
  border-radius: var(--radius-full) var(--radius-full) var(--radius-md) var(--radius-md);
}
.hero__sun {
  position: absolute;
  width: 46%; aspect-ratio: 2 / 1;
  right: -14%; bottom: 14%;
  border-radius: var(--radius-full) var(--radius-full) 0 0;
  background: var(--carrot);
}
.hero__sun::before {
  /* the ring above the line */
  content: "";
  position: absolute; inset: -22% -11% 0;
  border: 10px solid var(--gold);
  border-bottom: 0;
  border-radius: var(--radius-full) var(--radius-full) 0 0;
}
@media (min-width: 960px) {
  .hero__grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); }
  .hero__media { justify-self: end; }
}
/* Below 1400px the column is flush with the gutter, so the sun's overhang would be clipped to a
   sliver at the window edge; give it room inside the column instead. */
@media (min-width: 960px) and (max-width: 1399px) {
  .hero__media { width: 88%; margin-right: 12%; }
}
/* Short laptop screens (1366x768 and similar): keep the CTA and the whole photo above the fold. */
@media (min-width: 960px) and (max-height: 860px) {
  .hero { padding-top: clamp(24px, 4vh, 48px); }
  .hero__title { font-size: min(clamp(2.75rem, 1.4rem + 5.6vw, 5.75rem), 12.5vh); }
  .hero__media { width: min(88%, 520px, calc((100vh - var(--header-h) - 64px) * .8)); }
}
@media (max-width: 959px) {
  .hero__media { width: min(100%, 440px); }
  .hero__sun { right: -10%; }
}
@media (max-width: 599px) {
  .hero__photo { aspect-ratio: 1 / 1; object-position: 50% 25%; }
  .hero__sun { display: none; }
}

/* ---------- Sections ---------- */
.section { position: relative; padding-block: var(--section-y); }
.section--parchment { background: var(--parchment); color: var(--ink); }
.section--shadow { background: var(--shadow); color: var(--parchment); }
.section--blue { background: var(--baltic-blue); color: var(--parchment); }
.section-head { display: grid; gap: var(--space-6); max-width: 54rem; margin-bottom: clamp(40px, 5vw, 64px); }
/* room for "An embedded acquisition partner" on one line at desktop size */
#what-we-do .section-head { max-width: 62rem; }
.section-cta { margin-top: clamp(40px, 5vw, 56px); }

/* Topography 02 (the survey grid), with its gold crosshairs removed from this export so nothing
   lands on the copy. High-density screens get the 2400px file. */
.section--grid-texture { overflow: hidden; }
.section--grid-texture::before {
  content: "";
  position: absolute; inset: 0;
  background: url("/assets/img/topo/topo-02-grid-dark-1200.webp") center / cover no-repeat;
  opacity: .42;
  pointer-events: none;
}
@media (min-width: 1200px), (min-resolution: 1.5dppx), (-webkit-min-device-pixel-ratio: 1.5) {
  .section--grid-texture::before { background-image: url("/assets/img/topo/topo-02-grid-dark-2400.webp"); }
}
.section--grid-texture > .container { position: relative; }

.section--lines-texture { overflow: hidden; }
.section--lines-texture::before {
  content: "";
  position: absolute; inset: 0;
  background: url("/assets/img/topo/topo-01-lines-1200.webp") right top / max(1400px, 100%) auto no-repeat;
  opacity: .14;
  pointer-events: none;
  /* dissolves before the image's shortest drawn height (437px), so it never ends in a hard cut */
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 200px, transparent 420px);
  mask-image: linear-gradient(to bottom, #000 0, #000 200px, transparent 420px);
}
@media (min-width: 1200px) {
  /* the same file the hero uses at this width, so desktop fetches it once */
  .section--lines-texture::before { background-image: url("/assets/img/topo/topo-01-lines-2400.webp"); }
}
.section--lines-texture > .container { position: relative; }

/* ---------- Cards ---------- */
.cards { display: grid; gap: var(--space-4); }
.card {
  position: relative;
  display: grid;
  align-content: start;
  gap: var(--space-6);
  padding: var(--space-6);
  min-height: 100%;
  background: var(--white);
  border: 1px solid rgba(42, 93, 121, .16);
  border-radius: var(--radius-md);
}
.card__num {
  display: inline-grid; place-items: center;
  width: 48px; height: 48px;
  border-radius: var(--radius-full);
  background: var(--gold);
  color: var(--shadow);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: .9375rem;
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
}
.card__text {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.35;
  letter-spacing: -0.005em;
  text-wrap: pretty;
}
.cards--4 .card__text { text-wrap: balance; }
.cards--4 .card:nth-child(even) .card__num { background: var(--aqua); }

/* Phones: the number sits beside its line, so the stacked cards aren't tall and mostly empty.
   (Below 360px the text column would get too narrow, so the cards stay stacked there.) */
@media (min-width: 360px) and (max-width: 639px) {
  .card {
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: center;
    gap: var(--space-4);
    column-gap: var(--space-3);
    padding: var(--space-4);
  }
}
/* Two columns, with the fifth step spanning the row, until a whole row fits at a readable measure.
   (Three columns would leave a 3 + 2 row with an empty cell.) */
@media (min-width: 640px) {
  .cards--5, .cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards--5 .card:last-child { grid-column: 1 / -1; }
}
@media (min-width: 1280px) {
  .cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  /* the five steps read as a timeline: a hairline runs from the centre of 01 to the centre of 05 */
  .cards--5 { position: relative; grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .cards--5 .card:last-child { grid-column: auto; }
  .cards--5 .card { background: transparent; border-color: transparent; padding: 0 0 var(--space-6); }
  .cards--5::before {
    content: "";
    position: absolute; top: 24px; height: 1px;
    left: 25px;
    right: calc((100% - 4 * var(--space-4)) / 5 - 25px);
    background: var(--line);
  }
  .cards--5 .card__num { position: relative; box-shadow: 0 0 0 8px var(--parchment); }
}

/* ---------- What we are not ---------- */
.not-grid { display: grid; gap: clamp(40px, 6vw, 80px); }
.not-grid__head { display: grid; gap: var(--space-6); align-content: start; }
.not-grid__head .eyebrow { margin-bottom: 0; }
.not-list { display: grid; align-content: start; }
.not-list li {
  position: relative;
  padding: var(--space-6) 0 var(--space-6) var(--space-12);
  border-top: 1px solid var(--line);
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: clamp(1.125rem, 1rem + .5vw, 1.375rem);
  line-height: 1.45;
  text-wrap: balance;
}
.not-list li:last-child { border-bottom: 1px solid var(--line); }
.not-list li::before {
  /* Placeholder bullet until an icon set is chosen: a single 1.75px line in action (aqua on dark),
     per the design system's interim icon rule. Not derived from the mark. */
  content: "";
  position: absolute; left: 0; top: calc(var(--space-6) + .7em);
  width: 24px; height: 1.75px;
  border-radius: 1px;
  background: var(--aqua);
}
/* Headlines marked up in .keep phrases break only between those phrases (e.g. "Hofund Horizon is /
   an acquisition partner, / not another tool to manage."); on phones the column is too narrow for
   that, so they wrap freely. */
@media (max-width: 599px) {
  #what-we-are-not .h2 .keep, #what-we-do .h2 .keep, #who-we-work-with .h2 .keep { display: inline; }
}
@media (min-width: 960px) and (max-width: 1167.98px) {
  .not-list { max-width: 40rem; }
}
/* Wide screens: label and headline run the full width (two lines, broken at the comma), with the
   deck and the list side by side beneath them. */
@media (min-width: 1168px) {
  .not-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
    grid-template-areas: "label label" "title title" "deck list";
    row-gap: var(--space-6);
    align-items: start;
  }
  .not-grid__head { display: contents; }
  .not-grid__head .eyebrow { grid-area: label; }
  .not-grid__head .h2 { grid-area: title; }
  .not-grid__head .deck { grid-area: deck; max-width: 36rem; }
  .not-list { grid-area: list; }
}

/* ---------- Kinetic band ---------- */
.kinetic {
  position: relative;
  overflow: hidden;
  background: var(--gold);
  color: var(--shadow);
  padding-block: clamp(80px, 11vw, 152px);
}
.kinetic__sun {
  position: absolute;
  right: -6vw; bottom: 0;
  width: clamp(240px, 34vw, 520px); aspect-ratio: 2 / 1;
  border-radius: var(--radius-full) var(--radius-full) 0 0;
  background: var(--carrot);
  pointer-events: none;
}
.kinetic__sun::before,
.kinetic__sun::after {
  content: "";
  position: absolute; left: 50%; bottom: 0;
  translate: -50% 0;
  border-radius: var(--radius-full) var(--radius-full) 0 0;
  border: 2px solid var(--shadow);
  border-bottom: 0;
  opacity: .14;
}
.kinetic__sun::before { width: 128%; aspect-ratio: 2 / 1; }
.kinetic__sun::after { width: 160%; aspect-ratio: 2 / 1; }
/* Narrow screens: the sun gets its own room under the CTA row instead of running into it. */
@media (max-width: 679px) {
  .kinetic { padding-bottom: calc(clamp(240px, 34vw, 520px) / 2 + 48px); }
  .kinetic__sun::after { display: none; }
}
.kinetic__inner { position: relative; display: grid; gap: clamp(40px, 5vw, 64px); }
.kinetic__line {
  display: grid;
  gap: var(--space-2);
  font-family: var(--font-sans);
  font-size: clamp(2.25rem, 1rem + 5.2vw, 5.25rem);
  line-height: 1.06;
  letter-spacing: -0.025em;
  max-width: 15ch;
}
.kinetic__static { font-weight: 300; }
.rotator { display: grid; font-weight: 600; }
.rotator__item { display: block; text-wrap: balance; }

/* Without JS, or with reduced motion, the phrases sit as a static stack, spaced so a wrapped phrase
   still reads as one item. With JS and motion allowed, they share one grid cell (so the band never
   changes height) and cross-fade one at a time. */
.rotator__item + .rotator__item { margin-top: .45em; }
@media screen and (prefers-reduced-motion: no-preference) {
  .js .rotator__item {
    grid-area: 1 / 1;
    margin-top: 0;
    opacity: 0;
    transform: translateY(.35em);
    transition: opacity .45s ease, transform .6s var(--ease-out);
  }
  .js .rotator__item.is-active { opacity: 1; transform: none; }
  .js .rotator__item.is-leaving { opacity: 0; transform: translateY(-.35em); }
}
@media (prefers-reduced-motion: reduce) {
  .kinetic__line { font-size: clamp(1.875rem, 1rem + 3.6vw, 3.75rem); max-width: none; }
}

.kinetic__foot {
  display: grid; gap: var(--space-6);
  padding-top: var(--space-8);
  border-top: 1px solid var(--line);
  max-width: 44rem;
}
.kinetic__payoff {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  line-height: 1.3;
}
.kinetic__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4) var(--space-6); }

.rotator-toggle {
  display: inline-flex; align-items: center; gap: var(--space-2);
  min-height: 44px;
  padding: 0 var(--space-2);
  border: 0; background: none; cursor: pointer;
  color: var(--shadow);
  font-family: var(--font-sans); font-weight: 600; font-size: .875rem;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px;
}
.rotator-toggle[hidden] { display: none; }
.rotator-toggle__icon { flex: none; }
.rotator-toggle__icon--play,
.rotator-toggle[data-paused] .rotator-toggle__icon--pause { display: none; }
.rotator-toggle[data-paused] .rotator-toggle__icon--play { display: block; }

/* ---------- Split sections ---------- */
.split { display: grid; gap: clamp(40px, 6vw, 88px); align-items: center; }
.split__copy .h2 { margin-bottom: var(--space-6); }
.split__media { justify-self: center; width: min(100%, 520px); }
@media (min-width: 960px) {
  .split { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .split--reverse { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
}

.photo-disc {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: var(--radius-full);
  box-shadow: 0 0 0 10px var(--parchment), 0 0 0 12px var(--aqua-tint);
}
.photo-arch {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 48% 30%;
  border-radius: var(--radius-full) var(--radius-full) var(--radius-md) var(--radius-md);
}
@media (max-width: 599px) {
  /* square crop on phones; anchored near the top so the arch never trims the subject's head */
  .photo-arch { aspect-ratio: 1 / 1; object-position: 48% 4%; }
  .photo-disc { width: 86%; margin-inline: auto; }
}

.section--blue .prose { max-width: 36rem; }
/* emphasis inside running text uses the design system's body-italic style */
.prose__lead {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.125rem, 1rem + .4vw, 1.25rem);
  line-height: 1.45;
}
.inquiry {
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
  text-wrap: balance;
}
.inquiry a {
  display: block;
  font-family: var(--font-sans);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}
.inquiry a:hover { text-decoration-color: var(--parchment); }

/* ---------- Closing band ---------- */
/* Topography 01 on brand shadow (the export is composited on #211924, so it meets the footer
   without a seam). A soft scrim of the same shadow keeps the bright path out from behind the copy. */
.closing {
  position: relative;
  overflow: hidden;
  color: var(--parchment);
  background-color: var(--shadow);
  background-image:
    radial-gradient(closest-side, rgb(33 25 36 / .9), rgb(33 25 36 / .6) 60%, rgb(33 25 36 / 0)),
    url("/assets/img/topo/topo-01-path-dark-1200.webp");
  background-size: min(1100px, 100%) 85%, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  padding-block: clamp(88px, 12vw, 168px);
  text-align: center;
}
@media (min-width: 1200px), (min-resolution: 1.5dppx), (-webkit-min-device-pixel-ratio: 1.5) {
  .closing {
    background-image:
      radial-gradient(closest-side, rgb(33 25 36 / .9), rgb(33 25 36 / .6) 60%, rgb(33 25 36 / 0)),
      url("/assets/img/topo/topo-01-path-dark-2400.webp");
  }
}
/* Phones: the band is short, so the headline sits near its top edge where the desktop scrim has
   thinned out; a taller, stronger scrim keeps the path out from behind it. */
@media (max-width: 767px) {
  .closing {
    background-size: 150% 100%, cover;
    background-image:
      radial-gradient(closest-side, rgb(33 25 36 / .9), rgb(33 25 36 / .8) 55%, rgb(33 25 36 / 0)),
      url("/assets/img/topo/topo-01-path-dark-1200.webp");
  }
}
@media (max-width: 767px) and (min-resolution: 1.5dppx), (max-width: 767px) and (-webkit-min-device-pixel-ratio: 1.5) {
  .closing {
    background-image:
      radial-gradient(closest-side, rgb(33 25 36 / .9), rgb(33 25 36 / .8) 55%, rgb(33 25 36 / 0)),
      url("/assets/img/topo/topo-01-path-dark-2400.webp");
  }
}
.closing__inner { display: grid; justify-items: center; gap: var(--space-6); }
.closing__title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(2.25rem, 1.2rem + 4.4vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.closing__sub {
  max-width: 36rem;
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: clamp(1.125rem, 1rem + .6vw, 1.4375rem);
  line-height: 1.5;
  text-wrap: pretty;
}
.closing__inner > div { margin-top: var(--space-2); }
.closing__small {
  margin-top: var(--space-4);
  font-size: .875rem;
  line-height: 1.5;
  color: var(--baltic-blue-tint);
  text-wrap: balance;
}
.closing__small a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.closing__small a:hover { color: var(--parchment); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--shadow);
  color: var(--parchment);
  border-top: 1px solid var(--line);
  padding-block: clamp(48px, 6vw, 72px);
}
.site-footer__inner {
  display: grid;
  gap: var(--space-8);
  align-items: end;
}
/* Below 640px the 16px gutter can't hold the lockup's full clear space, so it sits a little in;
   from 640px the drawn mark is flush with the content edge. */
.site-footer__logo { width: 300px; max-width: none; height: auto; margin-left: -18px; }
@media (min-width: 640px) {
  .site-footer__logo { margin-left: calc(-300px * 64.64 / 757); }
}
.site-footer__meta { display: grid; gap: var(--space-2); }
.site-footer__line {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 1.0625rem;
  text-wrap: balance;
}
.site-footer__legal { font-size: .875rem; color: var(--baltic-blue-tint); text-wrap: balance; }
@media (min-width: 760px) {
  .site-footer__inner { grid-template-columns: auto 1fr; }
  .site-footer__meta { justify-items: end; text-align: right; }
}

/* ---------- 404 ---------- */
.page-404 { min-height: 100vh; display: flex; flex-direction: column; }
.page-404 main { flex: 1 0 auto; }

/* ---------- Motion: reveal on scroll (JS adds .js; reduced motion skips it) ---------- */
/* Screen only: printing must never inherit the hidden pre-reveal state. */
@media screen and (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    translate: 0 18px;
    transition: opacity .7s ease var(--reveal-delay, 0ms), translate .9s var(--ease-out) var(--reveal-delay, 0ms);
  }
  .js [data-reveal].is-in { opacity: 1; translate: none; }
  /* a keyboard user tabbing ahead of the reveal never lands on an invisible control */
  .js [data-reveal]:focus-within { opacity: 1; translate: none; transition: none; }

  /* hero entrance: pure CSS, so it needs no JS and never waits on it. `backwards` fill, so once it
     has played the elements return to their own styles (the button's press feedback included). */
  .hero__copy > * { animation: rise .9s var(--ease-out) backwards; }
  .hero__copy > :nth-child(2) { animation-delay: .12s; }
  .hero__copy > :nth-child(3) { animation-delay: .24s; }
  .hero__photo { animation: fade 1.1s ease backwards .1s; }
  .hero__sun { animation: sunrise 1.4s var(--ease-out) backwards .35s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sunrise { from { opacity: 0; transform: translateY(40%); } to { opacity: 1; transform: none; } }

/* ---------- Print ---------- */
@media print {
  .kinetic__sun, .hero__sun, .rotator-toggle, .site-footer__logo, .site-nav, .site-header__cta,
  .hero__texture, .section--grid-texture::before, .section--lines-texture::before { display: none !important; }
  .site-header { position: static; border: 0; }
  .section, .kinetic, .closing, .site-footer { background: none !important; color: #000 !important; }
  .eyebrow--on-dark, .eyebrow--on-blue, .closing__small, .site-footer__legal { color: #000 !important; }
  .btn { display: none !important; }
  /* one printed call to action that carries the address */
  .closing .btn { display: inline !important; background: none !important; color: #000 !important; padding: 0; min-height: 0; }
  .closing .btn::after { content: ": support@hofundhorizon.com"; font-weight: 300; }
  .card__num, .not-list li::before { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .card, .not-list li, .hero__media, .split__media, .kinetic__line, .closing__inner { break-inside: avoid; }
  .h2, .closing__title, .eyebrow { break-after: avoid; }
  .hero__media, .split__media { width: min(60%, 360px); }
}

/* Legal pages and footer links (2026-10-16) */
.site-footer__links a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.site-footer__links a:hover { color: var(--parchment); }
.legal { max-width: 44rem; }
.legal__updated { font-size: .875rem; opacity: .75; }
.legal__list { display: grid; gap: var(--space-2); padding-left: 1.25rem; list-style: disc; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }
