:root {
  color-scheme: dark;
  --black: #090908;
  --black-2: #11100d;
  --panel: #14130f;
  --panel-strong: #1d1a14;
  --foreground: #f4efe5;
  --muted: #b9ad9d;
  --line: rgb(244 239 229 / 14%);
  --gold: #d7a84c;
  --gold-soft: rgb(215 168 76 / 18%);
  --red: #b31b1b;
  --red-soft: rgb(179 27 27 / 24%);
  --olive: #74725a;
}

@font-face {
  font-family: "Marine Expressway Condensed";
  src: url("https://www.marines.com/etc.clientlibs/marines/clientlibs/clientlib-v3/resources/fonts/Expressway-Condensed-Extra-Bold.woff2") format("woff2");
  font-display: swap;
  font-stretch: condensed;
  font-weight: 800;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--black);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--foreground);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgb(215 168 76 / 18%), transparent 34rem),
    radial-gradient(circle at 82% 10%, rgb(179 27 27 / 18%), transparent 28rem),
    radial-gradient(circle at 22% 72%, rgb(116 114 90 / 14%), transparent 30rem),
    linear-gradient(180deg, var(--black) 0%, var(--black-2) 52%, var(--black) 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

.shell {
  position: relative;
  width: min(1540px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(22px, 3vw, 48px) 0 56px;
}

.shell::before {
  content: "SYSTEMS / AI / ROBOTICS";
  position: fixed;
  top: 7rem;
  right: -6rem;
  color: rgb(215 168 76 / 5.5%);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(4rem, 9vw, 9rem);
  font-weight: 900;
  letter-spacing: 0.18em;
  line-height: 0.9;
  pointer-events: none;
  transform: rotate(-10deg);
  white-space: nowrap;
}

.shell::after {
  content: "";
  position: fixed;
  top: 5rem;
  right: max(-10rem, -8vw);
  z-index: 0;
  width: min(44rem, 58vw);
  aspect-ratio: 1;
  background-image: url("/marine-corps-emblem-transparent.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  filter: saturate(0.72) contrast(1.08);
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 42%, rgb(0 0 0 / 72%) 58%, transparent 76%);
  mask-image: radial-gradient(ellipse at center, #000 42%, rgb(0 0 0 / 72%) 58%, transparent 76%);
  opacity: 0.075;
  pointer-events: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 430px);
  gap: clamp(32px, 4vw, 76px);
  min-height: min(820px, calc(100svh - 178px));
  padding: clamp(38px, 5vw, 76px);
  border: 1px solid var(--line);
  border-radius: 38px;
  background:
    radial-gradient(circle at 88% 72%, rgb(179 27 27 / 28%), transparent 28rem),
    radial-gradient(circle at 6% 4%, rgb(215 168 76 / 14%), transparent 22rem),
    linear-gradient(135deg, rgb(20 19 15 / 92%), rgb(17 16 13 / 86) 54%, rgb(29 26 20 / 72)),
    linear-gradient(180deg, rgb(244 239 229 / 8%), rgb(244 239 229 / 3%));
  box-shadow: 0 34px 110px rgb(0 0 0 / 42%);
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: clamp(14px, 1.4vw, 22px);
  border: 1px solid rgb(215 168 76 / 26%);
  border-radius: 28px;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -12% -26% 38%;
  height: 34rem;
  background: linear-gradient(90deg, transparent, rgb(179 27 27 / 32%), rgb(215 168 76 / 10%));
  filter: blur(28px);
  transform: rotate(-8deg);
}

.hero-copy,
.profile-card,
.metrics,
.panel {
  position: relative;
  z-index: 1;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 980px;
}

.kicker {
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

h1 {
  max-width: 980px;
  margin: 0;
  font-family: "Marine Expressway Condensed", "Arial Narrow", Arial, Helvetica, sans-serif;
  font-size: clamp(3.5rem, 5vw, 6.1rem);
  font-stretch: condensed;
  line-height: 0.92;
  letter-spacing: -0.035em;
  font-weight: 800;
  text-transform: uppercase;
  text-wrap: balance;
}

.lede,
.sublede {
  max-width: 880px;
  margin: 24px 0 0;
  color: rgb(244 239 229 / 90%);
  font-size: clamp(1rem, 1.2vw, 1.18rem);
  line-height: 1.62;
}

.sublede {
  margin-top: 14px;
  color: var(--muted);
}

.pills,
.actions,
.link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.compact-summary {
  max-width: 820px;
  margin: 24px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.pills span {
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(20 19 15 / 78%);
  color: var(--foreground);
  font-size: 0.86rem;
  font-weight: 700;
}

.button,
.link-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(20 19 15 / 74%);
  color: var(--foreground);
  font-weight: 800;
}

.button:hover,
.link-list a:hover {
  border-color: rgb(215 168 76 / 44%);
  background: rgb(179 27 27 / 18%);
  color: var(--gold);
}

.button.primary {
  border-color: rgb(244 239 229 / 22%);
  background: var(--gold);
  color: var(--black);
}

.profile-card {
  align-self: center;
  padding: clamp(18px, 1.8vw, 28px);
  border: 1px solid var(--line);
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgb(20 19 15 / 86%), rgb(29 26 20 / 72)),
    rgb(20 19 15 / 66%);
  box-shadow: 0 30px 72px rgb(0 0 0 / 34%);
  backdrop-filter: blur(14px);
}

.profile-photo {
  width: 100%;
  aspect-ratio: 1;
  border: 2px solid rgb(215 168 76 / 48%);
  border-radius: 26px;
  object-fit: cover;
  box-shadow: 0 18px 44px rgb(0 0 0 / 35%);
}

.profile-card h2,
.panel h2 {
  margin: 22px 0 12px;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

dl,
dt,
dd {
  margin: 0;
}

dl {
  display: grid;
  gap: 16px;
}

dt {
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

dd {
  margin-top: 4px;
  color: rgb(244 239 229 / 88%);
  line-height: 1.55;
}

code {
  color: var(--foreground);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.grid {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgb(20 19 15 / 82%);
  box-shadow: 0 18px 50px rgb(0 0 0 / 22%);
}

.grid {
  grid-template-columns: 1.2fr 1fr 1fr;
}

.panel {
  padding: 26px;
}

.panel h2 {
  margin-top: 0;
}

.panel p,
.repo-list span {
  color: var(--muted);
  line-height: 1.65;
}

.repo-list {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.repo-list li {
  display: grid;
  gap: 4px;
}

.repo-list a {
  color: var(--foreground);
  font-weight: 900;
}

.repo-list a:hover {
  color: var(--gold);
}

@media (max-width: 900px) {
  .hero,
  .grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
    padding: 28px;
  }

  .profile-card {
    max-width: 420px;
  }
}

@media (min-width: 901px) and (max-width: 1220px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) 330px;
  }

  h1 {
    font-size: clamp(3.25rem, 6vw, 5rem);
  }
}

@media (max-width: 560px) {
  .shell {
    width: min(100% - 20px, 1540px);
    padding: 10px 0 28px;
  }

  .hero {
    padding: 22px;
    border-radius: 22px;
  }

  .hero::before {
    inset: 10px;
    border-radius: 16px;
  }

  h1 {
    font-size: clamp(2.75rem, 15vw, 4rem);
  }

  .actions .button,
  .link-list a {
    width: 100%;
  }
}
