:root {
  --bg: #080c0f;
  --panel: #0b1115;
  --panel-strong: #101820;
  --panel-soft: #0e161b;
  --ink: #eef7f4;
  --muted: #a9b9b4;
  --line: #243037;
  --line-strong: #31434d;
  --cyan: #36d9ff;
  --cyan-soft: rgba(54, 217, 255, 0.1);
  --amber: #e5a73c;
  --amber-soft: rgba(229, 167, 60, 0.11);
  --coral: #f06b4f;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(rgba(54, 217, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(54, 217, 255, 0.025) 1px, transparent 1px),
    var(--bg);
  background-size: 48px 48px;
  color: var(--ink);
  font-family: Manrope, system-ui, sans-serif;
  line-height: 1.55;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid transparent;
  color: var(--ink);
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  border-bottom-color: var(--line);
  background: rgba(8, 12, 15, 0.92);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
}

.brand small {
  color: var(--cyan);
  font-family: "DM Mono", monospace;
  font-size: 0.66rem;
  font-weight: 500;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--cyan);
  border-radius: 6px;
  background: #0d1a20;
  color: var(--cyan);
  font-family: "DM Mono", monospace;
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: 0 0 28px rgba(54, 217, 255, 0.12);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 30px);
  color: #c7d4d0;
  font-size: 0.82rem;
  font-weight: 700;
}

.site-nav a {
  position: relative;
  padding: 7px 0;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--cyan);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
  color: #fff;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle svg,
.button svg,
.intro-list svg,
.project-card svg,
.site-footer svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.1;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 124px clamp(18px, 4vw, 56px) 74px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 68% 40%, rgba(54, 217, 255, 0.07), transparent 62%),
    var(--bg);
}

html.has-custom-cursor,
html.has-custom-cursor * {
  cursor: none !important;
}

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

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(8, 12, 15, 0.92) 0%, rgba(8, 12, 15, 0.66) 42%, rgba(8, 12, 15, 0.08) 82%),
    linear-gradient(0deg, rgba(8, 12, 15, 0.5), rgba(8, 12, 15, 0.02));
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(820px, 100%);
}

.eyebrow,
.section-kicker,
.project-meta,
.timeline-date {
  font-family: "DM Mono", monospace;
  text-transform: uppercase;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 600;
}

.hero h1 {
  max-width: 11ch;
  margin: 0;
  font-size: 5rem;
  line-height: 0.95;
}

.hero-copy {
  width: min(690px, 100%);
  margin: 24px 0 0;
  color: #becdc8;
  font-size: 1.14rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 24px;
}

.hero-stats span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 7px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: rgba(11, 17, 21, 0.72);
  color: #c6d4cf;
  font-family: "DM Mono", monospace;
  font-size: 0.7rem;
  backdrop-filter: blur(10px);
}

.hero-stats strong {
  color: var(--amber);
  font-weight: 600;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.button.primary {
  border-color: var(--cyan);
  background: var(--cyan);
  color: #061014;
}

.button.secondary {
  border-color: var(--line-strong);
  background: rgba(16, 24, 32, 0.7);
  color: var(--ink);
}

.button.secondary.light {
  border-color: #3c4c54;
  background: rgba(238, 247, 244, 0.04);
}

.section,
.section-band,
.contact {
  padding: 94px clamp(18px, 4vw, 56px);
}

.section {
  background: rgba(8, 12, 15, 0.84);
}

.section-band {
  border-block: 1px solid var(--line);
  background: rgba(11, 17, 21, 0.92);
}

.section-inner {
  width: min(1140px, 100%);
  margin: 0 auto;
}

.section-heading {
  width: min(780px, 100%);
  margin-bottom: 34px;
}

h2,
h3,
p {
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: 2.85rem;
  line-height: 1.06;
}

h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.3;
}

.intro-grid,
.split-panel,
.experience-grid,
.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 1fr);
  gap: clamp(34px, 7vw, 84px);
  align-items: start;
}

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

.intro-list span {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 60px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-strong);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
}

