/* ============================================================================
   GeneAssess, Inc. — rebuilt stylesheet
   ----------------------------------------------------------------------------
   The original stylesheet (css/main.css) was never archived, so this one is
   written fresh. Where the palette has a source, it is a real one:

     - the accent colours are sampled from the company's own published figures
       (see assets/fig/), which are white-background scientific charts with
       muted rose, green and blue families
     - the layout follows the structure of the archived 2017 homepage
       (_tools/archive/original-homepage-2017.html): a logo + horizontal menu
       with dropdowns, a hero carousel, then a three-column block of
       Technology News / Science Breakthrough / Events, a newsletter box, and
       a link-rich footer

   Nothing here claims to be the original CSS. What it does reproduce is the
   original's information architecture and copy.
   ========================================================================== */

:root {
  --ink: #16202c;
  --text: #33404f;
  --soft: #5f6d7c;
  --line: #e2e8ee;
  --line-2: #cfd8e2;
  --paper: #ffffff;
  --paper-2: #f6f8fa;
  --paper-3: #eef2f6;
  --blue: #1c5c8c;
  --blue-lt: #2f7cb4;
  --blue-pale: #eaf2f9;
  --rose: #b03a5b;
  --rose-pale: #fbeef2;
  --green: #2e7d5b;
  --green-pale: #ecf6f1;
  --amber: #a8710f;
  --wrap: 1140px;
  --radius: 5px;
  --radius-lg: 9px;
  --shadow: 0 1px 2px rgba(22, 32, 44, .05), 0 6px 18px rgba(22, 32, 44, .05);
  --shadow-lg: 0 2px 6px rgba(22, 32, 44, .07), 0 18px 42px rgba(22, 32, 44, .11);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --font: "Helvetica Neue", Helvetica, Arial, "Liberation Sans", sans-serif;
  --font-head: Georgia, "Times New Roman", "Liberation Serif", serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font-family: var(--font); font-size: 1.03125rem; line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-lt); text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.22; margin: 0 0 .55rem; color: var(--ink); }
h1 { font-size: clamp(1.75rem, 3.3vw, 2.6rem); }
h2 { font-size: clamp(1.35rem, 2.4vw, 1.95rem); }
h3 { font-size: 1.16rem; }
h4 { font-size: 1.02rem; }
p { margin: 0 0 1rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.2rem 0; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 3px; }

.wrap { width: min(var(--wrap), 91vw); margin-inline: auto; }
.wrap-narrow { width: min(860px, 91vw); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--blue); color: #fff; padding: .7rem 1.1rem; z-index: 999; font-weight: 700; }
.skip:focus { left: .5rem; top: .5rem; }
.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; }
.center { text-align: center; }
.muted { color: var(--soft); }
.small { font-size: .9rem; }
.mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: .6rem; } .mt-2 { margin-top: 1.2rem; }
.mt-3 { margin-top: 1.9rem; } .mt-4 { margin-top: 2.6rem; }
.narrow { max-width: 68ch; }

