:root {
  color-scheme: dark;
  --bg: #050606;
  --bg-2: #090c0d;
  --surface: #0d1110;
  --surface-2: #111817;
  --panel: rgba(12, 17, 17, 0.82);
  --line: rgba(174, 232, 221, 0.16);
  --line-strong: rgba(255, 255, 255, 0.2);
  --text: #f4faf7;
  --muted: #a4b2b0;
  --muted-2: #74817f;
  --red: #ff3b4f;
  --cyan: #37e5ff;
  --lime: #c7ff5a;
  --violet: #a78bfa;
  --amber: #f7b955;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  --max: 1160px;
  --header-h: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(55, 229, 255, 0.04), transparent 26rem),
    radial-gradient(circle at 85% 8%, rgba(255, 59, 79, 0.14), transparent 28rem),
    var(--bg);
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 72%);
}

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

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

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

button,
input,
select,
textarea {
  font: inherit;
}

::selection {
  color: #050606;
  background: var(--lime);
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 200;
  padding: 0.75rem 1rem;
  color: #050606;
  background: var(--lime);
  border-radius: 4px;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 5vw;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 6, 6, 0.76);
  backdrop-filter: blur(18px);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.45rem;
  height: 2.45rem;
  color: #050606;
  background: linear-gradient(135deg, var(--lime), var(--cyan));
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  box-shadow: 0 0 30px rgba(55, 229, 255, 0.22);
}

.brand-text {
  white-space: nowrap;
}

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

.nav-links a {
  position: relative;
  padding: 0.65rem 0.85rem;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: 4px;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a[aria-current="page"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.nav-toggle span {
  width: 1.2rem;
  height: 2px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.site-header.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero,
.page-hero,
.not-found {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  padding-top: var(--header-h);
}

.hero-home {
  display: grid;
  align-items: center;
}

.page-hero {
  min-height: 72svh;
  display: grid;
  align-items: end;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  opacity: 0.72;
}

.signal-canvas {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  opacity: 0.7;
}

.hero::after,
.page-hero::after,
.not-found::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(5, 6, 6, 0.95) 0%, rgba(5, 6, 6, 0.72) 46%, rgba(5, 6, 6, 0.18) 100%),
    linear-gradient(180deg, transparent 0%, var(--bg) 100%);
}

.hero-grid,
.page-hero-inner,
.not-found-inner {
  width: min(var(--max), calc(100% - 10vw));
  margin: 0 auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(20rem, 0.62fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(5rem, 12vh, 8rem) 0 clamp(4rem, 10vh, 7rem);
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--lime);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.4;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--text);
  line-height: 1.02;
  letter-spacing: 0;
}

h1 {
  max-width: 11ch;
  font-size: clamp(4rem, 11vw, 9rem);
}

.page-hero h1,
.not-found h1 {
  max-width: 920px;
  font-size: clamp(2.8rem, 7vw, 6.4rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 4.25rem);
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
}

.hero-lead,
.page-hero p,
.not-found p {
  max-width: 760px;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.type-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  min-height: 2rem;
  margin-top: 1.6rem;
  color: var(--muted);
  font-weight: 650;
}

.type-line span {
  color: var(--cyan);
}

.hero-actions,
.section-heading-inline,
.footer-links,
.social-list {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.hero-actions {
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  font-weight: 800;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

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

.button-primary {
  color: #050606;
  background: var(--lime);
  border-color: var(--lime);
  box-shadow: 0 18px 44px rgba(199, 255, 90, 0.16);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--cyan);
  border-color: var(--cyan);
}

.button-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
}

.button-ghost:hover,
.button-ghost:focus-visible {
  border-color: rgba(55, 229, 255, 0.55);
  background: rgba(55, 229, 255, 0.08);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: fit-content;
  color: var(--cyan);
  font-weight: 800;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--lime);
}

.hero-panel,
.dashboard,
.profile-board,
.contact-form,
.contact-card,
.process-list {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.028)),
    rgba(6, 9, 9, 0.86);
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 1rem;
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
  color: var(--text);
  font-weight: 800;
}

.status-dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 18px var(--lime);
}

.metric-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin: 0 0 1rem;
}

.metric-list div {
  min-width: 0;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
}