.intro-list svg {
  color: var(--cyan);
}

.current-build-section {
  border-bottom: 1px solid var(--line);
  background: #090e12;
}

.build-heading {
  width: 100%;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--amber);
  font-family: "DM Mono", monospace;
  font-size: 0.66rem;
}

.live-indicator i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 12px rgba(229, 167, 60, 0.65);
}

.current-build {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, 0.72fr);
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.build-main {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 17px;
}

.build-avatar {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border: 1px solid var(--cyan);
  border-radius: 6px;
  background: #0d1b22;
  color: var(--cyan);
  font-family: "DM Mono", monospace;
  font-weight: 600;
}

.build-main h3 {
  font-size: 1.3rem;
}

.build-main p {
  max-width: 660px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.tech-stack,
.cert-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}

.tech-stack span,
.cert-list span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: rgba(16, 24, 32, 0.7);
  color: #cad8d3;
  font-family: "DM Mono", monospace;
  font-size: 0.62rem;
}

.agent-loop {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #070b0e;
  font-family: "DM Mono", monospace;
  font-size: 0.66rem;
}

.agent-loop div {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 8px;
  color: #91a49d;
}

.agent-loop b {
  color: var(--cyan);
  font-weight: 500;
}

.agent-loop em {
  color: var(--amber);
  font-style: normal;
}

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

.project-card {
  display: flex;
  min-height: 300px;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-strong);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
}

.project-card.accent {
  border-color: rgba(229, 167, 60, 0.75);
  background: linear-gradient(180deg, var(--amber-soft), var(--panel-strong) 54%);
}

.project-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--cyan);
  font-size: 0.66rem;
  font-weight: 600;
}

.project-card p,
.about-copy p,
.timeline-item p,
.contact p,
.detail-grid p,
.skill-matrix p,
.resume-sidebar p,
.resume-main p {
  margin: 10px 0 0;
  color: var(--muted);
}

.project-card a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 800;
}

.compact-grid .project-card {
  min-height: 220px;
}

.compact-actions {
  margin-top: 23px;
}

.about-copy {
  font-size: 1rem;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 142px clamp(18px, 4vw, 56px) 92px;
  border-bottom: 1px solid var(--line);
  background-image:
    linear-gradient(90deg, rgba(8, 12, 15, 0.98), rgba(8, 12, 15, 0.83) 56%, rgba(8, 12, 15, 0.35)),
    url("./assets/hero-tech-bro.png");
  background-position: center;
  background-size: cover;
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.8fr);
  gap: clamp(30px, 7vw, 82px);
  align-items: end;
}

.page-hero h1 {
  margin: 0;
  font-size: 4.25rem;
  line-height: 0.98;
}

.page-hero p:not(.eyebrow) {
  margin: 0;
  color: #bdcbc6;
  font-size: 1.02rem;
}

.case-stack {
  display: grid;
  gap: 16px;
}

.case-study {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 22px;
  padding: 24px;
  scroll-margin-top: 96px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
}

.case-study.accent-case {
  border-color: rgba(229, 167, 60, 0.62);
  background: linear-gradient(180deg, var(--amber-soft), var(--panel) 48%);
}

.case-study.active-case {
  border-color: rgba(54, 217, 255, 0.72);
  background: linear-gradient(180deg, var(--cyan-soft), var(--panel) 50%);
  box-shadow: 0 0 42px rgba(54, 217, 255, 0.05);
}

.case-marker {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border: 1px solid var(--cyan);
  border-radius: 6px;
  color: var(--cyan);
  font-family: "DM Mono", monospace;
  font-size: 0.8rem;
  font-weight: 600;
}

.case-body h2 {
  margin: 12px 0 0;
}

.case-body > p {
  max-width: 860px;
  margin: 13px 0 0;
  color: var(--muted);
}

