/* ==========================================================================
   HealthQuotient.ai — brand stylesheet
   --------------------------------------------------------------------------
   Light, airy, photography-led. Brand hues come from the HQ.AI mark:
   navy-teal letterforms, electric cyan, and the azure "AI". Archivo for
   display, Instrument Sans for text, JetBrains Mono for small labels.
   ========================================================================== */

:root {
  /* ---- sampled from the HQ.AI mark ----------------------------------
     #0E3446 wordmark navy-teal · #17708A letterform mid-tone
     #1FD6F0 electric cyan · #2BB8E8 azure "AI" · #B9C9D0 chrome
     ------------------------------------------------------------------- */

  /* grounds */
  --bg:         #FFFFFF;
  --mist:       #F0F8FA;   /* the brand's barely-tinted cyan wash */
  --mist-2:     #DDEFF4;
  --night:      #0A2E3E;   /* deep navy-teal bands, from the wordmark */
  --night-2:    #10465C;

  /* ink: the wordmark navy-teal */
  --ink:        #0E3446;
  --ink-2:      #245063;
  --mute:       #4A6F7E;
  --line:       rgba(14, 52, 70, .11);
  --line-2:     rgba(14, 52, 70, .2);

  /* brand */
  --teal:       #17708A;
  --azure:      #0B6E85;   /* primary brand action colour (cyan, darkened for contrast) */
  --accent:     #0B6E85;
  --sky:        #2BB8E8;   /* the "AI" azure */
  --cyan:       #1FD6F0;   /* the mark's electric cyan, used on dark */
  --cyan-soft:  #DDF4FA;
  --chrome:     #B9C9D0;

  /* on dark */
  --d-text:     #DBECF2;
  --d-mute:     #8DAFBC;
  --d-line:     rgba(155, 205, 220, .18);

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

  --step--1: clamp(.84rem, .82rem + .1vw, .9rem);
  --step-0:  clamp(1rem, .97rem + .15vw, 1.06rem);
  --step-1:  clamp(1.15rem, 1.08rem + .35vw, 1.35rem);
  --step-2:  clamp(1.45rem, 1.25rem + .9vw, 2rem);
  --step-3:  clamp(2rem, 1.6rem + 2vw, 3.3rem);
  --step-4:  clamp(2.5rem, 1.8rem + 3.4vw, 4.6rem);

  --r-lg: 32px;
  --r-md: 24px;
  --gutter: clamp(16px, 4vw, 40px);
  --wrap: 1240px;

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -.03em;
  text-wrap: balance;
  color: var(--ink);
  margin: 0;
}
h3 { letter-spacing: -.02em; }
p { margin: 0; }
img { max-width: 100%; display: block; }

a { color: var(--accent); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--azure); outline-offset: 3px; border-radius: 6px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 99; background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 600; }
.skip:focus { left: 12px; top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 9vw, 128px); }

/* highlight words take the logo letterforms' teal-to-azure sweep */
.hl { color: var(--teal); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hl {
    background: linear-gradient(100deg, #0E5C73 0%, var(--teal) 35%, #1B9CC4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  .on-dark .hl { background: linear-gradient(100deg, var(--cyan), var(--sky)); -webkit-background-clip: text; background-clip: text; }
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--mist);
  border: 1px solid var(--line);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--ink-2);
  margin-bottom: 22px;
}
/* node ring from the mark, reused as the section marker */
.kicker::before { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--accent); }
.on-dark .kicker { background: rgba(255,255,255,.07); border-color: var(--d-line); color: var(--d-text); }
.on-dark .kicker::before { border-color: var(--cyan); box-shadow: 0 0 10px rgba(31, 214, 240, .5); }

/* legacy label used by the privacy page */
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 0 0 16px; }

.lede { font-size: var(--step-1); line-height: 1.55; color: var(--ink-2); max-width: 58ch; }

