:root {
  --bg: #07090d;
  --bg-elev: #10141c;
  --text: #e8eef8;
  --muted: #b7c2d2;
  --faint: #8b97a8;
  --copper: #e39455;
  --copper-deep: #c4743a;
  --ink: #141820;
  --ink-soft: #3c4553;
  --paper: #f6f7fb;
  --line: rgba(227, 148, 85, 0.9);
  --header: 4.5rem;
  --measure: 68rem;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
  font-family: "Segoe UI", "Helvetica Neue", system-ui, sans-serif;
  line-height: 1.6;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  background: transparent;
  color: var(--text);
  font-size: 1.0625rem;
  text-rendering: optimizeLegibility;
}

.backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--copper);
}

:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  background: var(--paper);
  color: var(--ink);
  padding: 0.6rem 0.9rem;
}

.skip:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header);
  padding: 0.75rem 6vw;
  background: rgba(7, 9, 13, 0.35);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
}

.site-header.is-stuck {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.brand {
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: #fff;
}

.brand:hover {
  color: #fff;
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  color: #fff;
  border-radius: 0.4rem;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: currentColor;
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

.nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a {
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}

.nav a[aria-current="page"],
.nav a:hover {
  color: #fff;
  border-bottom-color: #fff;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: calc(100svh - var(--header));
  display: grid;
  place-items: center;
  padding: 4rem 6vw 5rem;
  overflow: hidden;
  text-align: center;
}

.hero-circuit {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(227, 148, 85, 0.22), transparent 46%),
    radial-gradient(ellipse at 78% 18%, rgba(90, 140, 210, 0.16), transparent 32%);
}

.hero-copy {
  max-width: 46rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 650;
  text-wrap: balance;
  color: #fff;
}

.hero p {
  margin: 0 auto 2rem;
  max-width: 38rem;
  color: #f2f5fa;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.85);
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 650;
  text-transform: uppercase;
  background: rgba(7, 9, 13, 0.25);
}

.button:hover {
  background: #fff;
  color: var(--ink);
}

.section {
  padding: 5.5rem 6vw;
}

.section-head {
  margin: 0 0 1.75rem;
}

.section h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 650;
  text-wrap: balance;
}

.rule {
  width: 4.5rem;
  height: 3px;
  background: var(--line);
  border: 0;
  margin: 0 0 1.25rem;
}

.lede,
.prose p {
  color: var(--muted);
}

.prose p {
  margin: 0 0 1rem;
  max-width: 42rem;
}

.about-grid,
.split,
.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
  max-width: 76rem;
  margin: 0 auto;
}

.board-frame {
  margin: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.board-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 1262 / 599;
  object-fit: contain;
}

.split {
  max-width: none;
  gap: 2rem;
  margin: 0;
}

.split-visual {
  min-height: 28rem;
  margin: 0;
  background: transparent;
  display: grid;
  place-items: center;
  padding: 2rem;
}

.split-visual img {
  width: min(100%, 40rem);
  aspect-ratio: 1262 / 599;
  object-fit: contain;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.45));
}

.split-copy {
  padding: 0.5rem 0.25rem;
}

.steps {
  list-style: none;
  margin: 1.5rem 0 2rem;
  padding: 0;
  display: grid;
  gap: 1.15rem;
}

.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
  color: var(--muted);
}

.steps strong {
  color: #fff;
}

.step-no {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--copper-deep);
  letter-spacing: 0.04em;
}

.services {
  background: transparent;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: 76rem;
  margin: 0 auto;
}

.sheet {
  max-width: 76rem;
  margin: 0 auto;
  padding: 2.25rem 2rem 2.4rem;
  background: #0c1018;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.25rem;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
}

.service-grid article {
  padding: 1.25rem 1.15rem 1.35rem;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 0.9rem;
}

.service-grid h3 {
  margin: 0.85rem 0 0.45rem;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.service-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.icon {
  width: 1.7rem;
  height: 1.7rem;
  color: var(--copper);
}

.projects .section-head,
.services .section-head,
.about-grid,
.contact-grid {
  max-width: 76rem;
  margin-left: auto;
  margin-right: auto;
}

.projects .section-head {
  margin-bottom: 2rem;
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  max-width: 76rem;
  margin: 0 auto;
}

.project-grid figure {
  margin: 0;
  background: #c5c9dc;
}

.project-grid img {
  width: 100%;
  aspect-ratio: 1262 / 599;
  object-fit: cover;
  object-position: center;
}

.project-grid figcaption {
  padding: 0.7rem 0.9rem 0.85rem;
  background: #10141c;
  color: var(--text);
  font-size: 0.92rem;
}

.contact-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.contact-grid p {
  color: var(--muted);
  max-width: 42rem;
}

.contact-list a {
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  overflow-wrap: anywhere;
}

.contact-list a:hover {
  color: var(--copper);
}

.contact-list svg {
  width: 1.15rem;
  height: 1.15rem;
  flex: none;
  color: var(--copper);
}

.site-footer {
  padding: 1.25rem 6vw 1.6rem;
  color: var(--faint);
  font-size: 0.92rem;
  background: transparent;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    background: rgba(7, 9, 13, 0.96);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.5rem 6vw 1rem;
  }

  .nav.is-open {
    display: block;
  }

  .nav ul {
    flex-direction: column;
    gap: 0.25rem;
  }

  .about-grid,
  .split,
  .contact-grid,
  .service-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .split {
    margin: 0;
  }

  .split-copy {
    padding: 2.5rem 0 0;
  }

  .section {
    padding: 3.5rem 6vw;
  }

  .split-visual {
    min-height: 16rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
