/* FIOS Consultants — shared styles */

/* Self-hosted fonts (previously Google Fonts — see /assets/fonts/).
   Files and unicode-range values sourced via google-webfonts-helper /
   Google's own generated CSS, latin subset only (covers the accented
   characters this site actually uses, e.g. "Séagh"). */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/source-serif-4-v14-latin-regular.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/source-serif-4-v14-latin-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/source-serif-4-v14-latin-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/newsreader-v26-latin-regular.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/newsreader-v26-latin-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/newsreader-v26-latin-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/newsreader-v26-latin-500italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/newsreader-v26-latin-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/public-sans-v21-latin-regular.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/public-sans-v21-latin-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/public-sans-v21-latin-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/public-sans-v21-latin-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Palette derived from the actual fios-bird.png logo:
     body #0d71ff (vivid blue), wing #00efff (bright cyan).
     Values below are the same hues, darkened and desaturated for a
     calm, legible reading experience — not invented colors, not a
     literal lift of the saturated originals either. See CLAUDE.md. */
  --paper: #F3F8F9;
  --paper-dim: #E9F1F2;
  --ink: #172230;
  --ink-soft: #4F5A69;
  --navy: #20416F;       /* from logo body blue */
  --navy-dark: #172E4F;  /* hover state */
  --teal: #30797E;       /* from logo wing cyan — used sparingly, as the secondary brand note */
  --line: #D3DEDE;
  --success: #3F7A5C;    /* semantic success green — not derived from the logo (blue/cyan only).
                             Deliberate exception for a status signal (submission confirmed),
                             not a brand accent. Kept muted/desaturated to match the site's calm
                             register rather than a bright "success" green. */
  --max-width: 880px;
  --wide-width: 1180px;

  /* Raw (undesaturated) logo colors, sampled directly from fios-bird-lg.png
     for the homepage hero/process redesign — see fios_homepage_bird_mockup_v2.html.
     Scoped to the .home-hero / .process-track SVGs and accents only; body
     text and .btn keep the calmer derived palette above. */
  --brand-blue: #0967FB;
  --brand-cyan: #00CFEC;
  --surface: #FFFFFF;
  --muted: #63707B;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; height: 100%; }

body {
  margin: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1 0 auto;
}

h1, h2, h3, h4 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h1 { font-size: clamp(2.1rem, 4vw, 3rem); font-weight: 600; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1.2em; max-width: 68ch; }

a { color: var(--navy-dark); }
a:hover { color: var(--navy); }
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

.wrap {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.prose {
  max-width: var(--max-width);
}

/* Header */

header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(243, 248, 249, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Source Serif 4', serif;
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--ink);
  text-decoration: none;
}

.brand img { height: 45px; width: auto; }

.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name-main { letter-spacing: 0.08em; }

.brand-name-sub {
  font-family: 'Public Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--ink-soft);
  letter-spacing: normal;
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

nav.main-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.98rem;
}

nav.main-nav a:hover,
nav.main-nav a[aria-current="page"] {
  color: var(--navy-dark);
}

/* Hamburger toggle — hidden on desktop, shown at tablet/mobile widths */

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: none;
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
    order: 1;
    margin-left: auto;
  }

  .site-header .btn { order: 2; }

  nav.main-nav {
    display: none;
    order: 3;
    flex-basis: 100%;
  }

  nav.main-nav.is-open { display: block; }

  nav.main-nav ul {
    flex-direction: column;
    gap: 0;
    padding-top: 0.25rem;
  }

  nav.main-nav li { border-top: 1px solid var(--line); }

  nav.main-nav a {
    display: block;
    padding: 0.85rem 0.1rem;
  }
}

.btn {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  padding: 0.65rem 1.3rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
}

.btn:hover { background: var(--navy-dark); color: #fff; }

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--navy);
  color: var(--navy-dark);
}

.btn-outline:hover { background: var(--navy); color: #fff; }

/* Hero */

.hero {
  padding: 4.5rem 0 3.5rem;
  border-bottom: 1px solid var(--line);
}

.hero .eyebrow {
  display: block;
  color: var(--teal);
  font-weight: 700;
  margin-bottom: 2.25rem;
  font-size: 1.05rem;
}

.eyebrow-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 2.25rem;
}

