/* Nohvum website — shared tokens, layout and components.
   Typeface: Selawik (Microsoft's OFL Segoe UI substitute); real Segoe UI wins where installed. */

@font-face { font-family: "Nohvum Sans"; src: local("Segoe UI Light"), local("SegoeUI-Light"), url("../fonts/selawik-light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Nohvum Sans"; src: local("Segoe UI Semilight"), local("SegoeUI-Semilight"), url("../fonts/selawik-semilight.woff2") format("woff2"); font-weight: 350; font-display: swap; }
@font-face { font-family: "Nohvum Sans"; src: local("Segoe UI"), local("SegoeUI"), url("../fonts/selawik-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Nohvum Sans"; src: local("Segoe UI Semibold"), local("SegoeUI-Semibold"), url("../fonts/selawik-semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Nohvum Sans"; src: local("Segoe UI Bold"), local("SegoeUI-Bold"), url("../fonts/selawik-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --ink: #171717;
  --ink-2: #242424;
  --ink-3: #2e2e2e;
  --text: #171717;
  --text-2: #4a4a4a;
  --text-3: #6b6b6b;
  --text-on-dark: #f4f4f2;
  --text-on-dark-2: #b8b8b4;
  --orange: #f15a29;
  --line: #d9d9d6;
  --line-strong: #949494;
  --line-dark: #4a4a4a;
  --sage: #e8ebe4;
  --sage-line: #c6cdc1;

  --bg: #f5f6f1;        /* the nav bar colour (--bg-hero): no pure white anywhere */
  --bg-hero: #f5f6f1;
  --bg-soft: #f5f6f1;
  --bg-tint: #f6f6f4;
  --bg-footer: #f2f2f2;
  --bg-footer-bar: #e9e8e8;
  --bg-dark: #171717;

  --font: "Nohvum Sans", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  --container: 1206px;
  --gutter: clamp(20px, 5.9vw, 80px);
  --edge: clamp(16px, 2.2vw, 32px); /* padding for things pinned to the window edges: header logo and CTA, framework stage arrows */
  --header-h: 82px; /* 93px less 25% of the space around the 50px header button */

  --fs-display: clamp(2.5rem, 1.4rem + 3.6vw, 4.2rem);
  --fs-h1: clamp(2.1rem, 1.5rem + 2vw, 2.9rem);
  --fs-h2: clamp(1.9rem, 1.3rem + 2.1vw, 3.15rem);
  --fs-h3: clamp(1.35rem, 1.15rem + 0.6vw, 1.75rem);
  --fs-h4: 1.25rem;
  --fs-lead: clamp(1.05rem, 1rem + 0.25vw, 1.2rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-xs: 0.75rem;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 180ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 350;
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

.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(--gutter); top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Layout ---------- */
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.section { padding-block: clamp(64px, 8vw, 120px); }
.section--tight { padding-block: clamp(48px, 6vw, 88px); }
.section--hero { background: var(--bg-hero); }
.section--soft { background: var(--bg-soft); }
.section--tint { background: var(--bg-tint); }
.section--dark { background: var(--bg-dark); color: var(--text-on-dark); }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }
.nowrap { white-space: nowrap; }

/* ---------- Type ---------- */
.display { font-size: var(--fs-display); font-weight: 300; line-height: 1.06; letter-spacing: -0.025em; }
.h1 { font-size: var(--fs-h1); font-weight: 300; line-height: 1.2; letter-spacing: -0.01em; }
.h2 { font-size: var(--fs-h2); font-weight: 300; line-height: 1.27; letter-spacing: -0.005em; }
.h3 { font-size: var(--fs-h3); font-weight: 350; line-height: 1.25; }
.h4 { font-size: var(--fs-h4); font-weight: 400; line-height: 1.3; }
.lead { font-size: var(--fs-lead); color: var(--text-2); line-height: 1.6; }
.body { color: var(--text-2); }
.small { font-size: var(--fs-small); }
.muted { color: var(--text-3); }
.section--dark .lead, .section--dark .body, .section--dark .muted { color: var(--text-on-dark-2); }
.eyebrow { font-size: var(--fs-xs); letter-spacing: 0.12em; text-transform: uppercase; font-weight: 400; color: var(--text-3); }
.orange { color: var(--orange); }
.ink { color: var(--ink) !important; }

/* ---------- Arrow icon + links/buttons ---------- */
.arw { width: 11px; height: 11px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--dur-fast) var(--ease-out); }
a:hover > .arw, button:hover > .arw, a:focus-visible > .arw, button:focus-visible > .arw { transform: translate(2px, -2px); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 28px;
  min-height: 47px; padding: 12px 18px;
  background: var(--ink); color: #fff; border: 1px solid var(--ink);
  min-width: 175px; border-radius: 8px;
  font-size: 0.95rem; font-weight: 300; text-decoration: none; cursor: pointer; /* 300: white on ink reads heavier than ink-on-white text at the same weight */
  transition: background-color var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
}
.btn:hover { background: #000; }
.btn--light { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.btn--light:hover { background: #ececea; border-color: #ececea; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.6; cursor: progress; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 14px;
  color: var(--ink); text-decoration: none; padding-bottom: 3px;
  border-bottom: 1px solid currentColor; font-weight: 350;
}
.link-arrow .arw { width: 12px; height: 12px; }
.section--dark .link-arrow { color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 246, 241, 0.96);   /* --bg-hero, so the bar reads as part of the home hero; no dividing line */
  backdrop-filter: saturate(1.2) blur(8px);
}
/* Full width, not the content container: the logo and CTA sit var(--edge) in from the window edges. */
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); width: 100%; padding-inline: var(--edge); }
.site-header__logo { display: block; width: 220px; }
.site-header__logo img { width: 100%; height: auto; }
.site-nav { display: flex; align-items: center; gap: clamp(24px, 3.3vw, 44px); }
.site-nav__list { display: flex; gap: clamp(24px, 3.3vw, 44px); list-style: none; margin: 0; padding: 0; }
.site-nav__list a { text-decoration: none; font-size: 0.95rem; color: var(--ink); padding-block: 6px; transition: color var(--dur-fast); }
/* ink text (16.5:1); the orange lives in the underline, not the text */
.site-nav__list a:hover, .site-nav__list a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 5px; text-decoration-thickness: 1px; }
.site-nav .btn { margin-left: clamp(0px, 1.5vw, 14px); }
.nav-toggle { display: none; }
/* Desktop: logo | centred links | CTA. The side columns are equal so the links sit on the page centre;
   minmax(max-content, ...) lets them grow unequal rather than overlap if space runs short. */
@media (min-width: 900px) {
  .site-header__inner { display: grid; grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr); column-gap: 24px; }
  .site-nav { grid-column: 2 / 4; display: grid; grid-template-columns: subgrid; column-gap: 24px; align-items: center; } /* same gap as the parent, or the subgrid's own gap shifts the links */
  .site-nav .btn { justify-self: end; margin-left: 0; }
}

@media (max-width: 899px) {
  :root { --header-h: 57px; } /* 68px less 25% of the space around the 24px logo */
  .site-header__logo { width: 164px; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 10px; background: none; border: 0; padding: 10px 0; cursor: pointer;
    font-size: 0.95rem;
  }
  .nav-toggle__bars { width: 20px; height: 12px; position: relative; }
  .nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: var(--ink); transition: transform var(--dur-fast); }
  .nav-toggle__bars::before { top: 2px; }
  .nav-toggle__bars::after { bottom: 2px; }
  .nav-open .nav-toggle__bars::before { transform: translateY(3.5px) rotate(45deg); }
  .nav-open .nav-toggle__bars::after { transform: translateY(-3.5px) rotate(-45deg); }
  .site-nav {
    /* full height below the bar; the header's backdrop-filter makes it the containing block, so size from the viewport */
    position: fixed; inset: var(--header-h) 0 auto 0; height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h));
    overflow-y: auto; overscroll-behavior: contain; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-hero); padding: 8px var(--gutter) 24px;
    visibility: hidden; opacity: 0; transform: translateY(-6px);
    transition: opacity var(--dur-fast), transform var(--dur-fast), visibility 0s linear var(--dur-fast);
  }
  .nav-open .site-nav { visibility: visible; opacity: 1; transform: none; transition: opacity var(--dur-fast), transform var(--dur-fast); }
  .site-nav__list { flex-direction: column; gap: 0; }
  .site-nav__list a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
  .site-nav .btn { margin: 20px 0 0; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding-block: clamp(24px, 2.8vw, 40px) clamp(40px, 4.5vw, 62px); border-bottom: 1px solid var(--line-strong); }
