:root {
  --navy: #10243d;
  --navy-deep: #08182b;
  --blue: #173d64;
  --gold: #c4a04e;
  --gold-pale: #ead79c;
  --marble: #f7f3e8;
  --paper: #fffdf8;
  --ink: #24354a;
  --muted: #5d6b79;
  --line: rgba(16, 36, 61, 0.16);
  --shadow: 0 22px 60px rgba(16, 36, 61, 0.13);
  --content: min(1140px, calc(100vw - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--marble); }
body {
  margin: 0;
  color: var(--ink);
  background: var(--marble);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--navy) 0 38%, var(--gold) 38% 62%, var(--navy) 62%);
}
a { color: inherit; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #548ec2; outline-offset: 4px; }
.skip-link {
  position: fixed;
  z-index: 999;
  left: 1rem;
  top: -5rem;
  padding: 0.75rem 1rem;
  color: var(--paper);
  background: var(--navy);
  border-radius: 0.25rem;
  font-weight: 800;
}
.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  margin-top: 5px;
  background: rgba(247, 243, 232, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.nav-wrap {
  width: var(--content);
  min-height: 88px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}
.brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}
.brand img { width: 78px; height: auto; flex: 0 0 auto; }
.brand-copy { display: grid; line-height: 1.15; }
.brand-copy strong {
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.88rem;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}
.brand-copy small {
  margin-top: 0.24rem;
  color: var(--blue);
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav-links { display: flex; align-items: center; gap: 1.05rem; }
.nav-links a {
  color: var(--navy);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-decoration: none;
  text-transform: uppercase;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #8d6a18; }
.nav-links .nav-cta {
  padding: 0.72rem 0.9rem;
  color: #fff;
  background: var(--navy);
  border: 1px solid var(--navy);
  border-radius: 3px;
}
.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--navy);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 3px;
  cursor: pointer;
}
.menu-button span,
.menu-button::before,
.menu-button::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}
.menu-button[aria-expanded="true"] span { opacity: 0; }
.menu-button[aria-expanded="true"]::before { transform: translateY(7px) rotate(45deg); }
.menu-button[aria-expanded="true"]::after { transform: translateY(-7px) rotate(-45deg); }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 {
  color: var(--navy);
  font-family: Georgia, "Palatino Linotype", "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.07;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
  color: #8d6a18;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 38px; height: 2px; background: var(--gold); }

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 9% 12%, rgba(196, 160, 78, 0.2), transparent 28%),
    linear-gradient(135deg, #07182b, #102f51 58%, #173d64);
}
.hero::after {
  content: "AFS";
  position: absolute;
  right: -1rem;
  bottom: -4.4rem;
  color: rgba(255, 255, 255, 0.035);
  font-family: Georgia, serif;
  font-size: clamp(11rem, 25vw, 24rem);
  font-weight: 700;
  line-height: 1;
}
.hero-grid {
  position: relative;
  z-index: 2;
  width: var(--content);
  min-height: 670px;
  margin-inline: auto;
  padding: 76px 0;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(340px, 0.94fr);
  gap: clamp(2.25rem, 5vw, 5rem);
  align-items: center;
}
.hero .eyebrow { color: var(--gold-pale); }
.hero h1 {
  max-width: 15ch;
  margin-bottom: 1.35rem;
  color: #fff;
  font-size: clamp(3rem, 5.8vw, 5.8rem);
  letter-spacing: -0.025em;
}
.hero-lede { max-width: 650px; color: #e2e9f0; font-size: clamp(1.04rem, 1.5vw, 1.24rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; }
.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.05rem;
  border: 1px solid transparent;
  border-radius: 3px;
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.055em;
  text-decoration: none;
  text-transform: uppercase;
}
.button-primary { color: var(--navy-deep); background: var(--gold-pale); border-color: var(--gold-pale); }
.button-primary:hover { background: #f5e4ad; }
.button-secondary { color: #fff; background: transparent; border-color: rgba(255, 255, 255, 0.45); }
.button-secondary:hover { background: rgba(255, 255, 255, 0.08); }
.hero-note { margin-top: 1rem; color: #bfcbd7; font-size: 0.86rem; }
.hero-visual {
  position: relative;
  min-height: 430px;
  margin: 0;
  background: var(--navy-deep);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-top: 4px solid var(--gold);
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.35);
}
.hero-visual img { width: 100%; height: 430px; object-fit: cover; object-position: 60% center; opacity: 0.82; }
.hero-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(8, 24, 43, 0.86)); }
.visual-caption {
  position: absolute;
  z-index: 2;
  left: 1.45rem;
  right: 1.45rem;
  bottom: 1.35rem;
  margin: 0;
  color: #fff;
  font-family: Georgia, serif;
  font-size: 1.25rem;
  line-height: 1.35;
}

