/* ============================================================
   KHS Accounting — Design System (v2)
   Persistent navy nav, cream hero, editorial throughout
   ============================================================ */

/* Self-hosted fonts (latin subset, U+0000-00FF + Latin-1 Supplement) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/fonts/inter-300-normal.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: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/inter-400-normal.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: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/inter-500-normal.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: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/inter-600-normal.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: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/jetbrains-mono-400-normal.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: 'Playfair Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/playfair-display-400-normal.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: 'Playfair Display';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/playfair-display-500-normal.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: 'Playfair Display';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/playfair-display-400-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;
}

:root {
  --navy: #1B365D;
  --navy-deep: #142949;
  --navy-90: #22406B;
  --gold: #C9A74E;
  --gold-soft: #D9BD72;
  --cream: #F7F5F0;
  --cream-deep: #EEE9DC;
  --white: #FFFFFF;
  --charcoal: #2A2A2A;
  --taupe: #6B6B63;

  --font-serif: 'Playfair Display', 'Iowan Old Style', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --max-w: 1200px;
  --pad-section: 96px;
  --radius: 3px;
  --nav-height: 96px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html { scroll-behavior: smooth; }

body {
  padding-top: var(--nav-height);
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { display: block; max-width: 100%; }

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--navy);
  color: var(--cream);
  padding: 8px 16px;
  z-index: 1000;
}
.skip-link:focus { top: 0; }

/* --- Typography --- */
.eyebrow {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow.muted { color: var(--taupe); }

.h1 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(44px, 6vw, 84px); line-height: 1.05; letter-spacing: -0.015em; color: var(--navy); }
.h2 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(34px, 4vw, 56px); line-height: 1.1; letter-spacing: -0.01em; color: var(--navy); }
.h3 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.15; color: var(--navy); }

.body { font-size: 17px; line-height: 1.7; color: var(--charcoal); }

/* --- Layout --- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: background 280ms cubic-bezier(0.22, 1, 0.36, 1), color 280ms cubic-bezier(0.22, 1, 0.36, 1), border-color 280ms cubic-bezier(0.22, 1, 0.36, 1), transform 200ms;
  white-space: nowrap;
  cursor: pointer;
}
.btn:active { transform: scale(0.98); }
.btn .arrow { transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1); }
.btn:hover .arrow { transform: translateX(4px); }

.btn-primary { background: var(--navy); color: var(--cream); border: 1px solid var(--navy); }
.btn-primary:hover { background: var(--navy-deep); }
.btn-secondary { background: transparent; color: var(--navy); border: 1px solid var(--navy); }
.btn-secondary:hover { background: var(--navy); color: var(--cream); }
.btn-gold-outline { background: transparent; color: var(--gold); border: 1px solid var(--gold); }
.btn-gold-outline:hover { background: var(--gold); color: var(--navy); }
.btn-lg { padding: 20px 40px; font-size: 14px; }

.inline-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  padding-bottom: 4px;
  position: relative;
  transition: color 200ms;
}
.inline-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--gold);
}
.inline-link:hover { color: var(--gold); }
.inline-link .arrow { transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1); }
.inline-link:hover .arrow { transform: translateX(4px); }

/* Gold rule */
.gold-rule {
  display: block;
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 0 0 24px;
  position: relative;
}
.gold-rule::after {
  content: '';
  position: absolute;
  left: 50%;
  top: -2px;
  width: 5px;
  height: 5px;
  background: var(--gold);
  border-radius: 50%;
  transform: translateX(-50%);
}
.gold-rule.center { margin-left: auto; margin-right: auto; }

/* ============================================================
   Navigation: Persistent navy header
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--navy);
  border-bottom: 1px solid rgba(247, 245, 240, 0.08);
  height: var(--nav-height);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.nav-logo {
  display: flex;
  align-items: center;
  transition: opacity 200ms;
}
.nav-logo:hover { opacity: 0.85; }
.nav-logo svg { height: 76px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav-link {
  position: relative;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream);
  padding: 8px 0;
  transition: color 200ms;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 200ms ease, left 200ms ease;
}
.nav-link:hover::after,
.nav-link.active::after { width: 100%; left: 0; }
.nav-link.active { color: var(--gold); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle-bar {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--gold);
  margin: 6px 0;
  border-radius: 1px;
}

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    border-bottom: 1px solid rgba(247, 245, 240, 0.08);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px 32px 24px;
  }
  .nav-links.open { display: flex; }
  .nav-link { padding: 14px 0; border-bottom: 1px solid rgba(247, 245, 240, 0.08); }
  .nav-link:last-child { border-bottom: 0; }
  .nav-logo svg { height: 64px; }
}

/* ============================================================
   Hero (cream, editorial)
   ============================================================ */
