:root {
  --ink: #14120c;
  --bg: #0c0b09;
  --paper: #f4f0e6;
  --paper-2: #ebe6d8;
  --accent: #c5a35a;
  --accent-deep: #9a7b3c;
  --muted: #6a655a;
  --line: #e2dcce;
  --hero-text: #f4f0e6;
  --kick: #c5a35a;
  --on-accent: #0c0b09;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, sans-serif;
  --mockbar-h: 32px;
  --header-h: 64px;
  --radius: 16px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--mockbar-h) + var(--header-h) + 12px);
}

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul, ol { list-style: none; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: var(--on-accent);
  padding: 8px 14px;
  z-index: 100;
}
.skip:focus { left: 8px; top: 8px; }

.mockbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #111;
  color: #ddd;
  font-size: 12px;
  text-align: center;
  padding: 7px 16px;
  letter-spacing: 0.02em;
  height: var(--mockbar-h);
}

.top {
  position: sticky;
  top: var(--mockbar-h);
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(12px);
  color: var(--hero-text);
  border-bottom: 1px solid color-mix(in srgb, var(--hero-text) 12%, transparent);
  min-height: var(--header-h);
}

.mark {
  display: flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--accent);
}
.mark span {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hero-text);
  opacity: 0.85;
}

nav {
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
}
nav a {
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  opacity: 0.88;
}
nav a:hover,
nav a:focus-visible { opacity: 1; }
nav a.cta {
  border: 1px solid var(--accent);
  color: var(--hero-text);
  padding: 8px 16px;
  border-radius: 999px;
  opacity: 1;
}

.navt {
  display: none;
  background: none;
  border: 1px solid color-mix(in srgb, var(--hero-text) 45%, transparent);
  color: inherit;
  border-radius: 999px;
  padding: 6px 14px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  background: var(--bg);
  color: var(--hero-text);
  padding: clamp(48px, 8vw, 100px) clamp(18px, 4vw, 56px) 0;
}

.hero-in {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 12px;
  font-weight: 600;
  color: var(--kick);
}

h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(44px, 7.2vw, 92px);
  line-height: 0.96;
  margin: 16px 0 22px;
  letter-spacing: -0.02em;
}
h1 em {
  font-style: italic;
  color: var(--accent);
  font-weight: 600;
}

.lede {
  font-size: clamp(16px, 1.6vw, 19px);
  max-width: 32em;
  opacity: 0.9;
}

.hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--on-accent);
  border: 0;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
}
.btn:hover,
.btn:focus-visible { filter: brightness(1.05); }
.btn.ghost {
  background: transparent;
  color: var(--hero-text);
  border: 1px solid color-mix(in srgb, var(--hero-text) 40%, transparent);
}
.btn.dark {
  background: var(--ink);
  color: var(--hero-text);
}

.hero-photo {
  margin: 0;
}
.hero-photo img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7);
  background: #1a1916;
}
.hero-photo figcaption,
.photo figcaption {
  font-size: 11.5px;
  line-height: 1.4;
  margin-top: 8px;
  opacity: 0.72;
}
.hero-photo figcaption { color: color-mix(in srgb, var(--hero-text) 75%, transparent); }

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1200px;
  margin: clamp(40px, 6vw, 72px) auto 0;
  border-top: 1px solid color-mix(in srgb, var(--hero-text) 18%, transparent);
}
.facts li { padding: 26px 18px 32px 0; }
.facts b {
  display: block;
  font-family: var(--display);
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1.15;
  color: var(--accent);
  font-weight: 700;
}
.facts span {
  display: block;
  font-size: 13px;
  margin-top: 8px;
  opacity: 0.8;
}

/* ---------- Layout ---------- */
.sec { padding: clamp(64px, 9vw, 120px) clamp(18px, 4vw, 56px); }
.wrap { max-width: 1200px; margin: 0 auto; }
.two {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-deep);
}
h2 {
  font-family: var(--display);
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.05;
  margin: 10px 0 22px;
  letter-spacing: -0.015em;
}
.bio-copy p { margin-bottom: 16px; font-size: 17px; }
.bio-copy p:last-child { margin-bottom: 0; }

.muted { color: var(--muted); font-size: 15px; }

