/* 221 Partners — compiled from the Astro source by scripts/extract-assets.mjs.
   Do not edit directly; edit the Astro components and rebuild. */

/* ===== global.css ===== */
:root {
  /* Palette — Blue Ridge: steel-blue sky into deep forest green (from logo) */
  --ink: #021e3f;        /* logo navy — headings, borders & dark sections */
  --ink-soft: #0a2f57;
  --paper: #F5F7F5;      /* cool near-white */
  --paper-dim: #E8EDE8;
  --brass: #3f7a55;      /* primary green accent (kept name for compatibility) */
  --brass-deep: #2c5c3e; /* deeper green accent */
  --slate: #4e6378;      /* mountain blue-grey */
  --slate-light: #8b9cb0;   /* decorative only - fails AA as text on paper */
  --slate-muted: #5c6e82;   /* smallest muted text: 4.87:1 on --paper, passes AA */
  --sky: #aebfc9;        /* lightest sky band */
  --line: #d6ddd6;

  /* Type */
  --display: 'Cormorant Garamond', Georgia, serif;
  --body: 'Inter', system-ui, -apple-system, sans-serif;

  /* Scale */
  --step--1: clamp(0.83rem, 0.79rem + 0.2vw, 0.94rem);
  --step-0: clamp(1rem, 0.95rem + 0.25vw, 1.13rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.5rem);
  --step-2: clamp(1.6rem, 1.4rem + 1vw, 2.2rem);
  --step-3: clamp(2.2rem, 1.8rem + 2vw, 3.4rem);
  --step-4: clamp(3rem, 2.2rem + 4vw, 5.5rem);

  --maxw: 1140px;
  --gutter: clamp(1.25rem, 1rem + 3vw, 4rem);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.06;
  margin: 0;
  letter-spacing: 0;
}

p { margin: 0; }

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  font-family: var(--body);
  font-size: var(--step--1);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass-deep);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}

