:root {
  --bg: #080d14;
  --bg-soft: #0d141e;
  --panel: rgba(17, 26, 38, 0.78);
  --panel-strong: #111b28;
  --line: rgba(188, 213, 229, 0.14);
  --line-strong: rgba(188, 213, 229, 0.25);
  --text: #edf5f7;
  --muted: #94a8b4;
  --accent: #70e1c1;
  --accent-bright: #a4f4dd;
  --accent-2: #89a7ff;
  --warm: #e5bf86;
  --max-width: 1180px;
  --header-height: 84px;
  --radius-lg: 28px;
  --radius-md: 18px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 2%, rgba(112, 225, 193, 0.08), transparent 32rem),
    radial-gradient(circle at 92% 18%, rgba(137, 167, 255, 0.08), transparent 34rem),
    var(--bg);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.22;
  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: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}

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

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

button {
  color: inherit;
  font: inherit;
}

.site-shell {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 16px;
  color: #07110e;
  background: var(--accent);
  border-radius: 10px;
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  border-bottom: 1px solid transparent;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    backdrop-filter 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(8, 13, 20, 0.78);
  border-color: var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #07110e;
  background: var(--accent);
  border-radius: 13px 13px 13px 4px;
  font-size: 13px;
  letter-spacing: 0.03em;
  box-shadow: 0 0 30px rgba(112, 225, 193, 0.16);
}

.site-nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

.site-nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  transition: color 160ms ease;
}

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

.site-nav .nav-cta {
  padding: 10px 18px;
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 11px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.nav-toggle > span:not(.sr-only) {
  display: block;
  width: 100%;
  height: 1px;
  margin: 5px 0;
  background: currentColor;
  transition: transform 160ms ease;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(380px, 0.85fr);
  gap: clamp(48px, 8vw, 104px);
  align-items: center;
  min-height: calc(100vh - var(--header-height));
  padding: 88px 0 104px;
}

.eyebrow,
.section-index {
  margin: 0 0 24px;
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  gap: 10px;
  align-items: center;
}

.eyebrow span {
  width: 28px;
  height: 1px;
  background: var(--accent);
}

.hero h1,
.section-heading h2,
.contact h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.99;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(56px, 7vw, 94px);
}

.hero h1 em {
  display: block;
  color: var(--accent);
  font-weight: 400;
}

.hero-intro {
  max-width: 650px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 38px;
}

.button {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 13px;
  font-size: 14px;
  font-weight: 750;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease;
}

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

.button-primary {
  color: #07110e;
  background: var(--accent);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--accent-bright);
}

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

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: rgba(112, 225, 193, 0.5);
}

.hero-facts {
  display: flex;
  gap: clamp(24px, 4vw, 48px);
  padding: 0;
  margin: 54px 0 0;
  list-style: none;
}

.hero-facts li {
  display: grid;
  gap: 2px;
}

.hero-facts strong {
  color: var(--text);
  font-size: 16px;
}

.hero-facts span {
  color: var(--muted);
  font-size: 12px;
}

.hero-visual {
  position: relative;
}

.visual-glow {
  position: absolute;
  inset: 12% 4%;
  filter: blur(60px);
  background: linear-gradient(135deg, rgba(112, 225, 193, 0.16), rgba(137, 167, 255, 0.14));
}

.code-window {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(20, 32, 46, 0.94), rgba(11, 18, 27, 0.96));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transform: rotate(1.2deg);
}

.code-window::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  content: "";
  background: radial-gradient(circle at top right, rgba(112, 225, 193, 0.15), transparent 70%);
}

.code-window-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 18px 20px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
}

.window-dots {
  display: flex;
  gap: 5px;
  margin-right: auto;
}

.window-dots span {
  width: 7px;
  height: 7px;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 50%;
}

.window-status {
  display: flex;
  gap: 7px;
  align-items: center;
  margin-left: auto;
  color: var(--accent);
}

.window-status::before {
  width: 6px;
  height: 6px;
  content: "";
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent);
}

.code-body {
  padding: 36px 34px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: clamp(12px, 1.4vw, 14px);
  line-height: 1.9;
}

.code-body p {
  margin: 0;
}

.code-indent {
  padding-left: 26px;
}

.code-key {
  color: var(--accent-2);
}

