/* ==========================================================================
   tgpjr.com — Tim Pittman, Jr.
   Palette is a starting point, not a decision. Retune the tokens below and
   nothing else in this file needs to change.
   ========================================================================== */

:root {
  /* Surfaces — deep navy */
  --bg:            #0a141f;
  --bg-alt:        #0e1b29;
  --bg-deep:       #07101a;
  --bg-raised:     #122335;

  /* One muted brass accent */
  --brass:         #b08d57;
  --brass-bright:  #c9a877;
  --brass-soft:    rgba(176, 141, 87, 0.16);
  --brass-line:    rgba(176, 141, 87, 0.38);

  /* Ink */
  --ink:           #eaf0f6;
  --ink-2:         #a9bacb;
  --ink-3:         #74889b;

  --rule:          rgba(169, 186, 203, 0.13);

  /* Type */
  --serif: "Source Serif 4", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Rhythm */
  --shell:   1120px;
  --gutter:  clamp(20px, 5vw, 48px);
  --band-y:  clamp(72px, 11vw, 148px);
}

/* ---------- 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; }
  * { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(17px, 1.05vw + 14px, 19px);
  line-height: 1.68;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brass-bright); text-decoration: none; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--brass-bright); outline-offset: 3px; }

.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--brass); color: var(--bg-deep); padding: 12px 20px; font-family: var(--sans);
}
.skip:focus { left: 0; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(10, 20, 31, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 66px; }
.topbar__name {
  font-family: var(--sans); font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink);
}
.topbar__nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 30px); }
.topbar__nav a {
  font-family: var(--sans); font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.07em; color: var(--ink-2);
}
.topbar__nav a:hover { color: var(--ink); }
.topbar__cta {
  color: var(--brass-bright) !important;
  border: 1px solid var(--brass-line); border-radius: 2px; padding: 7px 15px;
}
.topbar__cta:hover { background: var(--brass-soft); }
@media (max-width: 720px) {
  .topbar__nav a:not(.topbar__cta) { display: none; }
}

/* ---------- hero ---------- */
.hero { padding: clamp(60px, 9vw, 120px) 0 clamp(56px, 8vw, 104px); }
.hero__grid {
  display: grid; gap: clamp(32px, 5vw, 72px);
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}
.hero__portrait { justify-self: end; }
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__portrait { order: -1; justify-self: start; }
}
h1 {
  font-size: clamp(2.9rem, 7.2vw, 5rem);
  line-height: 1.02; font-weight: 400; letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}
.hero__lede {
  font-size: clamp(1.28rem, 2.3vw, 1.72rem);
  line-height: 1.34; font-weight: 400; color: var(--ink);
  max-width: 26ch; margin: 0 0 1.1em;
  border-left: 2px solid var(--brass); padding-left: clamp(16px, 2vw, 24px);
}
.hero__sub { color: var(--ink-2); max-width: 54ch; margin: 0 0 2.2em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 0; }

.btn {
  display: inline-block; font-family: var(--sans); font-size: 0.83rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 14px 26px; border-radius: 2px;
  background: var(--brass); color: #0b1017; border: 1px solid var(--brass);
  transition: background 0.18s ease, color 0.18s ease;
}
.btn:hover { background: var(--brass-bright); color: #0b1017; }
.btn--ghost { background: transparent; color: var(--ink-2); border-color: var(--rule); }
.btn--ghost:hover { background: transparent; color: var(--ink); border-color: var(--brass-line); }

/* portrait */
/* Source headshot is 240x240. The frame is capped at that size so the image
   is never upscaled; raise --portrait-size only if a larger file is supplied. */
.portrait {
  --portrait-size: 240px;
  margin: 0; position: relative;
  width: min(var(--portrait-size), 62vw); aspect-ratio: 1 / 1;
  border-radius: 50%; overflow: hidden;
  background: var(--bg-raised);
  box-shadow: 0 0 0 1px var(--brass-line), 0 16px 40px rgba(0, 0, 0, 0.38);
}
/* A greyscale source; a faint brass wash ties it to the palette. */
.portrait::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: 50%;
  background: linear-gradient(195deg, rgba(176, 141, 87, 0.18), rgba(176, 141, 87, 0.02) 62%);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 34%; }
.portrait__monogram {
  display: none; position: absolute; inset: 0;
  align-items: center; justify-content: center;
  font-family: var(--serif); font-size: clamp(3.4rem, 8vw, 5.4rem);
  letter-spacing: 0.06em; color: var(--brass); opacity: 0.55;
}
.portrait--fallback .portrait__monogram { display: flex; }

/* ---------- bands ---------- */
section[id] { scroll-margin-top: 84px; }
.band { padding: var(--band-y) 0; border-top: 1px solid var(--rule); }
.band--alt { background: var(--bg-alt); }
.band--contact { background: var(--bg-deep); }

.eyebrow {
  font-family: var(--sans); font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-3);
  margin: 0 0 clamp(26px, 3.6vw, 44px);
  display: flex; align-items: center; gap: 14px;
}
.eyebrow__num { color: var(--brass); }
.eyebrow::after { content: ""; flex: 1; height: 1px; background: var(--rule); }

h2 {
  font-size: clamp(1.85rem, 3.6vw, 2.75rem);
  line-height: 1.16; font-weight: 400; letter-spacing: -0.015em;
  margin: 0 0 clamp(22px, 3vw, 34px); max-width: 24ch;
}
h3 {
  font-family: var(--sans); font-size: 0.95rem; font-weight: 600;
  letter-spacing: 0.02em; color: var(--ink); margin: 0 0 8px;
}