.hero {
  background: var(--cream);
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(201, 167, 78, 0.05), transparent 60%),
    radial-gradient(ellipse at 80% 70%, rgba(27, 54, 93, 0.04), transparent 70%);
  pointer-events: none;
}

/* Split hero: text + photo centered within max-width container */
.hero-inner-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 32px 32px;
  width: 100%;
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 72px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-text {
  max-width: 540px;
}

.hero-photo {
  position: relative;
  aspect-ratio: 5 / 4;
  overflow: hidden;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  -webkit-mask-image: radial-gradient(ellipse 120% 110% at center, #000 70%, transparent 100%);
  mask-image: radial-gradient(ellipse 120% 110% at center, #000 70%, transparent 100%);
}

.hero-eyebrow {
  display: inline-block;
  margin-bottom: 36px;
  color: var(--gold);
}

.hero-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(40px, 4.8vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--navy);
  margin-bottom: 32px;
  text-wrap: balance;
}

.hero-sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.55;
  color: var(--taupe);
  max-width: 480px;
  margin-bottom: 48px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .hero {
    min-height: calc(100vh - var(--nav-height));
    min-height: calc(100svh - var(--nav-height));
    display: block;
  }
  .hero-inner-container {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 24px 28px 64px;
    position: relative;
    min-height: calc(100vh - var(--nav-height));
    min-height: calc(100svh - var(--nav-height));
    align-content: start;
  }
  .hero-photo {
    position: absolute;
    inset: 0;
    z-index: 0;
    aspect-ratio: auto;
    max-width: none;
    margin: 0;
    order: 0;
    overflow: hidden;
  }
  .hero-photo picture,
  .hero-photo img {
    width: 100%;
    height: 100%;
    display: block;
  }
  .hero-photo img {
    object-fit: cover;
    object-position: 50% center;
    -webkit-mask-image: none;
    mask-image: none;
  }
  /* Cream fade overlay - strong on left for text readability, fades to reveal family on right */
  .hero-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right,
      rgba(247, 245, 240, 1) 0%,
      rgba(247, 245, 240, 0.95) 18%,
      rgba(247, 245, 240, 0.75) 35%,
      rgba(247, 245, 240, 0.40) 55%,
      rgba(247, 245, 240, 0.12) 78%,
      rgba(247, 245, 240, 0) 100%
    );
    pointer-events: none;
  }
  /* Subtle bottom fade so photo blends with next section */
  .hero-photo::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
      rgba(247, 245, 240, 0) 0%,
      rgba(247, 245, 240, 0) 75%,
      rgba(247, 245, 240, 0.5) 100%
    );
    pointer-events: none;
    z-index: 1;
  }
  .hero-text {
    position: relative;
    z-index: 2;
    max-width: 65%;
  }
  .hero-actions {
    flex-direction: row;
    align-items: stretch;
    flex-wrap: nowrap;
  }
  .hero-actions .btn { width: auto; flex: 1; }
}

