:root {
  --bg: #07111a;
  --bg-soft: #10202e;
  --panel: rgba(10, 26, 38, 0.72);
  --panel-strong: #112435;
  --text: #edf4f7;
  --muted: #a6bbc4;
  --line: rgba(255, 255, 255, 0.1);
  --accent: #7df0d2;
  --accent-strong: #f4b35d;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  --max-width: 1180px;
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Aptos", "Segoe UI", "Trebuchet MS", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(125, 240, 210, 0.14), transparent 30%),
    radial-gradient(circle at top right, rgba(244, 179, 93, 0.14), transparent 24%),
    linear-gradient(180deg, #09131d 0%, #07111a 42%, #0a1822 100%);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at center, black 45%, transparent 90%);
  pointer-events: none;
}

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

p {
  margin: 0;
  line-height: 1.7;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Bahnschrift", "Franklin Gothic Medium", "Aptos", sans-serif;
  letter-spacing: 0.01em;
}

ul {
  margin: 0;
  padding-left: 1.1rem;
}

.site-shell {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: 28px 20px 48px;
  position: relative;
}

.topbar {
  position: sticky;
  top: 14px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(6, 16, 24, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  display: block;
  width: 58px;
  height: 58px;
  object-fit: contain;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  padding: 4px;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-copy strong {
  font-size: 0.98rem;
  line-height: 1.2;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.3;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.95rem;
  min-height: 40px;
  transition: color 180ms ease;
}

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

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: stretch;
  padding: 88px 0 52px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--accent-strong);
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
}

.hero-eyebrow {
  color: var(--accent);
}

.hero h1 {
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  line-height: 0.95;
  max-width: 11ch;
}

.hero-text {
  margin-top: 24px;
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  text-align: center;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

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

.button-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #5acbb1 100%);
  color: #08202a;
}

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

.hero-panel,
.card,
.portfolio-card,
.signal-panel,
.contact-card,
.approach-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 22px;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  height: 100%;
}

.hero-grid article {
  padding: 22px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)),
    rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.hero-grid span {
  display: block;
  margin-bottom: 14px;
  color: var(--accent-strong);
  font-family: "Bahnschrift", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
}

.hero-grid p {
  color: var(--muted);
  font-size: 0.95rem;
}

.proof-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0 0 24px;
}

.proof-strip p {
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.92rem;
}

.section {
  padding: 70px 0;
}

.section-alt,
.section-accent {
  position: relative;
}

.section-alt::before,
.section-accent::before {
  content: "";
  position: absolute;
  inset: 22px -24px;
  border-radius: 40px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0));
  z-index: -1;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 28px;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
}

.section-heading p:last-child {
  margin-top: 14px;
  color: var(--muted);
}

.cards {
  display: grid;
  gap: 18px;
}

.three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  padding: 24px;
}

.card h3,
.portfolio-card h3,
.signal-panel h3,
.approach-grid h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.card p,
.portfolio-card p,
.signal-panel li,
.approach-grid p,
.contact-card p {
  color: var(--muted);
}

.contact-card .eyebrow {
  color: var(--accent-strong);
}

.portfolio-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.portfolio-card {
  padding: 24px;
}

.portfolio-tag {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(125, 240, 210, 0.08);
  border: 1px solid rgba(125, 240, 210, 0.18);
  color: var(--accent);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 16px;
}

.portfolio-card ul,
.signal-panel ul {
  margin-top: 16px;
}

.portfolio-card li,
.signal-panel li {
  margin-bottom: 10px;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 24px;
  align-items: start;
}

.about-copy {
  display: grid;
  gap: 18px;
  font-size: 1.02rem;
}

.signal-panel {
  padding: 24px;
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.approach-grid article {
  padding: 24px;
}

.approach-grid span {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--accent-strong);
  font-family: "Bahnschrift", sans-serif;
  font-size: 1rem;
  font-weight: 700;
}

.contact-section {
  padding-bottom: 32px;
}

.contact-card {
  padding: 34px;
  text-align: left;
  background:
    radial-gradient(circle at top right, rgba(125, 240, 210, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    var(--panel-strong);
}

.contact-card h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 14px;
}

.contact-actions .button {
  min-width: 0;
}

.contact-note {
  margin-top: 18px;
  font-size: 0.92rem;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

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

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

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

  .reveal,
  .reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .button {
    transition: none;
  }
}

@media (max-width: 980px) {
  .topbar,
  .hero,
  .three-up,
  .portfolio-list,
  .split-layout,
  .approach-grid,
  .footer {
    grid-template-columns: 1fr;
  }

  .topbar,
  .footer {
    display: grid;
    justify-content: stretch;
  }

  .nav {
    justify-content: flex-start;
    gap: 14px;
  }

  .hero {
    padding-top: 56px;
  }

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

@media (max-width: 640px) {
  body::before {
    background-size: 28px 28px;
  }

  .site-shell {
    padding-inline: 14px;
    padding-top: 14px;
  }

  .topbar {
    position: static;
    gap: 12px;
    border-radius: 24px;
    padding: 16px;
  }

  .brand {
    align-items: center;
    gap: 12px;
  }

  .brand-mark {
    width: 50px;
    height: 50px;
  }

  .brand-copy strong {
    font-size: 0.92rem;
  }

  .brand-copy span {
    font-size: 0.79rem;
  }

  .nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
  }

  .nav a {
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
  }

  .hero {
    gap: 22px;
    padding: 36px 0 28px;
  }

  .eyebrow {
    gap: 8px;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    margin-bottom: 14px;
  }

  .eyebrow::before {
    width: 22px;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 11vw, 3.2rem);
    line-height: 1;
    max-width: 12ch;
  }

  .hero-text {
    margin-top: 18px;
    font-size: 1rem;
  }

  .hero-actions,
  .contact-actions {
    gap: 10px;
    margin-top: 22px;
  }

  .hero-actions .button,
  .contact-actions .button {
    width: 100%;
    min-height: 52px;
  }

  .hero-grid article {
    padding: 18px;
  }

  .proof-strip {
    gap: 10px;
    padding-bottom: 8px;
  }

  .proof-strip p {
    width: 100%;
    text-align: center;
  }

  .section {
    padding: 54px 0;
  }

  .section-heading {
    margin-bottom: 22px;
  }

  .section-heading h2 {
    font-size: clamp(1.8rem, 8vw, 2.4rem);
  }

  .card,
  .portfolio-card,
  .signal-panel,
  .contact-card,
  .approach-grid article,
  .hero-panel {
    padding: 20px;
  }

  .card,
  .portfolio-card,
  .signal-panel,
  .contact-card,
  .approach-grid article,
  .hero-panel {
    border-radius: 20px;
  }

  .portfolio-tag {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
  }

  .portfolio-card li,
  .signal-panel li {
    margin-bottom: 8px;
  }

  .contact-card h2 {
    font-size: clamp(1.8rem, 9vw, 2.5rem);
  }

  .footer {
    padding-top: 8px;
    font-size: 0.84rem;
  }
}

@media (max-width: 400px) {
  .site-shell {
    padding-inline: 12px;
  }

  .topbar {
    padding: 14px;
  }

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

  .hero h1 {
    font-size: 2rem;
  }

  .brand-copy span {
    display: none;
  }
}
