:root {
  --bg: #0d0f12;
  --surface: #171a1f;
  --surface-2: #222832;
  --text: #f4f0e8;
  --muted: #aaa9a2;
  --line: rgba(244, 240, 232, 0.14);
  --cyan: #56d6dd;
  --lime: #c5e86c;
  --rose: #ff7f9c;
  --gold: #f5bd4f;
  --ink: #111318;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: var(--bg);
  font-family: "Inter", Arial, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(100% - 32px, var(--max));
  margin: 18px auto 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(13, 15, 18, 0.78);
  backdrop-filter: blur(18px);
}

.brand,
.nav,
.hero-actions,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  aspect-ratio: 1;
  color: var(--ink);
  border-radius: 6px;
  background: var(--lime);
}

.nav {
  gap: 6px;
}

.nav a {
  padding: 8px 12px;
  color: var(--muted);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
}

.nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: end;
  min-height: 94vh;
  padding: 150px max(24px, calc((100vw - var(--max)) / 2)) 72px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

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

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  background: linear-gradient(180deg, transparent, var(--bg));
  pointer-events: none;
}

.hero-content,
.hero-panel {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.eyebrow,
.section-kicker,
.project-type {
  margin: 0 0 14px;
  color: var(--lime);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: clamp(64px, 13vw, 176px);
  line-height: 0.88;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 690px;
  margin-bottom: 30px;
  color: #ddd9cf;
  font-size: 21px;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  white-space: nowrap;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: var(--ink);
  background: var(--lime);
}

.button.secondary {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.06);
}

.hero-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(23, 26, 31, 0.78);
  backdrop-filter: blur(16px);
}

.hero-panel div {
  padding: 16px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
}

.panel-number {
  display: block;
  margin-bottom: 8px;
  color: var(--cyan);
  font-weight: 800;
}

.hero-panel p {
  margin: 0;
  color: #ddd9cf;
}

.section {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  padding: 96px 0;
}

.intro {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}

.section h2 {
  margin-bottom: 0;
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1;
  letter-spacing: 0;
}

.intro > p,
.contact-section p {
  color: var(--muted);
  font-size: 20px;
}

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

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

.project-card {
  display: grid;
  min-width: 0;
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}

.project-visual {
  position: relative;
  display: grid;
  align-content: end;
  min-height: 250px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(86, 214, 221, 0.24), rgba(245, 189, 79, 0.12));
}

.project-visual span {
  display: block;
  height: 24px;
  margin-top: 12px;
  border-radius: 5px;
  background: rgba(244, 240, 232, 0.86);
}

.project-visual span:nth-child(1) {
  width: 78%;
}

.project-visual span:nth-child(2) {
  width: 54%;
  background: var(--cyan);
}

.project-visual span:nth-child(3) {
  width: 64%;
  background: var(--gold);
}

.waveform {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: linear-gradient(135deg, rgba(197, 232, 108, 0.24), rgba(255, 127, 156, 0.14));
}

.waveform span {
  width: 28px;
  height: 140px;
  margin: 0;
  border-radius: 99px;
  background: var(--lime);
}

.waveform span:nth-child(2) {
  height: 210px;
  background: var(--rose);
}

.waveform span:nth-child(3) {
  height: 96px;
  background: var(--cyan);
}

.waveform span:nth-child(4) {
  height: 166px;
  background: var(--gold);
}

.terminal {
  align-content: center;
  gap: 14px;
  background: #10151a;
}

.terminal code {
  display: block;
  padding: 12px 14px;
  color: var(--lime);
  border: 1px solid rgba(197, 232, 108, 0.24);
  border-radius: 6px;
  background: rgba(197, 232, 108, 0.08);
  font-family: Consolas, "Courier New", monospace;
}

.project-body {
  padding: 28px;
}

.project-body h3,
.skill-column h3,
.process-list h3 {
  margin-bottom: 10px;
  font-size: 24px;
}

.project-body p:last-child,
.process-list p {
  margin-bottom: 0;
  color: var(--muted);
}

.skills-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.skills-layout {
  display: grid;
  grid-template-columns: 1fr 1fr 1.1fr;
  gap: 18px;
}

.skill-column,
.metrics {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

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

.tag-list li {
  padding: 9px 12px;
  color: var(--ink);
  border-radius: 6px;
  background: #f4f0e8;
  font-weight: 800;
}

.metrics {
  display: grid;
  gap: 16px;
  background: linear-gradient(135deg, var(--surface), var(--surface-2));
}

.metrics div {
  display: grid;
  gap: 6px;
}

.metrics strong {
  color: var(--rose);
  font-size: 48px;
  line-height: 1;
}

.metrics span {
  color: var(--muted);
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 1px;
  border-radius: 8px;
  background: var(--line);
  list-style: none;
  overflow: hidden;
}

.process-list li {
  min-width: 0;
  min-height: 260px;
  padding: 26px;
  background: var(--surface);
}

.process-list span {
  display: block;
  margin-bottom: 42px;
  color: var(--gold);
  font-weight: 800;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
  width: min(100% - 40px, var(--max));
  margin: 0 auto 24px;
  padding: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(86, 214, 221, 0.16), rgba(255, 127, 156, 0.14)), var(--surface);
}

.contact-section h2 {
  max-width: 760px;
  margin-bottom: 16px;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1;
}

.contact-section p {
  max-width: 650px;
  margin-bottom: 0;
}

.site-footer {
  justify-content: space-between;
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  padding: 24px 0 36px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

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

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

  .hero,
  .intro,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 42px;
    min-height: auto;
    padding-top: 140px;
  }

  .hero-panel {
    max-width: 620px;
  }

  .project-grid,
  .skills-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .site-header {
    position: absolute;
    gap: 10px;
    width: calc(100% - 24px);
    margin-top: 12px;
    padding: 10px;
  }

  .brand span:last-child {
    display: none;
  }

  .nav a {
    padding: 7px 5px;
    font-size: 12px;
  }

  .hero {
    padding: 118px 20px 56px;
  }

  .hero-content,
  .hero-panel {
    width: 100%;
    max-width: calc(100vw - 40px);
  }

  .hero-lead {
    max-width: 100%;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(48px, 16vw, 72px);
    overflow-wrap: anywhere;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 290px;
  }

  .hero-actions .button {
    width: 100%;
    white-space: normal;
    text-align: center;
  }

  .hero-lead,
  .intro > p,
  .contact-section p {
    font-size: 17px;
  }

  .section {
    width: calc(100% - 32px);
    padding: 70px 0;
  }

  .section-heading {
    display: block;
  }

  .project-card {
    min-height: auto;
  }

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

  .process-list li {
    min-height: 220px;
  }

  .contact-section {
    width: calc(100% - 32px);
    padding: 28px;
  }

  .contact-section .button {
    width: 100%;
  }

  .site-footer {
    display: grid;
    gap: 8px;
    width: calc(100% - 32px);
  }
}
