/* ==========================================================================
   brandontu.com
   Navy / Alike serif / layered ridgeline hero.
   Class names are held stable across pages so every page inherits the theme.
   ========================================================================== */

:root {
  --navy:       #184468;
  --navy-deep:  #0F2E47;
  --navy-mid:   #2C6494;
  --navy-tint:  #E9EFF4;
  --navy-wash:  #F5F8FA;

  --ink:        #2B3238;
  --muted:      #5D6B76;
  --faint:      #8A959E;
  --rule:       #DCE3E9;
  --rule-soft:  #EBF0F4;
  --bg:         #FFFFFF;

  --serif:  "Alike", Georgia, "Times New Roman", serif;
  --sans:   "Source Sans 3", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --script: "Mrs Saint Delafield", "Brush Script MT", cursive;

  --wrap: 1180px;
  --measure: 36em;
  --gutter: 1.5rem;
}

/* --------------------------------------------------------------- reset -- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1 0 auto; }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: -0.005em;
  color: var(--navy);
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

a { color: var(--navy); }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--navy-mid);
  outline-offset: 3px;
}

/* ----------------------------------------------------------- structure -- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  background: var(--navy);
  color: #fff;
  padding: 0.75rem 1.25rem;
  font-family: var(--sans);
  font-size: 0.875rem;
  z-index: 100;
}
.skip-link:focus { left: 0; top: 0; }

/* -------------------------------------------------------------- header -- */

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--rule);
  position: relative;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: 1.1rem;
  flex-wrap: wrap;
}

/* --- logo lockup: signature wordmark, left --- */

.logo {
  text-decoration: none;
  display: block;
  line-height: 1;
  flex: 0 0 auto;
}

.logo-sig {
  display: block;
  font-family: var(--script);
  font-size: 2.75rem;
  line-height: 0.92;
  color: var(--navy);
  letter-spacing: 0.01em;
}

.logo-rule {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--navy);
  opacity: 0.28;
  margin: 0.3rem 0 0.35rem;
}

.logo-name {
  display: block;
  font-family: var(--sans);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --- nav, right --- */

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.85rem;
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  padding-block: 0.35rem;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
  font-size: 0.8125rem;
}

.site-nav a:hover { color: var(--navy); }

.site-nav a[aria-current="page"] {
  color: var(--navy);
  border-bottom-color: var(--navy);
}

@media (max-width: 46em) {
  .header-inner { justify-content: center; text-align: center; }
  .site-nav { justify-content: center; gap: 0.25rem 1.25rem; }
}

/* ---------------------------------------------------------------- hero -- */

.hero {
  position: relative;
  background: linear-gradient(180deg, #0C2237 0%, #13344F 45%, #27587D 100%);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/ridge.svg");
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  z-index: -2;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8,24,38,0.80) 0%, rgba(8,24,38,0.55) 48%, rgba(8,24,38,0.18) 100%);
  z-index: -1;
}

.hero-inner {
  position: relative;
  padding-block: clamp(3.5rem, 9vw, 6.5rem);
  max-width: 46rem;
}

.hero--full .hero-inner {
  min-height: min(68vh, 34rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(4.5rem, 12vw, 9rem);
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.1rem, 4.6vw, 3.5rem);
  line-height: 1.16;
  margin-bottom: 1.5rem;
  max-width: 19ch;
}

.hero .lede {
  font-size: clamp(1.0625rem, 1.7vw, 1.25rem);
  line-height: 1.68;
  color: rgba(255,255,255,0.88);
  max-width: 44ch;
  margin: 0;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
  margin: 0 0 1.35rem;
}

.section .eyebrow { color: var(--navy-mid); }

/* --- credentials strip under the hero --- */

.credentials {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.92);
  border-top: 1px solid rgba(255,255,255,0.10);
}

.credentials-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2.75rem;
  padding-block: 1.1rem;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.credentials-inner span { white-space: nowrap; }
.credentials-inner span + span { position: relative; }

/* ------------------------------------------------------------- section -- */

.section {
  padding-block: clamp(3rem, 6.5vw, 5.25rem);
}

