/* ============================================================================
   Neurotree landing page
   Built from the Figma file "Neurotree Landing Page", frame "Logged out".

   Naming: BEM. A block is a standalone thing (.profile-card), an element is a
   part of it (.profile-card__name), a modifier is a variation
   (.button--primary). Elements never nest more than one level deep.

   Tokens below carry the names used in the file's own style sheet, so a value
   here can be traced back to a Figma style rather than a stray hex.
   ========================================================================= */

/* ── Fonts ───────────────────────────────────────────────────────────
   The real Gothia faces, both variable, so one file covers the whole weight
   range the design uses. Taken from the same files the Neurolook repo serves.
   ------------------------------------------------------------------- */
@font-face {
  font-family: "Gothia Sans VF";
  src: url("fonts/GothiaSansVF-Regular.woff2") format("woff2-variations"),
       url("fonts/GothiaSansVF-Regular.woff") format("woff");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Gothia Serif VF";
  src: url("fonts/GothiaSerifVF-Regular.woff2") format("woff2-variations"),
       url("fonts/GothiaSerifVF-Regular.woff") format("woff");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Gothia Serif VF";
  src: url("fonts/GothiaSerifVF-Italic.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* ── Tokens ──────────────────────────────────────────────────────────── */
:root {
  /* Primary */
  --color-cardinal: #910e1c;
  --color-midnight: #003049;
  --color-elm: #fef9ee;

  /* Secondary */
  --color-thunder: #2e5367;
  --color-ash: #585248;
  --color-hickory: #beb4a0;
  --color-maple: #f7f0e3;
  --color-coral: #e0888f;
  --color-cloud: #dfe8ec;
  --color-sky: #bfcbd1;

  /* The link blue, used by the hero subheadline and the methods call to
     action. Note it is not the same value as the UI Specific/UI Blue style
     in the file, which is #0b6bc3. Both links in the design use this one. */
  --color-ui-blue: #0a60af;

  /* Autocomplete. Neither of these is a Figma style yet: the row text is
     #1a1a1a, close to Greyscale/Graphite at #2d2d2d but not the same, and
     the panel border is #e0e4e8. */
  --color-suggestion-ink: #1a1a1a;
  --color-suggestion-border: #e0e4e8;

  /* Greyscale */
  --color-graphite: #2d2d2d;
  --color-platinum: #f4f5f6;
  --color-white: #ffffff;

  /* UI specific */
  --color-meta-grey: #4d5966;
  --color-panel-navy: #1f485e;

  /* From the Refresh and Authentication style sets in Figma, which name
     their colours by hex rather than by a house name. Poplar carries the
     register panel and the step and profile cards; the rest are named for
     where they are used, having only one use each. */
  --color-poplar: #fffdf9;
  --color-blush: #fff2f3;
  /* The footer links use the UI Specific / UI Blue style, which is a shade
     deeper than the #0A60AF the hero and methods sections carry. */
  --color-ui-blue-style: #0b6bc3;
  /* the result line in the Six Degrees widget, which has no Figma style */
  --color-frost: #ebf0f5;
  --color-modal-border: rgba(0, 0, 0, 0.2);
  --color-modal-rule: #e6e6e6;
  --color-modal-scrim: rgba(0, 0, 0, 0.5);
  --color-placeholder: #717171;
  --color-button-navy: #254252;
  /* Used by the page frames for section backgrounds. Not yet a Figma style. */
  --color-page-grey: #f7f8fa;

  /* Type. Gothia Serif carries the display and text sizes, Gothia Sans the
     interface. The fallbacks only come into play if a font file fails. */
  --font-display: "Gothia Serif VF", Georgia, "Times New Roman", serif;
  --font-serif: "Gothia Serif VF", Georgia, "Times New Roman", serif;
  --font-sans: "Gothia Sans VF", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  /* Gothia ships a Book weight between Light and Regular, so the numeric
     ladder is 300 Light, 350 Book, 400 Regular, 500 Medium, 600 SemiBold. */
  --weight-light: 300;
  --weight-book: 350;

  /* Motion. One easing curve and two durations across the whole page, so
     every hover, focus and reveal settles with the same hand. Nothing here
     moves anything at rest; the animations only run on interaction. */
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --speed-fast: 140ms;
  --speed-base: 200ms;

  /* Radius, matching the five step scale documented in the UI library */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Layout */
  --page-width: 1440px;
  --content-width: 1264px;
  --gutter: 88px;
}

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

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

ul { list-style: none; }

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

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

:focus-visible {
  outline: 2px solid var(--color-cardinal);
  outline-offset: 3px;
}

/* ── Page ────────────────────────────────────────────────────────────── */
.page {
  background: var(--color-white);
  color: var(--color-thunder);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

.page__main { display: block; }

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

.skip-link {
  position: absolute;
  top: -999px;
  left: 16px;
  z-index: 10;
  padding: 10px 16px;
  background: var(--color-midnight);
  color: var(--color-white);
  font-size: 14px;
  text-decoration: none;
  border-radius: var(--radius-xs);
}
.skip-link:focus { top: 12px; }

/* A single rule for the content column every section shares. */
.announcement__text,
.site-header__inner,
.hero__inner,
.explore__inner,
.lineage__inner,
.recent__inner,
.promo__inner {
  width: 100%;
  /* 1264 of content plus the padding, so the column lands on the design's
     88px gutters at 1440 and still has air on a small screen */
  max-width: calc(var(--content-width) + 48px);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ── Shared: links and buttons ───────────────────────────────────────── */
.link {
  color: var(--color-thunder);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.01em;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.link:hover { color: var(--color-cardinal); }

.link--on-dark {
  font-weight: 500;
  color: var(--color-maple);
}
.link--on-dark:hover { color: var(--color-white); }

.link--with-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
/* View All turns UI blue on hover. The copies sitting on navy cards keep
   their own white hover, which UI blue would not survive. */
.link--with-icon:not(.link--on-dark):hover { color: var(--color-ui-blue); }

/* The line box is 22.4px tall but the cap-height band is centred 1.44px
   higher, so an icon centred on the box reads as sitting low. */
.link__icon {
  flex: none;
  width: 22px;
  height: 22px;
  transform: translateY(-1.5px);
  transition: transform var(--speed-fast) var(--ease-out);
}
/* The arrow steps toward where it is about to take you. */
.link--with-icon:hover .link__icon { transform: translate(3px, -1.5px); }

/* One chevron asset, masked, so it takes the colour of whatever it sits in.
   The exported SVG carries a fixed #2D2D2D glyph, which is right on a light
   background and wrong on the navy sections. */
.icon-chevron {
  display: inline-block;
  background-color: currentColor;
  -webkit-mask: url("assets/icon-chevron-mask.svg") center / contain no-repeat;
  mask: url("assets/icon-chevron-mask.svg") center / contain no-repeat;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-xs);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.button--primary {
  background: var(--color-thunder);
  color: var(--color-white);
  font-weight: 500;
  font-size: 15px;
}
.button--primary:hover { background: var(--color-midnight); }

.button--outline {
  background: var(--color-cloud);
  color: var(--color-midnight);
  border: 1px solid var(--color-midnight);
}
.button--outline:hover { background: var(--color-white); }

.button--ghost {
  background: transparent;
  color: var(--color-midnight);
  font-weight: 500;
}
.button--ghost:hover { background: rgba(0, 48, 73, 0.06); }

/* The lead button: the tall Thunder one the hero search carries, shared by
   the promo so the page has a single call to action. It follows
   .button--primary here because the Cardinal hover has to beat the Midnight
   one at equal specificity. */
.button--lead {
  height: 48px;
  padding-inline: 48px;
  border-radius: 3px;
}
.button--lead:hover { background: var(--color-cardinal); }

/* ── Announcement ────────────────────────────────────────────────────── */
/* The centring sits on the bar rather than on the paragraph, so the link
   flows inline after the last word instead of standing beside the whole
   wrapped block as a second flex item. */
.announcement[hidden] { display: none; }

.announcement {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 6px 24px;
  background: var(--color-cardinal);
  color: var(--color-elm);
}

.announcement__text {
  margin: 0;
  /* Held to the content column so a single line does not run the full width
     of a very wide screen. At 14px the sentence fits inside it either way. */
  max-width: var(--content-width);
  font-size: 14px;
  /* pinned rather than unitless, so the bar lands on a whole 32px */
  line-height: 20px;
  letter-spacing: 0.01em;
  text-align: center;
  /* At 14px the sentence needs about 1115px, so it holds one line down to
     roughly 1170px wide and has to wrap below that. Balancing evens the
     lines out instead of leaving one word stranded; browsers without it
     wrap normally. */
  text-wrap: balance;
}

.announcement__link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Header ──────────────────────────────────────────────────────────── */
/* The nav rides along at the top of the window. It slips out of the way
   while the page is moving and comes back as soon as scrolling stops, so it
   is there when a reader pauses but never covers what they are reading past.
   Sticky rather than fixed, so it still takes its place in the flow and the
   page does not jump when it first pins. */
.site-header {
  position: sticky;
  top: 0;
  /* above the page, below the welcome banner (900) and the modal (1000) */
  z-index: 800;
  background: var(--color-platinum);
  border-bottom: 1px solid rgba(46, 83, 103, 0.12);
  transition: transform var(--speed-base) var(--ease-out);
}
.site-header--hidden { transform: translateY(-100%); }

/* Spans the window rather than stopping at the 1440 page width, so the
   brand and the nav stay 20px from the edges on a wide monitor, matching
   the footer. The shared content column rule above sets a max-width, so
   this has to clear it explicitly. */
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 44px;
  max-width: none;
  padding-inline: 20px;
}

.brand { display: inline-flex; flex: none; }
.brand__logo { width: 148px; height: 32px; }

.site-header__tools {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav__link {
  font-size: 14px;
  line-height: 20px;
  color: var(--color-thunder);
  text-decoration: none;
}
/* Colour alone, no rule: the nav reads as one row of labels and underlines
   on hover made it busy. */
.site-nav__link:hover { color: var(--color-cardinal); }

/* ── Search field ────────────────────────────────────────────────────── */
.search-field { display: flex; align-items: center; }

.search-field__label {
  font-size: 14px;
  line-height: 20px;
  color: var(--color-graphite);
}

.search-field__input {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: var(--weight-light);
  color: var(--color-graphite);
  background: var(--color-white);
  border: 0;
}
.search-field__input::placeholder { color: var(--color-ash); }
.search-field__input:focus { outline: none; }

/* Compact: the one in the header */
.search-field--compact { gap: 8px; }

.search-field--compact .search-field__input {
  width: 140px;
  height: 32px;
  padding: 0 8px;
  /* sits on the bar rather than cutting a white hole in it; the Thunder
     border is what gives the field its edge */
  background: var(--color-platinum);
  border: 1px solid var(--color-thunder);
  border-radius: var(--radius-xs);
}
.search-field--compact .search-field__input:focus-visible {
  outline: 2px solid var(--color-thunder);
  outline-offset: 1px;
}

.search-field__submit {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: var(--color-thunder);
  border-radius: var(--radius-xs);
}
/* Cardinal on hover, matching the hero Search button */
.search-field__submit:hover { background: var(--color-cardinal); }
.search-field__icon { width: 18px; height: 18px; }

/* Large: the one in the hero */
.search-field--large {
  gap: 8px;
  width: 100%;
  max-width: 579px;
  margin-inline: auto;
}
.search-field--large .search-field__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* 432 x 48 in the design: a 0.5px Cloud hairline, 8px corners, 16px of side
   padding and a 12px gap to the placeholder, under a soft drop shadow. The
   shadow sits on the field only, never on the button beside it. */
.search-field__control {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 auto;
  min-width: 0;
  height: 48px;
  padding: 0 16px;
  background: var(--color-white);
  border-radius: var(--radius-sm);
  /* The hairline is an inset shadow rather than a border. Figma's stroke is
     set to INSIDE, so it overlaps the padding instead of adding to it, and a
     real border would push the icon to 16.5px and the field to 433. */
  box-shadow:
    inset 0 0 0 0.5px var(--color-cloud),
    1px 2px 5px rgba(103, 103, 103, 0.15);
}
.search-field__control:focus-within {
  box-shadow:
    inset 0 0 0 1px var(--color-thunder),
    1px 2px 5px rgba(103, 103, 103, 0.15);
}
.search-field__control .search-field__icon { width: 24px; height: 24px; flex: none; }

.search-field--large .search-field__input { height: 46px; }

/* The autocomplete wrapper takes the field's place in the row */
.search-field--large .autocomplete { flex: 1 1 auto; min-width: 0; text-align: left; }

/* 139 x 48, which is 48px of padding either side of the 43px label. The 3px
   radius is the design's own value and the one place on the page that is not
   on the 4 / 8 / 12 / 16 / 24 scale. */
/* Only its placement in the field; the look comes from .button--lead. */
.search-field__button { flex: none; }

.search-field__status {
  min-height: 20px;
  margin-top: 4px;
  font-size: 14px;
  color: var(--color-ash);
}

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--color-white);
}

/* 1264 wide and sitting on the content column, 46px up from the foot of the
   section, rather than a border running the full width of the viewport */
.hero__inner::after {
  content: "";
  position: absolute;
  right: 24px;
  bottom: 46px;
  left: 24px;
  height: 0.5px;
  background: var(--color-cloud);
}

/* A watermark, not a picture. The rings are scaled up and their centre is
   pulled just past the top left corner of the page, so what shows in the
   hero is the lower right quadrant fanning out across it, like light coming
   in from that corner. It is sized to stay in the empty upper left, clear of
   the search field and above the headline, while still showing the pith so
   the rings read as a trunk in section. Translating by a percentage of its
   own size keeps that relationship at any width. */
.hero__art {
  position: absolute;
  width: 940px;
  max-width: none;
  height: auto;
  opacity: 0.09;
  pointer-events: none;
}

.hero__art--dawn {
  top: 0;
  left: 0;
  transform: translate(-42%, -46%);
}

/* The second tree sits wholly inside the hero: the section clips anything
   past its own bottom edge, so the disc is raised clear of it rather than
   being cut in half where the methods section begins. It still runs off to
   the right, the way the first one runs off the top left. */
.hero__art--dusk {
  right: 0;
  bottom: 0;
  width: 820px;
  opacity: 0.07;
  transform: translate(15%, -2.5%);
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 527px) minmax(0, 1fr);
  grid-template-areas:
    "finder finder"
    "dek    stats";
  align-items: end;
  gap: 90px 48px;
  min-height: 867px;
  /* 24px from the foot of the text block down to the rule, then 46px from
     the rule to the end of the section */
  padding-block: 290px 70px;
}

.hero__finder {
  grid-area: finder;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.hero__prompt {
  font-family: var(--font-display);
  font-size: 31px;
  font-weight: var(--weight-book);
  line-height: 1.1;
  letter-spacing: 0.01em;
  color: var(--color-cardinal);
}

.hero__dek { grid-area: dek; }

.hero__title {
  max-width: 452px;
  font-family: var(--font-display);
  font-size: 39px;
  font-weight: 400;
  line-height: 1;
  color: var(--color-cardinal);
}

.hero__body {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--color-ash);
}

.hero__cta {
  color: var(--color-ui-blue);
  text-decoration: none;
  text-underline-offset: 3px;
}
/* The colour is restated because .link:hover would otherwise repaint it. */
.hero__cta:hover {
  color: var(--color-ui-blue);
  text-decoration: underline;
}

.stats {
  grid-area: stats;
  display: flex;
  justify-content: flex-end;
  gap: 0;
}

/* 220 / 134 / 220 across, butted together with no gap, so the row ends on
   the right gutter. The widths are fixed in the design rather than derived
   from the copy, so the middle one carries a modifier. The 12px radius has
   nothing to show against a transparent badge, but it is in the spec. */
.stat {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 220px;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  text-align: center;
}

.stat--narrow { width: 134px; }

.stat__value {
  font-family: var(--font-serif);
  font-size: 32px;
  /* Bold, the top of the Gothia Serif ladder: Book, Regular, Medium,
     SemiBold, Bold. The design has Medium. */
  font-weight: 700;
  /* Figma's auto line height for this face at 32px resolves to 37. Chrome
     rounds its own metric to 38, which makes the badge a pixel too tall, so
     the value is pinned. */
  line-height: 37px;
  color: var(--color-thunder);
}

.stat__label {
  font-size: 14px;
  font-weight: 500;
  /* same reason as the value above: Figma resolves auto to 16 here */
  line-height: 16px;
  letter-spacing: 0.01em;
  color: var(--color-ash);
}

/* ── Explore ─────────────────────────────────────────────────────────── */
.explore { background: var(--color-white); }

.explore__inner {
  display: grid;
  grid-template-columns: minmax(0, 406px) minmax(0, 676px);
  justify-content: space-between;
  gap: 48px;
  padding-block: 73px;
}

.explore__intro {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.explore__eyebrow {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-cardinal);
}

.explore__title {
  font-family: var(--font-display);
  font-size: 39px;
  font-weight: 400;
  line-height: 1;
  color: var(--color-thunder);
}

.explore__cta {
  font-size: 16px;
  font-weight: var(--weight-book);
  color: var(--color-midnight);
  text-decoration: none;
}

.explore__cta-link {
  font-size: inherit;
  font-weight: inherit;
  color: var(--color-ui-blue);
  text-decoration: none;
  text-underline-offset: 3px;
}
.explore__cta-link:hover {
  color: var(--color-ui-blue);
  text-decoration: underline;
}

.explore__steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

/* ── Step card ───────────────────────────────────────────────────────── */
.step-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 221px;
  padding: 24px;
  background: var(--color-poplar);
  border-radius: var(--radius-lg);
  box-shadow: inset 0 0 0 0.5px var(--color-hickory);
}

.step-card__eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
}

