@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("assets/fonts/manrope-latin-ext.woff2") format("woff2");
  unicode-range:
    U+0100-02BA,
    U+02BD-02C5,
    U+02C7-02CC,
    U+02CE-02D7,
    U+02DD-02FF,
    U+0304,
    U+0308,
    U+0329,
    U+1D00-1DBF,
    U+1E00-1E9F,
    U+1EF2-1EFF,
    U+2020,
    U+20A0-20AB,
    U+20AD-20C0,
    U+2113,
    U+2C60-2C7F,
    U+A720-A7FF;
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("assets/fonts/manrope-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF,
    U+0131,
    U+0152-0153,
    U+02BB-02BC,
    U+02C6,
    U+02DA,
    U+02DC,
    U+0304,
    U+0308,
    U+0329,
    U+2000-206F,
    U+20AC,
    U+2122,
    U+2191,
    U+2193,
    U+2212,
    U+2215,
    U+FEFF,
    U+FFFD;
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/ibm-plex-mono-400-latin-ext.woff2") format("woff2");
  unicode-range:
    U+0100-02BA,
    U+02BD-02C5,
    U+02C7-02CC,
    U+02CE-02D7,
    U+02DD-02FF,
    U+0304,
    U+0308,
    U+0329,
    U+1D00-1DBF,
    U+1E00-1E9F,
    U+1EF2-1EFF,
    U+2020,
    U+20A0-20AB,
    U+20AD-20C0,
    U+2113,
    U+2C60-2C7F,
    U+A720-A7FF;
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/ibm-plex-mono-400-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF,
    U+0131,
    U+0152-0153,
    U+02BB-02BC,
    U+02C6,
    U+02DA,
    U+02DC,
    U+0304,
    U+0308,
    U+0329,
    U+2000-206F,
    U+20AC,
    U+2122,
    U+2191,
    U+2193,
    U+2212,
    U+2215,
    U+FEFF,
    U+FFFD;
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/ibm-plex-mono-500-latin-ext.woff2") format("woff2");
  unicode-range:
    U+0100-02BA,
    U+02BD-02C5,
    U+02C7-02CC,
    U+02CE-02D7,
    U+02DD-02FF,
    U+0304,
    U+0308,
    U+0329,
    U+1D00-1DBF,
    U+1E00-1E9F,
    U+1EF2-1EFF,
    U+2020,
    U+20A0-20AB,
    U+20AD-20C0,
    U+2113,
    U+2C60-2C7F,
    U+A720-A7FF;
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/ibm-plex-mono-500-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF,
    U+0131,
    U+0152-0153,
    U+02BB-02BC,
    U+02C6,
    U+02DA,
    U+02DC,
    U+0304,
    U+0308,
    U+0329,
    U+2000-206F,
    U+20AC,
    U+2122,
    U+2191,
    U+2193,
    U+2212,
    U+2215,
    U+FEFF,
    U+FFFD;
}

:root {
  --bg: #050816;
  --bg-soft: #0b1222;
  --surface: rgba(10, 16, 31, 0.72);
  --surface-strong: rgba(14, 22, 41, 0.92);
  --surface-soft: rgba(255, 255, 255, 0.04);
  --text: #edf4ff;
  --muted: #98a8c9;
  --muted-strong: #b9c7df;
  --line: rgba(124, 151, 201, 0.18);
  --line-strong: rgba(124, 190, 255, 0.3);
  --accent: #71d9ff;
  --accent-strong: #2bbcff;
  --accent-soft: rgba(113, 217, 255, 0.14);
  --accent-alt: #7cf0c7;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  --radius-lg: 32px;
  --radius-md: 24px;
  --radius-sm: 18px;
  --max-width: 1180px;
  --heading-font: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  --body-font: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  --mono-font: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: var(--body-font);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(47, 144, 255, 0.18), transparent 28%),
    radial-gradient(circle at 80% 10%, rgba(124, 240, 199, 0.12), transparent 24%),
    linear-gradient(180deg, #050816 0%, #07111f 38%, #050816 100%);
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: #ffffff;
  color: #050816;
  transition: top 0.2s ease;
}

.skip-link:focus-visible {
  top: 1rem;
}

.site-background {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: -1;
}

.background-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(80px);
  opacity: 0.6;
}

.orb-a {
  width: 24rem;
  height: 24rem;
  top: 6rem;
  left: -8rem;
  background: rgba(71, 188, 255, 0.25);
}

.orb-b {
  width: 26rem;
  height: 26rem;
  right: -10rem;
  top: 26rem;
  background: rgba(124, 240, 199, 0.16);
}