.page-hero__grid { display: grid; grid-template-columns: 1fr minmax(0, 330px); gap: 32px 64px; align-items: start; }
.page-hero__aside { font-size: 0.95rem; color: var(--text-2); padding-top: 8px; }
@media (max-width: 760px) { .page-hero__grid { grid-template-columns: 1fr; } .page-hero__aside { padding-top: 0; } }

/* ---------- CTA band ---------- */
.cta-band { padding-block: clamp(56px, 6vw, 80px); }
.cta-band__grid { display: grid; grid-template-columns: 1fr minmax(0, 400px); gap: 32px 64px; align-items: center; }
.cta-band__aside p { color: var(--text-on-dark); font-size: 0.95rem; margin-bottom: 20px; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; }
@media (max-width: 760px) { .cta-band__grid { grid-template-columns: 1fr; } }

/* ---------- Cards / images ---------- */
.media-card { display: block; text-decoration: none; color: inherit; }
.media-card__img { overflow: hidden; border: 1px solid var(--line); aspect-ratio: 579 / 282; background: #eee; }
.media-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease-out); }
a.media-card:hover .media-card__img img { transform: scale(1.025); }
.media-card__title { font-size: 1.5rem; font-weight: 350; margin-top: 30px; }
.media-card__text { font-size: 0.95rem; color: var(--text-2); margin-top: 12px; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 22px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; }
.field label, .field .field__label { font-size: 0.95rem; color: var(--ink); }
.field input, .field textarea, .field select {
  width: 100%; border: 1px solid #c4c4c4; background: var(--bg); padding: 12px 14px;
  font-size: 0.9rem; font-weight: 350; border-radius: 0; color: var(--ink);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: #9a9a9a; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange); }
.field[data-invalid] input, .field[data-invalid] textarea { border-color: #c2280f; }
.field__error { font-size: var(--fs-small); color: #b3240c; }
.field__error:empty { display: none; }
.field__meta { display: flex; justify-content: flex-end; font-size: var(--fs-xs); color: var(--text-3); }
.form__honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { font-size: 0.95rem; min-height: 1.5em; }
.form__status[data-state="error"] { color: #b3240c; }
.form__status[data-state="sent"] { color: var(--ink); }
.form__sent { padding: 28px; border: 1px solid var(--line); background: var(--bg-soft); }
.form__sent h3 { font-weight: 350; font-size: 1.4rem; margin-bottom: 8px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-footer); font-size: 0.95rem; }
/* Same three columns as the header: logo | Explore on the page centre, under the nav links | Connect at the right edge. */
.site-footer__top { display: grid; grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr); gap: 40px; padding-block: 64px 56px; }
.site-footer__top > nav:last-child { justify-self: end; }
/* Explore: one row of links, spaced like the top nav */
.site-footer .site-footer__explore ul { display: flex; flex-wrap: wrap; gap: 12px clamp(24px, 3.3vw, 44px); }
.site-footer .site-footer__explore a, .site-footer .site-footer__connect a { color: var(--ink); }
.site-footer__top { align-items: center; }
/* same lockup and size as the header logo; a block so it centres on the link row with no baseline gap */
.site-footer__logo { display: block; width: 220px; }
.site-footer__logo img { display: block; width: 100%; height: auto; }
@media (max-width: 899px) { .site-footer__logo { width: 164px; } }
.site-footer h2 { font-size: var(--fs-xs); font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-2); margin-bottom: 22px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.site-footer a { text-decoration: none; color: var(--text-2); }
.site-footer a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.site-footer__legal { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 26px; padding-block: 36px 40px; border-top: 1px solid #cfcfcf; }
.site-footer__legal ul { display: flex; flex-wrap: wrap; gap: 12px 26px; }
.site-footer__bar { background: var(--bg-footer-bar); }
.site-footer__bar .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 20px; color: var(--text-2); }
@media (max-width: 899px) {
  .site-footer__top { grid-template-columns: 1fr; align-items: start; }
  .site-footer__top > nav:last-child { justify-self: start; }
}
/* Phones: the five links and LinkedIn share one three-column grid, two even rows (LinkedIn takes the sixth cell) */
@media (max-width: 480px) {
  .site-footer__top { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 16px; }
  .site-footer__brand { grid-column: 1 / -1; }
  .site-footer__top > .site-footer__explore { grid-column: 1 / -1; grid-row: 2; }
  .site-footer .site-footer__explore ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 16px; }
  .site-footer__top a { white-space: nowrap; }
  .site-footer__top > .site-footer__connect { grid-column: 3; grid-row: 2; align-self: end; justify-self: start; }
}

/* ---------- Motion ---------- */
/* Hidden start state only when JS has opted in (html.js-motion) and the visitor allows motion. */
.js-motion [data-reveal] { opacity: 0; }
.js-motion [data-reveal-group] > * { opacity: 0; }

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