.section + .section { border-top: 1px solid var(--rule-soft); }

.section--alt {
  background: var(--navy-wash);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.section--alt + .section { border-top: none; }

.section-head {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  margin-bottom: 1.75rem;
}

.section-num {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--navy-mid);
  font-variant-numeric: tabular-nums;
}

.section-label {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--faint);
}

.section h2 {
  font-size: clamp(1.6rem, 3.1vw, 2.35rem);
  max-width: 22ch;
  margin-bottom: 1.4rem;
}

.section--alt h2, .section--alt h3 { color: var(--navy-deep); }

.prose { max-width: var(--measure); font-size: 1.0625rem; color: var(--ink); }
.prose-wide { max-width: 48em; }

.prose a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}
.prose a:hover { color: var(--navy-mid); }

/* --------------------------------------------------------------- pull -- */

.pull {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  line-height: 1.42;
  color: var(--navy);
  max-width: 28ch;
  margin-block: 2.5rem;
  padding-left: 1.5rem;
  border-left: 3px solid var(--navy);
}

/* --------------------------------------------------------------- misc -- */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  background: var(--navy);
  padding: 0.85rem 1.75rem;
  border: 1px solid var(--navy);
  transition: background 0.16s ease, color 0.16s ease;
}
.btn:hover { background: var(--navy-mid); border-color: var(--navy-mid); }

.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.55); }
.btn--ghost:hover { background: rgba(255,255,255,0.12); border-color: #fff; }

/* -------------------------------------------------------------- tenets -- */

.tenets { list-style: none; margin: 0; padding: 0; counter-reset: tenet; }

.tenets > li {
  counter-increment: tenet;
  padding-block: 2rem;
  border-top: 1px solid var(--rule-soft);
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  gap: 0 1.5rem;
  align-items: start;
}
.tenets > li:first-child { border-top: none; padding-top: 0; }

.tenets > li::before {
  content: counter(tenet, decimal-leading-zero);
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--navy-mid);
  font-variant-numeric: tabular-nums;
  padding-top: 0.5rem;
}

.tenets h3 { font-size: 1.25rem; margin-bottom: 0.6rem; max-width: 30ch; }
.tenets .body { max-width: var(--measure); color: var(--muted); }
.tenets .body strong { color: var(--ink); font-weight: 600; }

@media (max-width: 40em) {
  .tenets > li { grid-template-columns: 1fr; gap: 0.5rem; }
  .tenets > li::before { padding-top: 0; }
}

/* ---------------------------------------------------------------- grid -- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.card {
  background: #fff;
  padding: 2rem 1.75rem 2.15rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  transition: background 0.18s ease;
}
.card:hover { background: var(--navy-wash); }

.card .card-num {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--navy-mid);
}

.card h3 { font-size: 1.3125rem; }
.card p { color: var(--muted); font-size: 0.9875rem; line-height: 1.65; margin: 0; }

.card .card-go {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  margin-top: auto;
  padding-top: 0.85rem;
}

/* -------------------------------------------------------------- stages -- */

.stages { list-style: none; margin: 0; padding: 0; }

.stages > li {
  display: grid;
  grid-template-columns: minmax(0, 19rem) minmax(0, 1fr);
  gap: 1rem 3rem;
  padding-block: 2.25rem;
  border-top: 1px solid var(--rule-soft);
}
.stages > li:first-child { border-top: none; padding-top: 0; }

.stage-key .num {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--navy-mid);
  display: block;
  margin-bottom: 0.55rem;
}

.stage-key h3 { font-size: 1.375rem; max-width: 17ch; }

.stage-body { color: var(--muted); max-width: var(--measure); }
.stage-body strong { color: var(--ink); font-weight: 600; }
.stage-body ul { margin: 1em 0 0; padding-left: 1.1em; }
.stage-body li { margin-bottom: 0.45em; }

@media (max-width: 52em) {
  .stages > li { grid-template-columns: 1fr; gap: 0.75rem; }
}

/* -------------------------------------------------------------- models -- */