.step-card__number { width: 16px; height: 16px; flex: none; }

.step-card__kicker {
  font-size: 12px;
  text-transform: uppercase;
  /* one level up the Gothia Sans ladder from the design's SemiBold */
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.16em;
  color: var(--color-cardinal);
}

.step-card__title {
  font-family: var(--font-serif);
  font-size: 20px;
  /* one level up from the design's Medium: Book, Regular, Medium, SemiBold,
     Bold is the Gothia Serif ladder */
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--color-thunder);
}

/* The same text and arrow the lineage cards carry, pushed to the foot of
   the card so the three line up however long the copy above them runs. */
.step-card__action { margin-top: auto; }

.step-card__body {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.04em;
  color: var(--color-ash);
}

/* ── Featured lineages ───────────────────────────────────────────────── */
.lineage {
  background: var(--color-midnight);
  color: var(--color-platinum);
}

.lineage__inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-block: 80px 56px;
}

.lineage__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.lineage__title {
  font-family: var(--font-display);
  font-size: 39px;
  font-weight: 400;
  line-height: 1;
  color: var(--color-maple);
}

.lineage__more { padding-top: 10px; }

.lineage__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

/* ── Lineage card ────────────────────────────────────────────────────── */
.lineage-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  background: var(--color-midnight);
  border: 1px solid var(--color-sky);
  border-radius: var(--radius-xl);
}