/* Phone + tablet: stacked layout with text top, buttons bottom, sub snug against family */
@media (max-width: 900px) {
  .hero-inner-container {
    display: flex;
    flex-direction: column;
    padding: 14px 28px 16px;
  }
  .hero-text {
    display: flex;
    flex-direction: column;
    flex: 1;
    max-width: 100%;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn { width: 100%; }
  .hero-eyebrow {
    margin-bottom: 18px;
  }
  .hero-title {
    margin-bottom: 18px;
  }
  /* Sub sits over family legs/feet by overlapping into the lower-photo zone */
  .hero-sub {
    margin-top: auto;
    margin-bottom: 14px;
    max-width: 100%;
  }
  /* Vertical gradient: NO cream at top (image now starts at sky), strong cream at bottom */
  .hero-photo::before {
    background: linear-gradient(to bottom,
      rgba(247, 245, 240, 0) 0%,
      rgba(247, 245, 240, 0) 52%,
      rgba(247, 245, 240, 0.55) 70%,
      rgba(247, 245, 240, 0.88) 90%,
      rgba(247, 245, 240, 0.95) 100%
    );
  }
  /* Center family horizontally on phone */
  .hero-photo img {
    object-position: 50% center;
  }
  /* Symmetric edge fades (subtle vignette) */
  .hero-photo::after {
    background: linear-gradient(to right,
      rgba(247, 245, 240, 0.65) 0%,
      rgba(247, 245, 240, 0.22) 10%,
      rgba(247, 245, 240, 0) 22%,
      rgba(247, 245, 240, 0) 78%,
      rgba(247, 245, 240, 0.22) 90%,
      rgba(247, 245, 240, 0.65) 100%
    );
  }
}

/* Tablet-only refinements (601-900px): use desktop image (set via picture source above)
   which overflows horizontally at 768 viewport, so object-position X works.
   Family centered + heads slightly closer to headline. */
@media (min-width: 601px) and (max-width: 900px) {
  .hero-photo img {
    /* Family sits left-of-center in desktop image; shift image right so family centers */
    object-position: 18% center;
  }
  .hero-eyebrow {
    font-size: 14px;
    letter-spacing: 0.24em;
    margin-bottom: 48px;
  }
  .hero-title {
    margin-bottom: 24px;
  }
}

/* Phone-only refinements (≤600px): v4 image (1365x2048 master, simple downscale) gets
   zoomed via transform: scale so family fills the frame like the reference. Subtle
   cream wash at the TOP of the photo (gradient that fades to clear by mid-frame)
   gives the headline + eyebrow a readable backdrop without creating a hard gap.
   Strong cream at the BOTTOM keeps the sub-text and buttons legible. */
@media (max-width: 600px) {
  .hero-inner-container {
    padding: 14px 28px 16px;
    min-height: calc(100svh - var(--nav-height));
  }
  .hero-photo img {
    object-position: 50% center;
    transform: translateY(-13%);
  }
  .hero-eyebrow {
    margin-bottom: 14px;
    text-shadow:
      0 1px 1px rgba(20, 41, 73, 0.6),
      0 0 6px rgba(247, 245, 240, 0.5);
  }
  .hero-title {
    font-size: clamp(34px, 8.5vw, 44px);
    margin-bottom: 14px;
    text-shadow:
      0 1px 2px rgba(247, 245, 240, 0.55),
      0 0 14px rgba(247, 245, 240, 0.45);
  }
  .hero-photo::before {
    background: linear-gradient(to bottom,
      rgba(247, 245, 240, 0.95) 0%,
      rgba(247, 245, 240, 0.88) 8%,
      rgba(247, 245, 240, 0.75) 18%,
      rgba(247, 245, 240, 0.55) 28%,
      rgba(247, 245, 240, 0.3) 38%,
      rgba(247, 245, 240, 0.08) 46%,
      rgba(247, 245, 240, 0) 52%,
      rgba(247, 245, 240, 0) 60%,
      rgba(247, 245, 240, 0.4) 65%,
      rgba(247, 245, 240, 0.85) 70%,
      rgba(247, 245, 240, 1) 74%,
      rgba(247, 245, 240, 1) 100%
    );
  }
  .hero-sub {
    color: var(--charcoal);
    margin-top: auto;
    margin-bottom: 14px;
  }
}

/* ============================================================
   Intro section (between hero and services)
   ============================================================ */
.intro {
  background: var(--cream-deep);
  padding: 80px 32px;
  text-align: center;
}
.intro-inner { max-width: 760px; margin: 0 auto; }
.intro-body {
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.5;
  color: var(--navy);
  margin: 40px 0 48px;
  font-weight: 400;
}

/* ============================================================
   Services grid (home page)
   ============================================================ */
.services {
  background: var(--cream);
  padding: 80px 32px;
}
.services-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px;
}
.services-head .h2 { margin-top: 24px; }

.services-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  padding: 48px 36px;
  border-radius: var(--radius);
  border: 1px solid rgba(27, 54, 93, 0.06);
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 320ms cubic-bezier(0.22, 1, 0.36, 1), border-color 320ms;
  cursor: pointer;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px -24px rgba(27, 54, 93, 0.18);
  border-color: rgba(201, 167, 78, 0.3);
}
.service-card .num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.service-card h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 28px;
  color: var(--navy);
  margin-bottom: 16px;
  line-height: 1.2;
}
.service-card p {
  color: var(--charcoal);
  margin-bottom: 32px;
  flex: 1;
  line-height: 1.65;
}
.service-card .learn {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 4px;
  align-self: flex-start;
}