.code-value {
  color: var(--warm);
}

.code-accent {
  color: var(--accent);
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
}

.stack-grid span {
  padding: 16px 20px;
  color: var(--muted);
  background: rgba(8, 13, 20, 0.68);
  font-size: 12px;
  font-weight: 700;
}

.section {
  padding: 128px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(150px, 0.35fr) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
  margin-bottom: 72px;
}

.section-heading h2,
.contact h2 {
  max-width: 900px;
  font-size: clamp(44px, 6vw, 74px);
}

.section-index {
  margin-top: 12px;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: clamp(50px, 9vw, 120px);
}

.about-copy p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 17px;
}

.about-copy .lead {
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.35;
}

.principles {
  border-top: 1px solid var(--line-strong);
}

.principles article {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.principles article > span {
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
}

.principles h3,
.project-card h3,
.featured-project h3,
.expertise-card h3 {
  margin: 0;
  letter-spacing: -0.025em;
}

.principles h3 {
  font-size: 18px;
}

.principles p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.featured-project {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(420px, 1.2fr);
  gap: 60px;
  align-items: center;
  padding: clamp(28px, 5vw, 64px);
  background: linear-gradient(135deg, rgba(17, 28, 41, 0.94), rgba(12, 19, 28, 0.88));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
}

.project-number {
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
}

.status {
  padding: 5px 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-live {
  color: var(--accent);
  border-color: rgba(112, 225, 193, 0.3);
}

.featured-project h3 {
  font-size: clamp(34px, 4vw, 52px);
}

.featured-project p,
.project-card p {
  color: var(--muted);
}

.featured-project p {
  margin: 18px 0 26px;
  font-size: 16px;
}

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

.tech-list li {
  padding: 7px 10px;
  color: #bfd0d8;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10px;
}

.text-link {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  margin-top: 34px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
}

.text-link span {
  transition: transform 160ms ease;
}

.text-link:hover span,
.text-link:focus-visible span {
  transform: translate(2px, -2px);
}

.project-preview {
  overflow: hidden;
  min-height: 420px;
  background: #edf3f2;
  border: 9px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.3);
  transform: perspective(1000px) rotateY(-4deg) rotateX(1deg);
}

.preview-topbar {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 14px 18px;
  color: #25323b;
  background: #fff;
  border-bottom: 1px solid #dce5e4;
  font-size: 10px;
  font-weight: 800;
}

.preview-topbar i {
  width: 58px;
  height: 7px;
  margin-left: auto;
  background: #e7edec;
  border-radius: 999px;
}

.preview-logo {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: #fff;
  background: #1f3740;
  border-radius: 8px;
  font-size: 8px;
}

.preview-content {
  display: grid;
  justify-items: center;
  padding: 44px 36px;
  color: #25323b;
}

.preview-progress {
  width: 78%;
  height: 6px;
  overflow: hidden;
  background: #dce6e4;
  border-radius: 999px;
}

.preview-progress span {
  display: block;
  width: 64%;
  height: 100%;
  background: #2eaa87;
}

.preview-content > p {
  margin: 24px 0 14px;
  color: #6d7f86;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.flashcard {
  display: grid;
  width: min(100%, 360px);
  min-height: 190px;
  place-items: center;
  padding: 28px;
  background: #fff;
  border: 1px solid #dbe4e3;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(47, 75, 79, 0.12);
}

.flashcard small {
  color: #8d9da2;
  font-size: 8px;
  letter-spacing: 0.16em;
}

.flashcard strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 38px;
  letter-spacing: -0.04em;
}

.flashcard span {
  color: #2eaa87;
  font-size: 9px;
  font-weight: 800;
}

.preview-actions {
  display: flex;
  gap: 8px;
  margin-top: 24px;
}

.preview-actions i {
  display: block;
  width: 54px;
  height: 13px;
  background: #d9e4e2;
  border-radius: 999px;
}

