/*
  Cody Altman Portfolio Styles
  Edit colors in :root, replace placeholder project visuals, and update layout sections as needed.
*/
:root {
  --bg: #08090d;
  --bg-soft: #11131a;
  --bg-card: rgba(23, 25, 34, 0.78);
  --bg-card-solid: #171922;
  --text: #f6f2ea;
  --muted: #b9b4aa;
  --muted-2: #858078;
  --red: #9f1d2d;
  --red-bright: #c72c3f;
  --gold: #d3a94f;
  --amber: #f0c46a;
  --line: rgba(211, 169, 79, 0.22);
  --white-line: rgba(255, 255, 255, 0.09);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
  --radius: 22px;
  --max-width: 1160px;
  --header-height: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(159, 29, 45, 0.18), transparent 34rem),
    radial-gradient(circle at 85% 15%, rgba(211, 169, 79, 0.12), transparent 30rem),
    linear-gradient(135deg, #07080b 0%, #11131a 48%, #090a0f 100%);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}

body.nav-open {
  overflow: hidden;
}

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

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

.skip-link {
  background: var(--gold);
  color: #121212;
  font-weight: 800;
  left: 1rem;
  padding: 0.7rem 1rem;
  position: fixed;
  top: -5rem;
  z-index: 999;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  backdrop-filter: blur(18px);
  background: rgba(8, 9, 13, 0.82);
  border-bottom: 1px solid var(--white-line);
  min-height: var(--header-height);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: var(--max-width);
  min-height: var(--header-height);
  padding: 0 1.3rem;
}

.brand {
  align-items: center;
  display: inline-flex;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.04rem;
  font-weight: 700;
  gap: 0.75rem;
  letter-spacing: 0.02em;
}

.brand-mark {
  align-items: center;
  background: linear-gradient(135deg, var(--red), var(--gold));
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(159, 29, 45, 0.28);
  color: #fff;
  display: inline-flex;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.nav-menu {
  align-items: center;
  display: flex;
  gap: 0.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  border-radius: 999px;
  color: var(--muted);
  display: inline-flex;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.55rem 0.78rem;
  transition: color 180ms ease, background 180ms ease;
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
  background: rgba(211, 169, 79, 0.1);
  color: var(--text);
  outline: none;
}

.nav-toggle {
  background: transparent;
  border: 1px solid var(--white-line);
  border-radius: 12px;
  cursor: pointer;
  display: none;
  height: 44px;
  padding: 0.65rem;
  width: 48px;
}

.nav-toggle span {
  background: var(--text);
  border-radius: 99px;
  display: block;
  height: 2px;
  margin: 5px 0;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.section-shell,
.content-section,
.resume-cta,
.site-footer {
  margin: 0 auto;
  max-width: var(--max-width);
  padding-left: 1.3rem;
  padding-right: 1.3rem;
}

.hero {
  align-items: center;
  display: grid;
  gap: 3rem;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.68fr);
  min-height: calc(100vh - var(--header-height));
  overflow: hidden;
  padding-bottom: 5rem;
  padding-top: 5rem;
  position: relative;
}

.hero::before,
.hero::after {
  border: 1px solid var(--line);
  content: "";
  pointer-events: none;
  position: absolute;
}

.hero::before {
  height: 170px;
  left: 34%;
  top: 16%;
  transform: rotate(35deg);
  width: 170px;
}

.hero::after {
  border-left: 0;
  border-top: 0;
  bottom: 12%;
  height: 140px;
  right: 6%;
  width: 240px;
}

.hero-grid-bg {
  background-image:
    linear-gradient(var(--white-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--white-line) 1px, transparent 1px);
  background-size: 54px 54px;
  inset: 0;
  mask-image: radial-gradient(circle at 40% 50%, black, transparent 72%);
  opacity: 0.28;
  position: absolute;
}

.orb {
  border-radius: 999px;
  filter: blur(3px);
  opacity: 0.65;
  position: absolute;
}

.orb-red {
  background: rgba(159, 29, 45, 0.52);
  height: 9px;
  left: 12%;
  top: 26%;
  width: 9px;
}

.orb-gold {
  background: var(--gold);
  box-shadow: 0 0 28px rgba(211, 169, 79, 0.55);
  height: 10px;
  right: 38%;
  top: 32%;
  width: 10px;
}

.hero-content,
.profile-card,
.content-section > *,
.resume-panel {
  position: relative;
  z-index: 1;
}

.eyebrow {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  margin: 0 0 1rem;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.08;
  margin: 0;
}

h1 {
  font-size: clamp(3.6rem, 9vw, 7.6rem);
  letter-spacing: -0.08em;
}

.hero h2 {
  color: #fff9ee;
  font-size: clamp(2rem, 4vw, 4rem);
  margin-top: 0.6rem;
  max-width: 780px;
}

.hero-copy {
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  margin: 1.5rem 0 0;
  max-width: 720px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.2rem;
}

.btn {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.2rem;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, background 180ms ease;
}

.btn:hover,
.btn:focus-visible {
  outline: none;
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--red), #66141f);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  box-shadow: 0 18px 42px rgba(159, 29, 45, 0.28);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  box-shadow: 0 22px 54px rgba(159, 29, 45, 0.38);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--amber);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: rgba(211, 169, 79, 0.1);
  border-color: rgba(211, 169, 79, 0.48);
}

.profile-card {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03)),
    var(--bg-card);
  border: 1px solid var(--white-line);
  border-radius: 32px;
  box-shadow: var(--shadow);
  padding: 1rem;
}

