@font-face {
  font-family: "Kapwa Sans";
  src: url("../fonts/kapwa-sans-demo.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --brand-base: #fafaeb;
  --brand-ink: #232323;
  --brand-royal: #6058bb;
  --brand-glow: #f0dc43;
  --brand-ink-soft: rgba(35, 35, 35, 0.7);
  --brand-ink-faint: rgba(35, 35, 35, 0.5);
  --brand-base-soft: rgba(250, 250, 235, 0.8);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html.scroll-smooth {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: var(--brand-base);
  color: var(--brand-ink);
  font-family: "Kapwa Sans", "Roboto", sans-serif;
  line-height: 1.5;
}

body.gate-locked {
  overflow: hidden;
}

.access-gate {
  position: fixed;
  inset: 0;
  background: rgba(35, 35, 35, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  z-index: 999;
  transition: opacity 0.3s ease;
}

.access-gate.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.gate-card {
  width: min(100%, 400px);
  background: var(--brand-base);
  border-radius: 1.5rem;
  border: 1px solid rgba(35, 35, 35, 0.08);
  box-shadow: 0 20px 60px rgba(35, 35, 35, 0.35);
  padding: 2.5rem;
  text-align: left;
}

.gate-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  color: var(--brand-ink-faint);
  margin-bottom: 0.75rem;
}

.gate-copy,
.gate-note {
  color: var(--brand-ink-soft);
  font-size: 0.95rem;
  margin-top: 0.5rem;
}

.gate-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.gate-form label {
  font-weight: 600;
}

.gate-form input {
  border: 1px solid rgba(35, 35, 35, 0.25);
  border-radius: 0.85rem;
  padding: 0.85rem 1rem;
  background: var(--brand-base-soft);
}

.gate-form button {
  border: none;
  border-radius: 0.85rem;
  background: var(--brand-ink);
  color: var(--brand-base);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.95rem 1.25rem;
  cursor: pointer;
}

.gate-form button:hover {
  background: var(--brand-royal);
}

.gate-error {
  min-height: 1.5rem;
  font-size: 0.85rem;
  color: #d13d3d;
}

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

a:hover {
  color: var(--brand-royal);
}

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

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(100%, 1200px);
  margin: 0 auto;
  padding-left: clamp(1.75rem, 8vw, 4rem);
  padding-right: clamp(1.75rem, 8vw, 4rem);
}

.hero-stage {
  position: relative;
  overflow: hidden;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  z-index: 0;
}

.glow-left {
  width: 13rem;
  height: 13rem;
  background: var(--brand-glow);
  top: 4rem;
  left: -4rem;
}

.glow-right {
  width: 18rem;
  height: 18rem;
  background: var(--brand-royal);
  opacity: 0.35;
  top: 12rem;
  right: -6rem;
}

.site-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  padding-bottom: 2rem;
  gap: 1.5rem;
}

.logo-stack {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-mark {
  width: 3rem;
  height: 3rem;
  border-radius: 1.5rem;
  border: 2px solid var(--brand-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-base);
}

.logo-text p:first-child {
  font-size: 1.1rem;
  font-weight: 700;
}

.logo-text p:last-child {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  gap: 2rem;
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: none;
}

.site-nav a {
  transition: color 0.2s ease;
}

@media (max-width: 768px) {
  .site-nav {
    display: none;
  }
}

.primary-button,
.pill-button {
  border: none;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.85rem 1.75rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-button {
  background: var(--brand-royal);
  color: var(--brand-base);
  box-shadow: 0 15px 35px rgba(96, 88, 187, 0.4);
}

.primary-button:hover {
  transform: scale(1.05);
}

.hero {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding-top: 3rem;
  padding-bottom: 6rem;
}

@media (min-width: 768px) {
  .hero {
    flex-direction: row;
    align-items: center;
  }
}

.hero-copy {
  flex: 1;
}

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--brand-royal);
}

.hero-title {
  font-size: clamp(2.5rem, 4vw, 3.75rem);
  font-weight: 700;
  line-height: 1.1;
  margin-top: 1rem;
}

.hero-lede {
  margin-top: 1rem;
  font-size: 1.1rem;
  color: var(--brand-ink-soft);
}

.hero-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.pill-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.pill-button.glow {
  background: var(--brand-glow);
  color: var(--brand-ink);
  box-shadow: 0 15px 35px rgba(240, 220, 67, 0.5);
}

.pill-button.outline {
  border: 1px solid var(--brand-ink);
  background: transparent;
}

.pill-button:hover {
  transform: translateY(-3px);
}

.hero-stats {
  margin-top: 2rem;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
}

.stat-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--brand-ink-faint);
}

.hero-spotlight {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
  padding: 2rem;
}

.hero-splash {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 85%;
  max-width: 28rem;
  opacity: 0.9;
  filter: drop-shadow(0 25px 60px rgba(35, 35, 35, 0.35));
}

.spotlight-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 24rem;
  border-radius: 2.5rem;
  background: var(--brand-ink);
  color: var(--brand-base);
  padding: 2rem;
  box-shadow: 0 20px 60px rgba(35, 35, 35, 0.35);
}

.spotlight-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
}

.spotlight-badge {
  border-radius: 999px;
  padding: 0.2rem 1rem;
  background: rgba(96, 88, 187, 0.35);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
}

.spotlight-grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  text-align: center;
}

.spotlight-grid .value {
  font-size: 2rem;
  font-weight: 700;
}

.spotlight-grid .label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(250, 250, 235, 0.6);
}

