:root {
  --violet: #7c3aed;
  --violet-light: #a78bfa;
  --violet-dark: #5b21b6;
  --green-accent: #22c55e;
  --ink: #111827;
  --ink-muted: #4b5563;
  --surface: #ffffff;
  --surface-soft: #f9fafb;
  --border: #e5e7eb;
  --hero-overlay: linear-gradient(90deg, rgba(17, 24, 39, 0.15) 0%, rgba(88, 28, 135, 0.72) 42%, rgba(17, 24, 39, 0.82) 100%);
  --shadow: 0 20px 40px rgba(17, 24, 39, 0.08);
  --radius: 16px;
  --header-h: 88px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--violet);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--violet-dark);
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--violet);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 9999;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  background: #fff;
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s;
}

.site-header.is-scrolled {
  border-color: var(--border);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}

.site-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 100%;
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
}

.brand--center {
  grid-column: 2;
  flex-direction: column;
  gap: 0.35rem;
  text-align: center;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand__text--stack {
  align-items: center;
}

.brand__name {
  font-weight: 800;
  letter-spacing: 0.14em;
  font-size: 0.95rem;
}

.brand__sub {
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  color: var(--ink-muted);
  font-weight: 500;
}

.site-nav {
  grid-column: 3;
  justify-self: end;
  display: flex;
  gap: 1.75rem;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-muted);
  transition: color 0.15s;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--violet);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font: inherit;
  cursor: pointer;
}

.nav-toggle__bar {
  width: 18px;
  height: 2px;
  background: var(--ink);
  box-shadow: 0 6px 0 var(--ink), 0 -6px 0 var(--ink);
}

/* Hero */
.hero {
  position: relative;
  min-height: min(92vh, 880px);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: calc(var(--header-h) + 2rem) 0 4rem;
  color: #fff;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  background:
    url("../assets/hero-broadcast.jpg") center / cover no-repeat,
    url("../assets/hero.jpg") center / cover no-repeat,
    #1e1b4b;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
}

.hero .container {
  width: min(100% - 2.5rem, var(--max));
  display: flex;
  justify-content: flex-end;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 520px;
  margin-right: clamp(0rem, 4vw, 2rem);
}

.hero__title {
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  line-height: 1.05;
  font-weight: 700;
  margin: 0 0 1.25rem;
  letter-spacing: -0.03em;
}

.hero__lead {
  font-size: 1.02rem;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 2rem;
  max-width: 48ch;
  line-height: 1.65;
}

.hero__accent {
  color: var(--green-accent);
  font-weight: 600;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s, border-color 0.15s;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--violet);
  color: #fff;
  border-color: var(--violet);
}

.btn--primary:hover {
  background: var(--violet-dark);
  border-color: var(--violet-dark);
  color: #fff;
}

.btn--outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

.btn--outline-light:hover {
  border-color: #fff;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.btn--secondary {
  background: var(--violet);
  color: #fff;
  border-color: var(--violet);
}

.btn--secondary:hover {
  background: var(--violet-dark);
  color: #fff;
}

.btn--sm {
  padding: 0.65rem 1.1rem;
  font-size: 0.85rem;
}

.btn--block {
  width: 100%;
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section--story {
  background: var(--surface-soft);
}

.section--services {
  background: var(--surface);
}

.section--clients {
  background: var(--surface-soft);
  overflow: hidden;
}

.section--contact {
  background: var(--ink);
  color: #e2e8f0;
}

.section-title {
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  color: var(--ink);
}

.section--contact .section-title {
  color: #fff;
}

.section-title--center {
  text-align: center;
}

.section-lead {
  margin: 0;
  color: var(--ink-muted);
  max-width: 62ch;
}

.section-lead--center {
  text-align: center;
  margin-inline: auto;
}

.section-head {
  margin-bottom: 2.5rem;
}

.section-head--spaced {
  margin-top: 4rem;
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: center;
}

.story-photo {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
}

.story-grid__copy p {
  color: var(--ink-muted);
  margin: 0 0 1rem;
}

.card-grid {
  display: grid;
  gap: 1.25rem;
}

.card-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.card-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.service-card--featured {
  padding: 0;
  overflow: hidden;
}

.service-card__cover {
  height: 200px;
  background-size: cover;
  background-position: center;
}

.service-card__cover--full {
  background-image: linear-gradient(180deg, rgba(17, 24, 39, 0.1), rgba(17, 24, 39, 0.35)),
    url("../assets/hero.jpg");
}

.service-card__cover--lite {
  background-image: linear-gradient(180deg, rgba(17, 24, 39, 0.1), rgba(17, 24, 39, 0.35)),
    url("../assets/story-network.jpg");
}

.service-card__body {
  padding: 1.5rem 1.75rem 1.75rem;
}

.card-grid--enablement {
  grid-template-columns: repeat(2, 1fr);
}

.service-card--enablement {
  background: var(--surface-soft);
  position: relative;
  padding-top: 2.25rem;
}

.service-card--enablement .service-card__badge {
  position: absolute;
  top: 1.25rem;
  left: 1.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--violet);
}