.profile-frame {
  background: linear-gradient(135deg, rgba(159, 29, 45, 0.24), rgba(211, 169, 79, 0.2));
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 0.75rem;
}

.headshot-placeholder {
  align-items: center;
  aspect-ratio: 4 / 5;
  background:
    radial-gradient(circle at 50% 24%, rgba(211, 169, 79, 0.24), transparent 32%),
    linear-gradient(145deg, #21232e, #0e0f15 70%);
  border-radius: 22px;
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 800;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.headshot-placeholder::before {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  content: "";
  height: 100%;
  left: -80%;
  position: absolute;
  transform: skewX(-18deg);
  width: 50%;
}

.profile-meta {
  padding: 1.3rem 0.5rem 0.4rem;
}

.code-chip {
  border: 1px solid rgba(211, 169, 79, 0.3);
  border-radius: 999px;
  color: var(--amber);
  display: inline-flex;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(0.74rem, 1.6vw, 0.86rem);
  line-height: 1.2;
  margin: 0 0 1rem;
  max-width: 100%;
  padding: 0.45rem 0.72rem;
  white-space: nowrap;
}

.profile-meta h3 {
  font-size: 1.55rem;
}

.profile-meta p:last-child {
  color: var(--muted);
  margin-bottom: 0;
}

.content-section {
  padding-bottom: 5.5rem;
  padding-top: 5.5rem;
}

.alt-section {
  max-width: none;
  position: relative;
}

.alt-section::before {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.035), rgba(159, 29, 45, 0.035));
  border-bottom: 1px solid var(--white-line);
  border-top: 1px solid var(--white-line);
  content: "";
  inset: 0;
  position: absolute;
  z-index: 0;
}

.alt-section > * {
  margin-left: auto;
  margin-right: auto;
  max-width: var(--max-width);
}

.section-heading {
  margin-bottom: 2rem;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  max-width: 820px;
}

.section-intro {
  color: var(--muted);
  max-width: 680px;
}

.about-layout {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1fr) 360px;
}

.about-layout > p {
  color: var(--muted);
  font-size: 1.14rem;
  margin: 0;
}

.about-stats {
  display: grid;
  gap: 0.9rem;
}

.about-stats div,
.skill-card,
.feature-card,
.project-card,
.contact-card,
.form-mockup,
.resume-panel {
  background: var(--bg-card);
  border: 1px solid var(--white-line);
  border-radius: var(--radius);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.18);
}

.about-stats div {
  border-left: 3px solid var(--gold);
  padding: 1rem;
}

.about-stats strong {
  color: var(--red-bright);
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.5rem;
}

.about-stats span {
  color: var(--muted);
  font-weight: 700;
}

.skill-grid,
.card-grid,
.project-grid {
  display: grid;
  gap: 1rem;
}

