:root {
  --bg: #07111f;
  --bg-deep: #040915;
  --panel: rgba(10, 18, 31, 0.88);
  --panel-strong: rgba(8, 15, 27, 0.96);
  --line: rgba(175, 205, 245, 0.14);
  --text: #f3f6fb;
  --muted: #9fb0c9;
  --accent: #6cb6ff;
  --accent-soft: #8dd8ff;
  --accent-gold: #d7be79;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --max-width: 1180px;
  --space-section: clamp(1.4rem, 2.8vw, 2.25rem);
  --space-card: clamp(1.35rem, 2.3vw, 2rem);
  --space-gap: clamp(0.9rem, 1.8vw, 1.35rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 12%, rgba(108, 182, 255, 0.12), transparent 22%),
    radial-gradient(circle at 82% 8%, rgba(141, 216, 255, 0.08), transparent 18%),
    radial-gradient(circle at 50% 78%, rgba(108, 182, 255, 0.06), transparent 26%),
    linear-gradient(180deg, #08111f 0%, #050b15 45%, #03070f 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.24) 0 1px, transparent 1.4px),
    radial-gradient(circle, rgba(255, 255, 255, 0.14) 0 1px, transparent 1.4px);
  background-position: 0 0, 48px 32px;
  background-size: 120px 120px, 160px 160px;
  opacity: 0.18;
}

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

p,
ul {
  margin: 0;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 100;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: var(--panel-strong);
  border: 1px solid var(--line);
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.page-shell {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
  padding-bottom: 4rem;
}

.site-header {
  position: sticky;
  top: 0.75rem;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.75rem;
  padding: 0.95rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(7, 14, 26, 0.94), rgba(7, 14, 26, 0.72));
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(108, 182, 255, 0.22), rgba(141, 216, 255, 0.1));
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 0.14rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.brand-copy strong {
  color: var(--text);
  font-size: 0.98rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-nav a {
  transition: color 180ms ease;
}

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

main {
  display: grid;
  gap: var(--space-section);
  padding-top: 1.4rem;
}

.hero,
.section {
  padding: 0;
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--space-gap);
  align-items: stretch;
  min-height: min(640px, calc(100vh - 180px));
}

.hero-copy,
.hero-panel,
.card,
.project-card,
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)),
    var(--panel);
  box-shadow: var(--shadow);
}

.hero-copy,
.hero-panel,
.card,
.project-card {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  padding: var(--space-card);
  min-width: 0;
}

.eyebrow,
.card-label,
.project-meta span {
  margin: 0 0 0.9rem;
  color: var(--accent-soft);
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
strong {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  letter-spacing: -0.03em;
}

h1 {
  max-width: 14ch;
  font-size: clamp(2.35rem, 5vw, 4.1rem);
  line-height: 0.98;
  text-wrap: balance;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
  word-wrap: normal;
  hyphens: none;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.06;
  max-width: 14ch;
}

h3 {
  font-size: 1.6rem;
  margin-bottom: 0.35rem;
}

p,
li {
  color: var(--muted);
  line-height: 1.7;
}

.hero-summary {
  max-width: 58ch;
  font-size: 1.03rem;
}

.focus-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.25rem;
}

.focus-list span {
  padding: 0.58rem 0.82rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  font-size: 0.88rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 0.15rem;
}

.availability-note {
  margin-top: 0.1rem;
  margin-bottom: 0;
  color: rgba(243, 246, 251, 0.8);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 154px;
  padding: 0.95rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.24);
}

.button-primary {
  background: linear-gradient(135deg, rgba(108, 182, 255, 0.22), rgba(141, 216, 255, 0.14));
}

.button-secondary {
  background: rgba(255, 255, 255, 0.03);
}

.hero-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-stat-grid,
.metric-grid,
.section-grid,
.project-grid,
.contact-grid {
  display: grid;
  gap: var(--space-gap);
}

.hero-stat-grid,
.metric-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hero-stat,
.metric-card {
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.hero-stat span,
.metric-card span,
.timeline span,
.contact-card span {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--accent-gold);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-stat strong,
.metric-card strong,
.contact-card strong {
  font-size: 0.98rem;
  line-height: 1.5;
}

.panel-note {
  margin: 0;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.quick-link-panel {
  display: grid;
  gap: 0.7rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.quick-link-panel a {
  color: var(--accent-soft);
  word-break: break-word;
}

.section-heading {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1.15rem;
}

.section-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.section-grid-resume {
  grid-template-columns: 1.15fr 0.85fr;
}

.bullet-list,
.tag-list {
  display: grid;
  gap: 0.8rem;
  padding-left: 1.1rem;
  margin: 0;
}

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

.project-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.65rem;
}

.project-meta span:last-child {
  color: rgba(255, 255, 255, 0.68);
}

.tag-list {
  margin-top: 0.1rem;
  margin-bottom: 0.9rem;
}

.tech-line {
  margin-top: 0;
  margin-bottom: 1rem;
  color: rgba(243, 246, 251, 0.76);
  font-size: 0.92rem;
}

.project-card a,
.contact-card {
  color: var(--text);
}

.project-card a {
  margin-top: auto;
  color: var(--accent-soft);
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.chip-list span {
  padding: 0.54rem 0.78rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 0.88rem;
}

.timeline {
  display: grid;
  gap: 0.85rem;
}

.timeline article {
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.timeline article:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.timeline strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1.04rem;
}

.timeline p {
  margin: 0;
}

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

.contact-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.8rem;
  min-height: 168px;
  padding: 1.35rem;
}

.contact-card:hover,
.contact-card:focus-visible {
  border-color: rgba(255, 255, 255, 0.24);
}

.contact-card strong {
  word-break: break-word;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 1080px) {
  .hero,
  .section-grid-two,
  .section-grid-resume,
  .project-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .contact-card {
    min-height: 0;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(calc(100% - 1rem), var(--max-width));
  }

  .site-header {
    border-radius: 28px;
    flex-wrap: wrap;
    padding: 1rem;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.2rem;
  }

  .hero,
  .section {
    padding: 0;
  }

  .hero-copy,
  .hero-panel,
  .card,
  .project-card {
    padding: 1.25rem;
  }

  .hero-stat-grid,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: none;
    font-size: clamp(1.7rem, 6.8vw, 2.35rem);
    line-height: 1.03;
    letter-spacing: -0.03em;
  }

  h2 {
    max-width: none;
    font-size: clamp(1.8rem, 9vw, 2.45rem);
  }

  .site-nav {
    gap: 0.85rem;
  }
}

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