/* ============================================================
   Quote band
   ============================================================ */
.quote-band {
  background: var(--navy);
  color: var(--cream);
  padding: 72px 32px;
  text-align: center;
}
.quote-inner { max-width: 820px; margin: 0 auto; }
.quote-mark {
  font-family: var(--font-serif);
  font-size: 96px;
  color: var(--gold);
  line-height: 1;
  display: block;
  margin-bottom: -20px;
}
.quote-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.45;
  color: var(--cream);
  margin-bottom: 32px;
}
.quote-attr {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ============================================================
   Home CTA
   ============================================================ */
.cta-home {
  background: var(--cream);
  padding: 80px 32px;
  text-align: center;
}
.cta-home .h2 { margin-top: 24px; margin-bottom: 20px; }
.cta-home .sub {
  color: var(--taupe);
  font-size: 17px;
  margin-bottom: 48px;
  font-style: italic;
  font-family: var(--font-serif);
}

/* ============================================================
   Page header (used on all non-home pages)
   ============================================================ */
.page-header {
  background: var(--cream);
  padding: 56px 32px 48px;
  text-align: center;
}
.page-header .eyebrow { margin-bottom: 24px; display: inline-block; }
.page-header .h1 { margin-bottom: 28px; }
.page-header .sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(18px, 1.5vw, 22px);
  color: var(--taupe);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.55;
}

/* ============================================================
   About page
   ============================================================ */
.about-bio {
  background: var(--white);
  padding: 72px 0;
}
.about-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 80px;
  align-items: start;
}
.portrait {
  aspect-ratio: 4 / 5;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  background: var(--cream-deep);
}
.portrait picture,
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
}
.about-bio p {
  font-size: 17.5px;
  line-height: 1.75;
  color: var(--charcoal);
  margin-bottom: 24px;
}
.about-bio p:first-of-type::first-letter {
  font-family: var(--font-serif);
  font-size: 72px;
  line-height: 0.9;
  float: left;
  padding: 6px 14px 0 0;
  color: var(--navy);
  font-weight: 400;
}

.credentials {
  background: var(--navy);
  color: var(--cream);
  padding: 72px 32px;
}
.credentials-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.cred {
  padding: 0 40px;
  text-align: center;
  border-left: 1px solid rgba(201, 167, 78, 0.3);
}
.cred:first-child { border-left: none; }
.cred .num {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 56px;
  line-height: 1;
  color: var(--gold);
  margin-bottom: 16px;
}
.cred h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 24px;
  color: var(--cream);
  margin-bottom: 10px;
  line-height: 1.2;
}
.cred p {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(201, 167, 78, 0.85);
}

.about-closing {
  background: var(--cream);
  padding: 80px 32px;
  text-align: center;
}
.about-closing-inner { max-width: 760px; margin: 0 auto; }
.about-closing .gold-rule { margin-bottom: 40px; }
.about-closing p {
  font-family: var(--font-serif);
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.5;
  color: var(--navy);
  margin-bottom: 48px;
}

/* ============================================================
   Services page blocks
   ============================================================ */
.svc-block { padding: 80px 0; }
.svc-block.cream { background: var(--cream); }
.svc-block.white { background: var(--white); }
.svc-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 3fr 7fr;
  gap: 80px;
  align-items: start;
}
.svc-block.reverse .svc-inner { grid-template-columns: 7fr 3fr; }
.svc-block.reverse .svc-num { order: 2; text-align: right; }
.svc-block.reverse .svc-content { order: 1; }
.svc-num {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(140px, 18vw, 240px);
  line-height: 0.9;
  color: var(--gold);
  letter-spacing: -0.02em;
}
.svc-content h2 { margin-bottom: 16px; margin-top: 8px; }
.svc-content .eyebrow { display: block; margin-bottom: 14px; }
.svc-content .svc-body {
  font-size: 18px;
  line-height: 1.75;
  color: var(--charcoal);
  margin-bottom: 18px;
  max-width: 620px;
}
.svc-features {
  list-style: none;
  margin-bottom: 20px;
  border-top: 1px solid rgba(27, 54, 93, 0.12);
}
.svc-features li {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px 0;
  font-size: 16px;
  color: var(--navy);
  border-bottom: 1px solid rgba(27, 54, 93, 0.12);
}
.svc-features .check {
  width: 22px; height: 22px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 18px;
}
.svc-features .ordinal {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--taupe);
  width: 28px;
  flex-shrink: 0;
}