.skill-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.skill-card {
  min-height: 140px;
  padding: 1.1rem;
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.skill-card:hover,
.feature-card:hover,
.project-card:hover {
  border-color: rgba(211, 169, 79, 0.42);
  transform: translateY(-4px);
}

.skill-card span {
  color: var(--gold);
  display: inline-flex;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 800;
  margin-bottom: 1rem;
}

.skill-card h3 {
  font-size: 1rem;
}

.card-grid,
.project-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.project-card {
  overflow: hidden;
  padding: 1.35rem;
  transition: border-color 180ms ease, transform 180ms ease;
}

.feature-card {
  border-top: 3px solid rgba(159, 29, 45, 0.82);
}

.feature-card h3,
.project-body h3 {
  font-size: 1.25rem;
}

.feature-card p,
.project-body p {
  color: var(--muted);
}

.project-card {
  padding: 0;
}

.project-visual {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(159, 29, 45, 0.48), rgba(211, 169, 79, 0.24)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 22px);
  border-bottom: 1px solid var(--white-line);
  display: flex;
  min-height: 150px;
  justify-content: center;
}

.project-visual span {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 800;
  padding: 0.5rem 0.8rem;
}

.project-body {
  padding: 1.3rem;
}

.tag {
  color: var(--gold);
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
}

.project-body a {
  color: var(--amber);
  font-weight: 800;
}

.project-body a:hover,
.project-body a:focus-visible {
  color: #fff;
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.project-actions a {
  border: 1px solid rgba(211, 169, 79, 0.28);
  border-radius: 999px;
  color: var(--amber);
  display: inline-flex;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 0.55rem 0.75rem;
}

.project-actions a:hover,
.project-actions a:focus-visible {
  background: rgba(211, 169, 79, 0.1);
  border-color: rgba(211, 169, 79, 0.52);
  color: #fff;
  outline: none;
}

.resume-cta {
  padding-bottom: 5.5rem;
  padding-top: 5.5rem;
}

.resume-panel {
  background:
    linear-gradient(135deg, rgba(159, 29, 45, 0.2), rgba(211, 169, 79, 0.08)),
    var(--bg-card-solid);
  padding: clamp(1.5rem, 4vw, 3rem);
  position: relative;
  overflow: hidden;
}

.resume-panel::after {
  color: rgba(255, 255, 255, 0.05);
  content: "</>";
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(6rem, 16vw, 12rem);
  font-weight: 800;
  position: absolute;
  right: 2rem;
  top: 0;
}

.resume-panel h2,
.resume-panel p,
.resume-panel a {
  position: relative;
  z-index: 1;
}

.resume-panel h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.resume-panel p {
  color: var(--muted);
  max-width: 620px;
}

.contact-layout {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.75fr);
}

.contact-card,
.form-mockup {
  padding: 1.35rem;
}

.contact-card a {
  border-bottom: 1px solid var(--white-line);
  color: var(--text);
  display: block;
  font-weight: 800;
  padding: 1rem 0;
}

.contact-card a:last-child {
  border-bottom: 0;
}

