/*
Theme Name: Carll Law — Coastal (v1.8)
Theme URI: https://carlllaw.com
Author: Curtis Carll
Author URI: https://carlllaw.com
Description: A refined one-page theme for Carll Law — civil litigation support in San Diego. Coastal-refined design: deep navy and warm ivory, elegant serif display type, a hand-drawn wave motif that drifts like slow water, and a fine tactile grain over the dark sections. Single-page brochure layout, WCAG 2.1 AA target, print-friendly, and reduced-motion safe.
Version: 1.8.0
Requires at least: 5.9
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: carll-law
Tags: one-page, custom-logo, professional, business, portfolio
*/

/* =========================================================
   Design tokens
   ========================================================= */
:root{
  --navy:      #033A61;   /* deep navy for large fills (logo's blue family, refined) */
  --navy-2:    #0A4A7C;   /* lighter navy for gradients / hover */
  --navy-deep: #01243D;   /* deepest navy for the footer */
  --ink:       #16233A;   /* headings on light backgrounds */
  --body:      #47546A;   /* body copy */
  --muted:     #5C6779;   /* secondary copy (WCAG AA on ivory, ivory-2 and white) */
  --ivory:     #FBF8F2;   /* warm page background */
  --ivory-2:   #F3ECE0;   /* deeper warm panel */
  --white:     #FFFFFF;
  --sea:       #3A7458;   /* muted sage-green accent (on light) */
  --sea-soft:  #9DC2A8;   /* light sage-green accent (on dark) */
  --line:      rgba(1,62,111,.12);
  --line-soft: rgba(1,62,111,.07);
  --shadow-sm: 0 1px 2px rgba(7,37,74,.06), 0 8px 24px rgba(7,37,74,.06);
  --shadow-md: 0 18px 50px rgba(7,37,74,.14);

  /* Fine tactile grain used over the dark sections (grayscale fractal noise). */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");

  --serif: "Cormorant Garamond", Cormorant, Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --ease: cubic-bezier(.2,.7,.2,1);
  --wrap: 1140px;
  --gutter: clamp(20px, 5vw, 56px);
  --radius: 14px;
}

/* =========================================================
   Base / reset
   ========================================================= */