.preview-actions i:nth-child(2) {
  background: #2eaa87;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.project-card,
.expertise-card {
  padding: 30px;
  background: rgba(15, 23, 34, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.project-card:hover,
.expertise-card:hover {
  background: rgba(18, 29, 43, 0.9);
  border-color: var(--line-strong);
  transform: translateY(-4px);
}

.project-card h3 {
  font-size: 25px;
}

.project-card p {
  min-height: 120px;
  margin: 15px 0 26px;
  font-size: 14px;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.expertise-icon {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 42px;
  place-items: center;
  color: var(--accent);
  background: rgba(112, 225, 193, 0.07);
  border: 1px solid rgba(112, 225, 193, 0.2);
  border-radius: 16px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 800;
}

.expertise-card h3 {
  font-size: 24px;
}

.expertise-card > p {
  min-height: 78px;
  color: var(--muted);
  font-size: 14px;
}

.expertise-card ul {
  padding: 20px 0 0;
  margin: 24px 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.expertise-card li {
  position: relative;
  padding: 6px 0 6px 16px;
  color: #c5d2d8;
  font-size: 13px;
}

.expertise-card li::before {
  position: absolute;
  top: 14px;
  left: 0;
  width: 5px;
  height: 5px;
  content: "";
  background: var(--accent);
  border-radius: 50%;
}

.contact {
  padding: clamp(48px, 7vw, 84px);
  margin: 80px 0 40px;
  background:
    radial-gradient(circle at 90% 10%, rgba(137, 167, 255, 0.13), transparent 28rem),
    linear-gradient(135deg, rgba(17, 29, 42, 0.98), rgba(11, 18, 27, 0.98));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.65fr);
  gap: 70px;
  align-items: end;
}

.contact p:not(.section-index):not(.contact-placeholder) {
  max-width: 640px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.contact-actions {
  display: grid;
  border-top: 1px solid var(--line-strong);
}

.contact-link {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.contact-link span {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.contact-link strong {
  font-size: 13px;
}

.contact-link i {
  color: var(--accent);
  font-style: normal;
}

.contact-placeholder {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 100px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.site-footer a {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

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

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 600ms ease,
    transform 600ms ease;
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

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

  .hero-visual {
    width: min(100%, 620px);
  }

  .about-grid,
  .featured-project,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .project-grid,
  .expertise-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-card:last-child,
  .expertise-card:last-child {
    grid-column: 1 / -1;
  }

  .project-card p,
  .expertise-card > p {
    min-height: auto;
  }
}

@media (max-width: 720px) {
  :root {
    --header-height: 72px;
  }

  .site-shell {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .brand-name {
    display: none;
  }

  .nav-toggle {
    position: relative;
    z-index: 102;
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 101;
    display: grid;
    width: min(84vw, 360px);
    height: 100dvh;
    padding: 110px 32px 40px;
    align-content: start;
    gap: 8px;
    background: rgba(10, 16, 24, 0.98);
    border-left: 1px solid var(--line);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.42);
    transform: translateX(105%);
    transition: transform 220ms ease;
  }

  .site-nav.is-open {
    transform: translateX(0);
  }

  .site-nav a,
  .site-nav .nav-cta {
    padding: 14px 8px;
    font-size: 17px;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }

  .hero {
    gap: 62px;
    padding: 72px 0 88px;
  }

  .hero h1 {
    font-size: clamp(49px, 15vw, 74px);
  }

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

  .hero-facts strong {
    font-size: 13px;
  }

  .hero-facts span {
    font-size: 10px;
  }

  .section {
    padding: 90px 0;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 48px;
  }

  .section-index {
    margin-bottom: 8px;
  }

  .about-grid {
    gap: 54px;
  }

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

  .project-card:last-child,
  .expertise-card:last-child {
    grid-column: auto;
  }

  .featured-project {
    gap: 48px;
    padding: 26px;
  }

  .project-preview {
    min-height: 330px;
    transform: none;
  }

  .preview-content {
    padding: 32px 18px;
  }

  .contact {
    padding: 34px 24px;
    margin-top: 50px;
  }

  .contact-layout {
    gap: 44px;
  }

  .contact-link {
    grid-template-columns: 72px 1fr auto;
  }
}

@media (max-width: 460px) {
  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .hero-facts {
    grid-template-columns: 1fr;
  }

  .hero-facts li {
    grid-template-columns: 110px 1fr;
    padding: 9px 0;
    border-bottom: 1px solid var(--line);
  }

  .project-preview {
    min-height: 300px;
  }

  .flashcard strong {
    font-size: 31px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

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