.eyebrow-row .eyebrow { margin-bottom: 0; }

.success-badge {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-badge svg {
  width: 0.85rem;
  height: 0.85rem;
  color: #fff;
}

.hero p.lede {
  font-size: 1.25rem;
  color: var(--ink-soft);
  max-width: 58ch;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.8rem;
  flex-wrap: wrap;
}

/* Homepage hero (v2 redesign, real bird motif — scoped to index.html only,
   see fios_homepage_bird_mockup_v2.html). Other pages keep the plain .hero. */

.home-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 2rem;
}

.home-hero { padding-top: 6rem; padding-bottom: 5rem; }

.home-hero-content h1 {
  font-family: 'Newsreader', 'Source Serif 4', Georgia, serif;
  line-height: 1.28;
  margin-bottom: 0.85em;
}

.home-hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.home-hero-bird { width: min(100%, 380px); }

.home-hero-bird img {
  width: 100%;
  height: auto;
  display: block;
}

@media (prefers-reduced-motion: no-preference) {
  .home-hero-bird {
    animation: home-hero-hover-in 1s cubic-bezier(.2, .7, .3, 1) both;
  }
}

@keyframes home-hero-hover-in {
  from { opacity: 0; transform: translateY(10px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 860px) {
  .home-hero-grid { grid-template-columns: 1fr; }
  .home-hero-visual { margin-top: 2rem; }
  .home-hero-bird { width: min(100%, 260px); }
}

/* Sections */

section {
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--line);
}

section:last-of-type { border-bottom: none; }

.section-label {
  color: var(--teal);
  font-weight: 700;
  margin-bottom: 2.25rem;
  display: block;
}

/* Homepage process track (v2 redesign — single SVG carries both the dashed
   line and the dot markers together, so they can't drift apart under any
   layout offset. Two-row grid: row 1 is the SVG spanning all three step
   columns, row 2 is the plain text below it, same three columns. Explicit
   classes only — the SVG is a DOM sibling of the steps, so nth-child would
   miscount. See fios_homepage_bird_mockup_v2.html. Homepage-only. */

.home-process h2 {
  font-family: 'Newsreader', 'Source Serif 4', Georgia, serif;
}

.process-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: start;
  row-gap: 0.75rem;
  column-gap: 0;
  margin-top: 2rem;
}

.process-track-line {
  position: relative;
  grid-column: 1 / 4;
  grid-row: 1;
  width: 100%;
  height: 60px;
}

.process-track-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

/* Dot markers — plain CSS circles, not SVG shapes; see the HTML comment
   above them for why. Positioned at the same fractional points as the
   line/dots inside the SVG (100,38 / 300,30 / 500,16 of viewBox 600x60),
   centered on that point with translate(-50%,-50%), which the pop-in
   keyframe below preserves by including it in every step. */
