/* StellaGene site prototype v6: a studio for technology brands.
   Built out from the logo: navy #121233, lavender #CCCCFF, 5th Avenue headlines, Red Hat Display text,
   and the emblem's thin rounded frame as a recurring motif. */

:root {
  --navy: #121233;
  --lav: #ccccff;
  --ink: #121233;
  --paper: #fbfbfe;
  --surface: #eeeefa;
  --muted: #52527a;
  --accent: #4f4f9f;          /* lavender, darkened so small text passes contrast on light backgrounds */
  --white: #ffffff;
  --line: #d6d6ec;
  --line-dark: #36366b;
  --on-dark: #c3c3e6;
  --radius-s: 8px;
  --radius-m: 18px;
  --wrap: 1200px;
  /* Headline face. Stand-in: Playfair Display, until the licensed 5th Avenue font file is added.
     To swap: add an @font-face for "5th Avenue" (see the comment under :root) and put it first below. */
  --display: "Playfair Display", "5th Avenue", Georgia, "Times New Roman", serif;
  --sans: "Red Hat Display", "Helvetica Neue", Arial, sans-serif;
}
/* @font-face { font-family: "5th Avenue"; src: url("fonts/5th-avenue.woff2") format("woff2"); font-weight: 400; font-display: swap; }
   Then set:  --display: "5th Avenue", Georgia, serif;   (5th Avenue Regular is already a bold weight) */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.dark :focus-visible, .site-header :focus-visible, .site-footer :focus-visible { outline-color: var(--lav); }
.skip { position: absolute; left: -9999px; top: 0; background: var(--navy); color: var(--lav); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 12px; top: 12px; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 5.8vw, 4.8rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); }
h3 { font-size: clamp(1.25rem, 1.9vw, 1.6rem); line-height: 1.2; letter-spacing: -0.005em; }
h1 em, h2 em { font-style: italic; font-weight: 600; }
.dark h1 em, .dark h2 em { color: var(--lav); }
p { margin: 0 0 1em; }
sup.tm { font-size: .5em; vertical-align: .75em; line-height: 0; letter-spacing: 0; font-family: var(--sans); font-weight: 400; margin-left: .05em; }
ul { margin: 0; }

.eyebrow {
  font: 600 .76rem/1.3 var(--sans);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.4rem;
}
.dark .eyebrow { color: var(--lav); }
.tagline { font-style: italic; font-weight: 300; }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.55; font-weight: 300; color: var(--muted); max-width: 38em; }
.dark .lead { color: var(--on-dark); }
.small { font-size: .9rem; color: var(--muted); }
.dark .small { color: var(--on-dark); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); }
.narrow { max-width: 820px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Buttons and links */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  padding: .95em 1.5em;
  background: var(--navy); color: var(--lav);
  border: 1px solid var(--navy); border-radius: var(--radius-s);
  font: 700 .95rem/1 var(--sans); text-decoration: none; letter-spacing: .01em;
  transition: background .2s, color .2s, border-color .2s;
  cursor: pointer;
}
.btn:hover { background: var(--lav); color: var(--navy); border-color: var(--navy); }
.btn.small { padding: .7em 1.1em; font-size: .88rem; color: var(--navy); }
.btn.ghost { background: transparent; color: var(--navy); }
.btn.ghost:hover { background: var(--navy); color: var(--lav); }
.dark .btn, .site-header .btn { background: var(--lav); color: var(--navy); border-color: var(--lav); }
.dark .btn:hover, .site-header .btn:hover { background: var(--white); border-color: var(--white); }
.dark .btn.ghost { background: transparent; color: var(--lav); border-color: var(--lav); }
.dark .btn.ghost:hover { background: var(--lav); color: var(--navy); }
.btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2rem; align-items: center; }
.arrow-link {
  display: inline-flex; gap: .5em; align-items: center;
  font-weight: 700; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 3px;
}
.arrow-link::after { content: "→"; transition: transform .2s; }
.arrow-link:hover { color: var(--accent); }
.dark .arrow-link:hover { color: var(--white); }
.arrow-link:hover::after { transform: translateX(4px); }

