/* ---------- Tokens ---------- */
:root {
  --ink: #0c0f14;
  --surface: #131720;
  --surface-2: #1a1f29;
  --line: rgba(232, 236, 241, 0.09);
  --line-strong: rgba(232, 236, 241, 0.16);
  --text: #e9ecf1;
  --text-muted: #8c95a6;
  --text-faint: #5b6272;
  --signal: #5eead4;
  --signal-dim: rgba(94, 234, 212, 0.14);
  --warn: #f5a65b;
  --violet: #a78bfa;

  --font-display: "Bricolage Grotesque", "IBM Plex Sans", sans-serif;
  --font-body: "IBM Plex Sans", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  --container: 1140px;
  --radius: 14px;
  --radius-sm: 8px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  list-style: none;
}
button {
  font-family: inherit;
  cursor: pointer;
}
input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

::selection {
  background: var(--signal);
  color: #06110f;
}

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--signal);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--signal-dim);
}

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: 14px;
  line-height: 1.15;
}
.section-head p {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 16px;
  max-width: 52ch;
}

section {
  padding: 110px 0;
  position: relative;
}
@media (max-width: 720px) {
  section {
    padding: 76px 0;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
  white-space: nowrap;
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: var(--signal);
  color: #06110f;
}
.btn-primary:hover {
  background: #79f0dd;
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  border-color: var(--signal);
  color: var(--signal);
}
.btn-block {
  width: 100%;
  justify-content: center;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: rgba(12, 15, 20, 0.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
@media (max-width: 400px) {
  .nav-inner {
    padding: 0 18px;
  }
}
.logo {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo .dot {
  color: var(--signal);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-links a {
  font-size: 14.5px;
  color: var(--text-muted);
  transition: color 0.15s ease;
}
.nav-links a:hover {
  color: var(--text);
}
.nav-cta {
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav-cta .btn {
  padding: 10px 20px;
  font-size: 14px;
}

.nav-toggle {
  display: none;
  position: relative;
  background: none;
  border: 1px solid var(--line-strong);
  width: 40px;
  height: 40px;
  border-radius: 8px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease,
    top 0.2s ease;
}
.nav-toggle span {
  top: 50%;
  transform: translateY(-50%);
}
.nav-toggle span::before {
  top: -5px;
}
.nav-toggle span::after {
  top: 5px;
}
.nav-toggle.is-open span {
  background: transparent;
}
.nav-toggle.is-open span::before {
  top: 0;
  transform: rotate(45deg);
}
.nav-toggle.is-open span::after {
  top: 0;
  transform: rotate(-45deg);
}

@media (max-width: 860px) {
  .logo .subtitle {
    display: none;
  }
  .nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(10, 13, 18, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    padding: 8px 28px 20px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition:
      max-height 0.25s ease,
      opacity 0.2s ease;
  }
  .nav-links.open {
    max-height: 340px;
    opacity: 1;
    visibility: visible;
  }
  .nav-links a {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    font-size: 15.5px;
  }
  .nav-links a:last-child {
    border-bottom: none;
  }
  .nav-toggle {
    display: flex;
  }
}
@media (max-width: 400px) {
  .nav-cta .btn-primary {
    padding: 9px 14px;
    font-size: 13px;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 172px 0 120px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 900px) {
  .hero {
    padding: 132px 0 64px;
  }
}
@media (max-width: 480px) {
  .hero {
    padding: 118px 0 52px;
  }
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      600px 400px at 85% 20%,
      rgba(94, 234, 212, 0.1),
      transparent 60%
    ),
    radial-gradient(
      500px 380px at 10% 90%,
      rgba(167, 139, 250, 0.08),
      transparent 60%
    );
  pointer-events: none;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(
    ellipse 80% 60% at 50% 0%,
    black 40%,
    transparent 85%
  );
  opacity: 0.6;
}
.hero-inner {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 52px;
  }
  .hero-inner > *:first-child {
    order: 1;
  }
  .hero-diagram {
    order: 2;
    max-width: 420px;
    margin: 0 auto;
  }
}
@media (max-width: 480px) {
  .hero-inner {
    padding: 0 20px;
    gap: 40px;
  }
  .hero-diagram {
    max-width: 340px;
  }
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin-top: 22px;
}
.hero-title .accent-text {
  font-style: italic;
  font-weight: 500;
  background: linear-gradient(90deg, var(--signal), #a3f7e6 60%, var(--signal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  margin-top: 22px;
  font-size: 17.5px;
  color: var(--text-muted);
  max-width: 46ch;
}
.hero-ctas {
  margin-top: 36px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-note {
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-faint);
}
.hero-note .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5eead4;
  box-shadow: 0 0 0 0 rgba(94, 234, 212, 0.6);
  animation: pulse-ring 2.2s ease-out infinite;
}
@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(94, 234, 212, 0.55);
  }
  80% {
    box-shadow: 0 0 0 8px rgba(94, 234, 212, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(94, 234, 212, 0);
  }
}

.hero-diagram {
  position: relative;
  width: 100%;
}
.hero-diagram svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

/* git graph: branch/merge lines */
.git-line {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: git-draw 0.9s ease forwards;
}
.git-line.lane-main {
  stroke: var(--signal);
}
.git-line.lane-a {
  stroke: var(--violet);
}
.git-line.lane-b {
  stroke: var(--warn);
}
@keyframes git-draw {
  to {
    stroke-dashoffset: 0;
  }
}

/* git graph: commit dots */
.git-commit {
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  transform: scale(0);
  animation: git-pop 0.45s cubic-bezier(0.2, 0.8, 0.3, 1.2) forwards;
}
.git-commit.lane-main {
  fill: var(--surface);
  stroke: var(--signal);
  stroke-width: 2;
}
.git-commit.lane-a {
  fill: var(--surface);
  stroke: var(--violet);
  stroke-width: 2;
}
.git-commit.lane-b {
  fill: var(--surface);
  stroke: var(--warn);
  stroke-width: 2;
}
.git-commit.filled {
  fill: var(--signal);
}
@keyframes git-pop {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* HEAD ping */
.git-ping {
  fill: none;
  stroke: var(--signal);
  stroke-width: 2;
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  animation: git-ping-anim 2.4s ease-out infinite;
  animation-delay: 1.5s;
}
@keyframes git-ping-anim {
  0% {
    transform: scale(1);
    opacity: 0.65;
  }
  75% {
    transform: scale(2.8);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

.git-label {
  font-family: var(--font-mono);
  font-size: 11px;
  opacity: 0;
  animation: git-pop 0.5s ease forwards;
}
.git-label.lane-main {
  fill: var(--text-muted);
}
.git-label.lane-a {
  fill: var(--violet);
}
.git-label.lane-b {
  fill: var(--warn);
}
.git-label.head-tag {
  fill: var(--signal);
  font-weight: 600;
}

/* ---------- Marquee ---------- */
.marquee-wrap {
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
  overflow: hidden;
  background: var(--surface);
}
.marquee {
  display: flex;
  width: max-content;
  animation: scroll-left 32s linear infinite;
  gap: 48px;
}
@keyframes scroll-left {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
.tech-item {
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--text-faint);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.tech-item::after {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-faint);
  margin-left: 48px;
}
/* Placeholder icon slot — swap for an <img src="/icons/react.svg" alt="React" width="18" height="18">
     inside .tech-icon and this monogram styling can be removed. */
.tech-icon {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9.5px;
  font-weight: 600;
  color: var(--text-muted);
  flex-shrink: 0;
}
@media (max-width: 480px) {
  .marquee {
    gap: 34px;
  }
  .tech-item::after {
    margin-left: 34px;
  }
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.service-card {
  background: var(--ink);
  padding: 34px 28px;
  transition: background 0.2s ease;
}
.service-card:hover {
  background: var(--surface);
}
.service-card .num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
}
.service-card h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  margin-top: 18px;
}
.service-card p {
  margin-top: 10px;
  font-size: 14.5px;
  color: var(--text-muted);
}
.service-card .tags {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.service-card .tags span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  border: 1px solid var(--line-strong);
  padding: 3px 8px;
  border-radius: 5px;
}
@media (max-width: 960px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 420px) {
  .service-card {
    padding: 28px 22px;
  }
}

/* ---------- Work / Projects ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
@media (max-width: 960px) {
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .work-grid {
    grid-template-columns: 1fr;
  }
}

.work-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  transition:
    transform 0.22s ease,
    border-color 0.22s ease;
}
.work-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
}
.work-thumb {
  height: 168px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 16px;
}
.work-thumb span {
  position: relative;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(0, 0, 0, 0.28);
  padding: 4px 8px;
  border-radius: 5px;
  backdrop-filter: blur(3px);
}
.thumb-1 {
  background:
    radial-gradient(120% 140% at 85% 15%, rgba(94, 234, 212, 0.35), transparent 60%),
    linear-gradient(135deg, var(--surface-2), var(--ink));
}
.thumb-2 {
  background:
    radial-gradient(120% 140% at 15% 85%, rgba(167, 139, 250, 0.35), transparent 60%),
    linear-gradient(135deg, var(--surface-2), var(--ink));
}
.thumb-3 {
  background:
    radial-gradient(120% 140% at 85% 85%, rgba(245, 166, 91, 0.32), transparent 60%),
    linear-gradient(135deg, var(--surface-2), var(--ink));
}
.thumb-4 {
  background:
    radial-gradient(100% 120% at 20% 20%, rgba(94, 234, 212, 0.28), transparent 55%),
    radial-gradient(90% 110% at 90% 90%, rgba(167, 139, 250, 0.14), transparent 60%),
    linear-gradient(160deg, var(--surface-2), var(--ink));
}
.thumb-5 {
  background:
    radial-gradient(100% 120% at 80% 20%, rgba(167, 139, 250, 0.3), transparent 55%),
    radial-gradient(90% 110% at 10% 90%, rgba(245, 166, 91, 0.16), transparent 60%),
    linear-gradient(160deg, var(--surface-2), var(--ink));
}
.thumb-6 {
  background:
    radial-gradient(110% 130% at 50% 0%, rgba(94, 234, 212, 0.3), transparent 55%),
    radial-gradient(90% 100% at 50% 100%, rgba(245, 166, 91, 0.12), transparent 60%),
    linear-gradient(180deg, var(--surface-2), var(--ink));
}

.work-body {
  padding: 22px 24px 26px;
}
.work-body .kicker {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--signal);
  letter-spacing: 0.06em;
}
.work-body h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  margin-top: 8px;
}
.work-body p {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-muted);
}
.work-body .stack {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.work-body .stack span {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-faint);
  border: 1px solid var(--line-strong);
  padding: 3px 7px;
  border-radius: 5px;
}

/* ---------- Process ---------- */
.process-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
@media (max-width: 860px) {
  .process-list {
    grid-template-columns: 1fr;
  }
}
.process-item {
  padding: 30px 26px 30px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.process-item + .process-item {
  padding-left: 26px;
}
.process-item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 30px;
  right: 0;
  width: 1px;
  height: calc(100% - 30px);
  background: var(--line);
}
@media (max-width: 860px) {
  .process-item:not(:last-child)::after {
    display: none;
  }
  .process-item,
  .process-item + .process-item {
    padding: 26px 0;
  }
}
.process-item .step {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--signal);
}
.process-item h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin-top: 14px;
}
.process-item p {
  margin-top: 10px;
  font-size: 14px;
  color: var(--text-muted);
}

/* ---------- About ---------- */
.about {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.about-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 860px) {
  .about-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}
.about-inner .section-head {
  margin-bottom: 0;
}
.about-copy p {
  font-size: 15.5px;
  color: var(--text-muted);
}
.about-copy p + p {
  margin-top: 16px;
}
.about-stats {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
@media (max-width: 480px) {
  .about-stats {
    grid-template-columns: 1fr 1fr;
    row-gap: 22px;
  }
}
.about-stats .stat b {
  font-family: var(--font-display);
  font-size: 28px;
  display: block;
  color: var(--text);
}
.about-stats .stat span {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---------- Testimonials ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 960px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 680px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
}

.testimonial-card .mark {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
  color: var(--signal);
}
.testimonial-card blockquote {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
}

.testimonial-person {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
/* Placeholder initials avatar — swap the <span class="avatar"> for a real
     <img class="avatar" src="..." alt="Client name"> once you have client
     photos to use; the border/background styling below can be dropped. */
.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 13px;
  background: var(--surface-2);
  border: 1.5px solid var(--signal);
  color: var(--signal);
}
.avatar.accent-violet {
  border-color: var(--violet);
  color: var(--violet);
}
.avatar.accent-warn {
  border-color: var(--warn);
  color: var(--warn);
}

.testimonial-person .name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.testimonial-person .role {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  margin-top: 2px;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
}
@media (max-width: 860px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}
.contact-info .info-row {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.contact-info .info-row:first-child {
  padding-top: 0;
}
.contact-info .info-row .k {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-faint);
  width: 110px;
  flex-shrink: 0;
  padding-top: 2px;
}
.contact-info .info-row .v {
  font-size: 15px;
}
.contact-info .info-row .v a:hover {
  color: var(--signal);
}
@media (max-width: 420px) {
  .contact-info .info-row {
    flex-direction: column;
    gap: 4px;
  }
  .contact-info .info-row .k {
    width: auto;
  }
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 520px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field.full {
  grid-column: 1 / -1;
}
.field label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-faint);
}
.field input,
.field select,
.field textarea {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 14.5px;
  color: var(--text);
  transition: border-color 0.15s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--signal);
}
.field textarea {
  resize: vertical;
  min-height: 110px;
}
.contact-form {
  margin-top: 4px;
}
.form-foot {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.form-foot p {
  font-size: 12.5px;
  color: var(--text-faint);
  max-width: 32ch;
}
.form-success {
  display: none;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--signal);
  margin-top: 18px;
}
.form-success.show {
  display: flex;
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 72px 0 0;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-brand .logo {
  font-size: 15px;
}
.footer-brand p {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--text-faint);
  max-width: 30ch;
}
.footer-status {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-faint);
}
.footer-status .dot-live {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 3px var(--signal-dim);
}
.footer-heading {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 16px;
}
.footer-col {
  display: flex;
  flex-direction: column;
}
.footer-col a {
  font-size: 14px;
  color: var(--text-muted);
  padding: 6px 0;
  transition: color 0.15s ease;
}
.footer-col a:hover {
  color: var(--signal);
}
.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom p {
  font-size: 12.5px;
  color: var(--text-faint);
}
@media (max-width: 720px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    row-gap: 36px;
    padding-bottom: 36px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  footer {
    padding-top: 56px;
  }
}
@media (max-width: 480px) {
  .footer-top {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 8, 11, 0.72);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
}
.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}
.modal {
  width: 100%;
  max-width: 460px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
  transform: translateY(14px) scale(0.98);
  transition: transform 0.22s ease;
  max-height: 88vh;
  overflow-y: auto;
}
@media (max-width: 480px) {
  .modal-overlay {
    padding: 16px;
    align-items: flex-end;
  }
  .modal {
    padding: 26px 22px;
    border-radius: 16px 16px 0 0;
  }
}
.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
}
.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
}
.modal-close:hover {
  color: var(--text);
  border-color: var(--signal);
}
.modal h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  padding-right: 30px;
}
.modal p.modal-sub {
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--text-muted);
}
.modal form {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}