:root {
  color-scheme: dark;
  --ink: #eefcf8;
  --muted: #9fb7b2;
  --soft: #111b1a;
  --paper: #050908;
  --surface: #0c1413;
  --surface-strong: #121f1d;
  --line: rgba(154, 255, 228, 0.18);
  --accent: #4df0bf;
  --accent-strong: #9affdf;
  --blue: #68c7ff;
  --ochre: #f3b35a;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.46);
  --glow: 0 0 34px rgba(77, 240, 191, 0.18);
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(154, 255, 228, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(154, 255, 228, 0.035) 1px, transparent 1px),
    linear-gradient(120deg, rgba(77, 240, 191, 0.1), transparent 32%),
    linear-gradient(140deg, #050908 0%, #071211 46%, #11100b 100%);
  background-size: 56px 56px, 56px 56px, auto, auto;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(115deg, rgba(104, 199, 255, 0.08), transparent 28%),
    linear-gradient(295deg, rgba(243, 179, 90, 0.08), transparent 34%);
  opacity: 0.85;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(calc(100% - 2rem), 1040px);
  margin: 1.1rem auto 0;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 12, 11, 0.78);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid rgba(77, 240, 191, 0.52);
  border-radius: 6px;
  color: #05110f;
  background: linear-gradient(135deg, var(--accent), var(--blue));
  box-shadow: 0 0 28px rgba(77, 240, 191, 0.22);
  font-family: Inter, system-ui, sans-serif;
  font-weight: 800;
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav a {
  padding: 0.52rem 0.8rem;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(77, 240, 191, 0.1);
  color: var(--accent-strong);
  outline: none;
}

.hero {
  position: relative;
  min-height: 82vh;
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: 8.5rem 1rem 4.5rem;
  border-bottom: 1px solid var(--line);
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--accent), var(--blue), transparent);
  opacity: 0.75;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center 38%;
  filter: grayscale(0.85) saturate(0.7) contrast(1.24) brightness(0.28);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(5, 9, 8, 0.97) 0%, rgba(5, 9, 8, 0.9) 43%, rgba(5, 9, 8, 0.46) 76%),
    linear-gradient(180deg, rgba(5, 9, 8, 0.94) 0%, rgba(5, 9, 8, 0.24) 48%, rgba(5, 9, 8, 0.98) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100%, var(--max-width));
  margin: 0 auto;
}

.eyebrow,
.section-kicker,
.project-label {
  margin: 0 0 0.85rem;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 800;
  text-shadow: 0 0 42px rgba(154, 255, 228, 0.16);
}

h2 {
  max-width: 860px;
  font-size: clamp(2rem, 4vw, 3.45rem);
  font-weight: 800;
}

h3 {
  font-size: 1.3rem;
  font-weight: 800;
}

.hero-copy {
  max-width: 720px;
  margin: 1.35rem 0 0;
  color: #c4d8d4;
  font-size: clamp(1.04rem, 2vw, 1.24rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(154, 255, 228, 0.28);
  border-radius: 6px;
  padding: 0.72rem 1.05rem;
  font-weight: 800;
  text-decoration: none;
  transition: box-shadow 160ms ease, transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button.primary {
  color: #04110e;
  background: linear-gradient(135deg, var(--accent), var(--blue));
  box-shadow: 0 0 32px rgba(77, 240, 191, 0.2);
}

.button.secondary {
  color: var(--accent-strong);
  background: rgba(12, 20, 19, 0.74);
}

.button:hover,
.button:focus-visible {
  border-color: rgba(154, 255, 228, 0.62);
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34), var(--glow);
  outline: none;
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(100%, 760px);
  margin: 2.5rem 0 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(10, 18, 17, 0.78);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(14px);
}

.signal-strip div {
  padding: 1rem;
}

.signal-strip div + div {
  border-left: 1px solid var(--line);
}

.signal-strip dt {
  margin-bottom: 0.25rem;
  color: var(--ochre);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.signal-strip dd {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
}

.section {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
  padding: 5.5rem 0;
  border-bottom: 1px solid var(--line);
}

.intro,
.split-section,
.resume-section,
.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 6vw, 5rem);
}

.section-body p,
.resume-panel p,
.project-card p,
.skill-group p {
  margin: 0;
  color: var(--muted);
}

.section-body {
  display: grid;
  gap: 1rem;
  font-size: 1.06rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 1.1rem;
  margin-top: 2.25rem;
}

.project-card {
  position: relative;
  display: grid;
  min-height: 360px;
  overflow: hidden;
  align-content: space-between;
  gap: 1.5rem;
  padding: 1.55rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(18, 31, 29, 0.94), rgba(9, 15, 14, 0.96)),
    var(--surface);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.34);
  transition: box-shadow 160ms ease, transform 160ms ease, border-color 160ms ease;
}

.project-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, var(--accent), var(--blue), var(--ochre));
  opacity: 0.84;
}

.project-card:hover {
  border-color: rgba(154, 255, 228, 0.4);
  box-shadow: var(--shadow), var(--glow);
  transform: translateY(-2px);
}

.project-card h3 {
  margin-bottom: 0.8rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  border: 1px solid rgba(104, 199, 255, 0.26);
  border-radius: 999px;
  padding: 0.32rem 0.62rem;
  color: #bde9ff;
  background: rgba(104, 199, 255, 0.08);
  font-size: 0.83rem;
  font-weight: 800;
}

.project-links,
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.project-links a,
.contact-links a,
.site-footer a {
  color: var(--accent-strong);
  font-weight: 800;
  text-decoration-color: rgba(77, 240, 191, 0.42);
  text-underline-offset: 0.22em;
}

.skill-groups {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(12, 20, 19, 0.82);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.28);
}

.skill-group {
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid var(--line);
}

.skill-group:last-child {
  border-bottom: 0;
}

.skill-group h3 {
  margin-bottom: 0.45rem;
  font-size: 1.2rem;
}

.resume-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.45rem;
  border: 1px solid rgba(243, 179, 90, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(243, 179, 90, 0.12), transparent 48%),
    rgba(12, 20, 19, 0.86);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.28);
}

.resume-panel p {
  max-width: 560px;
}

.contact-links {
  align-content: start;
  font-size: 1rem;
}

.contact-links a {
  min-height: 2.75rem;
  padding: 0.62rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(12, 20, 19, 0.82);
  text-decoration: none;
}

.contact-links a:hover,
.contact-links a:focus-visible {
  border-color: rgba(154, 255, 228, 0.42);
  box-shadow: var(--glow);
  outline: none;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
  padding: 1.5rem 0 2rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 840px) {
  .site-header {
    align-items: flex-start;
  }

  .site-nav {
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .hero {
    min-height: 72vh;
    padding-top: 8.5rem;
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(5, 9, 8, 0.96) 0%, rgba(5, 9, 8, 0.88) 64%, rgba(5, 9, 8, 0.98) 100%);
  }

  .intro,
  .split-section,
  .resume-section,
  .contact-section,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 3.5rem 0;
  }

  .project-card {
    min-height: 280px;
  }

  .signal-strip {
    grid-template-columns: 1fr;
  }

  .signal-strip div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .resume-panel {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .site-header {
    position: absolute;
    display: grid;
    grid-template-columns: auto 1fr;
    width: calc(100% - 1rem);
    margin-top: 0.5rem;
    padding: 0.55rem;
  }

  .site-nav a {
    padding: 0.42rem 0.48rem;
    font-size: 0.82rem;
  }

  h1 {
    font-size: 3.1rem;
  }

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

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