:root {
  color-scheme: dark;
  --bg: #070908;
  --ink: #f3f7f3;
  --soft: #b7c0ba;
  --muted: #737d77;
  --line: rgba(255, 255, 255, 0.1);
  --line-green: rgba(103, 255, 196, 0.24);
  --green: #67ffc4;
  --green-deep: #0c6a50;
  --panel: rgba(9, 14, 12, 0.78);
  --panel-strong: rgba(12, 18, 16, 0.94);
  --amber: #ffbf47;
  --shadow: 0 34px 120px rgba(0, 0, 0, 0.68);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  cursor: none;
  background:
    radial-gradient(circle at 8% 16%, rgba(103, 255, 196, 0.16), transparent 24rem),
    radial-gradient(circle at 86% 22%, rgba(255, 255, 255, 0.09), transparent 22rem),
    linear-gradient(145deg, #050706 0%, #101513 48%, #07110e 100%);
}

body::before,
body::after {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
}

body::before {
  z-index: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 82%);
}

body::after {
  z-index: 1;
  background: radial-gradient(circle at var(--cursor-x, 50%) var(--cursor-y, 50%), rgba(103, 255, 196, 0.16), transparent 13rem);
  mix-blend-mode: screen;
}

.matrix-canvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.36;
}

.cursor-core,
.cursor-ring {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 90;
  pointer-events: none;
  transform: translate3d(-50%, -50%, 0);
}

.cursor-core {
  width: 13px;
  height: 13px;
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.96), 0 0 44px rgba(103, 255, 196, 0.72);
}

.cursor-ring {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  box-shadow: inset 0 0 24px rgba(103, 255, 196, 0.15);
  transition: width 160ms ease, height 160ms ease, border-color 160ms ease;
}

.cursor-code {
  position: fixed;
  z-index: 80;
  pointer-events: none;
  color: rgba(255, 255, 255, 0.66);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  text-shadow: 0 0 10px rgba(103, 255, 196, 0.56);
  animation: codeFall 900ms ease-out forwards;
}

body.is-hovering .cursor-ring {
  width: 66px;
  height: 66px;
  border-color: rgba(103, 255, 196, 0.58);
}

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

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

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

.site-shell {
  position: relative;
  z-index: 3;
  width: min(1440px, calc(100% - 44px));
  margin: 0 auto;
  padding: 18px 0 70px;
}

.topbar {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 40;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  width: min(1180px, calc(100% - 44px));
  min-height: 68px;
  padding: 9px 12px 9px 14px;
  border: 1px solid var(--line-green);
  border-radius: 8px;
  background: rgba(4, 9, 8, 0.74);
  box-shadow: 0 20px 90px rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(20px);
  transform: translateX(-50%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  font-weight: 950;
  letter-spacing: 0.04em;
}

.brand img {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  box-shadow: 0 0 26px rgba(103, 255, 196, 0.28);
}

.nav-links {
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 42px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.028);
}

.nav-links a {
  position: relative;
  padding: 10px 14px;
  border-radius: 6px;
  color: var(--soft);
  font-size: 14px;
  font-weight: 850;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--ink);
  background: rgba(103, 255, 196, 0.08);
}

.nav-links a::after {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 6px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(103, 255, 196, 0.78), transparent);
  opacity: 0;
  transform: scaleX(0.45);
  transition: opacity 160ms ease, transform 160ms ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-caption {
  display: none;
}