/* ---------- buttons --------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--accent);
  color: #fff;
  font-family: var(--display);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: -.005em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-1px); background: #0D8098; box-shadow: 0 12px 28px -14px rgba(11, 110, 133, .85); }
.btn svg { flex: none; }
.btn--azure { background: var(--accent); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { background: var(--mist); box-shadow: none; }
/* on the deep bands the accent flips to the mark's bright cyan */
.on-dark .btn { background: var(--cyan); color: #062935; }
.on-dark .btn:hover { background: #6BE8FA; box-shadow: 0 12px 30px -14px rgba(31, 214, 240, .6); }

/* ---------- floating pill header -------------------------------------- */

.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 40;
  padding-top: 14px;
}
.site-header .wrap { max-width: 1120px; }

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 62px;
  padding: 8px 8px 8px 20px;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 10px 30px -18px rgba(11, 29, 38, .35);
  transition: box-shadow .25s ease;
}
.site-header[data-stuck="true"] .nav { box-shadow: 0 14px 34px -16px rgba(11, 29, 38, .42); }
.nav__spacer { flex: 1; }

.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.logo img { height: 34px; width: auto; }
.logo__wm { font-family: var(--display); font-size: 1.08rem; font-weight: 800; letter-spacing: -.03em; color: var(--ink); white-space: nowrap; }
.logo__wm i { font-style: normal; color: var(--sky); }

.nav__links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav__links a { color: var(--ink-2); text-decoration: none; font-size: .92rem; font-weight: 500; }
.nav__links a:hover { color: var(--ink); }
.nav__cta { padding: 12px 20px; font-size: .88rem; }

.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}
.nav__drawer {
  display: none;
  margin-top: 8px;
  padding: 10px 20px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: 0 18px 40px -20px rgba(11, 29, 38, .4);
}
.nav__drawer ul { list-style: none; margin: 0; padding: 0; }
.nav__drawer a:not(.btn) { display: block; padding: 13px 0; color: var(--ink); text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--line); }
.nav__drawer .btn { width: 100%; margin-top: 16px; }

@media (max-width: 920px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  .nav[data-open="true"] + .nav__drawer { display: block; }
}
@media (max-width: 420px) { .logo__wm { font-size: .94rem; } }

/* ---------- hero ------------------------------------------------------ */

.hero {
  margin-top: -76px;            /* slide under the floating header */
  padding-top: calc(76px + clamp(56px, 8vw, 104px));
  padding-bottom: clamp(32px, 3.5vw, 52px);
  background:
    radial-gradient(60% 55% at 12% 8%, rgba(31, 214, 240, .17), transparent 70%),
    radial-gradient(55% 60% at 92% 18%, rgba(43, 184, 232, .12), transparent 70%),
    linear-gradient(180deg, #F0F8FA 0%, #FFFFFF 100%);
  text-align: center;
}
.hero h1 { font-size: var(--step-4); max-width: 17ch; margin-inline: auto; }
.hero__sub { margin: 24px auto 0; max-width: 56ch; }

.hero__stage {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.1fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: end;
  text-align: left;
}
.hero__photo {
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  box-shadow: 0 40px 80px -40px rgba(11, 29, 38, .45);
}
.hero__photo { position: relative; }
.hero__photo > img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 50%; }
/* brand wash: navy-teal from the base, a breath of the mark's cyan at the corner */
.hero__photo::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(70% 60% at 100% 0%, rgba(31, 214, 240, .22), transparent 60%),
    linear-gradient(0deg, rgba(10, 46, 62, .5) 0%, rgba(10, 46, 62, 0) 45%);
}
.hero__badge {
  position: absolute;
  right: clamp(12px, 2.4vw, 22px);
  bottom: clamp(12px, 2.4vw, 22px);
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 12px 30px -16px rgba(10, 46, 62, .6);
  max-width: calc(100% - 24px);
}
.hero__badge img { height: 26px; width: auto; flex: none; }
.hero__badge span { display: grid; line-height: 1.2; min-width: 0; }
.hero__badge strong { font-family: var(--display); font-size: .92rem; font-weight: 800; letter-spacing: -.02em; color: var(--ink); white-space: nowrap; }
.hero__badge strong i { font-style: normal; color: var(--sky); }
.hero__badge small { font-size: .74rem; color: var(--mute); }
@media (max-width: 520px) { .hero__badge small { display: none; } }

.hero__side { display: grid; gap: 10px; padding-bottom: 8px; }
.hero__big { font-family: var(--display); font-size: clamp(2.4rem, 2rem + 1.6vw, 3.4rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--ink); }
.hero__big b { font-weight: 500; color: var(--teal); }
.hero__small { font-size: var(--step--1); color: var(--mute); max-width: 24ch; }
.hero__side--right { justify-items: start; gap: 18px; }
.hero__side--right p { font-size: var(--step--1); color: var(--ink-2); max-width: 28ch; }