.model {
  border: 1px solid var(--rule);
  border-top: 3px solid var(--navy);
  background: #fff;
  padding: clamp(1.6rem, 3.6vw, 2.5rem);
  margin-bottom: 1.5rem;
}

.model-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-bottom: 1.4rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--rule-soft);
}

.model-head h3 { font-size: clamp(1.25rem, 2.3vw, 1.5rem); max-width: 26ch; }

.tag {
  font-family: var(--sans);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  background: var(--navy);
  padding: 0.35rem 0.7rem;
  white-space: nowrap;
}

.model-rows { display: grid; gap: 1.35rem; }

.model-row {
  display: grid;
  grid-template-columns: minmax(0, 10.5rem) minmax(0, 1fr);
  gap: 0.35rem 2rem;
}

.model-row dt {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  padding-top: 0.35rem;
}

.model-row dd { margin: 0; color: var(--muted); max-width: var(--measure); }
.model-row dd strong { color: var(--ink); font-weight: 600; }

@media (max-width: 44em) {
  .model-row { grid-template-columns: 1fr; gap: 0.2rem; }
  .model-row dt { padding-top: 0; }
}

/* --------------------------------------------------------- two-column -- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

@media (max-width: 52em) { .split { grid-template-columns: 1fr; } }

.portrait { border: 1px solid var(--rule); }

.portrait-caption {
  font-family: var(--sans);
  font-size: 0.8125rem;
  color: var(--faint);
  margin-top: 0.8rem;
}

/* -------------------------------------------------------------- lists -- */

.plain-list { list-style: none; margin: 0; padding: 0; }

.plain-list > li {
  padding-block: 1.2rem;
  border-top: 1px solid var(--rule-soft);
  display: grid;
  grid-template-columns: minmax(0, 14rem) minmax(0, 1fr);
  gap: 0.3rem 2.5rem;
  color: var(--muted);
}
.plain-list > li:first-child { border-top: none; }

.plain-list .term {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--navy);
}

@media (max-width: 44em) { .plain-list > li { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------- note -- */

.note {
  border-left: 3px solid var(--rule);
  padding: 0.2rem 0 0.2rem 1.4rem;
  color: var(--muted);
  font-size: 0.9875rem;
  max-width: var(--measure);
  margin-block: 1.75rem;
}

/* ------------------------------------------------------------ next-up -- */

.next-up { border-top: 1px solid var(--rule); padding-block: clamp(2.25rem, 4.5vw, 3.5rem); }

.next-up a { text-decoration: none; display: inline-flex; flex-direction: column; gap: 0.4rem; }

.next-up .label {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--faint);
}

.next-up .title {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--navy);
  transition: color 0.15s ease;
}
.next-up a:hover .title { color: var(--navy-mid); }

/* -------------------------------------------------------------- footer -- */

.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.72);
  padding-block: 3rem 2.25rem;
  margin-top: auto;
}

.site-footer h2, .site-footer h3 { color: #fff; }

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.75rem 2rem;
  padding-bottom: 2.25rem;
}

.footer-name {
  font-family: var(--script);
  font-size: 2.1rem;
  line-height: 1;
  color: #fff;
  margin: 0 0 0.45rem;
}

.footer-note { font-size: 0.9375rem; margin: 0; max-width: 34ch; color: rgba(255,255,255,0.66); }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  align-items: flex-start;
}

.footer-links a {
  color: rgba(255,255,255,0.80);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.22);
  padding-bottom: 2px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.footer-links a:hover { color: #fff; border-bottom-color: #fff; }

.colophon {
  font-family: var(--sans);
  font-size: 0.78125rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.48);
  margin: 0;
  max-width: 68ch;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255,255,255,0.14);
}

/* ------------------------------------------------------ TK placeholder --
   Draft marker. Every .tk is copy awaiting real detail.
   Delete this rule and unwrap the spans before the site is final.
   -------------------------------------------------------------------- */

.tk {
  background: #FFF3D6;
  border-bottom: 1px dashed #C79A2E;
  padding: 0 0.15em;
}

/* --------------------------------------------------------------- lorem -- */

.lorem { color: var(--muted); }

@media (max-width: 30em) { :root { --gutter: 1.15rem; } }