.metric-list dt {
  color: var(--muted-2);
  font-size: 0.78rem;
}

.metric-list dd {
  margin: 0.35rem 0 0;
  color: var(--text);
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.mini-terminal {
  padding: 1rem;
  border: 1px solid rgba(55, 229, 255, 0.16);
  border-radius: 6px;
  background: #020303;
}

.mini-terminal p {
  margin: 0;
  color: var(--text);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.9rem;
}

.mini-terminal p + p {
  margin-top: 0.55rem;
}

.mini-terminal span {
  color: var(--cyan);
}

.mini-terminal .terminal-muted {
  color: var(--muted-2);
}

.mini-terminal .terminal-ok {
  color: var(--lime);
}

.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.section-dark {
  background: var(--bg);
}

.section-surface {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0)),
    var(--bg-2);
  border-block: 1px solid var(--line);
}

.section-inner {
  width: min(var(--max), calc(100% - 10vw));
  margin: 0 auto;
}

.section-heading {
  max-width: 760px;
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

.section-heading p {
  max-width: 680px;
}

.section-heading-inline {
  justify-content: space-between;
  max-width: none;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(20rem, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}

.feature-grid,
.project-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.feature-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

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

.feature-card,
.project-card,
.timeline-item {
  position: relative;
  min-width: 0;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.feature-card::before,
.project-card::before,
.timeline-item::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, var(--red), var(--cyan), var(--lime));
  opacity: 0.85;
}

.feature-card:hover,
.project-card:hover,
.timeline-item:hover {
  transform: translateY(-4px);
  border-color: rgba(55, 229, 255, 0.36);
  background: rgba(255, 255, 255, 0.055);
}

.feature-kicker,
.project-tag,
.timeline-item span {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.project-tag {
  color: var(--amber);
}

.feature-card p,
.project-card p,
.timeline-item p {
  margin-bottom: 0;
}

.dashboard {
  padding: clamp(1rem, 3vw, 1.5rem);
}

.dashboard-row,
.profile-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}

.dashboard-row:first-child,
.profile-row:first-child {
  padding-top: 0;
}

.dashboard-row strong,
.profile-row strong {
  color: var(--text);
  text-align: right;
}

.dashboard-row span,
.profile-row span {
  color: var(--muted);
}

.progress-track {
  height: 0.45rem;
  margin: 0.25rem 0 1rem;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
}

.progress-track span {
  display: block;
  width: var(--value);
  height: 100%;
  background: linear-gradient(90deg, var(--red), var(--amber), var(--lime));
}

.cta-band {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(110deg, rgba(255, 59, 79, 0.18), rgba(55, 229, 255, 0.08) 52%, rgba(199, 255, 90, 0.12)),
    var(--surface);
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 26px 100%;
}

.cta-inner {
  position: relative;
  max-width: 780px;
  margin-inline: auto;
  text-align: center;
}

.cta-inner p {
  margin-inline: auto;
}

.page-hero-inner {
  padding: clamp(7rem, 16vh, 11rem) 0 clamp(4rem, 10vh, 7rem);
}

.profile-board {
  padding: 1.25rem;
}

.profile-row:last-child,
.dashboard-row:last-of-type {
  border-bottom: 0;
}

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

.timeline-item {
  display: grid;
  grid-template-columns: 8rem minmax(0, 0.55fr) minmax(0, 1fr);
  align-items: baseline;
  gap: 1rem;
}

.timeline-item span {
  margin: 0;
}

.timeline-item p {
  margin: 0;
}

.filter-bar {
  display: inline-flex;
  gap: 0.35rem;
  padding: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
}

.filter-button {
  min-height: 2.5rem;
  padding: 0 0.9rem;
  border: 1px solid transparent;
  border-radius: 4px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.filter-button:hover,
.filter-button:focus-visible,
.filter-button.is-active {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.065);
}

.project-card.is-hidden {
  display: none;
}

.check-list {
  display: grid;
  gap: 0.55rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--muted);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.45rem;
  height: 0.45rem;
  background: var(--lime);
  border-radius: 50%;
  box-shadow: 0 0 14px rgba(199, 255, 90, 0.55);
}