.menu-toggle {
  display: none;
  width: 42px;
  min-height: 42px;
  padding: 9px;
  border: 1px solid var(--line-green);
  border-radius: 8px;
  color: var(--green);
  background: rgba(103, 255, 196, 0.06);
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.actions {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line-green);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.theme-button {
  display: grid;
  place-items: center;
  width: 42px;
  min-height: 42px;
  margin-right: 3px;
  border: 0;
  border-radius: 6px;
  color: var(--green);
  background: rgba(103, 255, 196, 0.08);
  font-size: 20px;
  font-weight: 950;
}

.theme-button:hover,
.theme-button:focus-visible {
  background: rgba(103, 255, 196, 0.16);
}

.lang-button {
  width: 48px;
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  color: var(--soft);
  background: transparent;
  font-weight: 950;
}

.lang-button.active {
  color: #00110d;
  background: var(--green);
}

.hero {
  position: relative;
  min-height: 100svh;
  padding: 112px 0 54px;
  overflow: hidden;
}

.hero::before {
  position: absolute;
  inset: 96px -8% 3% 38%;
  z-index: 1;
  content: "";
  background:
    linear-gradient(130deg, transparent 0 26%, rgba(103, 255, 196, 0.14) 26% 27%, transparent 27% 100%),
    linear-gradient(68deg, transparent 0 44%, rgba(255, 255, 255, 0.1) 44% 45%, transparent 45% 100%);
  filter: blur(0.2px);
  opacity: 0.85;
}

.brand-banner {
  position: relative;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: clamp(92px, 10vw, 136px);
  margin-bottom: clamp(24px, 4vw, 56px);
  padding: 8px 14px;
  border: 1px solid rgba(103, 255, 196, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(31, 97, 76, 0.28), rgba(0, 0, 0, 0.68)),
    rgba(0, 0, 0, 0.32);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.42), inset 0 0 40px rgba(103, 255, 196, 0.08);
}

.brand-banner img {
  width: min(98%, 1340px);
  max-height: 112px;
  object-fit: contain;
  opacity: 0.68;
  filter: drop-shadow(0 0 24px rgba(103, 255, 196, 0.2));
}

.hero-grid {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(430px, 1fr);
  gap: clamp(30px, 6vw, 90px);
  align-items: center;
}

.hero-copy {
  max-width: 760px;
  padding-left: clamp(0px, 4vw, 50px);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding: 0 14px 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.32);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(18px);
}

.status-pill span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 16px var(--green);
}

.status-pill p {
  margin: 0;
}

h1,
h2,
h3,
p {
  overflow-wrap: normal;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  max-width: 790px;
  margin-top: 24px;
  font-size: clamp(48px, 5.8vw, 86px);
  font-weight: 560;
  line-height: 1.02;
  text-wrap: balance;
}

h2 {
  font-size: clamp(32px, 4vw, 60px);
  font-weight: 590;
  line-height: 1.04;
  text-wrap: balance;
}

h3 {
  font-size: 23px;
  line-height: 1.1;
}

.hero-text {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--soft);
  font-size: 18px;
  line-height: 1.72;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--green);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.25);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  font-weight: 850;
  backdrop-filter: blur(18px);
}

.hero-badges span::before {
  width: 7px;
  height: 7px;
  margin-right: 9px;
  border-radius: 50%;
  content: "";
  background: var(--green);
  box-shadow: 0 0 14px var(--green);
}

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

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 190px;
  min-height: 56px;
  padding: 0 24px;
  border-radius: 8px;
  font-weight: 950;
}

.primary-button {
  color: #0b0f0d;
  background: #f4f7f2;
  box-shadow: 0 16px 48px rgba(255, 255, 255, 0.12);
}

.ghost-button {
  border: 1px solid var(--line);
  color: var(--soft);
  background: rgba(255, 255, 255, 0.035);
}

.command-deck {
  position: relative;
  overflow: hidden;
  min-height: 540px;
  padding: 24px;
  border: 1px solid rgba(103, 255, 196, 0.2);
  border-radius: 12px;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(7, 11, 10, 0.96), rgba(7, 22, 18, 0.78));
  box-shadow: var(--shadow), inset 0 0 64px rgba(103, 255, 196, 0.05);
  backdrop-filter: blur(22px);
}