/* Header: navy, like the logo card */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--navy); color: var(--lav); border-bottom: 1px solid var(--line-dark); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 78px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand .emblem { height: 38px; width: auto; }
.brand .word { height: 18px; width: auto; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a:not(.btn) { font-weight: 500; font-size: .97rem; text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; color: var(--lav); }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { border-color: var(--lav); }
.menu-btn { display: none; }
@media (max-width: 860px) {
  .menu-btn {
    display: inline-flex; background: none; border: 1px solid var(--lav); border-radius: var(--radius-s);
    padding: 9px 14px; font: 700 .88rem var(--sans); color: var(--lav); cursor: pointer;
  }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 78px; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy); border-bottom: 1px solid var(--line-dark); padding: 8px 20px 20px;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 16px 0; border-bottom: 1px solid var(--line-dark); font-size: 1.1rem; }
  .nav .btn { margin-top: 18px; justify-content: center; }
}

/* Sections */
section { padding: clamp(72px, 9vw, 128px) 0; position: relative; }
section.tight { padding: clamp(48px, 6vw, 80px) 0; }
section.surface { background: var(--surface); }
section.dark, .dark { background: var(--navy); color: var(--paper); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head.center { margin-left: auto; margin-right: auto; }

/* Hero: text only, on navy, with the emblem's frame as a quiet graphic */
.hero { padding: clamp(72px, 10vw, 150px) 0 clamp(80px, 11vw, 160px); overflow: hidden; }
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { max-width: 13em; margin-bottom: .55em; }
.hero .lead { max-width: 34em; }
.hero::before, .hero::after {
  content: ""; position: absolute; border: 1.5px solid var(--lav); border-radius: 12%; opacity: .22; pointer-events: none;
}
.hero::before { width: clamp(220px, 34vw, 460px); aspect-ratio: 1; right: -3%; top: 12%; }
.hero::after { width: clamp(160px, 24vw, 330px); aspect-ratio: 1; right: 14%; top: 34%; opacity: .14; }
@media (max-width: 760px) { .hero::before { right: -30%; } .hero::after { right: -12%; top: 55%; } }
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
  .rise.d1 { animation-delay: .08s; } .rise.d2 { animation-delay: .18s; } .rise.d3 { animation-delay: .28s; } .rise.d4 { animation-delay: .38s; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
}

/* Page head (inner pages) */
.page-head { padding: clamp(56px, 7vw, 104px) 0 clamp(40px, 5vw, 72px); }
.page-head h1 { max-width: 14em; font-size: clamp(2.3rem, 5vw, 4rem); }
.page-head.split-head .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: end; }
.page-head.split-head img { border-radius: var(--radius-m); width: 100%; aspect-ratio: 4/5; object-fit: cover; }
@media (max-width: 900px) { .page-head.split-head .wrap { grid-template-columns: 1fr; } }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 1.6rem; }
.crumbs a { text-decoration: none; border-bottom: 1px solid var(--line); }

/* "What we do": a plain, large list */
.what-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(28px, 6vw, 88px); border-top: 1px solid var(--navy); }
.what-list li { padding: clamp(14px, 2vw, 22px) 0; border-bottom: 1px solid var(--line); font: 600 clamp(1.25rem, 2.3vw, 1.9rem)/1.2 var(--display); letter-spacing: -.01em; }
@media (max-width: 700px) { .what-list { grid-template-columns: 1fr; } }

/* Work cards: text-led */
.wcards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.wcard {
  display: flex; flex-direction: column; text-decoration: none; background: var(--surface); border-radius: var(--radius-m);
  padding: clamp(26px, 3.5vw, 44px); border: 1px solid transparent; transition: border-color .2s, background .2s;
}
.wcard:hover { border-color: var(--navy); background: #e8e8f8; }
.wcard h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.wcard p { color: var(--muted); }
.wcard .arrow-link { margin-top: auto; align-self: flex-start; }
.wcard img { border-radius: var(--radius-s); width: 100%; aspect-ratio: 16/10; object-fit: cover; margin-bottom: 1.4rem; }
@media (max-width: 800px) { .wcards { grid-template-columns: 1fr; } }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1.4rem; padding: 0; list-style: none; }
.tags li { font: 700 .68rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; padding: .6em .9em; border: 1px solid currentColor; border-radius: 999px; opacity: .85; }