.process-list {
  display: grid;
  gap: 0;
  overflow: hidden;
}

.process-list div {
  display: grid;
  grid-template-columns: 3rem minmax(6rem, 0.32fr) 1fr;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid var(--line);
}

.process-list div:last-child {
  border-bottom: 0;
}

.process-list span {
  color: var(--red);
  font-weight: 900;
}

.process-list strong {
  color: var(--text);
}

.process-list p {
  margin: 0;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(18rem, 0.7fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.contact-aside h2 {
  margin-bottom: 1rem;
}

.contact-card {
  display: grid;
  gap: 0.5rem;
  margin: 2rem 0 1rem;
  padding: 1rem;
}

.contact-card span {
  color: var(--muted-2);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-card a {
  color: var(--cyan);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.copy-button {
  width: fit-content;
  min-height: 2.25rem;
  padding: 0 0.75rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  cursor: pointer;
}

.copy-button:hover,
.copy-button:focus-visible {
  border-color: rgba(55, 229, 255, 0.55);
}

.social-list a {
  color: var(--muted);
  font-weight: 800;
}

.social-list a:hover,
.social-list a:focus-visible {
  color: var(--lime);
}

.contact-form {
  display: grid;
  gap: 1rem;
  padding: clamp(1rem, 3vw, 1.5rem);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

label {
  display: grid;
  gap: 0.45rem;
  color: var(--text);
  font-weight: 800;
}

label span {
  color: var(--muted);
  font-size: 0.86rem;
}

input,
select,
textarea {
  width: 100%;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.045);
  outline: 0;
}

input,
select {
  min-height: 3rem;
  padding: 0 0.9rem;
}

textarea {
  min-height: 10rem;
  resize: vertical;
  padding: 0.9rem;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(55, 229, 255, 0.12);
}

.form-status {
  min-height: 1.5rem;
  margin: 0;
  color: var(--lime);
}

.not-found {
  display: grid;
  align-items: center;
}

.not-found-inner {
  padding: 8rem 0;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 2rem;
  align-items: center;
  padding: 2rem 5vw;
  border-top: 1px solid var(--line);
  background: #030404;
}

.site-footer p {
  margin: 0.45rem 0 0;
}

.footer-links a {
  color: var(--muted);
  font-weight: 800;
}

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

.copyright {
  color: var(--muted-2);
  white-space: nowrap;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 650ms ease, transform 650ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .signal-canvas {
    display: none;
  }
}

@media (max-width: 980px) {
  :root {
    --header-h: 70px;
  }

  .hero-grid,
  .split-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    padding-top: 4rem;
  }

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

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

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

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

  .site-footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-header {
    padding-inline: 1rem;
  }

  .nav-toggle {
    display: grid;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 1rem;
    right: 1rem;
    display: grid;
    gap: 0.35rem;
    padding: 0.75rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(5, 6, 6, 0.96);
    box-shadow: var(--shadow);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-0.5rem);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  }

  .site-header.nav-open .nav-links {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .nav-links a {
    padding: 0.9rem;
  }

  .brand-text {
    max-width: 12rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero-grid,
  .page-hero-inner,
  .not-found-inner,
  .section-inner {
    width: min(100% - 2rem, var(--max));
  }

  h1 {
    font-size: clamp(3.35rem, 16vw, 5rem);
  }

  .page-hero h1,
  .not-found h1 {
    font-size: clamp(2.35rem, 12vw, 4.1rem);
  }

  .hero::after,
  .page-hero::after,
  .not-found::after {
    background:
      linear-gradient(90deg, rgba(5, 6, 6, 0.94), rgba(5, 6, 6, 0.6)),
      linear-gradient(180deg, transparent 0%, var(--bg) 100%);
  }

  .metric-list,
  .feature-grid,
  .feature-grid-three,
  .project-grid,
  .project-grid-large,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .filter-bar {
    width: 100%;
    overflow-x: auto;
  }

  .filter-button {
    flex: 0 0 auto;
  }

  .section-heading-inline {
    align-items: flex-start;
  }
}

@media (max-width: 420px) {
  .hero-actions,
  .button {
    width: 100%;
  }

  .brand-mark {
    width: 2.2rem;
    height: 2.2rem;
  }
}