.background-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.6), transparent 90%);
}

.container {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}

.section {
  padding: clamp(5rem, 9vw, 8rem) 0;
}

.header-wrap {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 1rem 1rem 0;
}

.site-header {
  width: min(100%, calc(var(--max-width) + 2rem));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem 0.9rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(4, 8, 18, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.16);
}

body.is-scrolled .site-header {
  background: rgba(4, 8, 18, 0.88);
  border-color: rgba(124, 190, 255, 0.22);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.9rem;
  background:
    linear-gradient(145deg, rgba(113, 217, 255, 0.2), rgba(124, 240, 199, 0.14)),
    rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(124, 190, 255, 0.24);
  font-family: var(--mono-font);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-copy strong {
  font-size: 0.96rem;
  font-weight: 700;
  white-space: nowrap;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.77rem;
  white-space: nowrap;
}

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

.site-nav a {
  color: var(--muted-strong);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

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

.nav-cta {
  padding: 0.8rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(124, 190, 255, 0.24);
  background: rgba(113, 217, 255, 0.08);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.55rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
}

.nav-toggle span {
  width: 1.35rem;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hero {
  padding-top: clamp(3rem, 8vw, 6rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent-alt);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-family: var(--mono-font);
  font-size: 0.78rem;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--heading-font);
  letter-spacing: -0.04em;
  line-height: 1;
}

h1 {
  max-width: 10ch;
  font-size: clamp(3rem, 7vw, 5.7rem);
}

h2 {
  max-width: 14ch;
  font-size: clamp(2.15rem, 4vw, 3.4rem);
}

h3 {
  font-size: 1.45rem;
  line-height: 1.15;
}

p {
  margin: 0;
}

.hero-text,
.section-intro,
.about-copy p,
.project-card p,
.service-card p,
.info-card p,
.contact-copy p,
.panel-footer p,
.footer-copy {
  color: var(--muted);
}

.hero-text {
  max-width: 60ch;
  margin-top: 1.5rem;
  font-size: clamp(1.02rem, 1.4vw, 1.16rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.4rem;
  padding: 0.9rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

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

.button-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #04101d;
  box-shadow: 0 12px 32px rgba(43, 188, 255, 0.26);
}

.button-secondary {
  border-color: rgba(124, 190, 255, 0.22);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.button-full {
  width: 100%;
}

.hero-signals,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.hero-signals {
  margin-top: 1.75rem;
}

.hero-signals span,
.tag-row span,
.status-chip {
  border: 1px solid rgba(124, 190, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
  color: var(--muted-strong);
}

.hero-signals span,
.tag-row span {
  padding: 0.55rem 0.8rem;
  font-size: 0.86rem;
}

.hero-panel {
  position: relative;
  min-height: 38rem;
  border-radius: calc(var(--radius-lg) + 4px);
  border: 1px solid var(--line);
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(113, 217, 255, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(8, 14, 28, 0.95), rgba(7, 12, 22, 0.8));
  box-shadow: var(--shadow);
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.35;
}

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

.panel-card {
  position: absolute;
  z-index: 1;
  border: 1px solid rgba(124, 190, 255, 0.14);
  border-radius: 1.4rem;
  background: rgba(9, 15, 29, 0.72);
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.24);
}

.panel-code {
  top: 7%;
  left: 7%;
  width: min(78%, 30rem);
  padding: 1.2rem 1.3rem 1.35rem;
}

.terminal-dots {
  display: flex;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.terminal-dots span {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.panel-code pre {
  margin: 0;
  overflow: auto;
}

.panel-code code {
  display: block;
  font-family: var(--mono-font);
  font-size: 0.85rem;
  line-height: 1.8;
  color: #d8e8ff;
}

.panel-focus {
  top: 12%;
  right: 6%;
  width: min(15rem, 36%);
  padding: 1.1rem 1.1rem 1.2rem;
}

.panel-focus ul {
  margin: 0;
  padding-left: 1rem;
  color: var(--muted-strong);
}

.panel-focus li + li {
  margin-top: 0.8rem;
}

.panel-footer {
  left: 7%;
  right: 7%;
  bottom: 8%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.2rem 1.2rem;
}

.panel-label,
.info-label,
.stack-title,
.project-type,
.project-state,
.form-caption,
.footer-meta {
  font-family: var(--mono-font);
  letter-spacing: 0.03em;
}

.panel-label,
.info-label,
.stack-title {
  margin-bottom: 0.8rem;
  color: var(--accent);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.72rem 0.95rem;
  flex-shrink: 0;
}

.status-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--accent-alt);
  box-shadow: 0 0 18px rgba(124, 240, 199, 0.48);
}

.section-heading {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.section-heading h2 {
  max-width: 12ch;
}

.section-intro {
  max-width: 58ch;
}

.about-grid,
.contact-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.4rem, 3vw, 2rem);
  align-items: start;
}

.about-copy {
  display: grid;
  gap: 1.35rem;
  padding-right: clamp(0rem, 4vw, 4rem);
}

.about-highlights {
  display: grid;
  gap: 1rem;
}

.info-card,
.service-card,
.project-card,
.stack-card,
.contact-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 100%),
    var(--surface);
  box-shadow: var(--shadow);
}

.info-card {
  padding: 1.35rem 1.4rem 1.5rem;
}

.info-card h3 {
  margin-bottom: 0.7rem;
}

.services-grid,
.projects-grid,
.stack-grid {
  display: grid;
  gap: 1.15rem;
}

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

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

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

.service-card,
.project-card,
.stack-card {
  padding: 1.5rem;
}

.service-card::before,
.project-card::before,
.stack-card::before,
.contact-card::before,
.info-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(113, 217, 255, 0.7), transparent 40%);
}