.eyebrow { font-family: var(--font); font-size: .76rem; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; margin: 0 0 .5rem; color: var(--blue); }
.eyebrow.rose { color: var(--rose); } .eyebrow.green { color: var(--green); } .eyebrow.grey { color: var(--soft); }
.lede { font-size: clamp(1.03rem, 1.5vw, 1.17rem); color: var(--soft); max-width: 64ch; }
.rule { height: 3px; width: 54px; border-radius: 2px; background: var(--blue); margin: 0 0 1rem; }
.rule.rose { background: var(--rose); } .rule.green { background: var(--green); }
.center .rule { margin-inline: auto; }
.on-dark, .on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: #fff; }
.on-dark p, .on-dark .lede, .on-dark li { color: #c6d2de; }
.on-dark .eyebrow { color: #8fc0e0; }
.on-dark a { color: #9fcfee; }

/* =================================================================== header */
.site-header { position: sticky; top: 0; z-index: 200; background: var(--paper); border-bottom: 1px solid var(--line); }
.site-header.is-scrolled { box-shadow: 0 4px 18px rgba(22, 32, 44, .09); }
.header-inner { display: flex; align-items: center; gap: 1.1rem; padding: .8rem 0; }
.brand { margin-right: auto; display: flex; align-items: center; gap: .65rem; flex: 0 0 auto; }
.brand svg { height: 34px; width: auto; display: block; }
.brand-txt { font-family: var(--font-head); font-size: .74rem; letter-spacing: .13em; text-transform: uppercase; color: var(--soft); line-height: 1.3; }
.nav ul { display: flex; align-items: center; gap: .05rem; list-style: none; margin: 0; padding: 0; }
.nav > ul > li { position: relative; margin: 0; }
.nav a { display: block; padding: .5rem .66rem; color: var(--text); font-size: .9rem; font-weight: 600; border-radius: 4px; }
.nav a:hover { color: var(--blue); background: var(--paper-2); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--blue); }
.nav .has-sub > a::after { content: ""; display: inline-block; width: 4px; height: 4px; margin-left: .36rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: .55; }
.nav .submenu {
  position: absolute; top: calc(100% + 4px); left: 0; display: block; gap: 0;
  width: auto; min-width: 240px; max-width: min(310px, calc(100vw - 2rem));
  background: var(--paper); border-radius: 8px; box-shadow: var(--shadow-lg);
  border-top: 3px solid var(--blue); padding: .4rem; margin: 0; list-style: none;
  opacity: 0; visibility: hidden; transform: translateY(6px); z-index: 10;
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.nav li:hover > .submenu, .nav li:focus-within > .submenu { opacity: 1; visibility: visible; transform: none; }
.nav .submenu a { color: var(--text); font-size: .88rem; font-weight: 400; padding: .42rem .62rem; white-space: normal; }
.nav .submenu a:hover { background: var(--paper-2); color: var(--blue); }
.nav > ul > li:nth-last-child(-n+2) > .submenu { left: auto; right: 0; }
.header-cta { white-space: nowrap; }
.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line-2); background: none; border-radius: 6px; cursor: pointer; padding: 0; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; margin: 3px auto; transition: transform .22s var(--ease), opacity .22s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
.drawer {
  position: fixed; inset: 0 0 auto; z-index: 190; background: var(--paper);
  padding: 1.2rem 0 1.6rem; border-bottom: 3px solid var(--blue);
  box-shadow: 0 18px 40px rgba(22, 32, 44, .16);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  max-height: 100vh; overflow-y: auto;
}
.drawer.is-open { opacity: 1; transform: none; visibility: visible; }
.drawer ul { list-style: none; margin: 0 0 1rem; padding: 0; border-top: 1px solid var(--line); }
.drawer li { border-bottom: 1px solid var(--line); }
.drawer a { display: block; padding: .74rem .2rem; color: var(--ink); font-weight: 600; }
.drawer a:hover { color: var(--blue); text-decoration: none; }
.drawer li.sub a { padding-left: 1.2rem; font-size: .9rem; font-weight: 400; color: var(--soft); }
body.no-scroll { overflow: hidden; }

/* ================================================================= buttons */
.btn {
  display: inline-flex; align-items: center; gap: .45rem; cursor: pointer;
  padding: .7rem 1.3rem; border: 0; border-radius: 5px;
  font-family: var(--font); font-size: .93rem; font-weight: 600; line-height: 1;
  transition: transform .16s var(--ease), background-color .16s var(--ease), color .16s var(--ease), box-shadow .16s var(--ease);
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-lt); color: #fff; }
.btn-rose { background: var(--rose); color: #fff; }
.btn-rose:hover { background: #96304c; color: #fff; }
.btn-outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line-2); }
.btn-outline:hover { box-shadow: inset 0 0 0 2px var(--blue); color: var(--blue); }
.btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .5); }
.btn-ghost:hover { background: rgba(255, 255, 255, .13); color: #fff; }
.link-arrow { font-weight: 600; color: var(--blue); }
.link-arrow::after { content: "\2192"; margin-left: .35rem; display: inline-block; transition: transform .18s var(--ease); }
.link-arrow:hover { text-decoration: none; color: var(--blue-lt); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ==================================================================== hero */
/* The original ran an "agile carousel" (css/agile_carousel.css) above the
   three feature columns. This is a plain-JavaScript equivalent. */
.hero { position: relative; background: #0f1a26; overflow: hidden; }
.hero-stage { position: relative; }
.hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .55s var(--ease), visibility .55s; }
.hero-slide.is-active { position: relative; opacity: 1; visibility: visible; }
.hero-slide .bg { position: absolute; inset: 0; }
.hero-slide .bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-slide .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15, 26, 38, .95) 0%, rgba(15, 26, 38, .86) 45%, rgba(15, 26, 38, .5) 80%, rgba(15, 26, 38, .35) 100%); }
.hero-inner { position: relative; z-index: 2; padding: clamp(2.6rem, 6vw, 4.6rem) 0; }
.hero-copy { max-width: 44rem; }
.hero-copy h1 { color: #fff; margin: 0 0 .7rem; }
.hero-copy h1 em { font-style: normal; color: #9fcfee; }
.hero-copy p { color: #c6d2de; font-size: clamp(1rem, 1.5vw, 1.12rem); margin: 0 0 1.4rem; }
.hero-dots { display: flex; gap: .5rem; list-style: none; margin: 0; padding: 0 0 1.6rem; position: relative; z-index: 3; }
.hero-dots button { width: 34px; height: 4px; border: 0; padding: 0; cursor: pointer; background: rgba(255, 255, 255, .32); border-radius: 2px; transition: background-color .2s var(--ease), transform .2s var(--ease); }
.hero-dots button:hover { background: rgba(255, 255, 255, .6); }
.hero-dots button.is-active { background: #fff; transform: scaleY(1.6); }

/* ============================================================ page hero/top */
.page-hero { background: var(--paper-2); border-bottom: 1px solid var(--line); }
.page-hero .wrap { padding: clamp(2rem, 4.4vw, 3.2rem) 0 clamp(1.5rem, 3vw, 2.2rem); }
.page-hero h1 { margin: 0 0 .4rem; }
.page-hero .lede { margin: 0; }
.breadcrumb { font-size: .8rem; font-weight: 600; letter-spacing: .04em; color: var(--soft); margin: 0 0 .55rem; }
.breadcrumb span { margin: 0 .35rem; }

/* ================================================================ sections */
.section { padding: clamp(2.2rem, 4.8vw, 3.8rem) 0; }
.section-soft { background: var(--paper-2); }
.section-white { background: var(--paper); }
.section-ink { background: #0f1a26; }
.section-head { margin-bottom: clamp(1.4rem, 2.8vw, 2.2rem); }
.section-head.center { margin-inline: auto; text-align: center; max-width: 66ch; }
.section-head.center .lede { margin-inline: auto; }

.grid { display: grid; gap: 1.3rem; grid-template-columns: 1fr; }
@media (min-width: 680px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.split { display: grid; gap: clamp(1.7rem, 4vw, 3.2rem); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split-wide { grid-template-columns: 1.02fr .98fr; } .split-narrow { grid-template-columns: .92fr 1.08fr; } }

/* =================================================================== cards */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.4rem 1.5rem 1.5rem; }
.card h3 { margin-top: 0; }
.card-lift { transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease); }
.card-lift:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--line-2); }
.card-top { border-top: 3px solid var(--blue); }
.card-top.rose { border-top-color: var(--rose); }
.card-top.green { border-top-color: var(--green); }
.card-flat { box-shadow: none; }

.media-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); margin: 0; display: block; color: inherit; }
.media-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--paper-2); }
.media-card img.contain { object-fit: contain; padding: .8rem; }
.media-card .body { padding: 1rem 1.2rem 1.2rem; }
.media-card .body h3 { margin: 0 0 .25rem; font-size: 1.02rem; }
.media-card .body p { margin: 0; }
a.media-card:hover { text-decoration: none; border-color: var(--blue); }