.eyebrow::before {
  content: "";
  width: 1.8rem;
  height: 1px;
  background: var(--brass);
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--body);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.85em 1.6em;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.btn:hover { background: transparent; color: var(--ink); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

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

/* ===== Header.astro ===== */
/* Transparent and overlaid on the hero photo by default; turns solid on scroll. */
  .site-head {
    position: fixed;
    isolation: isolate;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  }
  .site-head.scrolled {
    background: color-mix(in srgb, var(--paper) 90%, transparent);
    backdrop-filter: blur(8px);
    border-bottom-color: var(--line);
  }
  .head-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: 1rem;
    /* Full-width header matching Aqueduct: 4vw gutter, capped to a 1400px inner */
    padding-inline: max(4vw, calc((100vw - 1400px) / 2));
  }
  .logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.7rem;
    line-height: 1;
  }
  .logo-emblem {
    height: 3.9rem;
    width: auto;
    display: block;
  }
  .logo-lockup {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .logo-mark {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  /* Dashes flanking 221 — emblem green, in both states */
  .logo-mark .rule {
    width: 1.7rem;
    height: 1px;
    background: rgba(255, 255, 255, 0.8);
    transition: background .3s ease;
  }
  .logo-num {
    font-family: var(--display);
    font-weight: 600;
    font-size: 2.1rem;
    letter-spacing: 0.04em;
    color: #fff;
    transition: color .3s ease;
  }
  .logo-word {
    font-family: var(--display);
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: #fff;
    margin-top: 0.1rem;
    /* optical centering against the tracked caps */
    padding-left: 0.34em;
    transition: color .3s ease;
  }
  .nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2.2rem); }
  .nav-tab {
    font-family: var(--display);
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    padding-bottom: 2px;
    border-bottom: 1px solid transparent;
    transition: color .2s ease, border-color .2s ease;
  }
  .nav-tab:hover { color: #fff; }
  .nav-tab.active {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 0.9);
  }
  .nav-portal {
    font-family: var(--display);
    font-size: 1.2rem;
    font-weight: 600;
    margin-left: 0.4rem;
    /* Smaller block, colored to match the logo navy */
    padding: 0.4em 0.9em;
    background: #021e3f;
    border-color: #021e3f;
    color: #fff;
  }
  .nav-portal:hover { background: #0a2f57; border-color: #0a2f57; color: #fff; }

  /* --- Menu open: lift the header above the overlay so the X stays clickable,
     and strip its background/logo so only the X shows over the navy. Placed
     after .scrolled so these win when scrolled + open at the same time. --- */
  .site-head.menu-open {
    z-index: 80;
    background: transparent;
    backdrop-filter: none;
    border-bottom-color: transparent;
  }
  .site-head.menu-open .logo { visibility: hidden; }

  /* Scrim.
     The logo is dark ink, so the header needs a light backdrop to sit on when
     it is over a photograph — otherwise it disappears against a dark image
     (the tunnel shot on the Team page). A gradient rather than a solid bar so
     the photograph still reads through, and it guarantees legibility whatever
     image is uploaded later rather than depending on each one being light.
     Hidden once the header goes solid, which has its own background. */
  .site-head::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 190%;
    pointer-events: none;
    z-index: -1;
    background: linear-gradient(
      to bottom,
      color-mix(in srgb, var(--paper) 88%, transparent) 0%,
      color-mix(in srgb, var(--paper) 72%, transparent) 45%,
      color-mix(in srgb, var(--paper) 0%, transparent) 100%
    );
    transition: opacity .3s ease;
  }
  .site-head.scrolled::before,
  .site-head.no-hero::before { opacity: 0; }
  /* The overlay menu covers the header entirely. */
  .site-head.menu-open::before { opacity: 0; }

  /* With a light scrim the nav must be dark too, or it would be white on a
     lightened backdrop. This makes the whole header one consistent treatment. */
  .nav-tab { color: var(--slate); }
  .nav-tab:hover { color: var(--ink); }
  .nav-tab.active { color: var(--ink); border-bottom-color: var(--brass); }
  .nav-toggle-bar { background: #021e3f; }

  /* Pages with no hero photo (the 404) have light content directly under the
     header, so the transparent treatment would render the nav white-on-white.
     Applied server-side as well as by JS, so it is correct before scripts run. */
  .site-head.no-hero {
    background: color-mix(in srgb, var(--paper) 90%, transparent);
    backdrop-filter: blur(8px);
    border-bottom-color: var(--line);
  }
  .site-head.no-hero .logo-mark .rule { background: #021e3f; }
  .site-head.no-hero .logo-num,
  .site-head.no-hero .logo-word { color: var(--ink); }
  .site-head.no-hero .nav-tab { color: var(--slate); }
  .site-head.no-hero .nav-tab:hover { color: var(--ink); }
  .site-head.no-hero .nav-tab.active { color: var(--ink); border-bottom-color: var(--brass); }
  .site-head.no-hero .nav-toggle-bar { background: #021e3f; }

  /* --- Scrolled (over light content): revert to original solid treatment --- */
  .site-head.scrolled .logo-mark .rule { background: #021e3f; }
  .site-head.scrolled .logo-num,
  .site-head.scrolled .logo-word { color: var(--ink); }
  .site-head.scrolled .nav-tab { color: var(--slate); }
  .site-head.scrolled .nav-tab:hover { color: var(--ink); }
  .site-head.scrolled .nav-tab.active {
    color: var(--ink);
    border-bottom-color: var(--brass);
  }

  /* --- Mobile hamburger + full-screen overlay --- */
  .nav-toggle {
    display: none; /* shown at ≤640px */
    position: relative;
    z-index: 70; /* stays above the overlay so it can close it */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 2.6rem;
    height: 2.6rem;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
  }
  .nav-toggle-bar {
    display: block;
    width: 26px;
    height: 2px;
    background: #fff;
    transition: transform .3s ease, opacity .3s ease, background .3s ease;
  }
  /* Bars go navy when the header is solid over light content */
  .site-head.scrolled .nav-toggle-bar { background: #021e3f; }
  /* Open: morph the two bars into an X, forced white over the navy overlay */
  .nav-toggle.open .nav-toggle-bar { background: #fff; }
  .site-head.scrolled .nav-toggle.open .nav-toggle-bar { background: #fff; }
  .nav-toggle.open .nav-toggle-bar:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-toggle.open .nav-toggle-bar:last-child { transform: translateY(-4px) rotate(-45deg); }

  .mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 60;
    background: #021e3f;
    /* Resting state is display:none so the overlay can never be painted before
       CSS/JS is ready (no load flash). JS flips display to flex, then toggles
       .open to fade opacity in/out. pointer-events guards the closing fade so
       clicks pass through while it animates out. */
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
  }
  .mobile-menu.open { opacity: 1; pointer-events: auto; }
  .mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.8rem;
  }
  .mobile-link {
    font-family: var(--display);
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #fff;
    padding-bottom: 2px;
    border-bottom: 1px solid transparent;
  }
  .mobile-link.active { border-bottom-color: rgba(255, 255, 255, 0.9); }
  .mobile-portal {
    margin-top: 0.8rem;
    font-family: var(--display);
    font-size: 1.5rem;
    font-weight: 600;
    padding: 0.5em 1.6em;
    background: #fff;
    border-color: #fff;
    color: #021e3f;
  }
  .mobile-portal:hover { background: #fff; border-color: #fff; color: #021e3f; }

  /* Show the hamburger on narrow OR short viewports, so landscape phones
     (wide but short) get it too instead of the cramped desktop nav. */
  @media (max-width: 640px), (max-height: 500px) {
    .nav { display: none; }        /* hide the inline desktop nav */
    .nav-toggle { display: flex; } /* reveal the hamburger */
  }
  /* Short viewports (landscape phones): compact the overlay so it fits and
     can scroll if needed. */
  @media (max-height: 500px) {
    .mobile-menu { overflow-y: auto; }
    .mobile-nav { gap: 1.1rem; padding-block: 2.5rem; }
    .mobile-link { font-size: 1.4rem; }
    .mobile-portal { font-size: 1.15rem; margin-top: 0.4rem; }
  }

/* ===== PageHero.astro ===== */
.page-hero {
    position: relative;
    min-height: clamp(440px, 66vh, 660px);
    display: flex;
    align-items: flex-end;
    color: #fff;
    /* Layered background: the real photo on top, a tiny inline blurred
       placeholder (LQIP) beneath it, and navy at the very bottom. On a full
       page load the LQIP paints instantly, so there is no solid-color flash
       before the AVIF decodes; the photo then covers it. */
    background-color: var(--ink);
    background-image: var(--hero-img), var(--hero-lqip, none);
    background-size: cover, cover;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
  }
  .page-hero.tall { min-height: clamp(520px, 82vh, 820px); }
  .page-hero.full { height: 100svh; min-height: 100svh; }

  .hero-inner {
    width: 100%;
    padding-block: clamp(2.5rem, 6vh, 5rem);
  }

  .hero-title {
    color: #fff;
    font-size: var(--step-3);
    max-width: 20ch;
  }
  .page-hero.tall .hero-title {
    font-size: var(--step-4);
    max-width: 18ch;
  }
  /* Non-centered heroes: pull the title left to half its original left gap
     (the space between the first letter and the viewport edge). */
  .page-hero:not(.centered) .hero-title {
    margin-left: calc((max(0px, (100vw - var(--maxw)) / 2) + var(--gutter)) / -2);
  }

  /* Centered variant — text centered horizontally and vertically over the photo */
  .page-hero.centered { align-items: center; text-align: center; }
  .page-hero.centered .hero-title { margin-inline: auto; }
  .page-hero.centered .hero-text { margin-inline: auto; }
  .hero-title em { font-style: italic; color: var(--sky); }

  .hero-text {
    margin-top: 1.2rem;
    max-width: 46ch;
    font-size: var(--step-1);
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.92);
  }

  .hero-actions {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    gap: 1.4rem;
    flex-wrap: wrap;
  }
  .hero-btn {
    font-family: var(--body);
    font-size: var(--step--1);
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #fff;
    border-bottom: 1px solid var(--sky);
    padding-bottom: 2px;
    transition: opacity .2s ease;
  }
  .hero-btn:hover { opacity: 0.82; }
  .hero-btn.primary {
    border: 1px solid #fff;
    background: #fff;
    color: var(--ink);
    padding: 0.85em 1.6em;
    transition: background .2s ease, color .2s ease;
  }
  .hero-btn.primary:hover { background: transparent; color: #fff; opacity: 1; }

/* ===== Services.astro ===== */
.services { padding-block: clamp(3.5rem, 6vw, 6.5rem); border-top: 1px solid var(--line); }
  .sec-head { margin-bottom: clamp(2rem, 4vw, 3.5rem); }
  .sec-head h2 { font-size: var(--step-3); margin-top: 1rem; max-width: 16ch; color: #021e3f; }
  .svc-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(1.5rem, 3vw, 3rem);
  }
  .svc { border-top: 2px solid var(--ink); padding-top: 1.4rem; }
  .svc-no {
    font-family: var(--body);
    font-size: var(--step--1);
    letter-spacing: 0.1em;
    color: #021e3f;
    font-weight: 600;
  }
  .svc h3 { font-size: var(--step-2); margin-block: 0.6rem 0.8rem; color: #021e3f; }
  .svc p { color: #021e3f; }
  @media (max-width: 760px) {
    .svc-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  }

/* ===== Approach.astro ===== */
.approach {
    padding-block: clamp(3.5rem, 6vw, 6.5rem);
    background: #021e3f;
    color: var(--paper);
  }
  .approach-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: start;
  }
  .approach .eyebrow { color: var(--brass); }
  .approach .eyebrow::before { background: var(--brass); }
  .approach h2 {
    font-size: var(--step-3);
    margin-block: 1rem 1.4rem;
    color: var(--paper);
  }
  .approach-intro p { color: #c4ccd6; max-width: 42ch; }
  .principles { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.6rem; }
  .principles li { border-top: 1px solid rgba(255,255,255,0.18); padding-top: 1.3rem; }
  .principles h3 { font-size: var(--step-1); color: var(--paper); }
  .principles p { color: #b7bfca; margin-top: 0.4rem; }
  @media (max-width: 820px) {
    .approach-grid { grid-template-columns: 1fr; }
  }

/* ===== Team.astro ===== */
.team { padding-block: clamp(3.5rem, 6vw, 6.5rem); }
  .team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: start;
  }
  .member { border-top: 2px solid var(--ink); padding-top: 1.4rem; }
  .member-photo {
    aspect-ratio: 4 / 3;
    background: var(--paper-dim);
    border: 1px solid var(--line);
    margin-bottom: 1.2rem;
  }
  .member h2 { font-size: var(--step-2); margin-bottom: 0.2rem; color: #021e3f; }
  .member-role {
    font-family: var(--body);
    font-size: var(--step--1);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #021e3f;
    font-weight: 600;
  }
  .member-bio { margin-top: 1rem; display: grid; gap: 0.9rem; }
  .member-bio p { color: #021e3f; }
  .bio-q {
    color: #021e3f;
    font-weight: 600;
  }
  @media (max-width: 760px) {
    .team-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    /* Blank placeholder cards add nothing on a single column — hide them */
    .member-blank { display: none; }
  }

/* ===== Contact.astro ===== */
.contact { padding-block: clamp(3.5rem, 6vw, 6.5rem); border-top: 1px solid var(--line); }
  .lead-form { display: grid; gap: 1.2rem; max-width: 34rem; margin-inline: auto; }
  .field { display: grid; gap: 0.4rem; }
  .field label {
    font-size: var(--step--1);
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--ink);
  }
  .field input, .field textarea {
    font-family: var(--body);
    font-size: var(--step-0);
    padding: 0.75em 0.85em;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    border-radius: 0;
    resize: vertical;
  }
  .field input:focus, .field textarea:focus {
    outline: none;
    border-color: var(--brass);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brass) 22%, transparent);
  }
  .lead-form .btn { justify-self: start; }
  .form-fine { font-size: 0.78rem; color: var(--slate-muted); }

/* ===== Footer.astro ===== */
.site-foot { border-top: 1px solid var(--line); padding-block: 2.4rem; }
  .foot-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
  }
  .foot-brand { display: flex; align-items: baseline; gap: 0.6rem; }
  .foot-num {
    font-family: var(--display); font-weight: 600; font-size: 1.5rem;
    letter-spacing: 0.04em; color: var(--ink);
  }
  .foot-word {
    font-family: var(--display); font-weight: 600; font-size: 0.85rem;
    letter-spacing: 0.3em; text-transform: uppercase;
    color: var(--ink);
  }
  .foot-note { font-size: var(--step--1); color: var(--slate); }
  .foot-copy { font-size: 0.78rem; color: var(--slate-muted); }

/* ===== WordPress additions ===== */
/* The admin bar is fixed at the top for logged-in users and would otherwise
   sit on top of the fixed site header. */
body.admin-bar .site-head { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar .site-head { top: 46px; }
}
/* WordPress injects alignment and caption classes into post content. */
.entry-content img { max-width: 100%; height: auto; }
.entry-content .aligncenter { display: block; margin-inline: auto; }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
/* Client Portal tooltip.
   Shown on hover and on keyboard focus. The note is also in a visually hidden
   span referenced by aria-describedby, so assistive tech gets it too. */
.portal-wrap { position: relative; display: inline-flex; }
.btn.has-note { cursor: default; }
.btn.has-note::after {
  content: attr(data-note);
  position: absolute;
  top: calc(100% + 0.55rem);
  left: 50%;
  transform: translateX(-50%) translateY(-0.25rem);
  z-index: 90;
  white-space: nowrap;
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: none;
  padding: 0.45em 0.8em;
  color: #fff;
  background: #021e3f;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.btn.has-note::before {
  content: "";
  position: absolute;
  top: calc(100% + 0.2rem);
  left: 50%;
  transform: translateX(-50%) translateY(-0.25rem);
  z-index: 91;
  border: 0.35rem solid transparent;
  border-bottom-color: #021e3f;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.btn.has-note:hover::after,
.btn.has-note:focus-visible::after,
.btn.has-note:hover::before,
.btn.has-note:focus-visible::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
/* Not-yet-live state.
   Kept as aria-disabled rather than the real disabled attribute on purpose:
   disabled would drop it out of the tab order, so a keyboard or screen-reader
   user could never reach it to find out why it does nothing. aria-disabled
   announces it as unavailable while still being discoverable, and browsers do
   not suppress hover on it, so the tooltip still works. */
.btn.nav-portal[aria-disabled="true"],
.btn.nav-portal[aria-disabled="true"]:hover,
.btn.nav-portal[aria-disabled="true"]:focus {
  background: var(--slate-light);
  border-color: var(--slate-light);
  color: #f4f7fa;
  cursor: not-allowed;
  box-shadow: none;
}
/* The header turns solid over light content; keep the muted treatment there. */
.site-head.scrolled .btn.nav-portal[aria-disabled="true"],
.site-head.scrolled .btn.nav-portal[aria-disabled="true"]:hover {
  background: var(--slate-light);
  border-color: var(--slate-light);
  color: #f4f7fa;
}
/* Mobile overlay is navy, so the disabled button is a translucent white. */
.btn.mobile-portal[aria-disabled="true"],
.btn.mobile-portal[aria-disabled="true"]:hover,
.btn.mobile-portal[aria-disabled="true"]:focus {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.38);
  color: rgba(255, 255, 255, 0.85);
  cursor: not-allowed;
}
/* Hovering anywhere on the wrapper reveals the tooltip, not just the button. */
.portal-wrap:hover .btn.has-note::after,
.portal-wrap:hover .btn.has-note::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* In the mobile overlay there is no hover, so show the note underneath. */
.mobile-portal.has-note::after,
.mobile-portal.has-note::before { display: none; }
.mobile-nav .portal-wrap { flex-direction: column; align-items: center; }
.mobile-nav .portal-wrap::after {
  content: attr(data-note);
  margin-top: 0.6rem;
  font-family: var(--body);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.72);
}
@media (prefers-reduced-motion: reduce) {
  .btn.has-note::after, .btn.has-note::before { transition: none; }
}

/* Logo.
   The supplied artwork is dark ink on a white ground, so the white is knocked
   out to alpha at build time. Over the hero photograph the header is
   transparent and the ink would disappear, so it is recoloured to solid white
   with a filter -- this keeps one asset instead of shipping two. */
.logo-img {
  display: block;
  width: clamp(158px, 17vw, 208px);
  height: auto;
}

/* Partner email, sits under the bio. */
.member-email { margin-top: 1rem; }
.member-email a {
  font-family: var(--body);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--brass-deep);
  border-bottom: 1px solid var(--brass);
  padding-bottom: 2px;
  text-decoration: none;
}
.member-email a:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* The 404 template has no hero, so it needs to clear the fixed header. */
.notfound { min-height: 68vh; display: flex; align-items: center; background: var(--paper);
  padding-block: clamp(8rem, 18vh, 12rem) clamp(4rem, 10vh, 7rem); }
.notfound .code { font-family: var(--display); font-size: clamp(3rem, 8vw, 5rem);
  line-height: 1; color: var(--brass); margin-bottom: 0.4rem; }
.notfound h1 { font-size: var(--step-3); color: var(--ink); max-width: 18ch; }
.notfound .lede { margin-top: 1rem; font-size: var(--step-1); color: var(--slate); max-width: 44ch; }
.notfound .links { margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: 1.6rem; }
.notfound .links a { font-family: var(--body); font-size: var(--step--1); font-weight: 600;
  letter-spacing: 0.04em; color: var(--ink); border-bottom: 1px solid var(--brass); padding-bottom: 2px; }