@media (max-width: 900px) {
  .hero__stage { grid-template-columns: 1fr 1fr; }
  .hero__photo { grid-column: 1 / -1; order: -1; }
}
@media (max-width: 520px) {
  .hero__stage { grid-template-columns: 1fr; }
}

/* the expertise row closes the hero, so it sits tight to the section below it */
#framework { padding-top: clamp(44px, 4.5vw, 68px); }

.capabilities {
  margin-top: clamp(32px, 3.5vw, 48px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 12px;
}
.capabilities__label { font-size: .86rem; color: var(--mute); margin-right: 6px; }
.chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: .82rem;
  font-weight: 500;
  color: var(--ink-2);
}

/* ---------- section heads --------------------------------------------- */

.head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.head--center { margin-inline: auto; text-align: center; }
.head h2 { font-size: var(--step-3); }
.head .lede { margin-top: 18px; }
.head--center .lede { margin-inline: auto; }

/* ---------- framework: four moves ------------------------------------- */

.moves {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.move {
  background: var(--mist);
  border-radius: var(--r-md);
  padding: 26px 24px 28px;
  display: grid;
  gap: 6px;
  align-content: start;
}
.move__n { font-family: "JetBrains Mono", ui-monospace, Consolas, monospace; font-size: .76rem; font-weight: 700; color: var(--azure); letter-spacing: .06em; margin-bottom: 26px; }
.move h3 { font-size: var(--step-2); font-weight: 700; letter-spacing: -.03em; }
.move p { color: var(--mute); font-size: var(--step--1); }
@media (max-width: 900px) { .moves { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .moves { grid-template-columns: 1fr; } }

/* ---------- dark photo panel (outcomes) ------------------------------- */

.panel {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  min-height: 560px;
  display: grid;
  align-items: end;
  color: var(--d-text);
  background: var(--night);
  isolation: isolate;
}
.panel > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
}
.panel::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 30, 40, .92) 0%, rgba(7, 30, 40, .72) 42%, rgba(7, 30, 40, .25) 100%),
    linear-gradient(0deg, rgba(7, 30, 40, .55), transparent 55%);
}
.panel__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 40px;
  align-items: end;
  padding: clamp(32px, 5vw, 64px);
}
.panel h2 { color: #fff; font-size: var(--step-3); max-width: 13ch; margin-bottom: 26px; }

.outcome-stack { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.outcome-stack li {
  font-family: var(--display);
  font-size: clamp(1.9rem, 1.5rem + 1.8vw, 3.1rem);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.12;
  color: rgba(234, 244, 247, .38);
}
.outcome-stack li:first-child { color: #fff; }
.outcome-stack li:nth-child(2) { color: rgba(234, 244, 247, .72); }
.outcome-stack li:nth-child(3) { color: rgba(234, 244, 247, .55); }

.panel__note { display: grid; gap: 16px; justify-items: start; max-width: 36ch; }
.panel__note p { color: var(--d-text); font-size: var(--step-0); }

@media (max-width: 820px) {
  .panel { min-height: 0; }
  .panel__inner { grid-template-columns: 1fr; padding-top: 180px; }
  .panel::before { background: linear-gradient(0deg, rgba(7, 30, 40, .94) 30%, rgba(7, 30, 40, .45) 100%); }
}

/* ---------- about: photo + story ------------------------------------- */

.story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.story__photo { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 4.2; }
.story__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.story h2 { font-size: var(--step-3); margin-bottom: 24px; }
.story__body { display: grid; gap: 18px; }
.story__body p { color: var(--ink-2); max-width: 60ch; }
.pullquote {
  margin-top: 8px;
  padding: 22px 24px;
  border-radius: var(--r-md);
  background: var(--mist);
  font-size: var(--step-1);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -.01em;
  color: var(--ink) !important;
}
@media (max-width: 860px) {
  .story { grid-template-columns: 1fr; }
  .story__photo { aspect-ratio: 4 / 3; }
}

/* ---------- services: soft cards with tag pills ---------------------- */

.services__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.service {
  background: var(--mist);
  border-radius: var(--r-lg);
  padding: clamp(26px, 3.4vw, 40px);
  display: grid;
  gap: 14px;
  align-content: start;
  transition: background .2s ease;
}
.service:hover { background: var(--mist-2); }
.service__ico {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 16px;
  background: #fff;
  color: var(--azure);
  margin-bottom: 18px;
  box-shadow: 0 8px 20px -14px rgba(11, 29, 38, .5);
}
.service h3 { font-size: var(--step-2); font-weight: 700; letter-spacing: -.03em; }
.service > p { color: var(--ink-2); font-size: var(--step-0); max-width: 48ch; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
@media (max-width: 760px) { .services__grid { grid-template-columns: 1fr; } }

/* ---------- who we work with: photo cards ---------------------------- */

.segments { background: var(--mist); }
.seg-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.seg {
  background: #fff;
  border-radius: var(--r-lg);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  box-shadow: 0 24px 50px -40px rgba(11, 29, 38, .5);
}
.seg__photo { aspect-ratio: 16 / 10; overflow: hidden; position: relative; }
.seg__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.seg:hover .seg__photo img { transform: scale(1.03); }
/* one brand grade across the set, so four stock photos read as a series */
.seg__photo img { filter: saturate(.92) contrast(1.06); }
.seg__photo::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10, 46, 62, 0) 50%, rgba(10, 46, 62, .42) 100%),
    rgba(23, 112, 138, .10);
  mix-blend-mode: multiply;
}
.seg__tag, .seg__notice { z-index: 1; }

/* DTC card: vector platform screen laid over the photo, above the brand grade */
.seg__ui {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 1;
  pointer-events: none;
}
.seg__ui .ui-title { font-family: var(--display); font-size: 16px; font-weight: 800; letter-spacing: -.02em; fill: #0E3446; }
.seg__ui .ui-pill  { font-family: var(--font); font-size: 10.5px; font-weight: 600; fill: #0B6E85; }
.seg__ui .ui-meta  { font-family: var(--font); font-size: 10.5px; font-weight: 500; fill: #4A6F7E; }
.seg__ui .ui-label { font-family: var(--font); font-size: 11.5px; font-weight: 500; fill: #4A6F7E; }
.seg__ui .ui-value { font-family: var(--display); font-size: 12.5px; font-weight: 700; fill: #0E3446; }
.seg__ui .ui-btn   { font-family: var(--display); font-size: 11.5px; font-weight: 700; fill: #FFFFFF; }

/* product moment on the DTC card: the result the customer is waiting for */
.seg__notice {
  position: absolute;
  right: 14px; bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100% - 28px);
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 12px 28px -14px rgba(10, 46, 62, .65);
  color: var(--accent);
}
.seg__notice svg { flex: none; }
.seg__notice > span { display: grid; line-height: 1.25; }
.seg__notice b { font-family: var(--display); font-size: .86rem; font-weight: 700; color: var(--ink); }
.seg__notice small { font-size: .74rem; color: var(--mute); }
.seg__tag {
  position: absolute;
  left: 16px; top: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(6px);
  font-size: .76rem;
  font-weight: 600;
  color: var(--ink);
}
.seg__body { padding: clamp(24px, 3vw, 34px); display: grid; gap: 14px; align-content: start; }
.seg h3 { font-size: var(--step-2); font-weight: 700; letter-spacing: -.03em; }
.seg__body p { color: var(--ink-2); font-size: var(--step--1); line-height: 1.7; }
.seg__body strong { color: var(--ink); font-weight: 600; }
@media (max-width: 820px) { .seg-grid { grid-template-columns: 1fr; } }

/* ---------- approach: three steps beside a photo --------------------- */

.approach {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.approach h2 { font-size: var(--step-3); margin-bottom: 18px; }
.approach .lede { font-size: var(--step-0); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 18px;
  padding: 20px 22px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: #fff;
}
.step__n {
  grid-row: span 2;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--cyan-soft);
  color: var(--accent);
  font-size: .85rem;
  font-weight: 700;
}
.step h3 { font-size: var(--step-1); font-weight: 600; letter-spacing: -.015em; }
.step p { color: var(--mute); font-size: var(--step--1); }
@media (max-width: 860px) { .approach { grid-template-columns: 1fr; } }

/* ---------- contact --------------------------------------------------- */

.contact-card {
  border-radius: var(--r-lg);
  background:
    radial-gradient(70% 90% at 100% 0%, rgba(31, 214, 240, .18), transparent 60%),
    var(--night);
  color: var(--d-text);
  padding: clamp(28px, 5vw, 64px);
}
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; } }
.contact-card h2 { color: #fff; font-size: var(--step-3); margin-bottom: 18px; max-width: 14ch; }
.contact-card .lede { color: var(--d-mute); font-size: var(--step-0); }
.contact__direct { margin: 30px 0 0; padding-top: 24px; border-top: 1px solid var(--d-line); display: grid; gap: 6px; }
.contact__direct dt { font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--d-mute); }
.contact__direct dd { margin: 0 0 14px; color: #fff; }
.contact__direct a { color: var(--cyan); }

.form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-size: .82rem; font-weight: 600; color: var(--d-mute); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--d-line);
  border-radius: 14px;
  color: #fff;
  font-family: var(--font);
  font-size: var(--step-0);
  transition: border-color .16s ease, background .16s ease;
}
.field textarea { resize: vertical; min-height: 116px; line-height: 1.6; }
.field input::placeholder, .field textarea::placeholder { color: #7F98A3; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--cyan); background: rgba(255, 255, 255, .1); outline: none; }
.field select {
  appearance: none; cursor: pointer; padding-right: 42px;
  background-image: linear-gradient(45deg, transparent 50%, var(--d-mute) 50%), linear-gradient(135deg, var(--d-mute) 50%, transparent 50%);
  background-position: calc(100% - 22px) calc(50% + 2px), calc(100% - 16px) calc(50% + 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
.field select option { background: var(--night-2); color: #fff; }
.form .btn { margin-top: 4px; }
.form__note { font-size: .8rem; color: var(--d-mute); line-height: 1.6; }
.form__note a { color: var(--cyan); }
.form__status { font-size: .88rem; color: var(--cyan); min-height: 1.2em; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.tagline { text-align: center; font-size: var(--step-1); color: var(--d-mute); margin-top: 48px; padding-top: 30px; border-top: 1px solid var(--d-line); }
.tagline b { color: #fff; font-weight: 600; }

/* ---------- footer ---------------------------------------------------- */

.site-footer { padding-block: 56px 36px; background: var(--bg); color: var(--ink-2); }
.site-footer__top {
  display: flex; flex-wrap: wrap; gap: 28px 48px;
  justify-content: space-between; align-items: start;
  padding-bottom: 32px; border-bottom: 1px solid var(--line);
}
.site-footer__blurb { max-width: 38ch; color: var(--mute); font-size: .9rem; margin-top: 14px; }
.site-footer__cols { display: flex; flex-wrap: wrap; gap: 36px 64px; }
.site-footer h4 { font-size: .86rem; font-weight: 700; letter-spacing: 0; color: var(--ink); margin-bottom: 14px; }
.site-footer nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer nav a { color: var(--mute); text-decoration: none; font-size: .9rem; }
.site-footer nav a:hover { color: var(--ink); }
.site-footer__base { padding-top: 24px; display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; font-size: .84rem; color: var(--mute); }
.site-footer__base a { color: var(--mute); text-decoration: none; }
.site-footer__base a:hover { color: var(--ink); }

/* ---------- legal page ------------------------------------------------ */

.legal { padding-block: clamp(56px, 8vw, 96px); }
.legal__inner { max-width: 74ch; }
.legal h1 { font-size: var(--step-3); margin-bottom: 14px; }
.legal__meta { font-size: .84rem; color: var(--mute); margin-bottom: 40px; }
.legal h2 { font-size: var(--step-1); font-weight: 600; letter-spacing: -.015em; margin: 42px 0 14px; }
.legal p, .legal li { color: var(--ink-2); line-height: 1.75; }
.legal p + p { margin-top: 14px; }
.legal ul { padding-left: 20px; display: grid; gap: 8px; margin: 14px 0 0; }
.legal strong { color: var(--ink); }

/* ---------- entrance (from a visible resting state) ------------------- */

@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .8s cubic-bezier(.22, .68, .3, 1) both; }
  .rise--2 { animation-delay: .08s; }
  .rise--3 { animation-delay: .16s; }
  @keyframes rise {
    from { opacity: .4; transform: translateY(14px); }
    to   { opacity: 1;  transform: none; }
  }
}