/* ---------- Photo + placeholders ---------- */
.photo { margin: 0; }
.photo img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 18px;
  background: color-mix(in srgb, var(--ink) 8%, transparent);
}

.ph-slot {
  margin: 0;
  min-height: 100%;
}
.ph-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 8px;
  min-height: 360px;
  height: 100%;
  padding: 28px 24px;
  border: 1.5px dashed color-mix(in srgb, var(--accent) 55%, var(--line));
  border-radius: 18px;
  background:
    repeating-linear-gradient(
      135deg,
      color-mix(in srgb, var(--accent) 7%, transparent) 0 12px,
      transparent 12px 24px
    );
  color: var(--muted);
}
.ph-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
.ph-name {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.15;
}
.ph-hint { font-size: 14px; max-width: 22em; }

/* ---------- Experience / timeline ---------- */
.experience { background: var(--paper); }

.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-left: 2px solid color-mix(in srgb, var(--accent) 55%, var(--line));
  margin-left: 4px;
  padding-left: 0;
}

.job,
.chapter {
  position: relative;
  padding: 0 0 40px 32px;
}
.job::before,
.chapter::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--paper);
}

.dates {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 6px;
}
.job h3,
.role h3 {
  font-family: var(--display);
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 4px;
}
.place {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 12px;
}
.job ul,
.role ul {
  list-style: disc;
  padding-left: 1.15em;
  font-size: 16px;
}
.job li,
.role li { margin-bottom: 8px; padding-left: 2px; }
.job li::marker,
.role li::marker { color: var(--accent-deep); }

.job-photo {
  margin-top: 18px;
}
.job-photo img { border-radius: 16px; }

/* Energy chapter */
.chapter.energy {
  padding-right: 0;
}
.energy-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(22px, 4vw, 48px);
  align-items: start;
}
.energy-visual img {
  width: 100%;
  border-radius: 18px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 62%;
}
.energy .eyebrow { margin-bottom: 0; }
.energy .chapter-title {
  font-family: var(--display);
  font-size: clamp(28px, 3vw, 40px);
  margin: 8px 0 8px;
}
.energy .chapter-lead {
  margin-bottom: 22px;
  font-size: 16px;
  color: color-mix(in srgb, var(--ink) 88%, transparent);
}
.role {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.role:first-of-type { border-top: 0; padding-top: 0; }
.monon {
  margin-top: 8px;
}
.monon img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 40%;
}

/* Army chapter */
.army-grid {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: clamp(22px, 4vw, 48px);
  align-items: start;
}
.army .chapter-title {
  font-family: var(--display);
  font-size: clamp(28px, 3vw, 40px);
  margin: 8px 0 6px;
}
.promo img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 20%;
}

.intern-list .job { padding-bottom: 24px; }
.intern-list .job:last-child { padding-bottom: 0; }

/* ---------- Education ---------- */
.education { background: var(--bg); color: var(--hero-text); }
.education .eyebrow { color: var(--kick); }
.education .place,
.education .muted { color: color-mix(in srgb, var(--hero-text) 70%, transparent); }
.education ul {
  list-style: disc;
  padding-left: 1.15em;
  margin-top: 12px;
}
.education li { margin-bottom: 6px; }
.education li::marker { color: var(--accent); }
.edu-photo img {
  aspect-ratio: 5 / 4;
  object-fit: cover;
  object-position: center 30%;
  box-shadow: 0 24px 50px -28px rgba(0, 0, 0, 0.7);
}
.edu-photo figcaption { color: color-mix(in srgb, var(--hero-text) 70%, transparent); }

/* ---------- Credentials ---------- */
.creds { background: var(--paper-2); }
.cred-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.cred {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 22px;
}
.cred b {
  display: block;
  font-family: var(--display);
  font-size: 22px;
  line-height: 1.2;
  margin-bottom: 8px;
}
.cred span { font-size: 14px; color: var(--muted); }

.hobbies {
  margin-top: 28px;
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 18px;
}
.hobbies b {
  display: block;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 4px;
}

/* ---------- Photographs ---------- */
.photographs { background: var(--paper); }
.gal {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2vw, 24px);
}
.gal .ph-inner { min-height: 280px; }