*,*::before,*::after{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; scroll-behavior:smooth; scroll-padding-top:104px; }
body{
  margin:0;
  font-family:var(--sans);
  color:var(--body);
  background:var(--ivory);
  line-height:1.7;
  font-size:17px;
  letter-spacing:.005em;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
img{ max-width:100%; height:auto; display:block; }
a{ color:var(--sea); text-decoration:none; transition:color .2s ease; }
a:hover{ color:var(--navy); }
h1,h2,h3{
  color:var(--ink); font-family:var(--serif); font-weight:600; line-height:1.08; margin:0;
  letter-spacing:.005em; font-kerning:normal; font-feature-settings:"liga" 1, "calt" 1;
}
p{ margin:0 0 1.15em; }
p:last-child{ margin-bottom:0; }
:focus-visible{
  outline:2.5px solid var(--sea); outline-offset:3px; border-radius:5px;
  box-shadow:0 0 0 5px rgba(58,116,88,.16);
}
/* On the dark sections the darker sage is too low-contrast for a focus ring
   (<3:1); switch to the lighter sage, which lands at ~6–8:1 on navy. */
.hero--navy :focus-visible,
.quote :focus-visible,
.cred :focus-visible,
.site-footer :focus-visible{
  outline-color:var(--sea-soft);
  box-shadow:0 0 0 5px rgba(157,194,168,.22);
}

.wrap{ width:100%; max-width:var(--wrap); margin-inline:auto; padding-inline:var(--gutter); }
.section{ position:relative; padding-block:clamp(64px,9vw,120px); }
.eyebrow{
  font-family:var(--sans); font-size:.74rem; font-weight:600; letter-spacing:.22em;
  text-transform:uppercase; color:var(--sea); margin:0 0 18px;
}
.eyebrow--light{ color:var(--sea-soft); }
.lead{ font-size:clamp(1.12rem,1.5vw,1.28rem); color:var(--body); }
.skip-link{ position:absolute; left:-9999px; }
.skip-link:focus{ left:16px; top:12px; z-index:200; background:var(--navy); color:#fff; padding:10px 16px; border-radius:8px; }

/* =========================================================
   Buttons
   ========================================================= */
.btn{
  display:inline-flex; align-items:center; gap:.55em;
  font-family:var(--sans); font-weight:600; font-size:.95rem; letter-spacing:.01em;
  padding:.82em 1.35em; border-radius:999px; border:1.5px solid transparent;
  cursor:pointer; transition:transform .18s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
  white-space:nowrap;
}
.btn svg{ width:1.05em; height:1.05em; flex:0 0 auto; }
.btn-primary{ background:var(--navy); color:#fff; box-shadow:0 8px 22px rgba(7,37,74,.22); }
.btn-primary:hover{ background:var(--navy-2); color:#fff; transform:translateY(-2px); box-shadow:0 12px 28px rgba(7,37,74,.28); }
.btn-ghost{ background:transparent; color:var(--navy); border-color:var(--line); }
.btn-ghost:hover{ background:var(--navy); color:#fff; border-color:var(--navy); transform:translateY(-2px); }
.btn-light{ background:rgba(251,248,242,.12); color:#fff; border-color:rgba(251,248,242,.35); }
.btn-light:hover{ background:var(--ivory); color:var(--navy); border-color:var(--ivory); transform:translateY(-2px); }

/* =========================================================
   Header / sticky nav
   ========================================================= */
.site-header{
  position:sticky; top:0; z-index:100;
  background:rgba(251,248,242,.82);
  backdrop-filter:saturate(140%) blur(12px);
  -webkit-backdrop-filter:saturate(140%) blur(12px);
  border-bottom:1px solid transparent;
  transition:border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.site-header.is-scrolled{
  border-bottom-color:var(--line-soft);
  box-shadow:0 6px 24px rgba(7,37,74,.07);
  background:rgba(251,248,242,.92);
}
.nav{ display:flex; align-items:center; justify-content:space-between; gap:20px; height:116px; transition:height .28s ease; }
.brand{ display:inline-flex; align-items:center; }
.brand img{ height:84px; width:auto; transition:height .28s ease, transform .3s var(--ease); }
.brand:hover img{ transform:translateY(-1px); }
.site-header.is-scrolled .nav{ height:84px; }
.site-header.is-scrolled .brand img{ height:58px; }
.brand .brand-fallback{ font-family:var(--serif); font-size:1.5rem; font-weight:600; color:var(--navy); }
.nav-contact{ display:flex; flex-direction:column; align-items:flex-end; gap:3px; font-family:var(--sans); font-size:clamp(.8rem,1.05vw,.92rem); line-height:1.3; }
.nav-contact a{ position:relative; color:var(--ink); letter-spacing:.01em; }
.nav-contact a::after{
  content:""; position:absolute; left:0; right:0; bottom:-2px; height:1.5px;
  background:var(--sea); transform:scaleX(0); transform-origin:right;
  transition:transform .3s var(--ease);
}
.nav-contact a:hover{ color:var(--sea); }
.nav-contact a:hover::after{ transform:scaleX(1); transform-origin:left; }
.nav-links{ display:flex; align-items:center; gap:28px; }
.nav-links a.nav-link{
  font-family:var(--sans); font-size:.9rem; font-weight:500; letter-spacing:.02em;
  color:var(--ink); position:relative; padding:4px 0;
}
.nav-links a.nav-link::after{
  content:""; position:absolute; left:0; right:0; bottom:-2px; height:1.5px;
  background:var(--sea); transform:scaleX(0); transform-origin:left; transition:transform .25s ease;
}
.nav-links a.nav-link:hover{ color:var(--navy); }
.nav-links a.nav-link:hover::after{ transform:scaleX(1); }
.nav-cta{ display:flex; align-items:center; gap:10px; }
.nav-cta .btn{ padding:.6em 1.05em; font-size:.88rem; }
.icon-btn{
  display:inline-flex; align-items:center; justify-content:center;
  width:40px; height:40px; border-radius:999px; border:1.5px solid var(--line); color:var(--navy);
  transition:background .2s ease, color .2s ease, border-color .2s ease, transform .18s ease;
}
.icon-btn svg{ width:18px; height:18px; }
.icon-btn:hover{ background:var(--navy); color:#fff; border-color:var(--navy); transform:translateY(-2px); }

/* =========================================================
   Top quote ribbon (a compact bookend of the closing quote)
   ========================================================= */
.topquote{ background:var(--ivory-2); border-bottom:1px solid var(--line-soft); text-align:center; padding-block:clamp(22px,3.4vw,36px); }
.topquote__inner{ display:flex; flex-direction:column; align-items:center; gap:12px; }
.topquote__wave{ width:52px; height:auto; color:var(--sea-soft); opacity:.95; }
.topquote__text{ font-family:var(--serif); font-style:italic; font-size:clamp(1.08rem,2vw,1.45rem); line-height:1.42; color:var(--navy); margin:0; max-width:60ch; letter-spacing:.004em; }
.topquote__cite{ font-family:var(--sans); font-size:.7rem; font-weight:600; letter-spacing:.18em; text-transform:uppercase; color:var(--muted); margin:0; }
.topquote__cite em{ font-family:var(--serif); font-style:italic; font-size:.98rem; letter-spacing:0; text-transform:none; color:var(--sea); }

/* =========================================================
   Hero
   ========================================================= */
.hero{ position:relative; overflow:hidden; background:var(--ivory); padding-block:clamp(72px,11vw,140px); }
.hero__wave{
  position:absolute; right:-8%; top:50%; transform:translateY(-50%);
  width:min(680px,62vw); color:var(--navy); opacity:.05; pointer-events:none; z-index:0;
}
.hero__inner{ position:relative; z-index:2; max-width:760px; }
.hero h1{
  font-size:clamp(2.6rem,6.2vw,4.6rem);
  line-height:1.02; letter-spacing:-.015em; color:var(--navy); margin:0 0 24px;
}
.hero h1 .accent{ display:block; color:var(--ink); }
.hero .lead{ max-width:640px; margin-bottom:34px; }
.hero__cta{ display:flex; flex-wrap:wrap; gap:14px; }
.hero__meta{
  margin-top:40px; display:flex; flex-wrap:wrap; gap:10px 26px; align-items:center;
  font-family:var(--sans); font-size:.85rem; letter-spacing:.04em; color:var(--muted);
}
.hero__meta .dot{ width:5px; height:5px; border-radius:50%; background:var(--sea-soft); }

/* Navy hero variant (mockup energy, sage-green accent) */
.hero--navy{ background:radial-gradient(125% 135% at 12% 0%, var(--navy-2) 0%, var(--navy) 52%, var(--navy-deep) 125%); isolation:isolate; }
.hero--navy .hero__wave{ color:#ffffff; opacity:.07; }
.hero--navy .eyebrow{ color:var(--sea-soft); }
.hero--navy h1{ color:var(--ivory); }
.hero--navy h1 .accent{ display:block; color:var(--sea-soft); }
.hero--navy .lead{ color:rgba(255,255,255,.86); }
.hero__stat{ margin-top:44px; padding-top:26px; border-top:1px solid rgba(255,255,255,.16); display:flex; align-items:baseline; flex-wrap:wrap; gap:6px 14px; }
.hero__stat .num{ font-family:var(--serif); font-size:1.75rem; font-weight:600; color:var(--ivory); line-height:1; }
.hero__stat .cap{ font-family:var(--sans); font-size:.82rem; letter-spacing:.14em; text-transform:uppercase; color:var(--sea-soft); }
.btn-solid-light{ background:var(--ivory); color:var(--navy); border-color:var(--ivory); }
.btn-solid-light:hover{ background:#fff; color:var(--navy); transform:translateY(-2px); box-shadow:0 12px 30px rgba(0,0,0,.28); }
.btn-outline-light{ background:transparent; color:#fff; border-color:rgba(255,255,255,.42); }
.btn-outline-light:hover{ background:var(--ivory); color:var(--navy); border-color:var(--ivory); transform:translateY(-2px); }

/* =========================================================
   About / experience
   ========================================================= */
.about{ background:var(--white); border-top:1px solid var(--line-soft); border-bottom:1px solid var(--line-soft); }
.about__grid{ display:grid; grid-template-columns:1.35fr .9fr; gap:clamp(40px,6vw,84px); align-items:start; }
.about h2{ font-size:clamp(2rem,3.6vw,2.9rem); margin:0 0 26px; color:var(--navy); letter-spacing:-.008em; }
.about__body p{ font-size:1.06rem; color:var(--body); }
.about__body .note{
  margin-top:30px; padding:24px 30px; border-left:4px solid var(--sea);
  background:var(--ivory); border-radius:0 12px 12px 0; box-shadow:0 12px 34px rgba(7,37,74,.06);
}
.about__body .note .note__lead{ margin:0 0 12px; font-size:1rem; color:var(--body); }
.about__body .note .note__emph{ margin:0; font-family:var(--serif); font-weight:600; font-size:clamp(1.34rem,2.5vw,1.95rem); line-height:1.22; color:var(--navy); }
.about__body .note .note__emph strong{ font-weight:600; color:var(--sea); }

.cred{ position:relative; background:var(--navy); color:#fff; border-radius:var(--radius); padding:34px 32px; box-shadow:var(--shadow-md); overflow:hidden; isolation:isolate; }
.cred__wave{ position:absolute; right:-30px; bottom:-40px; width:220px; color:#fff; opacity:.06; }
.cred .stat{ position:relative; z-index:1; }
.cred .stat .pre{ font-family:var(--sans); font-size:.7rem; font-weight:600; letter-spacing:.18em; text-transform:uppercase; color:var(--sea-soft); margin:0 0 6px; }
.cred .stat .num{ font-family:var(--serif); font-size:3.4rem; font-weight:600; line-height:1; color:#fff; }
.cred .stat .num small{ font-size:1.2rem; vertical-align:top; margin-left:2px; }
.cred .stat .cap{ font-family:var(--sans); font-size:.8rem; letter-spacing:.16em; text-transform:uppercase; color:var(--sea-soft); margin-top:8px; }
.cred hr{ border:none; border-top:1px solid rgba(255,255,255,.16); margin:26px 0; }
.cred .cred-label{ position:relative; z-index:1; font-family:var(--sans); font-size:.72rem; letter-spacing:.18em; text-transform:uppercase; color:var(--sea-soft); margin:0 0 14px; }
.cred ul{ position:relative; z-index:1; list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:12px; }
.cred ul li{ display:flex; align-items:center; gap:12px; font-size:1rem; color:rgba(255,255,255,.92); }
.cred ul li svg{ width:15px; height:15px; color:var(--sea-soft); flex:0 0 auto; }
.cred ul li .yrs{ color:var(--sea-soft); }

/* =========================================================
   Contact
   ========================================================= */
.contact{ background:var(--ivory-2); }
.contact__grid{ display:grid; grid-template-columns:1fr 1fr; gap:clamp(36px,6vw,72px); align-items:center; }
.contact h2{ font-size:clamp(2rem,3.6vw,2.9rem); color:var(--navy); margin:0 0 18px; }
.contact .lead{ max-width:44ch; }
.contact__cards{ display:flex; flex-direction:column; gap:16px; }
.info-row{
  display:flex; align-items:flex-start; gap:18px;
  background:var(--white); border:1px solid var(--line-soft); border-radius:12px;
  padding:20px 22px; transition:transform .18s ease, box-shadow .2s ease;
}
.info-row:hover{ transform:translateY(-2px); box-shadow:var(--shadow-sm); }
.info-row .ico{ display:inline-flex; align-items:center; justify-content:center; width:44px; height:44px; border-radius:10px; background:var(--ivory); color:var(--navy); flex:0 0 auto; }
.info-row .ico svg{ width:20px; height:20px; }
.info-row .k{ font-family:var(--sans); font-size:.72rem; letter-spacing:.16em; text-transform:uppercase; color:var(--muted); margin:0 0 4px; }
.info-row .v{ font-size:1.08rem; color:var(--ink); font-weight:500; }
.info-row .v a{ color:var(--ink); }
.info-row .v a:hover{ color:var(--sea); }

/* =========================================================
   Quote band (the feature)
   ========================================================= */
.quote{
  position:relative; overflow:hidden; text-align:center; color:#fff; isolation:isolate;
  background:radial-gradient(120% 120% at 50% -10%, var(--navy-2) 0%, var(--navy) 46%, var(--navy-deep) 100%);
  padding-top:clamp(80px,12vw,140px); padding-bottom:clamp(64px,9vw,112px);
}
.quote__top-wave, .quote__bottom-wave{ position:absolute; left:0; width:100%; line-height:0; z-index:3; }
.quote__top-wave{ top:-1px; color:var(--ivory-2); }             /* blends down from the Contact section */
.quote__bottom-wave{ bottom:-1px; color:var(--navy-deep); transform:rotate(180deg); }  /* seats the footer */
.quote__top-wave svg, .quote__bottom-wave svg{ display:block; width:100%; height:clamp(44px,6vw,80px); }
.quote__watermark{ position:absolute; left:50%; top:52%; transform:translate(-50%,-50%); width:min(720px,88vw); color:#fff; opacity:.06; z-index:0; pointer-events:none; }
.quote__inner{ position:relative; z-index:2; max-width:900px; margin-inline:auto; }
.closing__photo{ position:relative; z-index:2; margin:0 auto clamp(40px,6vw,62px); max-width:clamp(280px,40vw,410px); text-align:center; }
.closing__photo img{
  width:100%; height:auto; display:block; border-radius:12px;
  border:1px solid rgba(157,194,168,.45);           /* sage keyline / mat */
  padding:0; background:transparent;
  box-shadow:
    0 0 0 7px rgba(251,248,242,.04),                /* faint ivory mat */
    0 0 0 8px rgba(157,194,168,.14),                /* thin sage frame line */
    0 30px 64px rgba(0,0,0,.42);
  transition:transform .5s var(--ease), box-shadow .5s var(--ease);
}
.closing__photo:hover img{
  transform:translateY(-3px);
  box-shadow:
    0 0 0 7px rgba(251,248,242,.05),
    0 0 0 8px rgba(157,194,168,.22),
    0 40px 78px rgba(0,0,0,.48);
}
.closing__photo figcaption{ margin-top:18px; font-family:var(--serif); font-style:italic; font-size:1.04rem; color:var(--sea-soft); letter-spacing:.01em; }
/* Column stays centered on the page; the running text is left-aligned so it
   reads with one consistent left edge. */
.closing__note{ position:relative; z-index:2; max-width:58ch; margin:clamp(48px,7vw,72px) auto; text-align:left; }
.closing__note .eyebrow{ margin-bottom:16px; }
.closing__note p:not(.eyebrow){ font-family:var(--sans); font-size:clamp(1.02rem,1.5vw,1.16rem); line-height:1.78; color:rgba(255,255,255,.9); margin:0; }
.quote__inner .quote__mark{
  font-family:var(--serif); font-weight:600; font-size:clamp(4.6rem,9vw,7rem);
  line-height:.5; color:var(--sea-soft); opacity:.4; height:.42em; display:block;
  margin-bottom:.12em;
}
.quote blockquote{ margin:0; }
.quote .line{
  font-family:var(--serif); font-weight:500; font-style:italic;
  font-size:clamp(1.7rem,4.4vw,3.1rem); line-height:1.24; color:#fff; letter-spacing:-.004em;
  font-kerning:normal; font-feature-settings:"liga" 1, "calt" 1;
}
.quote .divider{ display:flex; align-items:center; justify-content:center; gap:16px; margin:26px auto; opacity:.9; }
.quote .divider svg{ width:64px; height:auto; color:var(--sea-soft); }
.quote .divider .rule{ width:44px; height:1px; background:rgba(255,255,255,.28); }
.quote .attrib{ margin-top:44px; }
.quote .attrib .who{
  font-family:var(--sans); font-size:.82rem; font-weight:600; letter-spacing:.24em; text-transform:uppercase; color:#fff;
}
.quote .attrib .work{ font-family:var(--serif); font-style:italic; font-size:1.1rem; color:var(--sea-soft); margin-top:8px; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer{ position:relative; overflow:hidden; isolation:isolate; background:var(--navy-deep); color:rgba(255,255,255,.72); padding-block:clamp(48px,7vw,72px); }
.site-footer .wrap{ position:relative; z-index:1; }
.footer__grid{ display:grid; grid-template-columns:1.3fr 1fr 1fr; gap:40px; }
.footer__brand img{ height:104px; width:auto; margin-bottom:18px; }
.footer__brand p{ color:rgba(255,255,255,.6); font-size:.95rem; max-width:34ch; }
.site-footer h3{ font-family:var(--sans); font-size:.72rem; letter-spacing:.18em; text-transform:uppercase; color:var(--sea-soft); margin:0 0 16px; font-weight:600; }
.footer__a11y{ margin-top:20px; }
.footer__a11y summary{ cursor:pointer; font-family:var(--sans); font-size:.8rem; font-weight:600; letter-spacing:.05em; color:rgba(255,255,255,.82); list-style:none; display:inline-flex; align-items:center; gap:8px; }
.footer__a11y summary::-webkit-details-marker{ display:none; }
.footer__a11y summary::after{ content:"+"; font-size:1.05rem; line-height:1; color:var(--sea-soft); }
.footer__a11y[open] summary::after{ content:"\2013"; }
.footer__a11y summary:hover{ color:#fff; }
.footer__a11y p{ margin-top:12px; font-size:.82rem; line-height:1.72; color:rgba(255,255,255,.62); max-width:78ch; }
.footer__a11y a{ color:rgba(255,255,255,.85); text-decoration:underline; }
.footer__a11y a:hover{ color:#fff; }
.site-footer a{ color:rgba(255,255,255,.82); }
.site-footer a:hover{ color:#fff; }
.site-footer ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:10px; font-size:.98rem; }
.site-footer ul a{ position:relative; }
.site-footer ul a::after{
  content:""; position:absolute; left:0; right:0; bottom:-2px; height:1px;
  background:var(--sea-soft); transform:scaleX(0); transform-origin:right;
  transition:transform .3s var(--ease);
}
.site-footer ul a:hover::after{ transform:scaleX(1); transform-origin:left; }
.site-footer address{ font-style:normal; font-size:.98rem; line-height:1.7; color:rgba(255,255,255,.82); }
.footer__bottom{
  margin-top:44px; padding-top:26px; border-top:1px solid rgba(255,255,255,.12);
  display:flex; flex-wrap:wrap; gap:14px 24px; justify-content:space-between; align-items:center;
}
.footer__bottom .copy{ font-size:.85rem; color:rgba(255,255,255,.55); }
.footer__disclaimer{ font-size:.78rem; line-height:1.65; color:rgba(255,255,255,.55); max-width:70ch; margin-top:18px; }

/* =========================================================
   Living water — a slow drift on the wave motif.
   Purely decorative (aria-hidden), gentle, and disabled
   entirely under prefers-reduced-motion (see block below).
   ========================================================= */
@keyframes carll-swell{
  from{ transform:translate3d(-12px,0,0); }
  to{   transform:translate3d(12px,0,0); }
}
@media (prefers-reduced-motion:no-preference){
  .hero__wave path,
  .quote__watermark path,
  .cred__wave path{
    animation:carll-swell 24s var(--ease) infinite alternate;
    will-change:transform;
  }
  .hero__wave path:nth-child(2){ animation-duration:30s; animation-delay:-6s; }
  .hero__wave path:nth-child(3){ animation-duration:27s; animation-delay:-3s; }
  .quote__watermark path{ animation-duration:26s; }
  .quote__watermark path:nth-child(2){ animation-duration:32s; animation-delay:-5s; }
  .quote__watermark path:nth-child(3){ animation-duration:29s; animation-delay:-9s; }
  .cred__wave path{ animation-duration:28s; }
  .cred__wave path:nth-child(2){ animation-duration:34s; animation-delay:-7s; }
  .cred__wave path:nth-child(3){ animation-duration:31s; animation-delay:-4s; }
}

/* =========================================================
   Tactile depth — a fine grain film over the dark sections.
   Sits above the gradient + wave, below all text (z:0).
   ========================================================= */
.hero--navy::after,
.quote::after,
.cred::after,
.site-footer::after{
  content:""; position:absolute; inset:0; z-index:0; pointer-events:none;
  background-image:var(--grain); background-size:180px 180px;
  opacity:.55; mix-blend-mode:soft-light;
}

/* =========================================================
   Reveal on scroll
   ========================================================= */
/* Content is visible by default; only hidden for animation when JS is active. */
.reveal{ transition:opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal{ opacity:0; transform:translateY(20px); }
.js .reveal.is-in{ opacity:1; transform:none; }
.reveal.d1{ transition-delay:.09s; } .reveal.d2{ transition-delay:.18s; } .reveal.d3{ transition-delay:.27s; } .reveal.d4{ transition-delay:.36s; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width:900px){
  .about__grid{ grid-template-columns:1fr; gap:44px; }
  .contact__grid{ grid-template-columns:1fr; gap:36px; }
  .footer__grid{ grid-template-columns:1fr 1fr; }
  .footer__brand{ grid-column:1 / -1; }
}
@media (max-width:680px){
  body{ font-size:16px; }
  html{ scroll-padding-top:88px; }
  .nav{ height:88px; }
  .brand img{ height:60px; }
  .site-header.is-scrolled .nav{ height:74px; }
  .site-header.is-scrolled .brand img{ height:50px; }
  .nav-cta{ display:none; }         /* email lives in Contact + footer on small screens */
  .hero__wave{ opacity:.045; right:-24%; }
  .footer__grid{ grid-template-columns:1fr; gap:32px; }
  .footer__bottom{ flex-direction:column; align-items:flex-start; }
}

@media (prefers-reduced-motion:reduce){
  html{ scroll-behavior:auto; }
  *{ animation:none !important; }
  .reveal{ opacity:1 !important; transform:none !important; transition:none !important; }
  .btn:hover, .icon-btn:hover, .info-row:hover, .closing__photo:hover img, .brand:hover img{ transform:none !important; }
}

/* =========================================================
   Print — never let a page print blank.
   The dark sections use light text, and browsers usually drop
   background colors when printing, so we flatten everything to
   dark ink on white and force any not-yet-revealed content in.
   ========================================================= */
@media print{
  html{ scroll-behavior:auto; }
  *{ animation:none !important; transition:none !important; box-shadow:none !important; }

  /* Reveal-on-scroll content must be visible even if never scrolled to. */
  .reveal, .js .reveal{ opacity:1 !important; transform:none !important; }

  body{ background:#fff !important; color:#111 !important; font-size:11.5pt; line-height:1.55; }

  /* Flatten every section to white; recolor text to ink. */
  .topquote, .hero, .hero--navy, .about, .cred, .quote, .site-footer{
    background:#fff !important; color:#111 !important;
  }
  .site-header{ position:static !important; background:#fff !important; border:0 !important; }

  /* Remove the tactile grain overlays and decorative waves. */
  .hero--navy::after, .quote::after, .cred::after, .site-footer::after{ display:none !important; }
  .hero__wave, .quote__watermark, .cred__wave,
  .quote__top-wave, .quote__bottom-wave, .topquote__wave, .quote .divider svg{ display:none !important; }

  /* Any element that was light-on-dark becomes dark-on-white. */
  .topquote__text, .topquote__cite, .topquote__cite em,
  .hero--navy .eyebrow, .hero--navy h1, .hero--navy h1 .accent, .hero--navy .lead,
  .cred, .cred .stat .pre, .cred .stat .num, .cred .stat .cap, .cred .cred-label, .cred ul li, .cred ul li .yrs,
  .quote, .quote .line, .quote__inner .quote__mark, .closing__note p, .closing__note .eyebrow,
  .closing__photo figcaption, .quote .attrib .who, .quote .attrib .work,
  .site-footer, .site-footer h3, .site-footer p, .site-footer a, .site-footer address,
  .footer__a11y summary, .footer__a11y p, .footer__disclaimer, .footer__bottom .copy{
    color:#111 !important;
  }
  .quote__inner .quote__mark{ color:#9a9a9a !important; opacity:1 !important; }
  a{ color:#111 !important; text-decoration:underline; }

  /* The credential card keeps a light outline instead of a navy fill. */
  .cred{ border:1px solid #ccc !important; border-radius:10px; }

  /* Photo: sensible print size, simple frame; footer's ivory logo would be
     invisible on white, so hide it — the header logo already prints. */
  .closing__photo{ max-width:3.4in !important; }
  .closing__photo img{ border:1px solid #ccc !important; }
  .footer__brand img{ display:none !important; }

  /* Avoid awkward mid-element page breaks. */
  .about__grid, .cred, .closing__photo, .closing__note, .quote__inner, .footer__grid{ break-inside:avoid; }
  .site-footer{ border-top:1px solid #ccc; }
}