.command-deck::before {
  position: absolute;
  inset: 18px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  background-image:
    linear-gradient(rgba(103, 255, 196, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(103, 255, 196, 0.05) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

.deck-header,
.deck-focus,
.deck-metrics,
.build-steps {
  position: relative;
  z-index: 2;
}

.deck-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.deck-header strong {
  color: var(--green);
}

.deck-focus {
  margin-top: 64px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.26);
}

.deck-focus span {
  color: var(--green);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.deck-focus h2 {
  margin-top: 12px;
  font-size: clamp(34px, 3.4vw, 54px);
}

.deck-focus p {
  max-width: 480px;
  margin: 18px 0 0;
  color: var(--soft);
  font-size: 16px;
  line-height: 1.65;
}

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

.deck-metrics div,
.build-steps div {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.deck-metrics div {
  min-height: 104px;
  padding: 16px;
}

.deck-metrics strong {
  display: block;
  color: var(--amber);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 14px;
}

.deck-metrics span {
  display: block;
  margin-top: 16px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
}

.build-steps {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.build-steps div {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 16px;
}

.build-steps span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 16px var(--green);
}

.build-steps p {
  margin: 0;
  color: var(--soft);
  font-size: 14px;
  font-weight: 850;
}

.studio-strip,
.section-block,
.systems,
.portfolio-section,
.project-cta,
.contact-section {
  position: relative;
  z-index: 5;
  margin-top: 26px;
  padding: clamp(26px, 5vw, 58px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(15, 17, 17, 0.88), rgba(17, 32, 27, 0.58));
  box-shadow: var(--shadow);
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.audience-grid article {
  min-height: 220px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.23);
}

.audience-grid article > span {
  color: var(--green);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  font-weight: 950;
}

.audience-grid h3 {
  margin-top: 36px;
}

.audience-grid p {
  color: var(--soft);
  line-height: 1.65;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.trust-grid span {
  position: relative;
  min-height: 92px;
  padding: 22px 18px 18px 48px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.23);
  color: var(--soft);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.45;
}

.trust-grid span::before {
  position: absolute;
  left: 18px;
  top: 22px;
  color: var(--green);
  content: "✓";
}

.studio-strip {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 32px;
  align-items: end;
}

.studio-strip > p,
.systems-copy p,
.contact-copy p,
.service-card p,
.roadmap p,
.portfolio-card p,
.contact-card small {
  color: var(--soft);
  font-size: 17px;
  line-height: 1.7;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 12px;
  font-weight: 950;
  line-height: 1.45;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(280px, 1fr);
  gap: 30px;
  align-items: end;
  margin-bottom: 30px;
}

.section-heading .eyebrow {
  margin-bottom: 0;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.92fr 0.92fr;
  gap: 14px;
}

.portfolio-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 330px;
  overflow: hidden;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(155deg, rgba(103, 255, 196, 0.1), transparent 38%),
    rgba(0, 0, 0, 0.25);
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.portfolio-card::before {
  position: absolute;
  inset: 16px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  background-image:
    linear-gradient(rgba(103, 255, 196, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(103, 255, 196, 0.05) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, black, transparent 76%);
}

.portfolio-card.featured-work {
  min-height: 390px;
  background:
    radial-gradient(circle at 78% 16%, rgba(103, 255, 196, 0.22), transparent 34%),
    linear-gradient(155deg, rgba(103, 255, 196, 0.12), transparent 42%),
    rgba(0, 0, 0, 0.28);
}

.portfolio-card span,
.portfolio-card h3,
.portfolio-card p,
.portfolio-card dl,
.portfolio-card strong {
  position: relative;
  z-index: 2;
}

.portfolio-card dl {
  display: grid;
  gap: 10px;
  margin: 8px 0 0;
}

.portfolio-card dl div {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 10px;
}

.portfolio-card dt {
  color: var(--green);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.portfolio-card dd {
  margin: 0;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.45;
}

.project-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: end;
  background:
    radial-gradient(circle at 82% 24%, rgba(103, 255, 196, 0.16), transparent 28%),
    linear-gradient(145deg, rgba(15, 17, 17, 0.88), rgba(17, 32, 27, 0.58));
}

.project-cta h2 {
  max-width: 900px;
}

.project-cta .primary-button {
  min-width: 190px;
}

body[data-theme="light"] {
  color-scheme: light;
  --bg: #eef3ef;
  --ink: #101713;
  --soft: #47554d;
  --muted: #6d7971;
  --line: rgba(16, 23, 19, 0.12);
  --line-green: rgba(12, 106, 80, 0.28);
  --green: #087c5a;
  --green-deep: #07513d;
  --panel: rgba(246, 250, 247, 0.86);
  --panel-strong: rgba(255, 255, 255, 0.96);
  --shadow: 0 34px 110px rgba(42, 65, 53, 0.14);
  background:
    radial-gradient(circle at 8% 16%, rgba(12, 160, 112, 0.13), transparent 24rem),
    radial-gradient(circle at 86% 22%, rgba(255, 255, 255, 0.82), transparent 22rem),
    linear-gradient(145deg, #f4f8f5 0%, #e7eee9 48%, #f2f7f4 100%);
}

body[data-theme="light"]::before { opacity: 0.15; filter: invert(1); }
body[data-theme="light"]::after { mix-blend-mode: multiply; }
body[data-theme="light"] .matrix-canvas { opacity: 0.16; filter: invert(1); }
body[data-theme="light"] .topbar { background: rgba(246, 250, 247, 0.82); }
body[data-theme="light"] .menu-toggle { background: rgba(8, 124, 90, 0.08); }
body[data-theme="light"] .brand-banner,
body[data-theme="light"] .studio-strip,
body[data-theme="light"] .section-block,
body[data-theme="light"] .systems,
body[data-theme="light"] .portfolio-section,
body[data-theme="light"] .contact-section,
body[data-theme="light"] .project-cta {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(224, 236, 229, 0.82));
}

body[data-theme="light"] .brand-banner {
  border-color: rgba(8, 124, 90, 0.26);
  background:
    linear-gradient(rgba(8, 124, 90, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 124, 90, 0.045) 1px, transparent 1px),
    radial-gradient(circle at center, rgba(8, 124, 90, 0.18), transparent 38%),
    linear-gradient(90deg, rgba(248, 251, 249, 0.98), rgba(223, 238, 229, 0.92) 50%, rgba(248, 251, 249, 0.98));
  background-size: 34px 34px, 34px 34px, auto, auto;
  box-shadow: 0 20px 60px rgba(42, 65, 53, 0.14), inset 0 0 34px rgba(8, 124, 90, 0.06);
}

body[data-theme="light"] .brand-banner img {
  opacity: 0.92;
  filter: drop-shadow(0 12px 22px rgba(9, 55, 42, 0.18));
}

body[data-theme="light"] .command-deck {
  border-color: rgba(8, 124, 90, 0.22);
  background:
    linear-gradient(150deg, rgba(8, 124, 90, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(222, 235, 227, 0.92));
  box-shadow: var(--shadow), inset 0 0 64px rgba(8, 124, 90, 0.05);
}

body[data-theme="light"] .command-deck::before {
  border-color: rgba(8, 124, 90, 0.1);
  background-image:
    linear-gradient(rgba(8, 124, 90, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 124, 90, 0.07) 1px, transparent 1px);
}

body[data-theme="light"] .deck-focus {
  border-color: rgba(8, 124, 90, 0.14);
  background: rgba(255, 255, 255, 0.72);
}

body[data-theme="light"] .deck-metrics div,
body[data-theme="light"] .build-steps div {
  border-color: rgba(8, 124, 90, 0.14);
  background: rgba(255, 255, 255, 0.62);
}

body[data-theme="light"] .deck-metrics strong {
  color: #9b6200;
}

body[data-theme="light"] .site-footer {
  border-top: 1px solid rgba(8, 124, 90, 0.18);
  color: #38594d;
}

body[data-theme="light"] .service-card,
body[data-theme="light"] .audience-grid article,
body[data-theme="light"] .trust-grid span,
body[data-theme="light"] .roadmap article,
body[data-theme="light"] .portfolio-card,
body[data-theme="light"] .contact-card { background-color: rgba(255, 255, 255, 0.72); }
body[data-theme="light"] .lang-button.active { color: #fff; }
body[data-theme="light"] .cursor-core { background: #087c5a; }

.portfolio-card span {
  color: var(--green);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.portfolio-card h3 {
  margin-top: 18px;
  font-size: clamp(28px, 3vw, 44px);
}

.portfolio-card strong {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  margin-top: 24px;
  padding: 10px 14px;
  border: 1px solid var(--line-green);
  border-radius: 999px;
  color: var(--green);
  font-size: 13px;
}

.portfolio-card strong::after {
  content: "↗";
  font-size: 14px;
}

.portfolio-card:hover,
.portfolio-card:focus-visible {
  border-color: rgba(103, 255, 196, 0.45);
  background:
    radial-gradient(circle at 78% 16%, rgba(103, 255, 196, 0.18), transparent 34%),
    linear-gradient(155deg, rgba(103, 255, 196, 0.14), transparent 46%),
    rgba(0, 0, 0, 0.32);
  transform: translateY(-4px);
}

.service-card {
  min-height: 280px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.23);
}

.service-card.featured {
  background:
    radial-gradient(circle at 80% 10%, rgba(103, 255, 196, 0.16), transparent 40%),
    rgba(0, 0, 0, 0.28);
}

.service-card span,
.roadmap strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  height: 34px;
  margin-bottom: 28px;
  border: 1px solid var(--line-green);
  border-radius: 6px;
  color: var(--green);
  font-size: 12px;
  font-weight: 950;
}

.systems {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(300px, 1fr);
  gap: 38px;
  align-items: start;
}

.systems-copy {
  position: sticky;
  top: 116px;
}

.roadmap {
  display: grid;
  gap: 14px;
}

.roadmap article {
  min-height: 190px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.23);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(320px, 1fr);
  gap: 34px;
  align-items: start;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.contact-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 172px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.24);
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.contact-card::after {
  position: absolute;
  right: 18px;
  top: 18px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  content: "↗";
  border: 1px solid rgba(103, 255, 196, 0.22);
  border-radius: 50%;
  color: var(--green);
  background: rgba(103, 255, 196, 0.06);
  opacity: 0.78;
}

.contact-card:hover,
.contact-card:focus-visible {
  border-color: rgba(103, 255, 196, 0.45);
  background:
    linear-gradient(120deg, rgba(103, 255, 196, 0.1), transparent 58%),
    rgba(0, 0, 0, 0.3);
  transform: translateY(-3px);
}

.contact-card.primary-contact {
  grid-column: 1 / -1;
  min-height: 154px;
  background:
    linear-gradient(120deg, rgba(103, 255, 196, 0.13), transparent 52%),
    rgba(0, 0, 0, 0.28);
}

.contact-card span {
  color: var(--green);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.contact-card strong {
  margin: 18px 0 10px;
  font-size: clamp(20px, 2vw, 30px);
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.contact-card small {
  display: block;
  font-size: 14px;
}

.contact-card em {
  display: inline-flex;
  width: max-content;
  margin-top: 18px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  color: var(--green);
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}

.site-footer {
  position: relative;
  z-index: 5;
  display: grid;
  place-items: center;
  min-height: 96px;
  margin-top: 26px;
  color: rgba(244, 247, 243, 0.66);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.28em;
  text-align: center;
  text-transform: uppercase;
}

.site-footer p {
  margin: 0;
}

@keyframes codeFall {
  0% {
    opacity: 0.9;
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--trail-x), 42px, 0) scale(0.72);
  }
}

@media (max-width: 1120px) {
  .hero-grid,
  .studio-strip,
  .section-heading,
  .systems,
  .project-cta,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 900px;
    padding-left: 0;
  }

  .systems-copy {
    position: static;
  }

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

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

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-card,
  .portfolio-card.featured-work {
    min-height: 280px;
  }
}

@media (max-width: 860px) {
  body {
    cursor: auto;
  }

  button,
  a {
    cursor: pointer;
  }

  .cursor-core,
  .cursor-ring,
  .cursor-code {
    display: none;
  }

  .topbar {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    grid-template-columns: 1fr auto auto;
    min-height: 62px;
    transform: none;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
  }

  .menu-toggle {
    grid-column: 3;
    grid-row: 1;
    display: grid;
    align-content: space-between;
    justify-self: end;
  }

  .topbar.menu-open .menu-toggle span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
  }

  .topbar.menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .topbar.menu-open .menu-toggle span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
  }

  .actions {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    left: auto;
    right: 0;
    z-index: 60;
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    justify-content: stretch;
    gap: 0;
    width: min(68vw, 260px);
    min-height: 0;
    margin: 0;
    padding: 10px 12px 12px;
    overflow: visible;
    border-color: rgba(103, 255, 196, 0.22);
    border-radius: 14px;
    background:
      linear-gradient(150deg, rgba(103, 255, 196, 0.09), transparent 42%),
      rgba(5, 11, 9, 0.97);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.58);
    backdrop-filter: blur(24px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px) scale(0.985);
    transform-origin: top;
    visibility: hidden;
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  }

  .topbar.menu-open .nav-links {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    visibility: visible;
  }

  .nav-caption {
    display: flex;
    align-items: center;
    min-height: 36px;
    padding: 0 6px 8px;
    color: var(--green);
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 10px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.16em;
  }

  .nav-caption::before {
    width: 6px;
    height: 6px;
    margin-right: 9px;
    border-radius: 50%;
    content: "";
    background: var(--green);
    box-shadow: 0 0 12px var(--green);
  }

  .nav-links a {
    display: grid;
    grid-template-columns: 14px minmax(0, 1fr) 28px;
    align-items: center;
    min-height: 48px;
    padding: 0 6px;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 0;
    color: var(--ink);
    background: transparent;
    font-size: 13px;
    text-align: left;
  }

  .nav-links a::before {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    content: "";
    background: rgba(103, 255, 196, 0.72);
  }

  .nav-links a::after {
    position: static;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    justify-self: end;
    border: 1px solid rgba(103, 255, 196, 0.18);
    border-radius: 7px;
    color: var(--green);
    content: "→";
    background: rgba(103, 255, 196, 0.055);
    opacity: 0.72;
    transform: none;
  }

  .nav-links a:hover,
  .nav-links a:focus-visible {
    background: rgba(103, 255, 196, 0.065);
  }

  body[data-theme="light"] .nav-links {
    background:
      linear-gradient(150deg, rgba(8, 124, 90, 0.09), transparent 42%),
      rgba(248, 251, 249, 0.98);
    box-shadow: 0 28px 80px rgba(42, 65, 53, 0.22);
  }

  body[data-theme="light"] .nav-links a {
    border-color: rgba(8, 124, 90, 0.12);
    background: transparent;
  }

  .hero {
    padding-top: 18px;
  }

  .command-deck {
    min-height: 0;
  }
}

@media (max-width: 620px) {
  .site-shell {
    width: min(100% - 22px, 1440px);
  }

  .topbar {
    top: auto;
    gap: 8px;
    padding: 8px;
  }

  .brand span {
    font-size: 13px;
  }

  .brand img {
    width: 36px;
    height: 36px;
  }

  .actions {
    padding: 2px;
  }

  .menu-toggle,
  .theme-button {
    width: 36px;
    min-height: 36px;
  }

  .menu-toggle {
    padding: 8px;
  }

  .topbar.menu-open .menu-toggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .topbar.menu-open .menu-toggle span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .lang-button {
    width: 40px;
    min-height: 36px;
    font-size: 12px;
  }

  .hero {
    min-height: auto;
    padding-top: 18px;
  }

  .brand-banner {
    min-height: 92px;
    padding: 8px;
  }

  .brand-banner img {
    width: 112%;
    max-width: none;
    max-height: 76px;
    opacity: 0.66;
  }

  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 32px;
  }

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

  .command-deck,
  .studio-strip,
  .section-block,
  .systems,
  .portfolio-section,
  .project-cta,
  .contact-section {
    padding: 20px;
  }

  .deck-focus {
    margin-top: 34px;
    padding: 20px;
  }

  .deck-metrics,
  .service-grid,
  .audience-grid,
  .trust-grid,
  .portfolio-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    min-height: 84px;
    padding: 0 12px;
    font-size: 10px;
    letter-spacing: 0.16em;
  }

  .project-cta .primary-button {
    width: 100%;
  }
}