.credential-band { color: #fff; background: var(--navy); border-top: 1px solid rgba(255,255,255,0.12); }
.credential-grid {
  width: var(--content);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.credential {
  min-height: 110px;
  display: grid;
  align-content: center;
  padding: 1.25rem 1.5rem;
  border-right: 1px solid rgba(255,255,255,0.14);
}
.credential:last-child { border-right: 0; }
.credential strong { color: var(--gold-pale); font-family: Georgia, serif; font-size: 1.2rem; }
.credential span { color: #d6dfe8; font-size: 0.84rem; }

.section { padding: 90px 0; }
.section-inner { width: var(--content); margin-inline: auto; }
.section-heading { max-width: 800px; margin-bottom: 2.4rem; }
.section-heading h2 { margin-bottom: 1rem; font-size: clamp(2.35rem, 4vw, 4rem); }
.section-heading > p:last-child { max-width: 700px; color: var(--muted); font-size: 1.05rem; }
.paper { background: var(--paper); }
.marble { background: var(--marble); }
.intro-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(310px, 0.72fr); gap: 3rem; align-items: start; }
.intro-copy h2 { max-width: 14ch; font-size: clamp(2.45rem, 4vw, 4.2rem); }
.intro-copy > p { max-width: 720px; color: var(--muted); font-size: 1.08rem; }
.question-panel { padding: 1.6rem; background: #efe7d2; border-left: 4px solid var(--gold); }
.question-panel h3 { margin-bottom: 1rem; font-size: 1.45rem; }
.check-list { display: grid; gap: 0.85rem; margin: 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 1.5rem; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 0.63em; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); }
.experience-proof {
  grid-column: 1 / -1;
  margin-top: 0.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.experience-proof h3 { margin-bottom: 1.25rem; font-size: clamp(1.55rem, 2.4vw, 2.1rem); }
.proof-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.proof-item { padding: 1.1rem 1.2rem; background: var(--marble); border-left: 3px solid var(--gold); }
.proof-item strong { display: block; margin-bottom: 0.25rem; color: var(--navy); font-family: Georgia, serif; font-size: 1.05rem; }
.proof-item span { color: var(--muted); font-size: 0.9rem; }

.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.info-card {
  min-height: 265px;
  padding: 1.55rem;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  box-shadow: 0 12px 28px rgba(16, 36, 61, 0.06);
}
.info-card:nth-child(3n + 2) { border-top-color: var(--blue); }
.info-card:nth-child(3n) { border-top-color: #8e3440; }
.card-number {
  width: 42px;
  height: 42px;
  margin-bottom: 1.25rem;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--navy);
  border-radius: 50%;
  font-family: Georgia, serif;
  font-weight: 700;
}
.info-card h3 { margin-bottom: 0.7rem; font-size: 1.36rem; }
.info-card p { margin-bottom: 0; color: var(--muted); }

.deliverables { color: #fff; background: linear-gradient(125deg, #08182b, #173d64); }
.deliverables h2 { color: #fff; }
.deliverables .section-heading > p:last-child { color: #d2dde7; }
.deliverable-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid rgba(255,255,255,0.15); }
.deliverable {
  min-height: 165px;
  padding: 1.6rem;
  border-right: 1px solid rgba(255,255,255,0.15);
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.deliverable:nth-child(even) { border-right: 0; }
.deliverable:nth-last-child(-n + 2) { border-bottom: 0; }
.deliverable h3 { margin-bottom: 0.6rem; color: var(--gold-pale); font-size: 1.35rem; }
.deliverable p { margin-bottom: 0; color: #d6dfe8; }

.process-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.15rem; }
.process-step { padding: 1.65rem; border-top: 1px solid var(--line); }
.process-step strong { display: block; margin-bottom: 0.75rem; color: #8d6a18; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; }
.process-step h3 { margin-bottom: 0.65rem; font-size: 1.45rem; }
.process-step p { margin-bottom: 0; color: var(--muted); }

.scope {
  padding: 2rem;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 2rem;
  color: #fff;
  background: var(--navy);
  border-left: 6px solid var(--gold);
}
.scope h2 { margin: 0; color: #fff; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.scope p { margin: 0; color: #d7e0e8; }

.contact-cta { color: #fff; background: linear-gradient(120deg, #b59444, #8f6f28); }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 3rem;
  align-items: center;
}
.contact-cta h2 { max-width: 13ch; margin-bottom: 1rem; color: #fff; font-size: clamp(2.5rem, 4.8vw, 4.6rem); }
.contact-cta p { max-width: 650px; color: #fff9e8; }
.contact-actions { display: grid; gap: 0.75rem; }
.contact-action {
  padding: 1rem 1.1rem;
  color: #fff;
  background: rgba(16, 36, 61, 0.92);
  border: 1px solid rgba(255,255,255,0.22);
  text-decoration: none;
}
.contact-action small { display: block; color: var(--gold-pale); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.contact-action strong { overflow-wrap: anywhere; }
.privacy-note { margin: 1rem 0 0; color: #fff9e8; font-size: 0.82rem; }

footer { color: #dbe3ea; background: var(--navy-deep); border-top: 5px solid var(--gold); }
.footer-inner {
  width: var(--content);
  min-height: 96px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  font-size: 0.82rem;
}
.footer-inner a { color: var(--gold-pale); text-decoration: none; }

@media (max-width: 980px) {
  .menu-button { display: block; }
  .nav-wrap { position: relative; }
  .nav-links {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 1px);
    display: none;
    align-items: stretch;
    gap: 0;
    padding: 0.65rem;
    background: rgba(247, 243, 232, 0.99);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: grid; }
  .nav-links a { min-height: 48px; display: flex; align-items: center; padding: 0.7rem 0.85rem; }
  .nav-links .nav-cta { justify-content: center; }
  .hero-grid, .intro-grid, .contact-grid, .scope { grid-template-columns: 1fr; }
  .hero-grid { min-height: auto; padding: 64px 0; }
  .hero h1 { max-width: 17ch; }
  .hero-visual { max-width: 720px; }
  .card-grid, .proof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-grid { grid-template-columns: 1fr; }
  .process-step { padding-inline: 0; }
}

@media (max-width: 640px) {
  :root { --content: calc(100vw - 28px); }
  .nav-wrap { min-height: 76px; }
  .brand img { width: 64px; }
  .brand-copy strong { font-size: 0.73rem; }
  .brand-copy small { display: none; }
  .hero-grid { padding: 48px 0; gap: 2.5rem; }
  .hero h1 { font-size: clamp(2.6rem, 13vw, 4rem); }
  .hero-actions { display: grid; }
  .button { width: 100%; }
  .hero-visual, .hero-visual img { min-height: 330px; height: 330px; }
  .credential-grid, .card-grid, .deliverable-grid, .proof-grid { grid-template-columns: 1fr; }
  .credential { min-height: 88px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,0.14); }
  .credential:last-child { border-bottom: 0; }
  .section { padding: 68px 0; }
  .deliverable { border-right: 0; }
  .deliverable:nth-last-child(-n + 2) { border-bottom: 1px solid rgba(255,255,255,0.15); }
  .deliverable:last-child { border-bottom: 0; }
  .scope { padding: 1.5rem; }
  .footer-inner { min-height: 120px; align-items: flex-start; flex-direction: column; justify-content: center; gap: 0.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
