/* Wayve Capital site styles.
   One typeface (Cormorant Garamond 500/600), stone and paper grounds, ink type,
   teal marks on light, cyan marks on navy. Waves appear on the home page's first screen only. */

@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap; src: url("/fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 600; font-display: swap; src: url("/fonts/cormorant-garamond-latin-600-italic.woff2") format("woff2"); }

:root {
  --stone: #e9e6dd;
  --paper: #f2f1ec;
  --ink: #121416;
  --ink-2: #474c52;
  --ink-3: #55585b;
  --body: #3d4043;
  --rule: #c9c6bc;
  --field: #8d8a82;
  --frame: rgba(15, 26, 36, 0.38);
  --teal: #0b7f8a;
  --navy: #0f1a24;
  --ivory: #ece7da;
  --ivory-2: #cfcabd;
  --fine: #aeaaa0;
  --cyan: #3cc8d2;
  --error: #9b2c1f;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --gutter: 28px;
  --wave: 24px;
  --wave-dx: 160px;
}
@media (max-width: 899px) {
  :root { --gutter: 22px; --wave: 20px; --wave-dx: 80px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--serif); font-weight: 500; font-size: 20px; line-height: 1.5;
  font-variant-numeric: lining-nums; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.on-navy :focus-visible { outline-color: var(--cyan); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--paper); padding: 10px 16px; font-size: 16px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }

.preview-bar { background: var(--ink); color: var(--ivory); text-align: center; font-size: 15px; padding: 7px 16px; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Masthead: the bordered frame on stone that holds the header ---------- */
.masthead { background: var(--stone); padding: var(--gutter) var(--gutter) 0; position: relative; }
.masthead .frame { border: 1px solid var(--frame); border-bottom: 0; position: relative; }
.masthead--inner { padding-bottom: var(--gutter); }
.masthead--inner .frame { border-bottom: 1px solid var(--frame); }

.site-header { padding: 26px 56px 0; display: flex; flex-direction: column; align-items: center; }
.logo { display: block; width: 140px; }
.logo img { width: 140px; height: auto; }

.nav-main ul { display: flex; align-items: center; gap: 36px; margin-top: 10px; }
.nav-main a, .nav-compact a, .menu-btn {
  font-size: 15px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none; color: var(--ink);
}
.nav-main a { display: inline-block; padding: 14px 0; background: linear-gradient(var(--ink), var(--ink)) left 0 bottom 9px / 0 1px no-repeat; transition: background-size .2s ease; }
.nav-main a:hover, .nav-main a[aria-current="page"] { background-size: 100% 1px; }
/* Form CRS is a plain nav item: required to be prominent, not styled as a call to action. */
.nav-compact { display: none; }
.menu-close { display: none; }

@media (max-width: 899px) {
  .site-header { padding: 16px 16px 0; flex-direction: row; justify-content: space-between; }
  .logo, .logo img { width: 112px; }
  .js .nav-main { display: none; }
  .nav-compact { display: flex; align-items: center; gap: 16px; }
  /* Form CRS lives in the menu, the footer and the desktop nav; the phone header carries only the menu button. */
  .nav-compact a { display: none; }
  .menu-btn { white-space: nowrap; }
  /* Menu and Close: a hairline box in the frame color, the same line as the page frame. 44px tall tap target. */
  .menu-btn { font-family: inherit; font-size: 13px; letter-spacing: 0.14em; background: transparent; border: 1px solid var(--frame); border-radius: 2px; min-height: 44px; padding: 0 14px; cursor: pointer; }
  .no-js .nav-compact { display: none; }
  .no-js .site-header { flex-direction: column; align-items: flex-start; }
  .no-js .nav-main ul { flex-wrap: wrap; gap: 0 22px; }

  /* Open menu: the same nav, full screen */
  .menu-open .nav-main { display: block; position: fixed; inset: 0; z-index: 40; background: var(--stone); padding: 16px 22px 32px; overflow: auto; }
  .menu-open .nav-main ul { flex-direction: column; align-items: stretch; gap: 0; margin-top: 26px; border-top: 1px solid var(--rule); }
  .menu-open .nav-main li a { display: block; padding: 13px 0; font-size: 28px; line-height: 1.2; letter-spacing: 0; text-transform: none; font-weight: 500; border-bottom: 1px solid var(--rule); background: none; }
  .menu-open .menu-close { display: flex; justify-content: space-between; align-items: center; }
  .menu-open .menu-close img { width: 112px; }
  .menu-open { overflow: hidden; }
}

@media (max-width: 379px) {
  .logo, .logo img { width: 96px; }
  .menu-btn { letter-spacing: 0.1em; padding: 0 10px; }
}

/* ---------- Home: first screen with two crossing wave sets ----------
   The rings are drawn inside the frame only; the margin around it stays plain stone.
   Ring centres sit below the frame (--c), so the strongest rings rise from its bottom edge. */
.hero {
  --x1: calc(50% - var(--wave-dx)); --x2: calc(50% + var(--wave-dx));
  background-color: var(--stone);
  padding-bottom: var(--gutter); position: relative; text-align: center;
}
.hero .frame {
  --c: calc(100% + 266px + var(--gutter));
  position: relative; overflow: hidden;
  background-image:
    repeating-radial-gradient(circle at var(--x1) var(--c), rgba(15,26,36,.05) 0 1px, rgba(15,26,36,0) 1px var(--wave)),
    repeating-radial-gradient(circle at var(--x2) var(--c), rgba(15,26,36,.05) 0 1px, rgba(15,26,36,0) 1px var(--wave));
}
.hero .frame::before, .hero .frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -1; }
.hero .frame::before {
  background-image:
    radial-gradient(circle at var(--x1) calc(100% + 140px + var(--gutter)), rgba(15,26,36,.03) 0%, rgba(15,26,36,0) 38%),
    radial-gradient(circle at var(--x2) calc(100% + 140px + var(--gutter)), rgba(11,127,138,.09) 0%, rgba(11,127,138,0) 38%);
}
.hero .frame::after {
  background-image:
    repeating-radial-gradient(circle at var(--x1) var(--c), rgba(15,26,36,.2) 0 1px, rgba(15,26,36,0) 1px var(--wave)),
    repeating-radial-gradient(circle at var(--x2) var(--c), rgba(11,127,138,.2) 0 1px, rgba(11,127,138,0) 1px var(--wave));
  -webkit-mask-image: radial-gradient(ellipse 60% 62% at 50% 122%, #000 0%, rgba(0,0,0,.5) 45%, transparent 100%);
  mask-image: radial-gradient(ellipse 60% 62% at 50% 122%, #000 0%, rgba(0,0,0,.5) 45%, transparent 100%);
}
.hero.masthead { background-color: var(--stone); }
.hero .frame { border-bottom: 1px solid var(--frame); min-height: calc(680px - 2 * var(--gutter)); display: flex; flex-direction: column; z-index: 1; }
/* Computers: the first screen fills the window (at least 560px tall), so the fold lands at the frame, not in the next section's padding. */
@media (min-width: 900px) { .hero .frame { min-height: max(560px, calc(100svh - 2 * var(--gutter))); } .hero-body { justify-content: center; } }
.hero-body { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 60px 56px 40px; gap: 28px; }
.hero-label { font-size: 13px; letter-spacing: 0.16em; line-height: 1.6; font-weight: 600; text-transform: uppercase; }
.hero-label span + span::before { content: " · "; }
.hero h1 { font-size: 34px; line-height: 1.32; font-weight: 500; max-width: 790px; text-wrap: balance; }
.balance-rule { width: 64px; height: 1px; background: linear-gradient(90deg, var(--ink) 0 50%, var(--teal) 50% 100%); }
.hero-lead { font-size: 19px; font-style: italic; max-width: 640px; text-wrap: balance; color: var(--ink-2); }
.hero-base { border-top: 1px solid var(--frame); margin: 0 56px; padding: 16px 0 18px; font-size: 13px; letter-spacing: 0.24em; font-weight: 600; text-transform: uppercase; color: var(--ink-2); }

@media (max-width: 899px) {
  .hero .frame { min-height: calc(620px - 2 * var(--gutter)); }
  .hero-body { padding: 44px 16px 32px; gap: 22px; }
  .hero-label span { display: block; }
  .hero-label span + span::before { content: none; }
  .hero h1 { font-size: 27px; }
  .hero-lead { font-size: 18px; }
  .hero-base { margin: 0 16px; padding: 12px 0 14px; letter-spacing: 0.07em; }
}

/* ---------- Inner page title block ---------- */
.page-title { text-align: center; padding: 30px 56px 46px; }
.page-title h1 { font-weight: 500; }
.page-title .eyebrow { display: block; margin-bottom: 18px; line-height: 1.5; }
.page-title .title-main { display: block; font-size: 40px; line-height: 1.22; max-width: 820px; margin: 0 auto; text-wrap: balance; }
.page-title .title-main.italic { font-style: italic; }
.page-title .page-lead { margin: 22px auto 0; max-width: 700px; font-size: 21px; color: var(--ink-2); text-wrap: balance; }
@media (max-width: 899px) {
  .page-title { padding: 24px 16px 34px; }
  .page-title .title-main { font-size: 31px; }
  .page-title .page-lead { font-size: 19px; }
}

/* ---------- Sections ---------- */
.eyebrow { font-size: 15px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-3); text-align: center; }
.section { padding: 88px 0 72px; border-bottom: 1px solid var(--rule); }
.section:last-child { border-bottom: 0; }
.section > .eyebrow { margin-bottom: 22px; }
.section-statement { font-size: clamp(24px, 2.8vw, 30px); line-height: 1.35; max-width: 820px; margin: 0 auto; text-align: center; text-wrap: balance; }
.more { margin-top: 40px; text-align: center; font-size: 15px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.more a { display: inline-block; padding: 14px 0 7px; text-decoration: none; border-bottom: 2px solid var(--teal); }
.more.left { text-align: left; }
@media (max-width: 899px) { .section { padding: 56px 0 48px; } }

/* Strategy rows */
.rows { margin-top: 40px; }
.page-strategy .section { padding-top: 40px; }
.page-strategy .rows { margin-top: 0; }
.page-strategy .row:first-child { border-top: 0; }
.row { display: flex; flex-wrap: wrap; gap: 14px 48px; padding: 28px 0; border-top: 1px solid var(--rule); }
.row:last-child { padding-bottom: 0; }
.row h3, .row .row-h { flex: 0 0 220px; font-size: 28px; font-style: italic; font-weight: 500; line-height: 1.2; }
.row-body { flex: 1 1 420px; min-width: 0; color: var(--body); display: flex; flex-direction: column; gap: 14px; }
.row-body dl { margin: 6px 0 0; display: grid; gap: 14px; }
.row-body dt { font-weight: 600; color: var(--ink); }
.row-body dd { margin: 2px 0 0; }

/* Team rows (home): open and close without script */
.people { max-width: 860px; margin: 30px auto 0; border-top: 1px solid var(--rule); }
.person { border-bottom: 1px solid var(--rule); }
.person summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; gap: 2px 16px; padding: 13px 0; min-height: 52px; }
.person summary::-webkit-details-marker { display: none; }
.person .who { flex: 1 1 auto; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 16px; }
.person .name { flex: 1 1 220px; font-size: 24px; line-height: 1.25; }
.person .role { font-size: 18px; color: var(--ink-3); text-align: right; }
.person .sign { flex: none; width: 24px; text-align: center; font-size: 22px; line-height: 1; color: var(--teal); }
.person .sign .minus { display: none; }
.person[open] .sign .plus { display: none; }
.person[open] .sign .minus { display: inline; }
.person .bio { padding: 4px 40px 26px 0; color: var(--body); max-width: 760px; }
.person .bio p + p { margin-top: 12px; }
.person .bio .more { text-align: left; margin-top: 16px; }
@media (max-width: 899px) {
  .person summary { align-items: center; }
  .person .who { flex-direction: column; align-items: flex-start; gap: 2px; }
  .person .name { flex: none; }
  .person .role { text-align: left; }
  .role .line { display: block; }
  .person .bio { padding-right: 0; }
}

/* Team page */
.team-list { max-width: 900px; margin: 0 auto; }
.member { display: grid; grid-template-columns: 168px 1fr; gap: 8px 44px; padding: 44px 0; border-top: 1px solid var(--rule); scroll-margin-top: 16px; }
.member:first-child { border-top: 0; padding-top: 8px; }
.member.no-photo { grid-template-columns: 1fr; }
.member .photo { width: 168px; height: 168px; border-radius: 50%; overflow: hidden; background: var(--stone); }
.member .photo img { width: 100%; height: 100%; object-fit: cover; }
.member h2 { font-size: 30px; line-height: 1.2; font-weight: 500; }
.member .member-role { font-size: 18px; color: var(--ink-3); margin-top: 4px; }
.member .member-bio { margin-top: 18px; color: var(--body); }
.member .member-bio p + p { margin-top: 14px; }
.member-more > summary { display: none; }
@media (max-width: 899px) {
  .member-more { margin-top: 14px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
  .member-more > summary { display: flex; justify-content: space-between; align-items: center; min-height: 48px; list-style: none; cursor: pointer; font-size: 15px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); }
  .member-more > summary::-webkit-details-marker { display: none; }
  .member-more .sign { width: 24px; text-align: center; font-size: 22px; line-height: 1; color: var(--teal); font-weight: 400; letter-spacing: 0; }
  .member-more .sign .minus { display: none; }
  .member-more[open] .sign .plus { display: none; }
  .member-more[open] .sign .minus { display: inline; }
  .member-more .member-bio { margin-top: 4px; padding-bottom: 22px; }
}
@media (max-width: 899px) {
  .member { grid-template-columns: 1fr; padding: 36px 0; }
  .member .photo { width: 120px; height: 120px; margin-bottom: 8px; }
  .member h2 { font-size: 27px; }
}

/* ---------- Media (navy) ---------- */
.on-navy { background: var(--navy); color: var(--ivory); }
.on-navy .eyebrow { color: var(--ivory-2); }
.band { padding: 72px 0 80px; }
.outlets { margin: 14px 0 34px; text-align: center; font-size: 26px; font-style: italic; }
.outlets .dot { color: var(--cyan); }
.dot.teal { color: var(--teal); }
.media-notes.page-end { margin-bottom: 80px; }
.nf-wrap { padding-top: 56px; padding-bottom: 88px; }
.media-list { max-width: 900px; margin: 0 auto; border-top: 1px solid rgba(236,231,218,.26); }
.media-item { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 30px; padding: 22px 0; border-bottom: 1px solid rgba(236,231,218,.26); }
.media-date { flex: 0 0 132px; font-size: 19px; color: var(--ivory-2); font-variant-numeric: lining-nums tabular-nums; letter-spacing: 0.04em; }
.media-main { flex: 1 1 380px; min-width: 0; }
.media-kind { font-size: 13px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ivory-2); display: flex; align-items: center; gap: 10px; }
.media-kind::before { content: ""; width: 7px; height: 7px; background: var(--cyan); flex: none; }
.media-title { font-size: 24px; line-height: 1.3; margin-top: 6px; font-weight: 500; }
.media-quote { font-size: 18px; font-style: italic; color: var(--ivory-2); margin-top: 4px; }
.media-links { display: flex; gap: 22px; font-size: 14px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.media-links a { color: var(--ivory); text-decoration: none; border-bottom: 1px solid var(--cyan); padding: 15px 0 8px; display: inline-block; white-space: nowrap; }
.on-navy .more a { color: var(--ivory); border-bottom: 1px solid var(--cyan); }
.media-notes { max-width: 900px; margin: 44px auto 0; display: grid; gap: 16px; font-size: 17px; color: var(--ivory-2); }
.media-notes a { color: var(--ivory); }
@media (max-width: 899px) {
  .band { padding: 52px 0 56px; }
  .media-date { flex: 1 1 100%; }
  .media-links { flex-wrap: wrap; gap: 0 22px; }
}

/* Media page on paper */
.media-page .media-list { border-top-color: var(--rule); }
.media-page .media-item { border-bottom-color: var(--rule); }
.media-page .media-date, .media-page .media-kind { color: var(--ink-2); }
.media-page .media-kind::before { background: var(--teal); }
.media-page .media-quote { color: var(--ink-3); }
.media-page .media-links a { color: var(--ink); border-bottom-color: var(--teal); }
.media-group { padding: 56px 0 0; }
.media-page .featured .media-links a { color: var(--ivory); border-bottom-color: var(--cyan); }
.media-page .media-notes { color: var(--ink-2); }
.media-page .media-notes a { color: var(--ink); }
.media-group h2 { max-width: 900px; margin: 0 auto 12px; font-size: 26px; font-weight: 500; font-style: italic; }
.featured { padding: 56px 0 64px; }
.featured .media-kind { color: var(--ivory-2); display: block; }
.featured .media-kind::before { display: inline-block; vertical-align: middle; margin: -2px 10px 0 0; }
.featured h2 { margin: 16px 0 28px; font-size: 40px; line-height: 1.2; font-weight: 500; max-width: 780px; text-wrap: balance; }
.featured .media-links { font-size: 15px; }
@media (max-width: 899px) { .featured h2 { font-size: 30px; } }

/* ---------- Forms ---------- */
.form { max-width: 860px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 26px 40px; text-align: left; }
.field { flex: 1 1 300px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field.full { flex-basis: 100%; }
.field label, .field .label { font-size: 13px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-3); }
.field input, .field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--field); border-radius: 0;
  padding: 10px 0; font: inherit; font-size: 20px; color: var(--ink);
}
.field textarea { resize: vertical; min-height: 128px; }
.field input:focus-visible, .field textarea:focus-visible { outline: none; border-bottom: 2px solid var(--teal); padding-bottom: 9px; }
.field .error { display: none; font-size: 17px; color: var(--error); }
.field.invalid input, .field.invalid textarea { border-bottom: 2px solid var(--error); padding-bottom: 9px; }
.field.invalid .error { display: block; }
.form-note { flex-basis: 100%; font-size: 18px; color: var(--ink-2); }
.suggest { font-size: 17px; color: var(--ink-2); }
.suggest button { font: inherit; color: var(--ink); background: none; border: 0; padding: 8px 2px; text-decoration: underline; text-decoration-color: var(--teal); text-underline-offset: 4px; cursor: pointer; }
.form-note a { display: inline-block; padding: 11px 0; }
.btn {
  font: inherit; font-size: 15px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink); background: transparent; border: 1px solid var(--teal); border-radius: 2px;
  min-height: 48px; padding: 0 28px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center;
}
.btn:hover { background: rgba(11,127,138,.08); }
.btn[disabled] { opacity: .6; cursor: progress; }
.on-navy .btn { color: var(--ivory); border-color: var(--cyan); }
.form-status { flex-basis: 100%; font-size: 19px; }
.form-status:empty { display: none; }
.form-status.error { color: var(--error); }
.form-sent { max-width: 860px; margin: 0 auto; padding: 28px 0; border-top: 2px solid var(--teal); border-bottom: 1px solid var(--rule); text-align: center; }
.form-sent p:first-child { font-size: 26px; }
.form-sent p + p { color: var(--ink-2); margin-top: 6px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.signup { max-width: 900px; margin: 48px auto 0; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px 24px; }
.signup .field { flex: 1 1 300px; }
.signup .field label { color: var(--ivory-2); }
.signup .field input { border-bottom-color: var(--ivory-2); color: var(--ivory); }
.media-page .signup .field label { color: var(--ink-3); }
.media-page .signup .field input { border-bottom-color: var(--field); color: var(--ink); }

.contact-city { margin-top: 18px; font-size: 22px; text-align: center; }
.contact-line { margin: 4px 0 40px; font-size: 19px; text-align: center; color: var(--ink-2); }
.contact-details { text-align: center; margin: -24px 0 40px; color: var(--ink-2); }

/* ---------- Prose pages (legal, privacy, about) ---------- */
.prose { max-width: 760px; margin: 0 auto; padding: 64px 0 80px; color: var(--body); }
.prose a { overflow-wrap: anywhere; }
.prose h2 { font-size: 30px; font-weight: 500; color: var(--ink); line-height: 1.2; margin: 48px 0 16px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 23px; font-weight: 600; color: var(--ink); margin: 32px 0 10px; }
.prose p + p, .prose ul + p, .prose p + ul { margin-top: 14px; }
.prose ul { list-style: disc; padding-left: 1.2em; }
.prose li + li { margin-top: 6px; }
.prose .placeholder { border: 1px dashed var(--field); padding: 24px; text-align: center; color: var(--ink-2); }
.crs-box { max-width: 760px; margin: 0 auto; padding: 64px 0 80px; text-align: center; }
.crs-box p + p { margin-top: 12px; color: var(--ink-2); }
.crs-box .btn { margin: 28px 0 12px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--ivory-2); }
.site-footer .wrap { padding-top: 34px; padding-bottom: 38px; display: flex; flex-direction: column; gap: 18px; font-size: 18px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 10px 24px; }
.footer-top a { color: var(--ivory); text-decoration: underline; text-decoration-color: var(--cyan); text-underline-offset: 5px; text-decoration-thickness: 2px; display: inline-block; padding: 10px 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 34px; padding-top: 18px; border-top: 1px solid rgba(236,231,218,.22); }
.footer-links a, .footer-links button {
  color: var(--ivory); text-decoration: underline; text-decoration-color: rgba(236,231,218,.5); text-underline-offset: 5px; text-decoration-thickness: 1px;
  display: inline-block; padding: 10px 0; font: inherit; background: none; border: 0; cursor: pointer;
}
.fine-print { margin-top: 6px; font-size: 14px; line-height: 1.55; color: var(--fine); max-width: 900px; }
.copyright { font-size: 14px; color: var(--fine); }

