:root {
  color-scheme: dark;
  --bg: #0d0f14;
  --bg-2: #111820;
  --panel: rgba(20, 25, 32, 0.82);
  --panel-strong: #171d25;
  --text: #f3eee7;
  --muted: #b3afa8;
  --soft: #7f8995;
  --line: rgba(243, 238, 231, 0.12);
  --line-strong: rgba(214, 167, 96, 0.34);
  --sage: #a8b79d;
  --copper: #d6a760;
  --blue: #7fa6b8;
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.34);
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

/* Base */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    radial-gradient(circle at 80% 8%, rgba(127, 166, 184, 0.2), transparent 30rem),
    radial-gradient(circle at 8% 0%, rgba(214, 167, 96, 0.16), transparent 26rem),
    linear-gradient(180deg, #11131a 0%, var(--bg) 48%, #090b0f 100%);
  background-size: 36px 36px, 36px 36px, auto, auto, auto;
}

body::selection {
  color: #0d0f14;
  background: var(--copper);
}

a {
  color: inherit;
}

.shell {
  width: min(1120px, calc(100% - 44px));
  margin: 0 auto;
}

/* Header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(13, 15, 20, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.nav {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 850;
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--copper);
  font-family: var(--mono);
  font-size: 0.78rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.82rem;
}

.nav-links a {
  text-decoration: none;
  transition: color 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--copper);
}

.resume-pill {
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--copper);
}

/* Hero */
.hero {
  min-height: calc(100vh - 74px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 0.42fr);
  gap: 44px;
  align-items: center;
  padding: 72px 0 92px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  color: var(--copper);
  font-family: var(--mono);
  font-size: 0.9rem;
}

.eyebrow::before {
  content: "";
  width: 42px;
  height: 1px;
  background: var(--line-strong);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 10.5ch;
  margin-bottom: 22px;
  font-size: clamp(3.55rem, 9vw, 7.6rem);
  line-height: 0.88;
  letter-spacing: 0;
}

.subtitle {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.72;
}

.subtitle strong {
  color: var(--text);
  font-weight: 780;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 19px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--copper);
  background: rgba(214, 167, 96, 0.06);
  font-family: var(--mono);
  font-size: 0.86rem;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  background: rgba(214, 167, 96, 0.12);
  border-color: rgba(214, 167, 96, 0.62);
}

.signal-panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(23, 29, 37, 0.9), rgba(17, 24, 32, 0.82));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.signal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  color: var(--soft);
  font-family: var(--mono);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 22px rgba(168, 183, 157, 0.72);
}

.signal-grid {
  display: grid;
  gap: 1px;
  background: var(--line);
}

.signal {
  padding: 20px;
  background: rgba(17, 24, 32, 0.96);
}

.signal span {
  display: block;
  margin-bottom: 7px;
  color: var(--soft);
  font-family: var(--mono);
  font-size: 0.75rem;
}

.signal strong {
  display: block;
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.35;
}

/* Sections */
.section {
  padding: 86px 0;
  border-top: 1px solid var(--line);
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.section-title h2 {
  margin-bottom: 0;
  font-size: clamp(2.05rem, 5vw, 4.35rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.section-title p {
  max-width: 430px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.brief {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(270px, 0.28fr);
  gap: 24px;
  align-items: start;
}

.narrative,
.card,
.role {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.narrative {
  padding: 30px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.78;
}

.narrative p {
  margin-bottom: 18px;
}

.narrative p:last-child {
  margin-bottom: 0;
}

.card {
  padding: 24px;
}

.card h3,
.role h3 {
  margin-bottom: 14px;
  color: var(--text);
  font-size: 1.08rem;
}

.contact-stack {
  display: grid;
  gap: 15px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-stack span {
  display: block;
  margin-bottom: 4px;
  color: var(--soft);
  font-family: var(--mono);
  font-size: 0.76rem;
}

.contact-stack a,
.contact-stack strong {
  color: var(--muted);
  text-decoration: none;
}

.contact-stack a:hover,
.contact-stack a:focus-visible {
  color: var(--copper);
}

/* Experience */
.experience-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.role {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.role::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--copper), var(--sage), var(--blue));
  opacity: 0.85;
}

.role-meta {
  margin-bottom: 24px;
  color: var(--soft);
  font-family: var(--mono);
  font-size: 0.76rem;
  line-height: 1.65;
}

.role-title {
  margin-bottom: 18px;
  color: var(--copper);
  font-family: var(--mono);
  font-size: 0.82rem;
}

.role ul,
.award-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  color: var(--muted);
  line-height: 1.6;
  list-style: none;
}

.role li,
.award-list li {
  position: relative;
  padding-left: 18px;
}

.role li::before,
.award-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sage);
}

/* Skills */
.skill-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.38fr) minmax(0, 0.62fr);
  gap: 18px;
}

.stack-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stack-list li {
  padding: 9px 12px;
  border: 1px solid rgba(168, 183, 157, 0.26);
  border-radius: 999px;
  color: var(--text);
  background: rgba(168, 183, 157, 0.08);
  font-family: var(--mono);
  font-size: 0.8rem;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.capability {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(13, 15, 20, 0.36);
}

.capability h3 {
  margin-bottom: 8px;
  color: var(--text);
  font-size: 0.98rem;
}

.capability p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

/* Education */
.education-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.47fr) minmax(0, 0.53fr);
  gap: 18px;
}

.card p {
  color: var(--muted);
  line-height: 1.65;
}

.card p:last-child {
  margin-bottom: 0;
}

/* Closing */
.closing {
  display: grid;
  place-items: center;
  padding: 92px 0 104px;
  text-align: center;
}

.closing h2 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(2.3rem, 5vw, 4.8rem);
  line-height: 1;
}

.closing p {
  max-width: 590px;
  margin-bottom: 30px;
  color: var(--muted);
  line-height: 1.7;
}

.footer {
  padding: 28px 0 42px;
  color: var(--soft);
  font-family: var(--mono);
  font-size: 0.78rem;
  text-align: center;
  border-top: 1px solid var(--line);
}

/* Responsive */
@media (max-width: 920px) {
  .hero,
  .brief,
  .experience-grid,
  .skill-layout,
  .education-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(100% - 28px, 640px);
  }

  .topbar {
    position: static;
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 0;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 12px 16px;
  }

  .hero {
    padding: 52px 0 72px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .section {
    padding: 62px 0;
  }

  .section-title {
    align-items: flex-start;
    flex-direction: column;
  }

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