.svc-cta-band {
  background: var(--cream-deep);
  color: var(--navy);
  padding: 80px 32px;
  text-align: center;
  position: relative;
}
.svc-cta-band::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 1px;
  background: var(--gold);
  opacity: 0.6;
}
.svc-cta-band .h2 { color: var(--navy); margin: 24px 0 20px; }
.svc-cta-band .sub {
  color: var(--taupe);
  font-size: 17px;
  font-style: italic;
  font-family: var(--font-serif);
  margin-bottom: 48px;
}
.svc-cta-band .btn-gold-outline {
  color: var(--navy);
  border-color: var(--navy);
}
.svc-cta-band .btn-gold-outline:hover {
  background: var(--navy);
  color: var(--cream);
  border-color: var(--navy);
}

/* ============================================================
   Send Files page
   ============================================================ */
.secure-intro {
  background: var(--cream);
  padding: 56px 32px 48px;
  text-align: center;
}
.secure-intro-inner { max-width: 760px; margin: 0 auto; }
.secure-intro .h1 { margin: 8px 0 28px; }
.secure-intro p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--charcoal);
  max-width: 600px;
  margin: 0 auto;
}

.secure-steps {
  background: var(--white);
  padding: 72px 32px;
}
.secure-steps-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 80px;
}
.secure-step .num {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  font-size: 64px;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 24px;
}
.secure-step h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 24px;
  color: var(--navy);
  margin-bottom: 16px;
  line-height: 1.3;
}
.secure-step p {
  color: var(--charcoal);
  font-size: 15px;
  line-height: 1.65;
}

.secure-cta {
  background: var(--cream);
  padding: 72px 32px;
  text-align: center;
}
.secure-cta .gold-rule { margin-bottom: 40px; }
.secure-cta .helper {
  margin-top: 24px;
  font-size: 14px;
  color: var(--taupe);
  font-style: italic;
  font-family: var(--font-serif);
}

.secure-trust {
  background: var(--cream);
  padding: 0 32px 80px;
  text-align: center;
}
.secure-trust-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--white);
  border: 1px solid rgba(27, 54, 93, 0.10);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 22px 26px;
  box-shadow: 0 1px 2px rgba(27, 54, 93, 0.03);
}
.lock-mark {
  width: 32px;
  height: 32px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 14px;
  flex-shrink: 0;
  background: rgba(201, 167, 78, 0.08);
}
.secure-trust p {
  font-size: 13.5px;
  line-height: 1.65;
  text-align: left;
  color: var(--charcoal);
}

/* ============================================================
   Contact page
   ============================================================ */