/* People */
.people { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); }
.person .ph { position: relative; max-width: 420px; margin-bottom: 1.6rem; }
.person .ph img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius-m); filter: grayscale(.3) contrast(1.04) saturate(.9); }
.person .ph::after { content: ""; position: absolute; inset: -9px; border: 1px solid var(--lav); border-radius: calc(var(--radius-m) + 9px); pointer-events: none; }
.dark .person .ph::after { border-color: var(--line-dark); }
.person h3 { margin-bottom: .1em; }
.person .role { font-style: italic; font-weight: 300; color: var(--muted); margin-bottom: 1rem; }
.dark .person .role { color: var(--on-dark); }
@media (max-width: 760px) { .people { grid-template-columns: 1fr; } }

/* Services */
.service { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); padding: clamp(40px, 6vw, 72px) 0; border-top: 1px solid var(--navy); }
.service + .service { border-top: 1px solid var(--line); }
.service .num { font: italic 600 1.1rem var(--display); color: var(--accent); margin-bottom: .8rem; }
.service ul { list-style: none; padding: 0; margin: 1.2rem 0 0; border-top: 1px solid var(--line); }
.service li { padding: .75rem 0; border-bottom: 1px solid var(--line); }
.service li b { font-weight: 700; }
@media (max-width: 800px) { .service { grid-template-columns: 1fr; } }

/* Pillar cards */
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.pillar { background: var(--surface); border-radius: var(--radius-m); padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; }
section.surface .pillar { background: var(--paper); }
.pillar .num { font: italic 600 1.1rem var(--display); color: var(--accent); margin-bottom: 2.4rem; }
.pillar p { color: var(--muted); }
.pillar ul { padding: 0; list-style: none; margin: .4rem 0 2rem; border-top: 1px solid var(--line); }
.pillar li { padding: .7rem 0; border-bottom: 1px solid var(--line); font-size: .98rem; }
.pillar .arrow-link { margin-top: auto; align-self: flex-start; }
@media (max-width: 800px) { .pillars { grid-template-columns: 1fr; } }

/* Process steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: s; }
.steps li { border-top: 1px solid var(--navy); padding-top: 20px; counter-increment: s; }
.steps li::before { content: "0" counter(s); display: block; font: italic 600 2.4rem/1 var(--display); color: var(--accent); margin-bottom: 1.2rem; }
.steps h3 { margin-bottom: .4em; }
.steps p { color: var(--muted); font-size: .98rem; margin: 0; }
.dark .steps li { border-color: var(--line-dark); }
.dark .steps li::before { color: var(--lav); }
.dark .steps p { color: var(--on-dark); }
.steps.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .steps, .steps.three { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps, .steps.three { grid-template-columns: 1fr; } }

/* Split: media + text */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split.top { align-items: start; }
.split.flip .media { order: 2; }
.split .media img, .split .media video { width: 100%; border-radius: var(--radius-s); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.flip .media { order: 0; } }

/* Lists of capabilities (product pages) */
.caps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.caps.two { grid-template-columns: repeat(2, 1fr); }
.caps.four { grid-template-columns: repeat(4, 1fr); }
.cap { border-top: 1px solid var(--navy); padding-top: 20px; }
.cap h3 { margin-bottom: .7em; }
.cap ul { list-style: none; padding: 0; }
.cap li { padding: .55rem 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .98rem; }
.cap p { color: var(--muted); font-size: .98rem; }
.dark .cap { border-color: var(--line-dark); }
.dark .cap li { border-color: var(--line-dark); color: var(--on-dark); }
@media (max-width: 960px) { .caps, .caps.four { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .caps, .caps.two, .caps.four { grid-template-columns: 1fr; } }

.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 1.6rem 0 0; }
.chips li { padding: .6em 1em; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; font-size: .92rem; }