.process-track-dot {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.process-track-dot-1 { left: 16.667%; top: 63.333%; background: #0967FB; }
.process-track-dot-2 { left: 50%; top: 50%; background: #0967FB; }
.process-track-dot-3 { left: 83.333%; top: 26.667%; background: #00CFEC; }

/* Traveling bird — same path as the dashed line, same coordinate space,
   still inside the single process-track SVG. Hidden by default (opacity 0
   here, unconditionally) so a no-JS or no-motion visitor never sees a
   duplicate bird stranded mid-curve; the animation below is the only thing
   that ever makes it visible, and only while it's actually flying. */
.process-track-bird {
  opacity: 0;
  offset-path: path('M100,38 Q200,12 300,30 Q400,48 500,16');
  offset-rotate: 0deg;
  transform-box: fill-box;
  transform-origin: center;
}

/* Landing bird — the third leg of the journey, after the SVG flight ends
   at dot 3. Plain HTML <img>, not confined to the SVG's coordinate space,
   because it needs to travel from that small in-SVG position out to
   .process-arrival-bird's real position/size — outside the viewBox
   entirely. scroll-reveal.js measures both rects with
   getBoundingClientRect() once the flight animation ends and drives this
   element via a single transform (translate + scale) from the measured
   "small, at dot 3" delta back to identity, so it lands pixel-exact on
   .process-arrival-bird with no jump. Positioned/sized here as a
   fallback only — JS sets the real left/top/width/height inline. */
.process-landing-bird {
  position: absolute;
  top: 0;
  left: 0;
  width: 60px;
  opacity: 0;
  pointer-events: none;
  transform-origin: top left;
}

.process-step {
  grid-row: 2;
  padding-right: 1.5rem;
}

.process-step-1 { grid-column: 1; }
.process-step-2 { grid-column: 2; }
.process-step-3 { grid-column: 3; padding-right: 0; }

.process-step h3 {
  font-family: 'Newsreader', 'Source Serif 4', Georgia, serif;
}

.process-dot { display: none; }

.process-arrival {
  grid-column: 4;
  grid-row: 1 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 1.5rem;
}

.process-arrival-bird {
  width: 60px;
  height: auto;
  display: block;
}

@media (prefers-reduced-motion: no-preference) {
  .process-arrival-bird { animation: process-bird-bob 2.4s ease-in-out infinite; }
}

@keyframes process-bird-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* Sequential reveal, fires once via IntersectionObserver (scroll-reveal.js).
   ".reveal-ready" is added by JS before observing, so a visitor without JS
   (or with reduced motion) never has anything hidden in the first place —
   nothing here can get stuck mid-animation or invisible. Kept to a single
   SVG (line + dots together) per the earlier drift bug; dots/steps/arrival
   are staggered to land roughly as the line reaches each one. */

@media (prefers-reduced-motion: no-preference) {
  .home-process.reveal-ready .process-track-reveal {
    transform: scaleX(0);
    transform-origin: 0px 0px;
  }

  .home-process.reveal-ready .process-track-dot,
  .home-process.reveal-ready .process-step {
    opacity: 0;
  }

  /* The static resting bird is only for visitors who never see the
     traveling one (no JS, or reduced motion) — see the fallback note
     above .process-track-bird. Once the traveling bird is going to fly
     and grow into that same role, hide the static one permanently rather
     than showing both at once; it never gets a reveal-in of its own. */
  .home-process.reveal-ready .process-arrival {
    opacity: 0;
  }

  .home-process.reveal-ready .process-step { transform: translateY(10px); }

  /* Line draw and bird flight share the same duration + easing (2.2s
     ease-in-out, no delay on either) so they read as one continuous
     motion — the bird is what's "drawing" the line — rather than two
     animations that happen to overlap. Dot delays below are tuned against
     that same 2.2s span: dot2 sits almost exactly at the path's
     arc-length midpoint (measured, not eyeballed), so under symmetric
     ease-in-out timing the bird reaches it right as its delay (1.1s =
     half of 2.2s) fires. The bird doesn't fade out at the end — once the
     flight animation completes, scroll-reveal.js hands off to
     .process-landing-bird, which carries it the rest of the way from
     that small in-SVG position out to .process-arrival-bird's exact
     spot, growing as it goes (see .process-landing-bird below). That
     static resting bird stays hidden for anyone who sees this handoff —
     it only shows for visitors who never see the flight at all (no JS,
     or reduced motion) — so there's exactly one bird on screen either
     way, never two, never a stuck duplicate. */

  .home-process.reveal-ready.in-view .process-track-reveal {
    animation: process-track-draw 2.2s ease-in-out forwards;
  }

  .home-process.reveal-ready.in-view .process-track-bird {
    animation: process-track-bird-fly 2.2s ease-in-out forwards;
  }

  .home-process.reveal-ready.in-view .process-track-dot-1 {
    animation: process-track-dot-pop 0.8s ease-out 0.4s forwards;
  }
  .home-process.reveal-ready.in-view .process-track-dot-2 {
    animation: process-track-dot-pop 0.8s ease-out 1.1s forwards;
  }
  .home-process.reveal-ready.in-view .process-track-dot-3 {
    animation: process-track-dot-pop 0.8s ease-out 1.8s forwards;
  }

  .home-process.reveal-ready.in-view .process-step-1 {
    animation: process-step-in 1s ease-out 0.5s forwards;
  }
  .home-process.reveal-ready.in-view .process-step-2 {
    animation: process-step-in 1s ease-out 1.2s forwards;
  }
  .home-process.reveal-ready.in-view .process-step-3 {
    animation: process-step-in 1s ease-out 1.9s forwards;
  }
}

@keyframes process-track-draw {
  to { transform: scaleX(1); }
}

@keyframes process-track-bird-fly {
  0%   { offset-distance: 0%; opacity: 0; }
  6%   { opacity: 1; }
  100% { offset-distance: 100%; opacity: 1; }
}

@keyframes process-track-dot-pop {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes process-step-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 860px) {
  .process-track {
    grid-template-columns: 1fr;
    row-gap: 1.8rem;
  }

  .process-track-line { display: none; }

  /* The flight never runs at this width (the track line is hidden), but
     a landing bird placed by scroll-reveal.js at desktop width keeps its
     inline pixel offset if the viewport then narrows (resize, rotation)
     and would push the page wider than the screen. */
  .process-landing-bird { display: none; }

  .process-step, .process-arrival {
    grid-column: 1;
    grid-row: auto;
  }

  .process-step {
    display: grid;
    grid-template-columns: 14px 1fr;
    column-gap: 0.9rem;
    row-gap: 0.4rem;
    padding-right: 0;
  }

  .process-step h3 {
    grid-column: 2;
    margin: 0;
  }

  .process-step p {
    grid-column: 1 / 3;
    margin: 0;
  }

  .process-dot {
    display: block;
    grid-column: 1;
    grid-row: 1;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    margin-top: 0.35rem;
    flex-shrink: 0;
  }

  .process-dot-1, .process-dot-2 { background: var(--brand-blue); }
  .process-dot-3 { background: var(--brand-cyan); }

  .process-arrival { justify-content: flex-start; padding-left: 0; }
}

/* Plain fade-in-on-scroll for the homepage sections below the process
   track (see CLAUDE.md: this should be the plainest thing on the page —
   one quiet, identical treatment, not per-section variation). Same
   "reveal-ready"/"in-view" pattern as the process track above, so it's
   equally safe with no JS or reduced motion. */

@media (prefers-reduced-motion: no-preference) {
  .fade-in-section.reveal-ready {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  }

  .fade-in-section.reveal-ready.in-view {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Category grid (services / topics) */

.topics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.topics > div {
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line);
}

.topics > div:nth-child(odd) { padding-right: 2rem; }
.topics > div:nth-child(even) { padding-left: 2rem; border-left: 1px solid var(--line); }

@media (max-width: 720px) {
  .topics { grid-template-columns: 1fr; }
  .topics > div:nth-child(even) { border-left: none; padding-left: 0; }
}

/* Quote / trust marker */

.trust-marker {
  background: var(--paper-dim);
  border-left: 4px solid var(--teal);
  padding: 1.5rem 1.8rem;
  margin: 2rem 0;
}

.trust-marker p { margin: 0; max-width: none; }

/* Case studies list */

.post-list { list-style: none; margin: 2rem 0 0; padding: 0; }

.post-list li {
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line);
}

.post-list li:first-child { padding-top: 0; }

.post-meta {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 0.3rem;
}

.post-list h3 { margin-bottom: 0.4rem; }

.post-list h3 a { text-decoration: none; color: var(--ink); }
.post-list h3 a:hover { color: var(--navy-dark); }

.read-more {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--navy-dark);
  font-weight: 600;
  text-decoration: none;
}

.read-more:hover { text-decoration: underline; }

/* Article */

article.post header {
  border-bottom: none;
  margin-bottom: 2rem;
}

article.post .post-meta { margin-bottom: 1rem; }

article.post blockquote {
  margin: 1.8rem 0;
  padding-left: 1.3rem;
  border-left: 3px solid var(--navy);
  color: var(--ink-soft);
  font-style: italic;
  max-width: 62ch;
}

.disclaimer-note {
  font-size: 0.9rem;
  color: var(--ink-soft);
  background: var(--paper-dim);
  padding: 1rem 1.3rem;
  border-radius: 4px;
  margin-top: 2.5rem;
}

/* Form (contact) */

.field { margin-bottom: 1.3rem; }

.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.field input, .field select, .field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  padding: 0.7rem 0.85rem;
  border: 1.5px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
}

.field textarea { resize: vertical; min-height: 140px; }

.field .post-meta { max-width: none; }

#form-status {
  margin-top: 1rem;
  font-weight: 600;
}

#form-status[data-state="error"] { color: #A5432F; }
#form-status[data-state="success"] { color: var(--navy-dark); }

/* Footer — deliberate dark anchor closing the page, distinct from the
   white body above. Brand colors/serif from the same v2 bird-mockup
   session as the hero/process redesign; body sans is the site's own
   Public Sans (the footer mockup's Inter was a guess, not what's
   actually loaded). Static — no scroll-reveal/motion here, the
   process-track flight is the page's one deliberate motion moment. */

footer.site-footer {
  background: #0B1E3B;
  color: #AFC0DC;
  padding: 4rem 0 2rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.1fr;
  gap: 3rem;
  padding-bottom: 2.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-wordmark-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.footer-bird {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: block;
}

.footer-wordmark {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 500;
  font-size: 1.3rem;
  color: #F3F6FC;
  letter-spacing: 0.01em;
}

.footer-tagline {
  font-size: 0.91rem;
  line-height: 1.6;
  color: #AFC0DC;
  max-width: 300px;
  margin: 0 0 1rem;
}

.footer-irish {
  font-size: 0.81rem;
  font-style: italic;
  color: #7C8FB3;
  margin: 0;
}

.footer-col h3 {
  font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 600;
  font-size: 0.81rem;
  color: #F3F6FC;
  margin: 0 0 1rem;
  letter-spacing: 0.01em;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-col a {
  color: #AFC0DC;
  text-decoration: none;
  font-size: 0.91rem;
  transition: color 0.15s ease;
}

.footer-col a:hover { color: var(--brand-cyan); }

.footer-contact address {
  font-style: normal;
  font-size: 0.91rem;
  line-height: 1.65;
  color: #AFC0DC;
  margin: 0 0 1rem;
}

.footer-phone {
  display: inline-block;
  margin-bottom: 1.1rem;
  font-size: 0.91rem;
  color: #F3F6FC;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-phone:hover { color: var(--brand-cyan); }

.footer-contact-link {
  display: inline-flex;
  align-items: center;
  color: #F3F6FC;
  text-decoration: none;
  font-size: 0.91rem;
  font-weight: 500;
  border-bottom: 1px solid var(--brand-cyan);
  padding-bottom: 0.15rem;
  transition: opacity 0.15s ease;
}

.footer-contact-link:hover { opacity: 0.8; }

.footer-bottom {
  padding-top: 1.5rem;
  font-size: 0.81rem;
  color: #7C8FB3;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.1fr;
  column-gap: 3rem;
  align-items: center;
}

.footer-legal {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
}

.footer-credit {
  grid-column: 3;
}

.footer-legal a,
.footer-credit a {
  color: #AFC0DC;
  transition: color 0.15s ease;
}

.footer-legal a:hover,
.footer-credit a:hover { color: var(--brand-cyan); }

@media (max-width: 760px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .footer-bottom {
    grid-template-columns: 1fr;
    row-gap: 0.5rem;
  }

  .footer-bottom > span,
  .footer-legal,
  .footer-credit {
    grid-column: 1;
  }
}

.lang-note {
  font-style: italic;
  color: var(--ink-soft);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 100;
}

.skip-link:focus { left: 1rem; top: 1rem; }

/* Responsive: tablet and mobile */

@media (max-width: 900px) {
  .brand img { height: 40px; }

  nav.main-nav ul { gap: 0.9rem 1.15rem; }

  nav.main-nav a { font-size: 0.92rem; }
}

@media (max-width: 640px) {
  .site-header .wrap {
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
    gap: 1rem;
  }

  .brand img { height: 36px; }

  nav.main-nav ul { gap: 0.9rem 1.25rem; }

  .hero { padding: 3rem 0 2.25rem; }

  section { padding: 2.5rem 0; }

  .hero p.lede { font-size: 1.1rem; }
}

/* Homepage hero — extra breathing room (spacing pass). Placed after the
   shared .hero mobile rule above so it wins the cascade at this width;
   other pages' .hero is untouched. */
@media (max-width: 640px) {
  .home-hero { padding: 4.5rem 0 3.25rem; }
}