.contact-simple {
  min-height: calc(100vh - var(--nav-height));
  background: var(--cream);
  padding: 100px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-simple-inner {
  max-width: 760px;
  width: 100%;
  text-align: center;
}
.contact-simple .eyebrow { display: inline-block; margin-bottom: 24px; }
.contact-simple .h1 { margin-bottom: 24px; }
.contact-simple .sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(18px, 1.5vw, 22px);
  color: var(--taupe);
  max-width: 560px;
  margin: 0 auto 64px;
  line-height: 1.55;
}
.contact-simple-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(27, 54, 93, 0.12);
  border-top: 1px solid rgba(27, 54, 93, 0.12);
  border-bottom: 1px solid rgba(27, 54, 93, 0.12);
  margin-bottom: 64px;
}
.contact-card {
  background: var(--cream);
  padding: 56px 32px;
  text-align: center;
}
.contact-card .label {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.contact-card .value {
  font-family: var(--font-serif);
  font-size: 28px;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 6px;
}
.contact-card .value a { transition: color 180ms; }
.contact-card .value a:hover { color: var(--gold); }
.contact-card .helper {
  font-size: 13px;
  color: var(--taupe);
  font-style: italic;
}
.contact-address {
  text-align: center;
  margin-bottom: 64px;
}
.contact-address .label {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.contact-address .value {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--navy);
  line-height: 1.55;
}
.contact-secure-note {
  background: var(--cream-deep);
  border-left: 3px solid var(--gold);
  padding: 28px 32px;
  text-align: left;
  font-size: 15px;
  color: var(--charcoal);
  line-height: 1.65;
  max-width: 760px;
  margin: 0 auto;
}
.contact-secure-note a {
  color: var(--navy);
  border-bottom: 1px solid var(--gold);
  font-weight: 500;
}
.contact-secure-note a:hover { color: var(--gold); }

@media (max-width: 700px) {
  .contact-simple-grid { grid-template-columns: 1fr; margin-bottom: 28px; }
  .contact-simple {
    padding: 32px 20px 48px;
    min-height: auto;
    align-items: flex-start;
  }
  .contact-simple .sub { margin-bottom: 28px; }
  .contact-simple .h1 { font-size: clamp(34px, 8vw, 44px); margin-bottom: 18px; }
  .contact-card { padding: 28px 20px; }
  .contact-card .value { font-size: 22px; line-height: 1.25; }
  .contact-card .label { margin-bottom: 12px; }
  .contact-address { margin-bottom: 0; }
  .contact-address .value { font-size: 18px; }
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--navy-deep);
  color: var(--cream);
  padding: 96px 0 32px;
}
.footer-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(247, 245, 240, 0.12);
}
.footer-grid > div:first-child {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.footer-logo svg {
  height: 110px;
  width: auto;
  margin-bottom: 20px;
}
.footer-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  color: rgba(247, 245, 240, 0.72);
  font-size: 15px;
}
.footer h4 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.footer ul { list-style: none; }
.footer li {
  margin-bottom: 10px;
  font-size: 14.5px;
  color: rgba(247, 245, 240, 0.82);
}
.footer li a { transition: color 180ms; }
.footer li a:hover { color: var(--gold); }
.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 32px 32px 0;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(247, 245, 240, 0.5);
  letter-spacing: 0.04em;
}

/* ============================================================
   Reveal animations
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.js-reveal .reveal {
  opacity: 0;
  transform: translateY(44px);
  transition: opacity 1500ms cubic-bezier(0.16, 1, 0.3, 1), transform 1500ms cubic-bezier(0.16, 1, 0.3, 1);
}
.js-reveal .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children inside revealed grids — duration set ABOVE parent so smaller
   elements don't feel snappier than the larger sections they live inside */
.js-reveal .reveal .services-grid > *,
.js-reveal .reveal .credentials-grid > *,
.js-reveal .reveal .contact-simple-grid > * {
  opacity: 0;
  transform: translateY(44px);
  transition: opacity 1700ms cubic-bezier(0.16, 1, 0.3, 1), transform 1700ms cubic-bezier(0.16, 1, 0.3, 1);
}
.js-reveal .reveal.visible .services-grid > *,
.js-reveal .reveal.visible .credentials-grid > *,
.js-reveal .reveal.visible .contact-simple-grid > * {
  opacity: 1;
  transform: translateY(0);
}
.js-reveal .reveal.visible .services-grid > *:nth-child(1),
.js-reveal .reveal.visible .credentials-grid > *:nth-child(1),
.js-reveal .reveal.visible .contact-simple-grid > *:nth-child(1) { transition-delay: 150ms; }
.js-reveal .reveal.visible .services-grid > *:nth-child(2),
.js-reveal .reveal.visible .credentials-grid > *:nth-child(2),
.js-reveal .reveal.visible .contact-simple-grid > *:nth-child(2) { transition-delay: 950ms; }
.js-reveal .reveal.visible .services-grid > *:nth-child(3),
.js-reveal .reveal.visible .credentials-grid > *:nth-child(3),
.js-reveal .reveal.visible .contact-simple-grid > *:nth-child(3) { transition-delay: 1750ms; }

.hero-eyebrow,
.hero-title,
.hero-sub,
.hero-actions,
.hero-photo {
  animation: fadeInUp 1.4s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}
.hero-eyebrow { animation-delay: 0.15s; }
.hero-title { animation-delay: 0.35s; }
.hero-sub { animation-delay: 0.6s; }
.hero-actions { animation-delay: 0.8s; }
.hero-photo { animation-delay: 0.45s; animation-duration: 1.6s; }