.service-card--wide {
  grid-column: 1 / -1;
  max-width: calc(50% - 0.625rem);
}

.service-card:hover {
  box-shadow: var(--shadow);
  border-color: #cbd5e1;
}

.service-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
}

.service-card p {
  margin: 0 0 1rem;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.service-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(109, 40, 217, 0.1);
  color: var(--violet);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}

.service-card__icon svg {
  width: 24px;
  height: 24px;
}

.text-link {
  font-weight: 600;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.client-marquee {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  padding: 2rem 0 0;
  margin: 0;
  animation: marquee 28s linear infinite;
  width: max-content;
}

.client-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  padding: 1rem 1.5rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px dashed #cbd5e1;
  color: var(--ink-muted);
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
}

.clients-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--ink-muted);
  margin-top: 1.5rem;
}

.clients-note code {
  font-size: 0.78rem;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 3rem;
  align-items: start;
}

.section--contact .section-lead {
  color: #94a3b8;
}

.contact-direct {
  margin: 2rem 0 0.35rem;
  font-size: 0.85rem;
  color: #94a3b8;
}

.contact-phone,
.contact-email {
  display: block;
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  margin-bottom: 0.35rem;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.75rem;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: #cbd5e1;
}

.contact-form__full {
  grid-column: 1 / -1;
}

.contact-form input,
.contact-form textarea {
  font: inherit;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(15, 23, 42, 0.6);
  color: #fff;
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--violet-light);
  outline-offset: 1px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #64748b;
}

.form-hint {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.85rem;
  min-height: 1.25rem;
}

.form-hint.is-error {
  color: #fca5a5;
}

.form-hint.is-ok {
  color: #86efac;
}

/* Footer */
.site-footer {
  background: #020617;
  color: #94a3b8;
  padding: 3rem 0 0;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2rem;
  padding-bottom: 2rem;
}

.footer-brand p {
  margin: 1rem 0 0;
  max-width: 32ch;
}

.site-footer h4 {
  color: #e2e8f0;
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  display: inline-block;
  padding: 0.2rem 0;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.25rem 0 1.75rem;
  font-size: 0.82rem;
}

.brand--footer .brand__name,
.brand--footer .brand__sub {
  color: #e2e8f0;
}

/* Responsive */
@media (max-width: 960px) {
  .story-grid,
  .contact-grid,
  .card-grid--2,
  .card-grid--3,
  .card-grid--enablement,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .service-card--wide {
    max-width: none;
  }

  .site-header__inner {
    grid-template-columns: auto 1fr auto;
  }

  .brand--center {
    grid-column: 2;
  }

  .hero .container,
  .hero {
    justify-content: flex-start;
  }

  .hero__content {
    margin-right: 0;
  }

  .nav-toggle {
    display: inline-flex;
    grid-column: 1;
  }

  .site-nav {
    grid-column: 1 / -1;
    position: fixed;
    inset: var(--header-h) 0 auto;
    flex-direction: column;
    background: var(--surface);
    padding: 1rem 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s, opacity 0.25s;
    justify-self: stretch;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .client-marquee {
    animation: none;
    flex-wrap: wrap;
    width: auto;
    justify-content: center;
  }
}