.lineage-card__field {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-coral);
}

.lineage-card__name {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0.01em;
  color: var(--color-hickory);
}

.lineage-card__founder {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.01em;
  color: var(--color-platinum);
}

.lineage-card__body {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: var(--color-platinum);
}

.lineage-card__rule {
  height: 0;
  margin: 0;
  border: 0;
  border-top: 1px solid var(--color-hickory);
  opacity: 0.5;
}

.lineage-card__stats {
  display: flex;
  gap: 40px;
}

.lineage-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lineage-stat__value {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0.01em;
  color: var(--color-hickory);
}

.lineage-stat__label {
  font-size: 14px;
  font-weight: var(--weight-book);
  line-height: 1.6;
  letter-spacing: 0.01em;
  color: var(--color-platinum);
}

.lineage-card__action { margin-top: auto; }

/* ── Degrees of separation ───────────────────────────────────────────── */
.degrees {
  display: grid;
  grid-template-columns: minmax(0, 656px) minmax(0, 432px);
  justify-content: space-between;
  align-items: center;
  gap: 48px;
  padding: 64px;
  background: var(--color-panel-navy);
  border: 1px solid var(--color-thunder);
  border-radius: var(--radius-xl);
}

.degrees__intro {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.degrees__eyebrow {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-elm);
}

