/* Sargon Intelligence: site styles. Tokens from .claude/skills/sargon-brand/assets/tokens.json */

@font-face {
  font-family: "Marcellus";
  src: url("fonts/marcellus.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("fonts/jost-var.woff") format("woff");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --navy: #1C2B4B;
  --gold: #C9A24A;
  --ground: #F5F1E8;
  --deep-gold: #8C6A1F;
  --blue: #2E5C9A;
  --ink: #1F2430;
  --muted: #6B6A66;
  --rule: #D9D2C3;
  --display: "Marcellus", Georgia, serif;
  --body: "Jost", Calibri, "Segoe UI", sans-serif;
  --measure: 68ch;
  --gutter: clamp(20px, 5vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 10; }

/* Header */
.site-header { background: var(--navy); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 76px;
}
.brand { display: block; line-height: 0; }
.brand img { height: 45px; width: auto; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 28px; margin: 0; padding: 0; list-style: none; }
.nav a {
  color: var(--ground); text-decoration: none; font-size: 0.98rem;
  padding: 6px 0; border-bottom: 1px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--ground); color: var(--ground); }

/* Type */
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.15; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); letter-spacing: -0.005em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; max-width: var(--measure); }
.lede { font-size: clamp(1.15rem, 1.9vw, 1.35rem); font-weight: 300; max-width: 46ch; }
.small { font-size: 0.92rem; color: var(--muted); }