.prose { max-width: 66ch; }
.prose p { margin: 0 0 1.35em; color: var(--ink-2); }
.prose p:last-child { margin-bottom: 0; }
.pull {
  color: var(--ink) !important;
  font-size: clamp(1.12rem, 1.7vw, 1.32rem); line-height: 1.5;
  border-left: 2px solid var(--brass); padding-left: clamp(16px, 2vw, 24px);
  max-width: 60ch; margin-top: clamp(28px, 4vw, 44px);
}

/* ---------- sectors table ---------- */
.sectors { width: 100%; border-collapse: collapse; text-align: left; }
.sectors thead th {
  font-family: var(--sans); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.17em; text-transform: uppercase; color: var(--ink-3);
  padding: 0 0 14px; border-bottom: 1px solid var(--brass-line);
}
.sectors tbody th {
  font-family: var(--sans); font-weight: 600; font-size: 0.97rem; color: var(--ink);
  width: 27%; padding: 26px 32px 26px 0; vertical-align: top; letter-spacing: 0.01em;
}
.sectors tbody td { color: var(--ink-2); padding: 26px 0; vertical-align: top; font-size: 0.97rem; line-height: 1.62; }
.sectors tbody tr + tr th, .sectors tbody tr + tr td { border-top: 1px solid var(--rule); }

@media (max-width: 780px) {
  .sectors, .sectors tbody, .sectors tr, .sectors th, .sectors td { display: block; width: auto; }
  .sectors thead { display: none; }
  .sectors tbody tr { padding: 22px 0; border-top: 1px solid var(--rule); }
  .sectors tbody tr:first-child { border-top: 1px solid var(--brass-line); }
  .sectors tbody tr + tr th, .sectors tbody tr + tr td { border-top: 0; }
  .sectors tbody th { padding: 0 0 8px; color: var(--brass-bright); }
  .sectors tbody td { padding: 0; }
}

/* ---------- engagements ---------- */
/* No item numbers: the section eyebrow already carries a counter, and two
   numbering systems stacked read as an outline rather than a list. */
.engagements {
  list-style: none; margin: clamp(26px, 3.6vw, 40px) 0 0; padding: 0;
  display: grid; gap: 1px; background: var(--rule);
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.engagements li {
  background: var(--bg-alt);
  padding: clamp(24px, 3.4vw, 36px) 0;
}
.engagements h3 {
  margin: 0 0 10px;
  position: relative; padding-left: 20px;
}
.engagements h3::before {
  content: ""; position: absolute; left: 0; top: 0.52em;
  width: 10px; height: 1px; background: var(--brass);
}
.engagements p {
  margin: 0; padding-left: 20px;
  color: var(--ink-2); max-width: 62ch; font-size: 0.97rem;
}

/* ---------- contact ---------- */
.contact__grid {
  display: grid; gap: clamp(40px, 6vw, 76px);
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: start;
}
@media (max-width: 860px) { .contact__grid { grid-template-columns: 1fr; } }

.contact__name { font-size: 1.5rem; margin: 0 0 4px; }
.contact__role { font-family: var(--sans); font-size: 0.88rem; color: var(--brass-bright); margin: 0 0 14px; letter-spacing: 0.02em; }
.contact__org { color: var(--ink-2); margin: 0 0 20px; font-size: 0.97rem; line-height: 1.55; }
.contact__links { margin: 0 0 24px; display: flex; flex-wrap: wrap; gap: 20px; }
.contact__links a { font-family: var(--sans); font-size: 0.86rem; letter-spacing: 0.02em; border-bottom: 1px solid var(--brass-line); padding-bottom: 2px; }
.contact__note { color: var(--ink-3); font-size: 0.93rem; max-width: 34ch; margin: 0; }

.contact__form {
  background: var(--bg-raised); border: 1px solid var(--rule); border-radius: 3px;
  padding: clamp(24px, 3.6vw, 40px);
}
.field { margin-bottom: 20px; }
.field label {
  display: block; font-family: var(--sans); font-size: 0.73rem; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px;
}
.field .opt { text-transform: none; letter-spacing: 0.02em; font-weight: 400; opacity: 0.7; }
.field input, .field textarea {
  width: 100%; background: var(--bg-deep); color: var(--ink);
  border: 1px solid var(--rule); border-radius: 2px;
  padding: 13px 15px; font-family: var(--sans); font-size: 0.95rem; line-height: 1.5;
  transition: border-color 0.16s ease;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus { border-color: var(--brass-line); outline: none; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #c96a5a; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btn--submit { width: 100%; cursor: pointer; margin-top: 6px; }
.btn--submit[disabled] { opacity: 0.55; cursor: progress; }

.formstatus {
  font-family: var(--sans); font-size: 0.88rem; line-height: 1.5;
  margin: 16px 0 0; min-height: 1.2em; color: var(--ink-2);
}
.formstatus[data-state="ok"]  { color: var(--brass-bright); }
.formstatus[data-state="err"] { color: #e0917f; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--rule); background: var(--bg-deep); padding: 34px 0; }
.footer__inner {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-family: var(--sans); font-size: 0.8rem; color: var(--ink-3); letter-spacing: 0.03em;
}
.footer a { color: var(--ink-3); border-bottom: 1px solid var(--rule); }
.footer a:hover { color: var(--brass-bright); }