.degrees__title {
  font-family: var(--font-display);
  font-size: 39px;
  font-weight: 400;
  line-height: 1;
  color: var(--color-maple);
}

.degrees__body {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: var(--color-hickory);
}

.degrees__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.degrees__form .search-field__control { width: 100%; }

/* Node 1191:2896. The form stacks on a 16px gap but the design puts this
   12px under the scientist field, so it pulls itself up by the difference. */
.degrees__result {
  margin: -4px 0 0;
  /* up from the design's 13px: Learn more is a link, and 16 gives it a
     target worth aiming at */
  font-size: 16px;
  font-weight: 600;
  line-height: normal;
}
.degrees__result[hidden] { display: none; }

.degrees__steps { color: var(--color-frost); }

.degrees__learn {
  /* An inline box is only as tall as the type, so this pads the hit area out
     to 24px without taking any more room in the line. */
  padding: 4px 0;
  color: var(--color-coral);
  text-decoration: none;
}
.degrees__learn:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ── Select ──────────────────────────────────────────────────────────
   A listbox rather than a native select, because the open state has to
   match the autocomplete panel and a native popup cannot be styled. */
.select { position: relative; }

.select__button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  height: 48px;
  padding: 0 16px 0 10px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: var(--weight-light);
  color: var(--color-ash);
  text-align: left;
  background: var(--color-white);
  border-radius: var(--radius-sm);
  box-shadow: inset 0 0 0 0.5px var(--color-sky);
}
.select__button[aria-expanded="true"] {
  box-shadow: inset 0 0 0 1px var(--color-thunder);
}