/* the original's three feature columns */
.feature { padding: 1.3rem 1.4rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); display: flex; flex-direction: column; }
.feature img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); margin-bottom: .9rem; background: var(--paper-2); }
.feature h3 { margin: 0 0 .4rem; }
.feature p { margin: 0 0 1rem; color: var(--soft); font-size: .96rem; }
.feature .link-arrow { margin-top: auto; }

.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { position: relative; padding: .28rem 0 .28rem 1.7rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .62rem; width: 13px; height: 8px; border-left: 3px solid var(--blue); border-bottom: 3px solid var(--blue); transform: rotate(-45deg) scale(.85); transform-origin: left center; }
.checklist.rose li::before { border-color: var(--rose); }
.checklist.green li::before { border-color: var(--green); }

.pills { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0; padding: 0; }
.pill { display: inline-block; padding: .3rem .8rem; border-radius: 100px; font-size: .8rem; font-weight: 600; background: var(--blue-pale); color: var(--blue); }
.pill.rose { background: var(--rose-pale); color: var(--rose); }
.pill.green { background: var(--green-pale); color: var(--green); }
.pill.grey { background: var(--paper-3); color: var(--soft); }

.stats { display: grid; gap: .9rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.1rem 1rem; text-align: center; }
.stat b { display: block; font-family: var(--font-head); font-size: clamp(1.35rem, 2.7vw, 1.9rem); line-height: 1.12; color: var(--blue); }
.stat.rose b { color: var(--rose); } .stat.green b { color: var(--green); }
.stat span { font-size: .85rem; color: var(--soft); }
.section-ink .stat { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); }
.section-ink .stat b { color: #fff; } .section-ink .stat span { color: #c6d2de; }

.specs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.specs li { display: flex; gap: 1rem; justify-content: space-between; padding: .66rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.specs .k { color: var(--soft); }
.specs .v { font-weight: 600; text-align: right; color: var(--ink); }
.on-dark .specs, .on-dark .specs li { border-color: rgba(255, 255, 255, .16); }
.on-dark .specs .k { color: #9fb0c1; } .on-dark .specs .v { color: #fff; }

/* ================================================================= figures */
.figure { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(.7rem, 1.7vw, 1.1rem); }
.figure img { width: 100%; border-radius: var(--radius); background: var(--paper-2); }
.figure figcaption { font-size: .88rem; color: var(--soft); margin-top: .7rem; }
.figure figcaption b { color: var(--ink); }
.figure a.zoom { font-size: .82rem; font-weight: 600; }
.fig-strip { display: grid; gap: .9rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .fig-strip { grid-template-columns: repeat(3, 1fr); } }
.fig-strip figure { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.fig-strip img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: var(--paper-2); padding: .5rem; cursor: zoom-in; }
.fig-strip figcaption { font-size: .82rem; color: var(--soft); padding: .6rem .75rem .75rem; }

/* =================================================================== video */
.video-block { position: relative; background: #0f1a26; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 16 / 9; }
.video-block img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-block::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 26, 38, .05), rgba(15, 26, 38, .55)); }
.video-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 3; width: 72px; height: 72px; border: 0; border-radius: 50%; cursor: pointer; background: var(--blue); display: grid; place-items: center; box-shadow: 0 12px 36px rgba(15, 26, 38, .45); transition: transform .18s var(--ease), background-color .18s var(--ease); }
.video-play::before { content: ""; margin-left: 5px; border-style: solid; border-width: 13px 0 13px 21px; border-color: transparent transparent transparent #fff; }
.video-play:hover { transform: translate(-50%, -50%) scale(1.08); background: var(--blue-lt); }
.video-cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: .95rem 1.15rem; color: #fff; font-weight: 600; font-size: .92rem; }
.video-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 4; }
.video-block.is-playing img, .video-block.is-playing .video-play, .video-block.is-playing .video-cap, .video-block.is-playing::after { display: none; }
.vcard { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; }
.vcard .frame { position: relative; aspect-ratio: 16 / 9; background: #0f1a26; }
.vcard .frame img { width: 100%; height: 100%; object-fit: cover; }
.vcard .frame .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 50px; height: 50px; border: 0; border-radius: 50%; cursor: pointer; background: rgba(28, 92, 140, .94); display: grid; place-items: center; transition: transform .16s var(--ease), background-color .16s var(--ease); }
.vcard .frame .play::before { content: ""; margin-left: 4px; border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent #fff; }
.vcard .frame .play:hover { transform: translate(-50%, -50%) scale(1.1); background: var(--blue); }
.vcard .frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vcard .meta { padding: .9rem 1.05rem 1.05rem; display: flex; flex-direction: column; gap: .28rem; flex: 1; }
.vcard .meta h3 { margin: 0; font-size: 1rem; }
.vcard .meta .who { font-size: .85rem; color: var(--soft); margin: 0; }
.vcard .meta .src { font-size: .76rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--soft); margin-top: auto; }