.detail-grid,
.skill-matrix {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.detail-grid div,
.skill-matrix article {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(7, 11, 14, 0.68);
}

.detail-grid h3,
.skill-matrix h3 {
  color: var(--ink);
  font-size: 0.94rem;
}

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

.sticky-heading {
  position: sticky;
  top: 108px;
}

.timeline {
  display: grid;
}

.timeline-item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.timeline-item:last-child {
  border-bottom: 1px solid var(--line);
}

.timeline-date {
  color: var(--amber);
  font-size: 0.66rem;
  font-weight: 600;
}

.resume-grid {
  display: grid;
  grid-template-columns: minmax(235px, 0.34fr) minmax(0, 1fr);
  gap: clamp(30px, 6vw, 72px);
  align-items: start;
}

.resume-sidebar {
  position: sticky;
  top: 108px;
  padding: 21px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--panel-strong);
}

.resume-sidebar::before {
  display: block;
  margin-bottom: 16px;
  color: var(--cyan);
  font-family: "DM Mono", monospace;
  font-size: 0.64rem;
  content: "PROFILE / ONLINE";
}

.resume-sidebar h2 {
  font-size: 1.55rem;
}

.link-list,
.resume-main {
  display: grid;
  gap: 24px;
}

.link-list {
  gap: 9px;
  margin-top: 18px;
}

.link-list a {
  color: var(--cyan);
  font-family: "DM Mono", monospace;
  font-size: 0.72rem;
  font-weight: 500;
}

.resume-main > section {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.resume-main > section:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

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

.contact {
  border-top: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(54, 217, 255, 0.05), transparent 58%),
    #090e12;
}

.contact .section-kicker {
  color: var(--amber);
}

.contact p {
  width: min(590px, 100%);
}

.contact-actions {
  align-content: start;
  margin-top: 2px;
}

.contact-page {
  min-height: calc(100vh - 320px);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  background: #05080a;
  color: #82938d;
  font-family: "DM Mono", monospace;
  font-size: 0.66rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--cyan);
}

@media (max-width: 1040px) {
  .hero h1 {
    font-size: 4.25rem;
  }

  .page-hero h1 {
    font-size: 3.65rem;
  }

  h2 {
    font-size: 2.45rem;
  }

  .current-build {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 860px) {
  .site-header {
    min-height: 68px;
  }

  .brand small {
    display: none;
  }

  .nav-toggle {
    display: grid;
  }

  .site-nav {
    position: absolute;
    top: calc(100% - 1px);
    right: 18px;
    left: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    background: rgba(8, 12, 15, 0.98);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 15px 17px;
    border-bottom: 1px solid var(--line);
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .site-nav a::after {
    content: none;
  }

  .hero {
    min-height: 88vh;
    padding-top: 112px;
  }

  .hero h1 {
    max-width: 10ch;
    font-size: 3.45rem;
  }

  .page-hero {
    padding-top: 120px;
  }

  .page-hero h1 {
    font-size: 3.15rem;
  }

  h2 {
    font-size: 2.15rem;
  }

  .intro-grid,
  .split-panel,
  .experience-grid,
  .contact-inner,
  .project-grid,
  .page-hero-grid,
  .detail-grid,
  .skill-matrix,
  .resume-grid,
  .compact-matrix {
    grid-template-columns: 1fr;
  }

  .sticky-heading,
  .resume-sidebar {
    position: static;
  }

  .case-study {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .brand span:last-child {
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero h1 {
    max-width: 9ch;
    font-size: 2.85rem;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .hero-stats,
  .hero-actions,
  .contact-actions {
    align-items: stretch;
    flex-direction: column;
  }

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

  .intro-list {
    grid-template-columns: 1fr;
  }

  .section,
  .section-band,
  .contact {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .build-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .current-build {
    padding: 18px;
  }

  .build-main {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .build-avatar {
    width: 46px;
    height: 46px;
  }

  .agent-loop div {
    grid-template-columns: 20px 1fr;
  }

  .agent-loop em {
    grid-column: 2;
  }

  .page-hero h1 {
    font-size: 2.65rem;
  }

  .page-hero p:not(.eyebrow) {
    font-size: 0.96rem;
  }

  .case-study {
    padding: 19px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}
