*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --brand-blue: #2a8ace;
  --brand-blue-bright: #59aff0;
  --brand-gold: #f2c94c;
  --ink-980: #04070f;
  --ink-950: #060b16;
  --ink-930: #081120;
  --surface: rgba(11, 20, 37, 0.78);
  --text-main: #f5f8fe;
  --text-muted: #b0bdd0;
  --text-soft: #91a0b5;
  --border: rgba(163, 185, 214, 0.16);
  --shadow-deep: 0 32px 80px rgba(0, 0, 0, 0.48);
  --shadow-soft: 0 18px 44px rgba(0, 0, 0, 0.24);
  --radius-xl: 32px;
  --font-display: "Sora", "Segoe UI", sans-serif;
  --font-body: "Public Sans", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "Consolas", monospace;
}

html {
  scroll-behavior: smooth;
}

body.page-pnl {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text-main);
  background:
    radial-gradient(circle at 12% 8%, rgba(42, 138, 206, 0.34), transparent 26%),
    radial-gradient(circle at 88% 14%, rgba(242, 201, 76, 0.18), transparent 18%),
    radial-gradient(circle at 58% 34%, rgba(42, 138, 206, 0.14), transparent 32%),
    linear-gradient(180deg, #050814 0%, #07101f 42%, #05070d 100%);
  overflow-x: hidden;
  position: relative;
}

body.page-pnl::before,
body.page-pnl::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

body.page-pnl::before {
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, black 26%, transparent 84%);
  opacity: 0.42;
}

body.page-pnl::after {
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.06) 0, transparent 58%),
    linear-gradient(125deg, transparent 0 44%, rgba(255, 255, 255, 0.03) 44% 53%, transparent 53% 100%);
  opacity: 0.5;
}

a {
  color: inherit;
}

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

.shell {
  position: relative;
  z-index: 1;
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: 26px 0 72px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 18px;
  margin-bottom: 30px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(6, 11, 23, 0.76);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.nav-brand-mark {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background:
    linear-gradient(160deg, rgba(42, 138, 206, 0.22), rgba(255, 255, 255, 0.03)),
    rgba(9, 16, 30, 0.94);
  border: 1px solid rgba(89, 175, 240, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 12px 28px rgba(0, 0, 0, 0.22);
}

.nav-brand-mark img {
  width: 28px;
  height: auto;
}

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

.brand-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand-tag {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.nav-links a,
.jump-band a {
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.jump-band a:hover,
.jump-band a:focus-visible,
.text-link:hover,
.text-link:focus-visible {
  color: var(--text-main);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}

.nav-links .nav-cta {
  color: var(--ink-980);
  background: linear-gradient(135deg, var(--brand-gold), #ffe08f);
  box-shadow: 0 16px 32px rgba(242, 201, 76, 0.16);
}

.nav-links a[aria-current="page"] {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.07);
}

.hero-home,
.subhero {
  display: grid;
  gap: 26px;
  align-items: start;
}

.hero-home {
  grid-template-columns: minmax(0, 1.02fr) minmax(380px, 0.98fr);
  margin-top: 18px;
}

.hero-copy {
  padding: 28px 4px 0 0;
}

.eyebrow {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-gold);
}

.hero-copy h1,
.subhero-copy h1,
.section-heading h2,
.contact-copy h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 6vw, 5.25rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-lead,
.subhero-copy p,
.section-heading p,
.metric-card p,
.capability-card p,
.showcase-body p,
.audience-card p,
.process-card p,
.contact-copy p,
.roadmap-band p {
  color: var(--text-muted);
  line-height: 1.72;
}

.hero-lead {
  max-width: 640px;
  margin: 20px 0 0;
  font-size: 1.06rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.96rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

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

.btn-primary {
  color: var(--ink-980);
  background: linear-gradient(135deg, var(--brand-gold), #ffe08f);
  box-shadow: 0 16px 34px rgba(242, 201, 76, 0.18);
}

.btn-secondary {
  border-color: rgba(89, 175, 240, 0.26);
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: rgba(89, 175, 240, 0.44);
  background: rgba(255, 255, 255, 0.07);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
}

.proof-card,
.metric-card,
.audience-card {
  padding: 18px 18px 20px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: var(--shadow-soft);
}

.proof-label,
.panel-kicker {
  display: inline-flex;
  align-items: center;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-blue-bright);
}

.proof-card strong {
  display: block;
  line-height: 1.55;
  font-size: 0.96rem;
}

.hero-stage {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto;
  gap: 16px;
}

.panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 45%),
    var(--surface);
  box-shadow: var(--shadow-deep);
}

.panel > * {
  position: relative;
  z-index: 1;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(89, 175, 240, 0.12), transparent 28%),
    radial-gradient(circle at bottom left, rgba(242, 201, 76, 0.08), transparent 24%);
  pointer-events: none;
}

.hero-brand-card,
.hero-blueprint-card,
.hero-focus-card,
.hero-signal-card,
.capability-card,
.showcase-card,
.project-tile,
.contact-band,
.roadmap-band,
.subhero-panel,
.process-card {
  padding: 22px;
}

.hero-brand-card {
  grid-column: 1 / span 1;
  grid-row: 1 / span 1;
}

.hero-brand-shell {
  display: grid;
  grid-template-columns: 144px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  height: calc(100% - 30px);
}

.hero-mark-frame {
  width: 144px;
  height: 176px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(89, 175, 240, 0.18), rgba(255, 255, 255, 0.03)),
    rgba(8, 14, 28, 0.92);
  border: 1px solid rgba(89, 175, 240, 0.18);
}