.contact-card span {
  color: var(--gold);
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.form-mockup div {
  border: 1px solid var(--white-line);
  border-radius: 14px;
  color: var(--muted-2);
  margin-bottom: 0.8rem;
  padding: 0.85rem;
}

.mock-label {
  color: var(--gold);
  font-weight: 800;
  margin-top: 0;
}

.site-footer {
  align-items: center;
  border-top: 1px solid var(--white-line);
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  padding-bottom: 2rem;
  padding-top: 2rem;
}

.site-footer strong {
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
}

.site-footer p {
  margin: 0.2rem 0 0;
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-links a {
  color: var(--amber);
  font-weight: 800;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 620ms ease, transform 620ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

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

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

  .skill-grid,
  .card-grid,
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 68px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-menu {
    background: rgba(10, 11, 16, 0.97);
    border-bottom: 1px solid var(--white-line);
    border-top: 1px solid var(--white-line);
    display: grid;
    gap: 0.4rem;
    left: 0;
    opacity: 0;
    padding: 1rem 1.3rem 1.4rem;
    pointer-events: none;
    position: fixed;
    right: 0;
    top: var(--header-height);
    transform: translateY(-12px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .nav-menu.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-menu a {
    border: 1px solid var(--white-line);
    justify-content: center;
    padding: 0.82rem;
    width: 100%;
  }

  .hero {
    padding-bottom: 3.5rem;
    padding-top: 3.5rem;
  }

  .content-section,
  .resume-cta {
    padding-bottom: 4rem;
    padding-top: 4rem;
  }

  .skill-grid,
  .card-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .hero-actions,
  .btn {
    width: 100%;
  }

  h1 {
    font-size: clamp(3.1rem, 20vw, 4.2rem);
  }
}

/* Visual polish pass: darker banner-inspired tech layers, refined cards, and stronger red/gold accents. */
body::before {
  background:
    linear-gradient(115deg, transparent 0 18%, rgba(211, 169, 79, 0.055) 18.2% 18.55%, transparent 18.8% 100%),
    linear-gradient(65deg, transparent 0 74%, rgba(159, 29, 45, 0.08) 74.2% 74.55%, transparent 74.8% 100%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: fixed;
  z-index: -1;
}

.site-header {
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.28);
}

.brand-mark,
.btn-primary,
.profile-card,
.feature-card,
.project-card,
.resume-panel {
  position: relative;
}

.brand-mark::after,
.profile-card::after,
.feature-card::after,
.project-card::after,
.resume-panel::before {
  background: linear-gradient(90deg, var(--gold), transparent 58%, var(--red-bright));
  content: "";
  height: 1px;
  left: 18px;
  opacity: 0.7;
  position: absolute;
  right: 18px;
  top: 0;
}

.hero {
  isolation: isolate;
}

.hero::before {
  background:
    linear-gradient(135deg, rgba(159, 29, 45, 0.1), transparent 58%),
    linear-gradient(45deg, transparent 0 47%, rgba(211, 169, 79, 0.35) 47.4% 48%, transparent 48.4% 100%);
  border-color: rgba(211, 169, 79, 0.32);
  box-shadow: inset 0 0 34px rgba(211, 169, 79, 0.05), 0 0 48px rgba(159, 29, 45, 0.08);
}

.hero::after {
  background: linear-gradient(135deg, transparent, rgba(159, 29, 45, 0.08));
  border-color: rgba(159, 29, 45, 0.34);
}

.hero-circuit {
  inset: 8% 1.3rem 10%;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

.hero-circuit::before,
.hero-circuit::after {
  background: linear-gradient(90deg, transparent, rgba(211, 169, 79, 0.34), rgba(159, 29, 45, 0.22), transparent);
  content: "";
  height: 1px;
  position: absolute;
}

.hero-circuit::before {
  left: 4%;
  top: 21%;
  width: 42%;
}

.hero-circuit::after {
  bottom: 18%;
  right: 2%;
  width: 34%;
}

.hero-circuit span {
  border: 1px solid rgba(211, 169, 79, 0.36);
  border-radius: 999px;
  box-shadow: 0 0 24px rgba(211, 169, 79, 0.14);
  height: 12px;
  position: absolute;
  width: 12px;
}

.hero-circuit span:nth-child(1) {
  left: 44%;
  top: 19.5%;
}

.hero-circuit span:nth-child(2) {
  background: rgba(159, 29, 45, 0.3);
  left: 7%;
  top: 59%;
}

.hero-circuit span:nth-child(3) {
  bottom: 16.5%;
  right: 35%;
}

.hero-circuit span:nth-child(4) {
  border-color: rgba(159, 29, 45, 0.48);
  right: 10%;
  top: 28%;
}

.hero-glyphs {
  color: rgba(246, 242, 234, 0.07);
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.8rem, 5vw, 5.6rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  pointer-events: none;
  position: absolute;
  right: 3%;
  top: 11%;
  transform: rotate(-2deg);
  white-space: nowrap;
  z-index: 0;
}

.hero-content::before {
  background: linear-gradient(180deg, var(--gold), var(--red));
  content: "";
  height: 86%;
  left: -1.45rem;
  max-height: 420px;
  position: absolute;
  top: 7%;
  width: 3px;
}

.hero h1 {
  text-shadow: 0 8px 36px rgba(0, 0, 0, 0.42), 0 0 28px rgba(211, 169, 79, 0.08);
}

.hero h2 {
  background: linear-gradient(90deg, #fff8ed 0%, #d3a94f 48%, #f5efe5 100%);
  background-clip: text;
  color: transparent;
  -webkit-background-clip: text;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.5rem;
}

.hero-proof span,
.profile-status span {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(211, 169, 79, 0.22);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0.42rem 0.7rem;
  text-transform: uppercase;
}

.profile-card {
  transform-style: preserve-3d;
}

.profile-card::before {
  border: 1px solid rgba(211, 169, 79, 0.18);
  border-radius: 34px;
  content: "";
  inset: -10px 12px 12px -10px;
  pointer-events: none;
  position: absolute;
  transform: translateZ(-1px);
}

.headshot-placeholder {
  background:
    radial-gradient(circle at 50% 18%, rgba(246, 242, 234, 0.16), transparent 12%),
    radial-gradient(circle at 50% 34%, rgba(246, 242, 234, 0.1) 0 13%, transparent 13.5%),
    radial-gradient(ellipse at 50% 72%, rgba(159, 29, 45, 0.26) 0 28%, transparent 29%),
    linear-gradient(145deg, #222531, #0a0b10 72%);
}

.headshot-placeholder::after {
  background:
    linear-gradient(90deg, transparent 0 12%, rgba(211, 169, 79, 0.13) 12.4% 12.8%, transparent 13.2% 100%),
    linear-gradient(0deg, transparent 0 70%, rgba(255, 255, 255, 0.08) 70.3% 70.6%, transparent 71% 100%);
  content: "";
  inset: 0;
  position: absolute;
}

.portrait-initials {
  position: relative;
  z-index: 2;
}

.portrait-ring {
  border: 1px solid rgba(211, 169, 79, 0.38);
  border-left-color: rgba(159, 29, 45, 0.62);
  border-radius: 999px;
  height: 58%;
  position: absolute;
  width: 58%;
}

.profile-status {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.1rem;
}

.section-heading {
  position: relative;
}

.section-heading::after {
  background: linear-gradient(90deg, var(--gold), rgba(159, 29, 45, 0.7), transparent);
  content: "";
  display: block;
  height: 2px;
  margin-top: 1.1rem;
  max-width: 260px;
}

.skill-card,
.feature-card,
.project-card,
.contact-card,
.form-mockup,
.resume-panel {
  backdrop-filter: blur(14px);
}

.skill-card::before,
.feature-card::before,
.project-card::before,
.contact-card::before,
.form-mockup::before {
  border-left: 1px solid rgba(211, 169, 79, 0.38);
  border-top: 1px solid rgba(211, 169, 79, 0.38);
  content: "";
  height: 18px;
  left: 12px;
  opacity: 0.8;
  pointer-events: none;
  position: absolute;
  top: 12px;
  width: 18px;
}

.skill-card,
.contact-card,
.form-mockup {
  position: relative;
}

.skill-card {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)),
    var(--bg-card);
}

.skill-card span {
  align-items: center;
  background: rgba(211, 169, 79, 0.09);
  border: 1px solid rgba(211, 169, 79, 0.18);
  border-radius: 12px;
  min-height: 34px;
  justify-content: center;
  padding: 0 0.5rem;
}

.feature-card,
.project-card {
  background:
    radial-gradient(circle at top right, rgba(211, 169, 79, 0.08), transparent 35%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    var(--bg-card);
}

.project-visual {
  min-height: 170px;
  position: relative;
}

.project-visual::before,
.project-visual::after {
  content: "";
  position: absolute;
}

.project-visual::before {
  border: 1px solid rgba(255, 255, 255, 0.12);
  inset: 18px;
}

.project-visual::after {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  height: 1px;
  left: 12%;
  top: 48%;
  width: 76%;
}

.contact-card a,
.footer-links a,
.project-body a {
  transition: color 180ms ease, transform 180ms ease;
}

.contact-card a:hover,
.contact-card a:focus-visible,
.footer-links a:hover,
.footer-links a:focus-visible,
.project-body a:hover,
.project-body a:focus-visible {
  transform: translateX(3px);
}

@media (max-width: 980px) {
  .hero-content::before {
    height: 100%;
  }

  .hero-glyphs {
    right: -12%;
    top: 8%;
  }
}

@media (max-width: 760px) {
  .hero-content::before {
    left: -0.75rem;
  }

  .hero-circuit,
  .hero-glyphs {
    opacity: 0.48;
  }

  .profile-card::before {
    display: none;
  }
}

/* Requested content/layout updates and asset-preview support. */
.hero-content {
  padding-left: clamp(0.75rem, 2vw, 1.5rem);
}

.headshot-placeholder img {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
  z-index: 3;
}

.headshot-placeholder img.is-missing {
  display: none;
}

.project-visual {
  border: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
  padding: 0;
  width: 100%;
}

.project-visual img {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
  z-index: 1;
}

.project-visual img.is-missing {
  display: none;
}

.project-visual span {
  position: relative;
  z-index: 2;
}

.project-visual:focus-visible {
  outline: 3px solid rgba(240, 196, 106, 0.9);
  outline-offset: -3px;
}

.project-card:has(.project-visual:focus-visible) {
  border-color: rgba(211, 169, 79, 0.52);
}

.resume-panel {
  text-align: center;
}

.resume-panel p {
  margin-left: auto;
  margin-right: auto;
}

.resume-panel .btn {
  margin-left: auto;
  margin-right: auto;
}

.contact-layout {
  grid-template-columns: minmax(280px, 640px);
  justify-content: center;
}

.contact-card {
  width: 100%;
}

.lightbox {
  align-items: center;
  background: rgba(5, 6, 10, 0.88);
  display: none;
  inset: 0;
  justify-content: center;
  padding: 1.2rem;
  position: fixed;
  z-index: 1000;
}

.lightbox.is-open {
  display: flex;
}

.lightbox figure {
  margin: 0;
  max-width: min(1100px, 94vw);
  width: 100%;
}

.lightbox img {
  background: var(--bg-card-solid);
  border: 1px solid rgba(211, 169, 79, 0.34);
  border-radius: 22px;
  box-shadow: var(--shadow);
  max-height: 82vh;
  object-fit: contain;
  width: 100%;
}

.lightbox figcaption {
  color: var(--amber);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 800;
  margin-top: 0.85rem;
  text-align: center;
}

.lightbox-close {
  align-items: center;
  background: rgba(159, 29, 45, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-size: 2rem;
  height: 48px;
  justify-content: center;
  line-height: 1;
  position: fixed;
  right: 1.2rem;
  top: 1.2rem;
  width: 48px;
}

.project-detail-title {
  font-size: clamp(2.6rem, 7vw, 5rem);
  letter-spacing: -0.05em;
}

.project-detail-layout {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  margin-bottom: 1.5rem;
}

.project-detail-preview,
.project-detail-card {
  background: var(--bg-card);
  border: 1px solid var(--white-line);
  border-radius: var(--radius);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.project-detail-preview {
  margin: 0;
}

.project-detail-preview img {
  height: 100%;
  max-height: 560px;
  object-fit: cover;
  width: 100%;
}

.project-detail-card {
  padding: 1.35rem;
}

.project-detail-card h2,
.project-detail-grid h2 {
  font-size: 1.35rem;
  margin-bottom: 0.8rem;
}

.project-detail-card p,
.project-detail-grid li {
  color: var(--muted);
}

.project-detail-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-detail-grid ul {
  margin: 0;
  padding-left: 1.15rem;
}

.project-detail-grid li + li {
  margin-top: 0.55rem;
}

.project-actions-detail a:first-child {
  background: linear-gradient(135deg, rgba(159, 29, 45, 0.65), rgba(211, 169, 79, 0.16));
}

@media (max-width: 980px) {
  .project-detail-layout,
  .project-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .hero-content {
    padding-left: 0.85rem;
  }
}


/* Headshot refinement: crop the uploaded image from the center without distortion and remove the old ring overlay. */
.headshot-placeholder img {
  height: 112%;
  left: 50%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
  top: 50%;
  transform: translate(-50%, -50%) scale(1.08);
  transform-origin: center;
  width: 112%;
}

.portrait-ring {
  display: none;
}