/* Image grids */
.grid { display: grid; gap: 16px; }
.grid.g2 { grid-template-columns: repeat(2, 1fr); }
.grid.g3 { grid-template-columns: repeat(3, 1fr); }
.grid.g4 { grid-template-columns: repeat(4, 1fr); }
.grid figure, figure.shot { margin: 0; }
.grid img, figure.shot img, figure.shot video { width: 100%; border-radius: var(--radius-s); }
.grid.crop img { aspect-ratio: 4/5; object-fit: cover; }
figcaption { font-size: .86rem; color: var(--muted); padding-top: 10px; line-height: 1.45; }
.dark figcaption { color: var(--on-dark); }
@media (max-width: 900px) { .grid.g3, .grid.g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .grid.g2 { grid-template-columns: 1fr; } }

/* Case study */
.cs-block { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: clamp(24px, 5vw, 72px); padding: clamp(36px, 5vw, 64px) 0; border-top: 1px solid var(--line); }
.cs-block:first-child { border-top: 1px solid var(--navy); }
.cs-block .label { font: italic 600 1.25rem/1.3 var(--display); color: var(--accent); }
.cs-block .label b { display: block; font: 700 .76rem var(--sans); font-style: normal; letter-spacing: .18em; color: var(--muted); margin-bottom: .5rem; }
.cs-block .body > p { max-width: 42em; }
.cs-block .body > p:first-child { font-size: 1.15rem; }
.cs-block ul.plain { padding-left: 1.2em; max-width: 42em; }
.cs-block ul.plain li { margin-bottom: .55em; }
@media (max-width: 760px) { .cs-block { grid-template-columns: 1fr; } }
blockquote.pull { margin: 2rem 0 0; padding: 0 0 0 clamp(18px, 3vw, 32px); border-left: 2px solid var(--accent); font: italic 600 clamp(1.25rem, 2.1vw, 1.65rem)/1.35 var(--display); max-width: 30em; }
blockquote.pull cite { display: block; font: 500 .9rem var(--sans); color: var(--muted); margin-top: 1rem; font-style: normal; }

/* Career highlights */
.highlights { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--navy); }
.highlights li { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.highlights .when { font: 700 .78rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); padding-top: .45rem; }
.highlights h3 { margin-bottom: .3em; }
.highlights p { color: var(--muted); margin: 0; }
@media (max-width: 640px) { .highlights li { grid-template-columns: 1fr; gap: 6px; } }

/* Simon's profile: proof strip, credentials, positioning line */
.bio p { max-width: 38em; }
.bio .pos { font: italic 600 clamp(1.15rem, 1.8vw, 1.45rem)/1.3 var(--display); color: var(--accent); margin-bottom: 1.4rem; }
.person .ph.sticky { position: sticky; top: 110px; }
@media (max-width: 860px) { .person .ph.sticky { position: relative; top: auto; } }
.proof { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--navy); border-bottom: 1px solid var(--line); }
.proof-item { padding: clamp(20px, 3vw, 32px) clamp(14px, 2vw, 28px); display: flex; flex-direction: column; gap: .3rem; }
.proof-item + .proof-item { border-left: 1px solid var(--line); }
.proof-item strong { font: 700 clamp(1.7rem, 3.2vw, 2.7rem)/1.1 var(--display); letter-spacing: -.01em; }
.proof-item .what { font-weight: 700; }
.proof-item .when { color: var(--muted); font-size: .92rem; }
@media (max-width: 700px) { .proof { grid-template-columns: 1fr; } .proof-item + .proof-item { border-left: 0; border-top: 1px solid var(--line); } }
.career-title { font-size: clamp(1.5rem, 2.8vw, 2.2rem); margin-bottom: 1.6rem; max-width: 20em; }
.highlights ul.creds { list-style: none; padding: 0; margin: .5rem 0 0; }
.highlights ul.creds li { display: block; grid-template-columns: none; gap: 0; border: 0; padding: .25rem 0; color: var(--ink); font-weight: 500; }