/* Hero */
.hero { background: var(--navy); color: var(--ground); padding: clamp(56px, 10vw, 128px) 0 clamp(56px, 8vw, 104px); }
.hero h1 { max-width: 16ch; }
.hero .small { color: #B9BFCC; margin-top: 28px; }
.hero.page { padding: clamp(44px, 7vw, 84px) 0; }
.hero.page h1 { max-width: none; margin-bottom: 0.3em; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.btn {
  display: inline-block; padding: 13px 24px; text-decoration: none;
  font-weight: 500; border: 1.5px solid currentColor; border-radius: 2px;
}
.hero .btn.primary, .band .btn.primary { background: var(--ground); color: var(--navy); border-color: var(--ground); }
.hero .btn.primary:hover, .band .btn.primary:hover { background: #fff; }
.hero .btn.quiet { color: var(--ground); }
.btn.primary { background: var(--navy); color: var(--ground); border-color: var(--navy); }
.btn.primary:hover { background: var(--ink); color: #fff; }

/* Sections */
section { padding: clamp(56px, 8vw, 104px) 0; }
section + section { border-top: 1px solid var(--rule); }
.audiences { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 56px; margin-top: 40px; }
.audiences h3 { padding-top: 16px; border-top: 2px solid var(--navy); }
.audiences p { font-size: 1rem; }

/* The navy band: the one place the wedge (gold) appears */
.band { background: var(--navy); color: var(--ground); border-top: 0; }
.band + section { border-top: 0; }
.band h2 { max-width: 20ch; }
.reasons { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px 64px; }
.reasons li { position: relative; padding-left: 34px; }
.reasons li::before {
  content: ""; position: absolute; left: 0; top: 0.42em;
  width: 15px; height: 15px; background: url("img/wedge.svg") no-repeat center / contain;
}
.reasons strong { display: block; font-family: var(--display); font-weight: 400; font-size: 1.3rem; margin-bottom: 6px; }
.reasons p { color: #DCE0E8; margin: 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }

/* Services */
.service { display: grid; grid-template-columns: minmax(200px, 1fr) 2fr; gap: 24px 56px; padding: 44px 0; border-top: 1px solid var(--rule); }
.service:first-of-type { border-top: 0; padding-top: 8px; }
.service h2 { font-size: 1.65rem; }
.service ul { margin: 0; padding-left: 1.1em; }
.service li { margin-bottom: 0.5em; max-width: var(--measure); }
.service li::marker { color: var(--muted); }
.how { background: #fff; border: 1px solid var(--rule); padding: 32px 36px; margin-top: 24px; }
.how ul { margin: 0; padding-left: 1.1em; }

/* About */
.about { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: 56px; align-items: start; }
.about > div p { max-width: 60ch; }
.about img { width: 100%; max-width: 340px; border: 1px solid var(--rule); filter: saturate(0.92); }
.credential { font-family: var(--display); font-size: 1.4rem; line-height: 1.4; max-width: 46ch; padding-left: 20px; border-left: 2px solid var(--navy); margin: 48px 0 0; }
.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 56px; margin-top: 32px; }
.values h3 { font-size: 1.2rem; margin-bottom: 0.3em; }
.values p { margin: 0; }

/* Contact */
.contact-list { list-style: none; padding: 0; margin: 32px 0; display: grid; gap: 18px; }
.contact-list span { display: block; color: var(--muted); font-size: 0.95rem; }
.contact-list a { font-size: 1.2rem; }

/* Footer */
.site-footer { background: var(--navy); color: #B9BFCC; padding: 40px 0; font-size: 0.92rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; }
.site-footer a { color: var(--ground); }
.site-footer p { margin: 0; max-width: none; }

@media (max-width: 860px) {
  .audiences, .reasons, .split, .service, .about, .values { grid-template-columns: 1fr; }
  .about img { max-width: 260px; }
  .site-header .wrap { flex-direction: column; align-items: flex-start; padding-top: 12px; padding-bottom: 14px; gap: 6px; }
  .brand img { height: 38px; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero .wrap { animation: rise 0.7s ease-out both; }
  @keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}

/* Rotating hero ending (assets/hero.js) */
.rotor-word { display: block; color: #E9E2D2; transition: opacity 0.25s ease; }
.rotor-lede { min-height: 4.9em; transition: opacity 0.25s ease; }
.rotor-link { transition: opacity 0.25s ease; }
.rotor-word.out, .rotor-lede.out, .rotor-link.out { opacity: 0; }
.hero h1.rotor { min-height: 2.3em; }
@media (max-width: 860px) { .rotor-lede { min-height: 8.2em; } .hero h1.rotor { min-height: 3.45em; } }
.rotor-tabs { display: flex; flex-wrap: wrap; gap: 6px 26px; margin: 0 0 28px; }
.rotor-tabs button {
  font: inherit; font-size: 0.98rem; color: #B9BFCC; background: none; border: 0;
  padding: 6px 0; border-bottom: 2px solid transparent; cursor: pointer;
}
.rotor-tabs button:hover { color: var(--ground); }
.rotor-tabs button[aria-pressed="true"] { color: var(--ground); border-bottom-color: var(--ground); }

/* What you get: one claim + three deliverables per audience */
.audiences .claim { font-size: 1.02rem; font-weight: 500; color: var(--ink); }
.audiences ul { margin: 0; padding-left: 1.05em; font-size: 0.97rem; }
.audiences li { margin-bottom: 0.45em; }
.audiences li::marker { color: var(--muted); }

/* Ways to work with us (Services) */
.ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 48px; margin-top: 32px; }
.ways > div { border-top: 2px solid var(--navy); padding-top: 16px; }
.ways p { margin: 0; }
.ways-link { margin-top: 40px; }
.ways.two { grid-template-columns: repeat(2, 1fr); max-width: 900px; }
@media (max-width: 860px) { .ways, .ways.two { grid-template-columns: 1fr; } }

/* Closing section on Home: call to action + sample request side by side */
.closing h3 { margin-top: 0.3em; }
.closing .split { align-items: center; }
.ways-note { margin-top: 20px; margin-bottom: 0; }

/* Two routes panel (Services): a distinct white band with a clear either/or */
.routes { padding: clamp(40px, 6vw, 72px) 0; }
.routes + section { padding-top: clamp(40px, 6vw, 72px); }
.route-pair { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: stretch; margin-top: 32px; max-width: 980px; }
.route { border: 1px solid var(--rule); border-top: 3px solid var(--navy); padding: 26px 30px 28px; background: #fff; }
.route h3 { margin-bottom: 0.4em; }
.route p { margin: 0; }
.route .route-tag { font-size: 0.8rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.route-or { align-self: center; font-family: var(--display); font-size: 1.3rem; color: var(--muted); }
.offer-intro { margin-bottom: 0; }
.offer-intro + .service { padding-top: 40px; }
@media (max-width: 860px) {
  .route-pair { grid-template-columns: 1fr; }
  .route-or { justify-self: center; }
}

/* About: firm mark, values under the firm, bio sizing */
.firm-mark img { width: min(240px, 60%); height: auto; margin-top: 28px; opacity: 0.92; }
.firm-base { margin-top: 20px; }
.split + .wrap .values { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--rule); }
.bio p { font-size: 0.97rem; }
.bio .role { font-size: 1.1rem; font-weight: 500; color: var(--ink); margin-top: -0.2em; }
.credential + .actions { margin-top: 36px; }

/* Footer logo */
.site-footer .wrap { align-items: center; }
.footer-brand { line-height: 0; margin-right: auto; }
.footer-brand img { height: 40px; width: auto; }
.site-footer .wrap > p:first-of-type { flex-basis: 100%; order: 3; }

/* About: firm text left; large mark and values right */
.firm { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.firm-side { display: flex; flex-direction: column; align-items: flex-start; gap: 40px; }
.firm-mark-img { width: min(320px, 80%); height: auto; opacity: 0.92; }
.values.compact { margin-top: 0; gap: 22px 36px; }
.values.compact h3 { font-size: 1.1rem; }
.values.compact p { font-size: 0.95rem; }
@media (max-width: 860px) {
  .firm { grid-template-columns: 1fr; gap: 40px; }
  .firm-mark-img { width: 200px; }
}
/* About: no mark; a vertical rule separates the story from the values */
.firm-side { border-left: 1px solid var(--rule); padding-left: 48px; gap: 20px; align-self: stretch; padding-top: 10px; }
.firm-side-title { font-size: 1.35rem; margin: 0; }
.values.compact { grid-template-columns: 1fr; gap: 20px; }
@media (max-width: 860px) { .firm-side { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); padding-top: 32px; } }
/* Tighter vertical spacing for the About sections */
section.tight { padding: clamp(40px, 5vw, 64px) 0; }
.firm { gap: 48px; }
.firm-side { padding-top: 6px; }
.firm .small:last-child { margin-bottom: 0; }
.tight .credential { margin-top: 32px; }
/* Contact: what to expect */
.contact-list { margin: 24px 0 0; }
.steps { margin: 0; padding-left: 1.2em; display: grid; gap: 14px; }
.steps li { max-width: 52ch; }
.steps li::marker { font-family: var(--display); color: var(--muted); }