/* ============================================================
   Placeholders
   ============================================================ */
.placeholder-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--taupe);
  background: rgba(201, 167, 78, 0.12);
  border: 1px dashed rgba(201, 167, 78, 0.5);
  padding: 6px 12px;
  border-radius: 2px;
  text-transform: lowercase;
}
.img-placeholder {
  background:
    linear-gradient(145deg, rgba(27, 54, 93, 0.85), rgba(27, 54, 93, 0.5)),
    repeating-linear-gradient(45deg, #6b5c42 0 14px, #7a6b4f 14px 28px);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.img-placeholder .placeholder-tag {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  background: rgba(247, 245, 240, 0.95);
  color: var(--navy);
  border-color: rgba(27, 54, 93, 0.3);
  white-space: nowrap;
}

/* ============================================================
   Accessibility & responsive
   ============================================================ */
::selection { background: var(--gold); color: var(--cream); }
::-moz-selection { background: var(--gold); color: var(--cream); }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .credentials-grid { grid-template-columns: 1fr; }
  .cred { border-left: 0; border-top: 1px solid rgba(201, 167, 78, 0.3); padding: 32px 0; }
  .cred:first-child { border-top: 0; }
  .svc-inner, .svc-block.reverse .svc-inner { grid-template-columns: 1fr; gap: 32px; }
  .svc-block.reverse .svc-num { order: 0; text-align: left; }
  .svc-block.reverse .svc-content { order: 0; }
  .svc-num { font-size: clamp(80px, 18vw, 140px); }
  .secure-steps-grid { grid-template-columns: 1fr; gap: 56px; }
}

@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 700px) {
  .svc-block, .credentials, .about-bio, .about-closing, .cta-home, .quote-band, .secure-intro, .secure-steps, .secure-cta, .secure-trust, .svc-cta-band, .intro, .services {
    padding-left: 20px;
    padding-right: 20px;
  }
  /* Tight page header so the next section is visible on first viewport */
  .page-header { padding: 32px 20px 28px; }
  .page-header .gold-rule { margin-top: 18px !important; margin-bottom: 22px !important; }
  .page-header .h1 { margin-bottom: 18px; }

  /* About: portrait sits just below the header, capped so header + image fit */
  .about-bio { padding: 28px 0 56px; }
  .portrait {
    max-width: min(100%, 44vh);
    margin-left: auto;
    margin-right: auto;
  }

  /* Services: first block peeks under header on first viewport */
  .svc-block { padding: 36px 0; }

  .container { padding: 0 20px; }
}

/* Gentler reveal animations on mobile */
@media (max-width: 768px) {
  .js-reveal .reveal {
    transform: translateY(32px);
    transition: opacity 1300ms cubic-bezier(0.16, 1, 0.3, 1), transform 1300ms cubic-bezier(0.16, 1, 0.3, 1);
  }
  .js-reveal .reveal .services-grid > *,
  .js-reveal .reveal .credentials-grid > *,
  .js-reveal .reveal .contact-simple-grid > * {
    transform: translateY(32px);
    transition: opacity 1500ms cubic-bezier(0.16, 1, 0.3, 1), transform 1500ms cubic-bezier(0.16, 1, 0.3, 1);
  }
  .js-reveal .reveal.visible .services-grid > *:nth-child(1),
  .js-reveal .reveal.visible .credentials-grid > *:nth-child(1),
  .js-reveal .reveal.visible .contact-simple-grid > *:nth-child(1) { transition-delay: 120ms; }
  .js-reveal .reveal.visible .services-grid > *:nth-child(2),
  .js-reveal .reveal.visible .credentials-grid > *:nth-child(2),
  .js-reveal .reveal.visible .contact-simple-grid > *:nth-child(2) { transition-delay: 820ms; }
  .js-reveal .reveal.visible .services-grid > *:nth-child(3),
  .js-reveal .reveal.visible .credentials-grid > *:nth-child(3),
  .js-reveal .reveal.visible .contact-simple-grid > *:nth-child(3) { transition-delay: 1520ms; }
}