.spotlight-mini {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.spotlight-mini div {
  border-radius: 1.25rem;
  border: 1px solid rgba(250, 250, 235, 0.15);
  background: rgba(0, 0, 0, 0.2);
  padding: 0.75rem;
}

.spotlight-mini p:first-child {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(250, 250, 235, 0.5);
}

.spotlight-mini p:last-child {
  font-size: 1.3rem;
  font-weight: 700;
}

.spotlight-label {
  margin-top: 2rem;
  font-size: 0.75rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(250, 250, 235, 0.65);
}

.spotlight-stream {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(250, 250, 235, 0.6);
}

.spotlight-dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--brand-glow);
  animation: dotPulse 1.2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%,
  100% {
    opacity: 0.4;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

.section {
  padding: 4rem 0;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.section-head h3 {
  font-size: 2rem;
  font-weight: 700;
}

.section-head a {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .section-head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.services .card-grid,
.insights .card-grid {
  margin-top: 2.5rem;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .services .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .insights .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card,
.insight-card {
  border-radius: 2rem;
  border: 1px solid rgba(35, 35, 35, 0.1);
  background: var(--brand-base-soft);
  padding: 1.75rem;
  box-shadow: 0 15px 35px rgba(240, 220, 67, 0.25);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(96, 88, 187, 0.4);
}

.service-card .eyebrow,
.insight-card .eyebrow {
  color: var(--brand-royal);
}

.service-card h4,
.insight-card h4 {
  margin-top: 1rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.service-card p,
.insight-card p {
  margin-top: 0.75rem;
  color: var(--brand-ink-soft);
}

.service-card .link {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.insight-card .link {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.work {
  background: var(--brand-ink);
  color: var(--brand-base);
}

.work .section-head p {
  color: var(--brand-glow);
}

.work .summary {
  margin-top: 0.5rem;
  color: rgba(250, 250, 235, 0.7);
}

.work-grid {
  margin-top: 2.5rem;
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .work-grid {
    grid-template-columns: 1.5fr 1fr;
  }
}

.metric-card {
  border-radius: 2.5rem;
  padding: 2rem;
  background: linear-gradient(135deg, var(--brand-royal), var(--brand-glow));
  color: var(--brand-ink);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
}

.metric-card .mini-panel {
  margin-top: 2rem;
  border-radius: 1.5rem;
  background: rgba(250, 250, 235, 0.9);
  padding: 1.5rem;
}
.metric-label {
  font-size: 0.75rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(35, 35, 35, 0.6);
}
.metric-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  text-align: center;
}

.metric-grid .value {
  font-size: 2.25rem;
  font-weight: 700;
}

.metric-grid .label {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.mini-panel h5 {
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.mini-panel p {
  margin-top: 0.75rem;
  color: var(--brand-ink-soft);
}

.mini-panel .link {
  margin-top: 1rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.metric-panel {
  border-radius: 2.5rem;
  border: 1px solid rgba(250, 250, 235, 0.25);
  background: rgba(2, 2, 2, 0.4);
  padding: 2rem;
}

.panel-label {
  font-size: 0.75rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(240, 220, 67, 0.7);
}

.metric-panel ul {
  list-style: none;
  margin-top: 1.5rem;
}

.metric-panel li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(250, 250, 235, 0.1);
  font-size: 0.95rem;
}

.metric-panel li:last-child {
  border-bottom: none;
}

.metric-panel .note {
  margin-top: 2rem;
  border-radius: 1.5rem;
  background: rgba(0, 0, 0, 0.4);
  padding: 1.5rem;
}

.metric-panel .note p {
  margin-top: 1rem;
  font-family: "Times New Roman", serif;
  font-style: italic;
  font-size: 1.1rem;
}

.insight-card {
  background: rgba(250, 250, 235, 0.8);
  box-shadow: none;
}

.contact {
  background: rgba(240, 220, 67, 0.3);
}

.contact-card {
  margin: 0 auto;
  width: min(100%, 960px);
  border-radius: 3rem;
  border: 1px solid rgba(35, 35, 35, 0.1);
  background: rgba(250, 250, 235, 0.95);
  padding: 3rem;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

.contact-card p.description {
  margin-top: 1rem;
  color: var(--brand-ink-soft);
}

.contact-form {
  margin-top: 2.5rem;
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .contact-form {
    grid-template-columns: repeat(2, 1fr);
  }
}

.contact-form input,
.contact-form textarea {
  border-radius: 2rem;
  border: 1px solid rgba(35, 35, 35, 0.2);
  background: rgba(250, 250, 235, 0.9);
  padding: 0.85rem 1.25rem;
  font-size: 0.95rem;
  transition: border-color 0.2s ease;
}

.contact-form textarea {
  border-radius: 1.75rem;
  min-height: 7rem;
  grid-column: 1 / -1;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--brand-royal);
}

.contact-form button {
  grid-column: 1 / -1;
  background: var(--brand-royal);
  color: var(--brand-base);
  border: none;
  border-radius: 999px;
  padding: 1rem 2rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.contact-form button:hover {
  transform: scale(1.02);
}

.site-footer {
  background: var(--brand-ink);
  color: var(--brand-base);
  padding: 3rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--brand-glow);
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer-inner .logo {
  font-size: 1.2rem;
  font-weight: 700;
}

.footer-inner .tagline {
  font-size: 0.9rem;
  color: rgba(250, 250, 235, 0.7);
}

.footer-inner .copyright {
  font-size: 0.75rem;
  color: rgba(250, 250, 235, 0.5);
}

.highlight {
  color: var(--brand-glow);
  font-weight: 600;
}