/* Insights */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 2.4rem; }
.filters button {
  font: 700 .8rem var(--sans); letter-spacing: .06em; padding: .7em 1.2em; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--navy); background: transparent; color: var(--navy);
}
.filters button[aria-pressed="true"] { background: var(--navy); color: var(--lav); }
.icards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.icard {
  display: flex; flex-direction: column; text-decoration: none; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-m); padding: clamp(22px, 2.6vw, 32px); transition: border-color .2s, transform .2s;
}
section.surface .icard { background: var(--white); }
.icard:hover { border-color: var(--navy); transform: translateY(-3px); }
.icard .meta { font: 700 .72rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.icard h3 { font-size: 1.35rem; margin-bottom: .6em; }
.icard p { color: var(--muted); font-size: .96rem; margin-bottom: 1.4rem; }
.icard .arrow-link { margin-top: auto; align-self: flex-start; font-size: .92rem; }
.icard.ext .arrow-link::after { content: "↗"; }
@media (max-width: 980px) { .icards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .icards { grid-template-columns: 1fr; } }
.icard[hidden] { display: none; }

/* Article */
.article { padding: clamp(40px, 6vw, 80px) 0 clamp(72px, 9vw, 120px); }
.article .byline { color: var(--muted); font-size: .95rem; margin-bottom: 2rem; }
.article h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); max-width: 16em; }
.article .body { max-width: 42em; font-size: 1.12rem; line-height: 1.75; }
.article .body h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin: 2.2em 0 .6em; }
.article .body li { margin-bottom: .6em; }
.article .body ul, .article .body ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.article .after { max-width: 42em; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }

/* Specs and care */
.specs { border-top: 1px solid var(--navy); margin: 1.5rem 0 0; padding: 0; list-style: none; }
.specs li { display: flex; justify-content: space-between; gap: 24px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.specs li span:first-child { color: var(--muted); }
.specs li span:last-child { text-align: right; }

/* FAQ */
.faq { border-top: 1px solid var(--navy); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 36px 20px 0; position: relative; font: 600 1.25rem/1.3 var(--display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font: 300 1.6rem var(--sans); color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding: 0 36px 12px 0; max-width: 44em; }

/* Forms */
form.contact { display: grid; gap: 20px; }
form.contact .row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { form.contact .row { grid-template-columns: 1fr; } }
label { display: block; font-size: .9rem; font-weight: 700; margin-bottom: 7px; }
label .opt { font-weight: 400; color: var(--muted); }
input, select, textarea {
  width: 100%; padding: 13px 14px; font: inherit; font-size: 1rem;
  border: 1px solid #b2b2d6; border-radius: var(--radius-s); background: var(--white); color: var(--ink);
}
textarea { min-height: 160px; resize: vertical; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font: 700 .76rem var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); padding: 0; margin-bottom: 14px; }
.form-msg { display: none; padding: 14px 16px; background: var(--surface); border-left: 3px solid var(--accent); border-radius: 2px; }
.form-msg.err { border-left-color: #b3261e; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.aside-card { background: var(--surface); border-radius: var(--radius-m); padding: clamp(24px, 3vw, 36px); }
.aside-card + .aside-card { margin-top: 20px; }
.aside-card h2 { font-size: 1.5rem; }
.aside-card p { color: var(--muted); font-size: .98rem; }

/* Prose pages (policies) */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.7rem; margin-top: 2.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; color: var(--muted); }

/* Footer */
.site-footer { background: var(--navy); color: var(--on-dark); padding: 72px 0 36px; font-size: .95rem; border-top: 1px solid var(--line-dark); }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; }
.site-footer h2 { color: var(--lav); font: 700 .74rem var(--sans); letter-spacing: .18em; text-transform: uppercase; margin: 0 0 16px; }
.site-footer a { color: var(--on-dark); text-decoration: none; display: block; padding: 4px 0; }
.site-footer a:hover { color: var(--white); }
.site-footer .logo { height: 70px; width: auto; margin-bottom: 18px; }
.site-footer .legal { border-top: 1px solid var(--line-dark); margin-top: 48px; padding-top: 22px; font-size: .84rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.site-footer .legal a { display: inline; }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } .site-footer .cols > div:first-child { grid-column: 1 / -1; } }

/* ---------- Anchors ---------- */
/* Keep anchored sections clear of the sticky header */
[id] { scroll-margin-top: 96px; }

/* Text for screen readers only (keeps heading order tidy) */
.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; }