.select__value {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* the chevron asset points right, so it is turned to point down, and up
   again once the list is open */
.select__icon {
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--color-ash);
  transform: rotate(90deg);
  transition: transform 0.15s ease;
}
.select__button[aria-expanded="true"] .select__icon { transform: rotate(-90deg); }

/* ── Recently added ──────────────────────────────────────────────────── */
.recent { background: var(--color-page-grey); }

.recent__inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-block: 80px;
}

.recent__title {
  font-family: var(--font-display);
  font-size: 39px;
  font-weight: 400;
  line-height: 1;
  color: var(--color-thunder);
}

.recent__columns {
  display: grid;
  grid-template-columns: minmax(0, 703px) minmax(0, 408px);
  justify-content: space-between;
  gap: 48px;
  align-items: start;
}

.recent__main {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.recent__list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.recent__aside-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.01em;
  color: var(--color-midnight);
}

/* ── Profile card ────────────────────────────────────────────────────── */
.profile-card {
  padding: 24px;
  background: var(--color-poplar);
  border-radius: var(--radius-lg);
  box-shadow: inset 0 0 0 0.5px var(--color-hickory);
}

.profile-card__name {
  font-size: 26px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0.01em;
  color: var(--color-cardinal);
}

.profile-card__role {
  margin-top: 4px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.01em;
  color: var(--color-meta-grey);
}

.profile-card__subhead {
  margin-top: 16px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: var(--color-thunder);
}

.profile-card__affiliation {
  margin-top: 4px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: var(--color-meta-grey);
}

.profile-card__added {
  margin-top: 16px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.01em;
  color: var(--color-thunder);
}

/* ── Activity list ───────────────────────────────────────────────────── */
.activity {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 24px;
}

.activity__item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 24px;
}
.activity__item::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 0.5px;
  background: var(--color-cloud);
}
.activity__item:last-child { padding-bottom: 0; }
.activity__item:last-child::after { content: none; }

.activity__name {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0.01em;
  color: var(--color-midnight);
}

.activity__role {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.01em;
  color: var(--color-thunder);
}

/* ── Fun facts ───────────────────────────────────────────────────────── */
.facts {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  /* the side padding leaves room for the arrows, which hang off the card */
  padding: 113px 56px 64px;
  background: var(--color-cloud);
}

/* The two arrows straddle the card's edges, as they do in the design, so the
   card keeps its full 740px rather than giving up room to them. */
.facts__deck {
  position: relative;
  width: 100%;
  max-width: 740px;
}

.facts__nav {
  position: absolute;
  /* the deck box runs 40px past the card, so its centre is 20px lower */
  top: calc(50% + 20px);
  /* the card is painted after these in source order, so lift them over it */
  z-index: 2;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-white);
  transform: translateY(-50%);
  box-shadow:
    inset 0 0 0 0.5px var(--color-hickory),
    0 8px 20px -8px rgba(0, 0, 0, 0.071);
  transition: background-color 0.15s ease;
}
.facts__nav { color: var(--color-midnight); }
.facts__nav:hover { background: var(--color-maple); }
.facts__nav--prev { left: -28px; }
.facts__nav--next { right: -28px; }
.facts__nav--prev .facts__nav-icon { transform: rotate(180deg); }
.facts__nav-icon { width: 22px; height: 22px; flex: none; }

/* Three cards sit behind the top one, each a degree further round and a
   little higher, which is what makes it read as a shuffled deck. Each one
   carries its own red tinted shadow, straight from the design. */
.fact-deck-layer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: var(--color-white);
  border-radius: var(--radius-xl);
  box-shadow: inset 0 0 0 0.5px var(--color-hickory);
  transform-origin: 50% 50%;
}

/* Figma measures rotation anticlockwise, CSS clockwise, so the sign flips */
.fact-deck-layer--1 {
  transform: translateY(-3.5px) rotate(-1deg);
  filter: drop-shadow(0 10px 24px rgba(237, 13, 13, 0.071));
}
.fact-deck-layer--2 {
  transform: translateY(-8px) rotate(-2deg);
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.071));
}
.fact-deck-layer--3 {
  transform: translateY(-11.7px) rotate(-3deg);
  filter: drop-shadow(0 10px 24px rgba(203, 0, 0, 0.071));
}

/* ── Dealing ───────────────────────────────────────────────────────────
   Moving between facts plays a short settle: the new card comes in a couple
   of degrees round with a small overshoot, and the three behind it unwind
   from a touch further out. Every keyframe ends on the resting transform,
   so the deck returns to exactly the geometry the design specifies. */