/* ---------- Consent ---------- */
.consent { position: fixed; right: var(--gutter); bottom: var(--gutter); z-index: 30; width: 368px; max-width: calc(100% - 32px); background: var(--paper); border: 1px solid var(--frame); box-shadow: 0 10px 30px rgba(15,26,36,.12); padding: 22px 22px 20px; font-size: 15px; line-height: 1.45; animation: consent-in .35s ease-out both; }
.consent[hidden] { display: none; }
.consent-title { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; }
.consent-rule { display: block; width: 40px; height: 1px; margin: 10px 0 12px; background: linear-gradient(90deg, var(--ink) 0 50%, var(--teal) 50% 100%); }
.consent-text { margin: 0 0 16px; }
.consent-text a { white-space: nowrap; }
.consent .actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.consent .actions .btn { min-height: 38px; padding: 0 8px; justify-content: center; font-size: 12px; letter-spacing: .12em; white-space: nowrap; }
@keyframes consent-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .consent { animation: none; } }
@media (min-width: 520px) and (max-width: 1099px), (min-width: 520px) and (max-height: 760px) {
  .consent { width: 320px; padding: 16px 18px 16px; font-size: 14px; line-height: 1.4; }
  .consent-title { font-size: 11px; }
  .consent-rule { margin: 8px 0 10px; width: 32px; }
  .consent-text { margin-bottom: 12px; }
  .consent .actions .btn { min-height: 34px; font-size: 11px; letter-spacing: .1em; }
}
@media (max-width: 519px) { .consent { right: 12px; left: 12px; bottom: 12px; width: auto; max-width: none; padding: 16px 16px 14px; font-size: 14px; } .consent-text { margin-bottom: 14px; } }
/* Narrow phones (320 to 379px): keep both buttons inside the card and equal width */
@media (max-width: 379px) { .consent .actions { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .consent .actions .btn { padding: 0 4px; font-size: 11px; letter-spacing: .06em; } }

/* ---------- 404 ---------- */
.not-found-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 28px; margin-top: 26px; font-size: 15px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.not-found-links a { display: inline-block; padding: 14px 0 7px; text-decoration: none; border-bottom: 2px solid var(--teal); }

@media print {
  .masthead, .hero, .hero .frame { background: none !important; }
  .hero .frame::before, .hero .frame::after, .nav-main, .nav-compact, .consent, .form, .signup, .skip-link, .preview-bar { display: none !important; }
  .on-navy, .site-footer { background: none; color: #000; }
  a { text-decoration: underline; }
}

/* Phones and tablets: the first screen also fills the window, so the fold never lands in the next section's padding. */
@media screen and (max-width: 899px) {
  .hero .frame { min-height: max(calc(620px - 2 * var(--gutter)), calc(100svh - 2 * var(--gutter))); }
  .hero-body { justify-content: center; }
}