/* ============================================================
   DESKTOP-ONLY ZONE  (min-width: 901px)
   ------------------------------------------------------------
   All future desktop visual changes go inside this block.
   Mobile (≤900px) never reads this section, so anything added here
   is guaranteed not to affect phone or tablet rendering.

   Locked phone CSS lives at:
     @media (max-width: 600px)   — hero readability + image v3
     @media (max-width: 768px)   — softened reveal animations on mobile
   Do not edit those blocks when iterating on desktop.
   ============================================================ */
@media (min-width: 901px) {
  /* Home services grid: cards sit side-by-side so they should fade in together
     rather than cascading. Override the default per-child stagger to 0ms. */
  .js-reveal .reveal.visible .services-grid > *:nth-child(1),
  .js-reveal .reveal.visible .services-grid > *:nth-child(2),
  .js-reveal .reveal.visible .services-grid > *:nth-child(3) {
    transition-delay: 0ms;
  }

  /* Send-files first viewport: make secure-intro fill the available height so
     the chevron lives at the bottom edge of the fold. */
  .secure-intro {
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding-top: 32px;
    padding-bottom: 32px;
  }

  /* Services first viewport: the first card uses the SAME spacing as the other
     sections (see .svc-content / .svc-features above). It is only centered in the
     fold with the gold chevron pinned at the bottom; the card itself is not scrunched. */
  .svc-first-screen {
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
  }
  .svc-first-screen .page-header { padding-top: 6px; padding-bottom: 2px; }
  .svc-first-screen .page-header .eyebrow { margin-bottom: 12px; }
  .svc-first-screen .page-header .gold-rule { margin-top: 12px !important; margin-bottom: 14px !important; }
  .svc-first-screen .page-header .h1 { margin-bottom: 12px; }
  .svc-first-screen .svc-first { padding-top: 8px; padding-bottom: 84px; }

  /* Calm gold chevron at the bottom of the first viewport. Only on pages
     that include the .scroll-chevron element (home + send-files). */
  .scroll-chevron {
    position: absolute;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    opacity: 0.9;
    transition: opacity 600ms cubic-bezier(0.22, 1, 0.36, 1), transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
    animation: chevron-bob 2.8s cubic-bezier(0.45, 0, 0.55, 1) infinite;
    z-index: 3;
    border-radius: 50%;
    background: rgba(247, 245, 240, 0.55);
    border: 1px solid rgba(201, 167, 78, 0.55);
    box-shadow: 0 4px 14px -6px rgba(27, 54, 93, 0.18);
  }
  .scroll-chevron:hover {
    opacity: 1;
    background: rgba(247, 245, 240, 0.85);
    border-color: var(--gold);
  }
  .scroll-chevron.faded { opacity: 0; pointer-events: none; }
  .scroll-chevron svg { width: 26px; height: 26px; }

  @keyframes chevron-bob {
    0%   { transform: translateX(-50%) translateY(0); }
    50%  { transform: translateX(-50%) translateY(7px); }
    100% { transform: translateX(-50%) translateY(0); }
  }

  @media (prefers-reduced-motion: reduce) {
    .scroll-chevron { animation: none; }
  }
}

/* Mobile + tablet: chevron never appears */
@media (max-width: 900px) {
  .scroll-chevron { display: none; }
}

/* ============================================================
   Utility classes (replace inline style="..." attrs so CSP can
   drop 'unsafe-inline' from style-src). Map 1:1 with what was
   previously written inline.
   ============================================================ */
.gold-rule.gr-mt-20 { margin-top: 20px; }
.gold-rule.gr-mt-20-mb-32 { margin-top: 20px; margin-bottom: 32px; }
.gold-rule.gr-mt-20-mb-40 { margin-top: 20px; margin-bottom: 40px; }
.gold-rule.gr-mt-24-mb-32 { margin-top: 24px; margin-bottom: 32px; }
.gold-rule.gr-mt-18-mb-32 { margin-top: 18px; margin-bottom: 32px; }

.eyebrow.eyebrow-gold { color: var(--gold); }

.footer ul li.li-mt-14 { margin-top: 14px; }
.footer ul li.li-hours { margin-top: 14px; color: rgba(247,245,240,0.55); font-style: italic; }

.about-credentials-mono {
  margin-top: 24px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--taupe);
}

.secure-intro-sub {
  margin-top: 28px;
  color: var(--taupe);
  font-style: italic;
  font-family: var(--font-serif);
  font-size: 20px;
}

.btn.btn-encyro { padding: 26px 52px; font-size: 14px; }