.facts__deck--dealing .fact-card {
  animation: fact-deal 420ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
.facts__deck--dealing .fact-deck-layer--1 {
  animation: fact-settle-1 420ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
.facts__deck--dealing .fact-deck-layer--2 {
  animation: fact-settle-2 420ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
.facts__deck--dealing .fact-deck-layer--3 {
  animation: fact-settle-3 420ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

@keyframes fact-deal {
  0%   { transform: rotate(-2.2deg) translateY(-8px); opacity: 0.35; }
  60%  { transform: rotate(0.4deg) translateY(1px); opacity: 1; }
  100% { transform: none; opacity: 1; }
}
@keyframes fact-settle-1 {
  0%   { transform: translateY(-3.5px) rotate(-3deg); }
  100% { transform: translateY(-3.5px) rotate(-1deg); }
}
@keyframes fact-settle-2 {
  0%   { transform: translateY(-8px) rotate(-4.2deg); }
  100% { transform: translateY(-8px) rotate(-2deg); }
}
@keyframes fact-settle-3 {
  0%   { transform: translateY(-11.7px) rotate(-5.4deg); }
  100% { transform: translateY(-11.7px) rotate(-3deg); }
}

.fact-card {
  position: relative;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 56px 88px;
  background: var(--color-white);
  border-radius: var(--radius-xl);
  box-shadow:
    inset 0 0 0 0.5px var(--color-hickory),
    0 14px 34px -10px rgba(190, 0, 0, 0.078);
}

/* the kicker and the fact sit together, centred in the space above the
   attribution row at the foot of the card */
.fact-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
}

.fact-card__attribution {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: 28px;
}

.fact-card__mark { width: 30px; height: 28px; }

.fact-card__text {
  font-family: var(--font-display);
  font-size: 31px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-midnight);
}

.fact-card__kicker {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-cardinal);
}

/* Cards 2 and 4 carry a list instead of a sentence, so the list items take
   the same display type the sentence would have had. */
.fact-card__list {
  margin: 0;
  padding: 0;
  list-style: none;
}
/* The bullets hang in the card's padding so the lines themselves stay on the
   same left edge as the label above them. */
.fact-card__list--bulleted {
  margin-left: -0.75em;
  padding-left: 0.75em;
  list-style: disc;
}
.fact-card__list--bulleted::marker,
.fact-card__list-item::marker {
  color: var(--color-cardinal);
}
.fact-card__list-item {
  font-family: var(--font-display);
  font-size: 31px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--color-midnight);
}
.fact-card__list-item + .fact-card__list-item {
  margin-top: 8px;
}

/* The dots sit on the page centre and See All Facts tucks under the right
   edge of the deck, so this row follows the deck's width rather than the
   page's content column. */
.facts__footer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 796px;
}

.facts__dots {
  display: flex;
  gap: 8px;
}

.facts__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 50%;
  background: var(--color-hickory);
  transition: background-color 0.15s ease;
}
.facts__dot:hover { background: var(--color-coral); }
.facts__dot--active { background: var(--color-cardinal); }

.facts__more { position: absolute; right: 0; }


/* ── Autocomplete ────────────────────────────────────────────────────── */
.autocomplete { position: relative; }

/* 432 x 33 a row, sitting 10px up under the field so the panel reads as
   attached to it rather than floating below. */
.autocomplete__list,
.select__list {
  position: absolute;
  top: calc(100% - 10px);
  right: 0;
  left: 0;
  z-index: 3;
  overflow: hidden;
  background: var(--color-white);
  border: 1px solid var(--color-suggestion-border);
  border-radius: 6px;
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.141),
    0 1px 3px rgba(0, 0, 0, 0.059);
}

.autocomplete__option,
.select__option {
  padding: 9px 12px;
  font-size: 13px;
  /* the design sets Light; raised a few steps to Medium so the names read */
  font-weight: 500;
  line-height: 15px;
  color: var(--color-suggestion-ink);
  background: var(--color-white);
  cursor: pointer;
}

/* The red is a 3px bar down the left edge only, not a border round the row,
   so it is drawn as a one sided inset shadow. */
.autocomplete__option--active,
.select__option--active {
  font-weight: 700;
  color: var(--color-cardinal);
  background: var(--color-elm);
  box-shadow: inset 3px 0 0 var(--color-cardinal);
}

/* The field a person works in, on a quieter line under their name */
.autocomplete__detail {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  font-weight: var(--weight-light);
  color: var(--color-ash);
}

.autocomplete__empty {
  padding: 9px 12px;
  font-size: 13px;
  font-weight: var(--weight-light);
  line-height: 15px;
  color: var(--color-ash);
}

/* ── Promo ───────────────────────────────────────────────────────────── */
.promo { background: var(--color-white); }

.promo__inner {
  display: grid;
  grid-template-columns: minmax(0, 686px) minmax(0, 440px);
  justify-content: space-between;
  align-items: center;
  gap: 88px;
  padding-block: 68px;
}

.promo__art {
  width: 100%;
  border-radius: var(--radius-sm);
}

.promo__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.promo__mark { width: 46px; height: 43px; }

.promo__title {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 500;
  line-height: 37px;
  color: var(--color-midnight);
}

.promo__body {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--color-midnight);
}

/* ── Footer ──────────────────────────────────────────────────────────── */
/* Node 1770:5051 */
.site-footer {
  padding: 20px 20px 8px;
  background: var(--color-platinum);
  /* The top rule is drawn inside, as the 144 tall frame in Figma has it, so
     it is an inset shadow. A real border would make the footer 145. */
  box-shadow:
    inset 0 1px 0 var(--color-maple),
    0 1px 1px rgba(0, 0, 0, 0.09);
}

/* Not on the page's content column: the footer sits on its own 20px side
   padding, the same as the nav, so the two logos line up with the brand and
   the last nav label above them. */
.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: center;
}

/* Neurotree on the left, The Transmitter on the right, on one 36px row */
.site-footer__logos {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 36px;
}
.site-footer__logo { width: 148px; height: 32px; }
.site-footer__wordmark { width: 177px; height: 22px; }

/* The 8px gap on the inner is between the logos and this block only. The
   three lines butt together at 24px each, which is how the design stacks
   them: 36 + 8 + 72 plus the padding makes the footer 144 tall. */