/* ==================================================================== tabs */
.tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.7rem; }
@media (max-width: 699px) { .tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .3rem; } }
.tab { border: 1px solid var(--line-2); background: var(--paper); cursor: pointer; white-space: nowrap; padding: .55rem 1.05rem; font-size: .9rem; font-weight: 600; color: var(--soft); border-radius: 100px; }
.tab:hover { border-color: var(--blue); color: var(--blue); }
.tab[aria-selected="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.tabpanel[hidden] { display: none; }
.tabpanel { animation: fade .3s var(--ease) both; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* =============================================================== accordion */
.acc { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: none; border: 0; padding: 1rem .2rem; cursor: pointer; text-align: left; font-family: var(--font-head); font-weight: 700; font-size: 1.02rem; color: var(--ink); }
.acc-btn:hover { color: var(--blue); }
.acc-btn .chev { flex: 0 0 auto; width: 22px; height: 22px; position: relative; }
.acc-btn .chev::before, .acc-btn .chev::after { content: ""; position: absolute; top: 10px; left: 3px; width: 15px; height: 2px; background: var(--blue); border-radius: 2px; transition: transform .22s var(--ease); }
.acc-btn .chev::after { transform: rotate(90deg); }
.acc-btn[aria-expanded="true"] .chev::after { transform: rotate(0); }
.acc-panel > div { padding: 0 .2rem 1.2rem; color: var(--soft); }
.on-dark .acc, .on-dark .acc-item { border-color: rgba(255, 255, 255, .16); }
.on-dark .acc-btn { color: #fff; }
.on-dark .acc-panel > div { color: #c6d2de; }

/* ================================================================= callout */
.callout { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.3rem 1.45rem; }
.callout-blue { background: var(--blue-pale); border-color: #cfe3f2; }
.callout-rose { background: var(--rose-pale); border-color: #f0d3dd; }
.callout-green { background: var(--green-pale); border-color: #cfe6da; }
.callout-ink { background: #0f1a26; border-color: #1b2a3a; color: #fff; }
.callout-ink h3, .callout-ink h4 { color: #fff; }
.callout-ink p { color: #c6d2de; }
.notice { background: var(--paper-2); border: 1px dashed var(--line-2); border-radius: var(--radius); padding: 1rem 1.15rem; font-size: .93rem; color: var(--soft); }
.notice b, .callout b { color: var(--ink); }
.callout-ink b { color: #fff; }
.section-soft .notice, .section-soft .callout { background: var(--paper); }

/* =================================================================== forms */
.form { display: grid; gap: .95rem; }
.field { display: grid; gap: .34rem; }
.field label { font-size: .88rem; font-weight: 600; color: var(--ink); }
.field .req { color: var(--blue); }
.field input, .field textarea, .field select { width: 100%; padding: .72rem .9rem; border: 1px solid var(--line-2); border-radius: 5px; font: inherit; font-size: 1rem; color: var(--text); background: var(--paper); transition: border-color .16s var(--ease), box-shadow .16s var(--ease); }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(28, 92, 140, .16); }
.field .err { font-size: .84rem; color: #c0392b; min-height: 1.05em; }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: #c0392b; }
.form-note { font-size: .87rem; color: var(--soft); }
.form-status { border-radius: 5px; padding: .85rem 1.05rem; font-size: .93rem; }
.form-status[hidden] { display: none; }
.form-status.ok { background: var(--green-pale); color: #235c42; border: 1px solid #bfe0d0; }
.form-status.bad { background: #fdecea; color: #a5342a; border: 1px solid #e9a79f; }
.field-row { display: grid; gap: .95rem; }
@media (min-width: 620px) { .field-row { grid-template-columns: 1fr 1fr; } }

/* ================================================================== footer */
.site-footer { background: #0f1a26; color: #b3c1cf; padding: clamp(2rem, 4vw, 3rem) 0 1.5rem; }
.site-footer h4 { color: #fff; font-family: var(--font); font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 .75rem; }
.footer-grid { display: grid; gap: 1.7rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.7fr 1fr 1fr 1fr; } }
.footer-brand svg { height: 34px; width: auto; margin-bottom: .8rem; }
.footer-brand p { font-size: .91rem; margin: 0 0 .7rem; max-width: 34ch; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin: 0 0 .34rem; }
.footer-links a { color: #b3c1cf; font-size: .91rem; }
.footer-links a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: .5rem 1.3rem; justify-content: space-between; border-top: 1px solid rgba(255, 255, 255, .15); margin-top: 1.9rem; padding-top: 1.1rem; font-size: .85rem; color: #8fa0b3; }
.footer-bottom a { color: #b3c1cf; }
.sitemap { display: flex; flex-wrap: wrap; gap: .3rem .9rem; list-style: none; margin: 0; padding: 0; font-size: .88rem; }
.sitemap li { color: #7d8fa3; }

/* =============================================================== utilities */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.to-top { position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 150; width: 46px; height: 46px; border-radius: 50%; cursor: pointer; border: 0; background: var(--blue); color: #fff; display: grid; place-items: center; opacity: 0; visibility: hidden; box-shadow: var(--shadow); transition: opacity .2s var(--ease), visibility .2s, transform .2s var(--ease); }
.to-top.is-on { opacity: 1; visibility: visible; }
.to-top:hover { transform: translateY(-3px); }
[id] { scroll-margin-top: 92px; }
.mono { font-family: var(--font-mono); font-size: .9em; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
@media print {
  .site-header, .drawer, .to-top, .video-play, .hero-dots { display: none !important; }
  body { background: #fff; }
  .hero, .section-ink, .site-footer, .callout-ink, .video-block { background: #fff !important; color: #000 !important; }
  .on-dark h1, .on-dark h2, .on-dark h3, .hero-copy h1, .hero-copy p { color: #000 !important; }
  a { color: #000 !important; }
}
@media (max-width: 1079px) { .nav, .header-cta { display: none; } .nav-toggle { display: block; } }
@media (min-width: 1080px) { .drawer { display: none; } }