.hero-mark-frame img {
  width: 78px;
  height: auto;
}

.hero-brand-copy h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 2.4vw, 2.8rem);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.hero-brand-copy p {
  margin: 18px 0 0;
  color: var(--text-muted);
  line-height: 1.72;
}

.focus-list,
.intake-list {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--text-muted);
  line-height: 1.72;
}

.focus-list li,
.intake-list li {
  margin-bottom: 10px;
}

.signal-stack,
.roadmap-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.signal-stack span,
.tag,
.roadmap-list span,
.jump-band a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(89, 175, 240, 0.22);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.9rem;
  color: var(--text-main);
}

.page-section,
.portfolio-section {
  margin-top: 42px;
}

.metric-rail {
  display: grid;
  gap: 16px;
}

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

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  margin-bottom: 14px;
}

.section-heading p {
  margin: 0;
}

.capability-card h3,
.showcase-body h3,
.audience-card h3,
.process-card h3,
.roadmap-band h2,
.contact-copy h2,
.subhero-panel strong {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.55rem;
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.capability-card p,
.showcase-body p,
.audience-card p,
.process-card p,
.roadmap-band p,
.contact-copy p {
  margin: 14px 0 0;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.service-stack {
  margin-top: 10px;
}

.tag {
  min-height: 38px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.showcase-grid,
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.showcase-card,
.project-tile {
  display: flex;
  flex-direction: column;
  padding: 0;
}

.showcase-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
}

.showcase-body {
  padding: 20px 22px 22px;
}

.showcase-card-text .showcase-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-weight: 700;
  color: var(--brand-gold);
  text-decoration: none;
}

.text-link::after {
  content: "->";
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.contact-band {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 22px;
  align-items: stretch;
}

.contact-card {
  position: relative;
  padding: 24px;
  border-radius: 28px;
  border: 1px solid rgba(89, 175, 240, 0.18);
  background: rgba(255, 255, 255, 0.04);
}

.contact-stamp {
  width: 140px;
  opacity: 0.92;
}

.contact-note {
  margin: 18px 0 0;
  color: var(--text-muted);
  line-height: 1.72;
}

.subhero {
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  margin-top: 18px;
}

.page-projects .subhero {
  grid-template-columns: 1fr;
}

.subhero-copy {
  padding-top: 24px;
}

.subhero-copy h1 {
  font-size: clamp(2.5rem, 5vw, 4.4rem);
}

.subhero-copy p {
  max-width: 620px;
  margin: 18px 0 0;
}

.subhero-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 320px;
}

.subhero-panel-list {
  justify-content: flex-start;
}

.subhero-panel img {
  width: min(220px, 70%);
}

.subhero-stats {
  display: grid;
  gap: 8px;
}

.subhero-stats span {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.subhero-stats strong {
  font-size: 2.8rem;
}

.jump-band {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.jump-band a:hover,
.jump-band a:focus-visible {
  border-color: rgba(89, 175, 240, 0.4);
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-1px);
}

.roadmap-band {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 24px;
  align-items: center;
}

.compact-contact-band {
  grid-template-columns: minmax(0, 1fr) auto;
}

.footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.footer div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer strong {
  font-family: var(--font-display);
  font-size: 1rem;
}

.footer span {
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.6;
}

@media (max-width: 1140px) {
  .hero-home,
  .subhero,
  .contact-band,
  .roadmap-band {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
  }

  .hero-brand-card,
  .hero-focus-card,
  .hero-signal-card {
    grid-column: auto;
    grid-row: auto;
  }

  .showcase-grid,
  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .compact-contact-band {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .shell {
    width: min(100% - 24px, 1240px);
    padding-top: 18px;
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
    border-radius: 28px;
  }

  .nav-links {
    width: 100%;
  }

  .nav-links a {
    flex: 1 0 auto;
    text-align: center;
  }

  .hero-copy h1,
  .subhero-copy h1,
  .section-heading h2,
  .contact-copy h2 {
    font-size: clamp(2.2rem, 13vw, 3.5rem);
  }

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

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

  .hero-mark-frame {
    width: 124px;
    height: 154px;
  }

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

  .contact-card,
  .hero-brand-card,
  .showcase-body,
  .subhero-panel,
  .roadmap-band {
    padding: 20px;
  }

  .showcase-card .showcase-body,
  .project-tile .showcase-body {
    padding: 18px 20px 20px;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