.site-footer__text {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.site-footer__line {
  margin: 0;
  font-size: 14px;
  line-height: 24px;
  color: var(--color-graphite);
}

/* Gothia Sans ships no italic, so this is the browser's own oblique */
.site-footer__label { font-style: italic; }

.site-footer__link {
  color: var(--color-ui-blue-style);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.site-footer__link:hover { color: var(--color-cardinal); }

/* ── Narrower screens ────────────────────────────────────────────────── */
/* The page behind is frozen while the modal is open. Locking the root
   rather than the body keeps the scroll position, and the padding stands in
   for the scrollbar that overflow: hidden takes away, so the page does not
   jump sideways. */
.is-modal-open {
  overflow: hidden;
  padding-right: var(--scrollbar-width, 0px);
}

/* ── Register modal ────────────────────────────────────────────────────
   Three parts: a fixed layer covering the viewport, a scrim painted as a
   real element, and the panel on top of it. Nothing here relies on the top
   layer or on ::backdrop, both of which differ between browsers. */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
.modal[hidden] { display: none; }

.modal__scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

/* --modal-top is measured when the modal opens, so the panel clears the nav
   at whatever height the header happens to be. */
.modal__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  margin-top: var(--modal-top, 96px);
  width: min(600px, calc(100vw - 32px));
  max-height: calc(100vh - var(--modal-top, 96px) - 16px);
  background: var(--color-poplar);
  border-radius: 6px;
  /* Figma draws these strokes inside, so they are inset shadows. A real
     border would add to the box and push the panel from 600 to 602. */
  box-shadow:
    inset 0 0 0 1px var(--color-modal-border),
    0 5px 15px var(--color-modal-scrim);
}

.modal__header {
  padding: 15px 30px;
  box-shadow: inset 0 -1px 0 var(--color-modal-rule);
}
.modal__title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 400;
  line-height: 26px;
  text-align: center;
  color: var(--color-cardinal);
}

/* If the panel is taller than the room under the nav, the body takes the
   scroll and the header and footer stay put. */
.modal__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  overflow-y: auto;
  padding: 15px 30px;
}
.modal__lede,
.modal__note {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  text-align: center;
  color: var(--color-graphite);
}
.modal__link {
  color: var(--color-ui-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Empty until the form is submitted, so it takes no room until it speaks */
.modal__status {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  text-align: center;
  color: var(--color-cardinal);
}
.modal__status:empty { display: none; }

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.field__label {
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  color: var(--color-thunder);
}
.field__input {
  height: 38px;
  padding: 0 12px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: var(--color-graphite);
  /* The design leaves the field unfilled, so the modal's own cream shows
     through rather than a white box sitting on it. */
  background: transparent;
  border: 0;
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px var(--color-thunder);
}
.field__input::placeholder { color: var(--color-placeholder); }
.field__input:focus-visible {
  outline: 2px solid var(--color-thunder);
  outline-offset: 1px;
}

.modal__footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  padding: 15px 30px 30px;
  box-shadow: inset 0 1px 0 var(--color-modal-rule);
}

.btn-navy {
  height: 37px;
  padding: 0 12px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  line-height: 20px;
  color: var(--color-thunder);
  background: transparent;
  border: 0;
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px var(--color-thunder);
  cursor: pointer;
}
.btn-navy--filled {
  color: var(--color-white);
  background: var(--color-button-navy);
}
.btn-navy:hover { background: var(--color-thunder); color: var(--color-white); }
.btn-navy--filled:hover { background: var(--color-panel-navy); }

/* ── Welcome banner ────────────────────────────────────────────────────
   Node 1742:2024, pinned to the bottom right rather than sitting in the
   flow. It starts off the right edge and slides in once the page has
   loaded; the reduced motion block at the foot of this file collapses that
   to an instant appearance. */
/* Sits under the nav on the left, lined up with the Neurotree logo, and
   arrives from off the left edge. --welcome-top is measured when the page
   loads so it clears whatever height the header is. */
.welcome {
  position: fixed;
  top: var(--welcome-top, 65px);
  left: 20px;
  /* under the register modal, over everything else */
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: min(366px, calc(100vw - 40px));
  padding: 24px;
  background: var(--color-blush);
  border-radius: var(--radius-md);
  /* 0.5px Midnight stroke, drawn inside in Figma, so it is an inset shadow
     rather than a border that would widen the card to 367 */
  box-shadow:
    inset 0 0 0 0.5px var(--color-midnight),
    0 10px 30px -12px rgba(0, 48, 73, 0.3);
  /* parked off the left edge until the slide-in class lands */
  transform: translateX(calc(-100% - 20px));
  transition: transform 520ms var(--ease-out);
}
.welcome--in { transform: none; }

/* Under review: clicking the card swaps between the two background options
   so the two can be seen in place. Remove this rule and the click handler
   in app.js once one is chosen. */
.welcome--poplar { background: var(--color-poplar); }
/* display: flex would otherwise beat the hidden attribute and leave the
   closed banner on screen. */
.welcome[hidden] { display: none; }

/* A plain 1px cross: no border, no background, no plate behind it. */
.welcome__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 24px;
  height: 24px;
  padding: 0;
  color: var(--color-midnight);
}
.welcome__close::before,
.welcome__close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 13px;
  height: 1px;
  background: currentColor;
}
.welcome__close::before { transform: translate(-50%, -50%) rotate(45deg); }
.welcome__close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.welcome__close:hover { color: var(--color-cardinal); }

.welcome__copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.welcome__title {
  margin: 0;
  /* keeps the heading clear of the close cross, however long it gets */
  padding-right: 28px;
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.005em;
  color: var(--color-cardinal);
}

.welcome__body {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.01em;
  color: var(--color-midnight);
}