.card-index {
  display: inline-flex;
  margin-bottom: 1.3rem;
  padding: 0.4rem 0.55rem;
  border-radius: 0.8rem;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--mono-font);
  font-size: 0.8rem;
}

.service-card h3,
.project-card h3 {
  margin-bottom: 0.85rem;
}

.service-card ul {
  margin: 1.1rem 0 0;
  padding-left: 1rem;
  color: var(--muted-strong);
}

.service-card li + li {
  margin-top: 0.55rem;
}

.project-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.project-type {
  color: var(--accent);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.project-state {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.project-card p {
  margin: 0.9rem 0 1.2rem;
}

.stack-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(1.4rem, 4vw, 3rem);
  align-items: start;
}

.stack-card {
  min-height: 100%;
}

.contact-copy {
  display: grid;
  gap: 1rem;
  padding-right: clamp(0rem, 4vw, 4rem);
}

.email-link {
  width: fit-content;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.contact-note {
  max-width: 36ch;
}

.contact-card {
  padding: 1.4rem;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.contact-form label {
  display: grid;
  gap: 0.55rem;
  color: var(--muted-strong);
  font-size: 0.94rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(124, 190, 255, 0.18);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  resize: vertical;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(185, 199, 223, 0.54);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(113, 217, 255, 0.42);
  box-shadow: 0 0 0 4px rgba(113, 217, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
}

.form-caption {
  color: var(--muted);
  font-size: 0.78rem;
}

.site-footer {
  padding: 0 0 2rem;
}

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

.footer-brand {
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--muted-strong);
}

.footer-meta {
  color: var(--muted);
  font-size: 0.82rem;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

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

@media (max-width: 1100px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-grid,
  .stack-layout,
  .about-grid,
  .contact-shell {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    min-height: 34rem;
  }

  .section-heading h2,
  h2,
  h1 {
    max-width: unset;
  }

  .contact-copy,
  .about-copy {
    padding-right: 0;
  }
}

@media (max-width: 840px) {
  .header-wrap {
    padding-inline: 0.85rem;
  }

  .site-header {
    border-radius: 1.35rem;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 0.3rem;
  }

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

  body.nav-open .nav-toggle span:first-child {
    transform: translateY(4px) rotate(45deg);
  }

  body.nav-open .nav-toggle span:last-child {
    transform: translateY(-4px) rotate(-45deg);
  }

  .nav-cta {
    width: 100%;
    text-align: center;
  }

  .projects-grid,
  .stack-grid,
  .footer-content {
    grid-template-columns: 1fr;
  }

  .footer-content {
    align-items: start;
  }
}

@media (max-width: 720px) {
  .section {
    padding: 4.5rem 0;
  }

  .hero-panel {
    min-height: 31rem;
  }

  .panel-code {
    top: 5%;
    left: 5%;
    width: calc(100% - 10%);
  }

  .panel-focus {
    top: auto;
    right: 5%;
    bottom: 30%;
    width: 58%;
  }

  .panel-footer {
    left: 5%;
    right: 5%;
    bottom: 5%;
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 620px) {
  .services-grid,
  .projects-grid,
  .stack-grid {
    grid-template-columns: 1fr;
  }

  .brand-copy span {
    display: none;
  }

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

  .button {
    width: 100%;
  }

  .hero-panel {
    min-height: 34rem;
  }

  .panel-code code {
    font-size: 0.77rem;
  }

  .panel-focus {
    width: calc(100% - 10%);
    bottom: 27%;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