/* ---------- Contact ---------- */
.contact { background: color-mix(in srgb, var(--accent) 8%, var(--paper)); }
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.vcard {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 22px 0;
}
.vcard a {
  font-weight: 600;
  color: var(--accent-deep);
  text-decoration: none;
  font-size: 16px;
}
.vcard a:hover,
.vcard a:focus-visible { text-decoration: underline; }
.vcard .label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 12px;
}
.note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
}

.form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  display: grid;
  gap: 14px;
  box-shadow: 0 20px 50px -30px rgba(0, 0, 0, 0.35);
}
.formlabel {
  font-size: 13px;
  font-weight: 700;
  background: color-mix(in srgb, var(--accent) 16%, #fff);
  color: var(--accent-deep);
  padding: 9px 12px;
  border-radius: 10px;
}
.form label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.form input,
.form textarea {
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
  background: var(--paper);
}
.form input:focus,
.form textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
.form .btn { justify-self: start; }
.formmsg { font-size: 13px; color: var(--accent-deep); }

/* ---------- Footer ---------- */
.foot {
  background: var(--bg);
  color: var(--hero-text);
  padding: 44px clamp(18px, 4vw, 56px);
}
.foot .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 40px;
  align-items: center;
  justify-content: space-between;
}
.foot b {
  font-family: var(--display);
  font-size: 22px;
  display: block;
  color: var(--accent);
}
.foot span { font-size: 13px; opacity: 0.7; }
.credit {
  width: 100%;
  font-size: 12px;
  opacity: 0.65;
  border-top: 1px solid color-mix(in srgb, var(--hero-text) 14%, transparent);
  padding-top: 16px;
}

#toast {
  position: fixed;
  z-index: 50;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(16px);
  background: var(--bg);
  color: var(--hero-text);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 12px 20px;
  font-size: 14px;
  max-width: min(92vw, 440px);
  text-align: center;
  box-shadow: 0 16px 40px -20px rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
}
#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .navt { display: inline-block; }
  nav {
    display: none;
    position: absolute;
    top: calc(var(--mockbar-h) + var(--header-h));
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 18px 18px;
    border-bottom: 1px solid color-mix(in srgb, var(--hero-text) 12%, transparent);
  }
  nav.open { display: flex; }
  nav a { padding: 10px 0; opacity: 1; }
  nav a.cta { margin-top: 8px; }

  .hero-in,
  .two,
  .energy-grid,
  .army-grid,
  .contact-grid,
  .facts,
  .cred-grid,
  .gal {
    grid-template-columns: 1fr;
  }
  .facts { gap: 0; }
  .facts li {
    padding: 16px 0;
    border-bottom: 1px solid color-mix(in srgb, var(--hero-text) 12%, transparent);
  }
  .hero-photo { max-width: 420px; }
  .energy-visual { order: -1; }
  .energy-visual img { aspect-ratio: 4 / 3; object-position: center 70%; }
  .promo img { aspect-ratio: 4 / 5; }
  .ph-inner { min-height: 240px; }
  h1 { font-size: clamp(40px, 12vw, 64px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  #toast { transition: none; }
}

.edu-dates { color: var(--kick); }
.slot-note { margin: -12px 0 28px; }

code { font-size: 0.92em; }
.ph-hint code, .slot-note code { white-space: nowrap; }

.title-line {
  font-size: clamp(15px, 1.5vw, 18px);
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 16px;
  max-width: 28em;
  line-height: 1.4;
}
.hero-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: center 22%;
  border-radius: 18px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7);
  background: #1a1916;
}
.contact .btn { margin-top: 8px; }
.edu-photos {
  display: grid;
  gap: 18px;
}
.edu-photos .edu-photo:first-child img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 18%;
}
nav a.cta {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}
nav a.cta:hover,
nav a.cta:focus-visible { filter: brightness(1.05); }

.job h3 a,
.role h3 a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 70%, transparent);
}
.job h3 a:hover,
.job h3 a:focus-visible,
.role h3 a:hover,
.role h3 a:focus-visible {
  color: var(--accent-deep);
  border-bottom-color: var(--accent);
}
.job-intro {
  font-size: 16px;
  margin: 0 0 12px;
  max-width: 48em;
}
.job-note {
  font-size: 14px;
  color: var(--muted);
  margin: 12px 0 0;
  max-width: 48em;
}