.welcome__action {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  /* Gothia Sans leaves room for descenders that "Learn more" never uses, so
     the 4px top padding nudges the ink down 2px to sit centred. */
  height: 37px;
  padding: 4px 32px 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 20px;
  color: var(--color-white);
  text-decoration: none;
  background: var(--color-thunder);
  border-radius: 3px;
  transition: background-color var(--speed-fast) var(--ease-out);
}
/* Cardinal on hover, like the hero Search and Go to The Transmitter */
.welcome__action:hover { background: var(--color-cardinal); }

/* ── Motion ────────────────────────────────────────────────────────────
   Small, interaction led movements only. Every resting state is the same
   as it was before, so nothing shifts on load and the measured layout is
   unchanged; the page only moves in response to a pointer, a focus or a
   panel opening. The reduced motion block at the foot of this file flattens
   all of it. */

/* Colour changes ease rather than snap */
.link,
.site-nav__link,
.site-footer__link,
.modal__link,
.hero__cta,
.explore__cta-link,
.lineage-card__action .link {
  transition: color var(--speed-fast) var(--ease-out);
}

/* Buttons warm up on hover and give a little under the press */
.button,
.btn-navy,
.search-field__submit {
  transition:
    background-color var(--speed-fast) var(--ease-out),
    color var(--speed-fast) var(--ease-out),
    transform var(--speed-fast) var(--ease-out);
}
.button:active,
.btn-navy:active,
.search-field__submit:active { transform: translateY(1px); }

/* Cards lift a couple of pixels, enough to read as raised and no more. The
   hairline stroke each one carries is kept and a soft shadow added under it. */
.step-card,
.profile-card,
.lineage-card {
  transition:
    transform var(--speed-base) var(--ease-out),
    box-shadow var(--speed-base) var(--ease-out);
}
.step-card:hover,
.profile-card:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 0 0 0.5px var(--color-hickory),
    0 10px 24px -12px rgba(0, 48, 73, 0.22);
}
.lineage-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -14px rgba(0, 48, 73, 0.45);
}

/* The deck arrows swell very slightly under the pointer */
.facts__nav {
  transition:
    background-color var(--speed-fast) var(--ease-out),
    transform var(--speed-fast) var(--ease-out);
}
.facts__nav:hover { transform: translateY(-50%) scale(1.06); }
.facts__nav:active { transform: translateY(-50%) scale(0.98); }

.facts__dot {
  transition:
    background-color var(--speed-fast) var(--ease-out),
    transform var(--speed-fast) var(--ease-out);
}
.facts__dot:hover { transform: scale(1.3); }

/* The focus ring fades up instead of appearing all at once */
.search-field__control { transition: box-shadow var(--speed-fast) var(--ease-out); }
.search-field--compact .search-field__input {
  transition: border-color var(--speed-fast) var(--ease-out);
}

/* Menus and the modal arrive rather than appear */
.autocomplete__list,
.select__list { animation: rise-in var(--speed-fast) var(--ease-out); }

.modal__scrim { animation: fade-in 180ms var(--ease-out); }
.modal__panel { animation: panel-in var(--speed-base) var(--ease-out); }

@keyframes rise-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes panel-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 1100px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "finder"
      "dek"
      "stats";
    gap: 48px;
  }
  .stats { justify-content: flex-start; flex-wrap: wrap; }
  .stat,
  .stat--narrow { width: auto; min-width: 134px; }
  .hero__art--dawn { width: 680px; opacity: 0.07; }
  .hero__art--dusk { width: 560px; opacity: 0.055; transform: translate(15%, -2.5%); }

  .explore__inner,
  .recent__columns,
  .promo__inner,
  .degrees {
    grid-template-columns: minmax(0, 1fr);
  }
  .lineage__cards { grid-template-columns: minmax(0, 1fr); }
  .degrees { padding: 40px; }
  .promo__inner { gap: 40px; }
}

@media (max-width: 760px) {
  :root { --gutter: 24px; }

  .site-header__inner {
    flex-wrap: wrap;
    gap: 12px;
    padding-block: 10px;
  }
  .site-header__tools {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 12px;
  }
  .site-nav__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
  }
  .search-field--compact .search-field__input { width: 100%; }
  .search-field--compact { width: 100%; }

  .hero__title { font-size: 31px; }
  .hero__prompt { font-size: 24px; }
  .hero__body { font-size: 18px; }
  .search-field--large { flex-wrap: wrap; }
  .search-field__button { width: 100%; }

  .explore__steps { grid-template-columns: minmax(0, 1fr); }
  .explore__title,
  .recent__title,
  .lineage__title,
  .degrees__title { font-size: 31px; }

  .lineage__header { flex-direction: column; gap: 12px; }
  .lineage__more { padding-top: 0; }
  .degrees { padding: 28px; }
  .lineage-card__stats { gap: 24px; }

  .facts { padding: 56px 28px 48px; gap: 32px; }
  .facts__nav { width: 40px; height: 40px; }
  .facts__nav--prev { left: -20px; }
  .facts__nav--next { right: -20px; }
  .fact-card { padding: 32px 24px; min-height: 344px; }

  .welcome { left: 16px; width: min(366px, calc(100vw - 32px)); }

  .modal__header,
  .modal__body { padding-right: 20px; padding-left: 20px; }
  .modal__footer { padding: 15px 20px 20px; }
  .fact-card__text,
  .fact-card__list-item { font-size: 22px; }
  .facts__footer { flex-direction: column; gap: 24px; }
  .facts__more { position: static; }

  .promo__title { font-size: 31px; line-height: 1.1; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
