:root {
  --ink: #f7fafc;
  --muted: #bcc5cf;
  --dim: #87909c;
  --line: rgba(186, 201, 218, 0.18);
  --panel: rgba(255, 255, 255, 0.065);
  --panel-strong: rgba(255, 255, 255, 0.1);
  --black: #07090c;
  --charcoal: #101418;
  --blue: #2377df;
  --cyan: #39d4dc;
  --white: #ffffff;
  --shadow: 0 18px 54px rgba(0, 0, 0, 0.34);
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    radial-gradient(circle at 82% 14%, rgba(35, 119, 223, 0.1), transparent 28rem),
    var(--black);
  background-size: 48px 48px, 48px 48px, auto, auto;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  min-height: 74px;
  padding: 14px clamp(18px, 4vw, 54px);
  border-bottom: 1px solid var(--line);
  background: rgba(7, 9, 12, 0.88);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  background: url("amci-logo.png") center / cover no-repeat;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 10px 26px rgba(0, 0, 0, 0.34);
}

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

.brand-lockup strong {
  font-size: 1.28rem;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-lockup span {
  color: var(--muted);
  font-size: 0.92rem;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(12px, 2vw, 26px);
  color: var(--muted);
  font-size: 0.93rem;
  white-space: nowrap;
}

.site-nav a {
  padding: 9px 0;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(57, 212, 220, 0.42);
  outline-offset: 3px;
}

.header-cta {
  padding: 10px 16px;
  border-radius: 4px;
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 800;
  background: var(--blue);
}

.header-cta:hover,
.header-cta:focus-visible {
  background: #2f84ed;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: min(600px, calc(80vh - 74px));
  display: grid;
  align-items: center;
  padding: clamp(50px, 7vw, 104px) clamp(18px, 4vw, 54px) clamp(44px, 5.5vw, 74px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -3;
  opacity: 0.38;
}

.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(7, 9, 12, 0.3), rgba(7, 9, 12, 0.76) 48%, rgba(7, 9, 12, 0.94)),
    rgba(7, 9, 12, 0.42);
}

.scan-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 80%);
  opacity: 0.22;
}

.hero-copy {
  max-width: 980px;
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2.4rem, 4.55vw, 4.65rem);
  line-height: 1;
  font-weight: 900;
}

h2 {
  max-width: 1040px;
  color: var(--white);
  font-size: clamp(1.85rem, 3.35vw, 3.35rem);
  line-height: 1.05;
  font-weight: 900;
}

h3 {
  color: var(--white);
  font-size: 1.12rem;
  line-height: 1.15;
}

.hero-lede {
  max-width: 900px;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.55vw, 1.35rem);
}

.hero-proof {
  max-width: 780px;
  margin: 18px auto 0;
  color: #d6dde5;
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  font-weight: 700;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 22px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  font-weight: 900;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

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

.button.primary {
  color: var(--white);
  border-color: var(--blue);
  background: var(--blue);
  box-shadow: 0 12px 30px rgba(35, 119, 223, 0.22);
}

.button.secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.045);
}

.ticker-band {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.ticker-band span {
  padding: 18px clamp(16px, 3vw, 34px);
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.ticker-band span:last-child {
  border-right: 0;
}

.section {
  padding: clamp(58px, 7.5vw, 104px) clamp(18px, 4vw, 54px);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  max-width: 1120px;
  margin-bottom: clamp(26px, 4.2vw, 46px);
}

.case-grid,
.service-grid,
.feature-grid {
  display: grid;
  gap: 18px;
}

.case-grid {
  grid-template-columns: repeat(2, 1fr);
}

.logo-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: -22px 0 22px;
}

.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 7px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.case-card > .client-logo {
  margin-bottom: 18px;
}

.client-logo img {
  display: block;
  width: 100%;
  max-width: 168px;
  max-height: 40px;
  object-fit: contain;
}

.alphawave-logo img,
.openedges-logo img {
  filter: invert(1) brightness(1.08) contrast(1.08);
}

.alphawave-logo,
.openedges-logo {
  border-color: rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.block-logo img {
  filter: invert(1);
}

.meta-logo img {
  max-width: 176px;
}

.logo-pair {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: 100%;
}

.logo-pair img {
  flex: 1 1 0;
  min-width: 0;
  max-width: 92px;
}

.block-logo .logo-pair img:first-child {
  max-width: 118px;
}

.logo-pair-stacked {
  flex-direction: column;
  gap: 8px;
}

.logo-pair-stacked img {
  max-width: 156px;
  max-height: 24px;
}

.tss-wordmark {
  display: grid;
  gap: 1px;
  color: #f7fbff;
  font-family: "Arial Black", Impact, var(--mono);
  line-height: 0.9;
  text-align: left;
  text-transform: uppercase;
}

.tss-wordmark strong {
  display: block;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.tss-wordmark span {
  display: block;
  font-size: 0.42rem;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.service-grid,
.feature-grid {
  grid-template-columns: repeat(4, 1fr);
}

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

.case-card,
.service-card,
.feature-grid article,
.matrix,
.flow-panel,
.contact-form {
  border: 1px solid var(--line);
  border-radius: 7px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.025)),
    rgba(12, 16, 20, 0.78);
  box-shadow: var(--shadow);
}

.case-card,
.service-card,
.feature-grid article {
  padding: clamp(22px, 3vw, 30px);
}

.card-kicker,
.chip-list,
.section-note {
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.section-intro {
  max-width: 860px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.35vw, 1.18rem);
}

.card-kicker {
  margin-bottom: 12px;
}

.case-card h3,
.service-card h3 {
  margin-bottom: 16px;
}

.proof-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}

.proof-chips span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid rgba(57, 212, 220, 0.28);
  border-radius: 999px;
  color: #d6dde5;
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.78rem;
  font-weight: 800;
}

.proof-chips span::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--cyan);
}

.case-topline {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.case-topline span {
  color: var(--white);
  font-family: var(--mono);
  font-size: 0.86rem;
  text-align: right;
  text-transform: uppercase;
}

.case-card p,
.service-card p,
.feature-grid p,
.contact-copy p {
  margin: 0;
  color: var(--muted);
}

.case-card p {
  line-height: 1.62;
}

.case-card p + p {
  margin-top: 11px;
}

.case-card strong {
  color: var(--white);
  font-weight: 900;
}

.chip-list {
  margin-top: 18px;
  color: var(--dim);
  line-height: 1.7;
}

.section-note {
  margin: 26px 0 0;
  color: var(--muted);
}

.services-section,
.engagement-section,
.faq-section {
  background:
    radial-gradient(circle at 74% 32%, rgba(35, 119, 223, 0.1), transparent 24rem),
    rgba(255, 255, 255, 0.015);
}

.flow-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 38px 1fr 38px 1fr 38px 1.25fr;
  align-items: center;
  gap: 10px;
  min-height: 230px;
  padding: clamp(22px, 4vw, 42px);
  margin-bottom: 28px;
  overflow: hidden;
}

.flow-panel::before {
  content: "";
  position: absolute;
  inset: 24px 18%;
  border: 1px solid rgba(35, 119, 223, 0.3);
  border-radius: 6px;
  background: rgba(35, 119, 223, 0.08);
}

.flow-step {
  position: relative;
  z-index: 1;
  min-height: 72px;
  display: grid;
  place-items: center;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 5px;
  background: rgba(12, 16, 20, 0.9);
  color: var(--white);
  font-weight: 800;
  font-size: clamp(0.86rem, 1.5vw, 1rem);
  text-align: center;
}

.flow-step span {
  display: block;
  color: var(--dim);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.flow-step.active {
  border-color: rgba(35, 119, 223, 0.55);
  box-shadow: 0 0 0 1px rgba(35, 119, 223, 0.18);
}

.flow-step.lower {
  grid-column: 3 / 6;
  margin-top: 18px;
}

.flow-arrow {
  position: relative;
  z-index: 1;
  height: 1px;
  background: var(--dim);
}

.flow-arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: -5px;
  width: 10px;
  height: 10px;
  border-top: 1px solid var(--dim);
  border-right: 1px solid var(--dim);
  transform: rotate(45deg);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(420px, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.matrix {
  padding: clamp(24px, 4vw, 38px);
  font-size: clamp(1rem, 1.45vw, 1.16rem);
}

.matrix p {
  margin: 0;
  color: var(--muted);
}

.matrix p + p {
  margin-top: 18px;
}

.matrix span {
  display: inline-block;
  min-width: 166px;
  color: var(--white);
  font-weight: 900;
}

.service-grid {
  grid-template-columns: repeat(4, 1fr);
}

.service-card h3,
.feature-grid h3 {
  margin-bottom: 10px;
}

.faq-carousel {
  display: grid;
  grid-template-columns: auto minmax(0, 760px) auto;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2vw, 24px);
}

.faq-card-shell {
  position: relative;
  min-height: 320px;
}

.faq-card {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  gap: 14px;
  min-height: 320px;
  padding: clamp(26px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: 7px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.025)),
    rgba(12, 16, 20, 0.86);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateX(18px) scale(0.985);
  transition: opacity 180ms ease, transform 180ms ease;
}

.faq-card.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0) scale(1);
}

.faq-card p:not(.card-kicker) {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.6vw, 1.28rem);
  line-height: 1.65;
}

.faq-nav-button {
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.055);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.faq-nav-button:hover,
.faq-nav-button:focus-visible {
  border-color: rgba(57, 212, 220, 0.45);
  background: rgba(35, 119, 223, 0.18);
}

.faq-dots {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  gap: 9px;
}

.faq-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 1px solid rgba(57, 212, 220, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.faq-dot.is-active {
  background: var(--cyan);
}

.feature-grid h3 {
  font-family: var(--mono);
  text-transform: uppercase;
}

.feature-grid h3::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 12px;
  background: var(--blue);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(420px, 1fr);
  gap: clamp(28px, 6vw, 84px);
  align-items: start;
  padding: clamp(58px, 7.5vw, 104px) clamp(18px, 4vw, 54px);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 72% 64%, rgba(255, 255, 255, 0.065), transparent 26rem),
    rgba(255, 255, 255, 0.025);
}

.contact-copy {
  max-width: 680px;
}

.contact-copy h2 {
  margin-bottom: 20px;
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 4vw, 34px);
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--white);
  font-weight: 900;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 13px 14px;
  color: var(--ink);
  font: inherit;
  background: rgba(255, 255, 255, 0.08);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(188, 197, 207, 0.72);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 3px solid rgba(35, 119, 223, 0.3);
  border-color: var(--blue);
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(220px, 0.7fr);
  gap: 20px;
  padding: 28px clamp(18px, 4vw, 54px);
  color: var(--muted);
  background: var(--black);
}

.site-footer p {
  margin: 0;
}

.site-footer p + p {
  margin-top: 8px;
}

.site-footer strong {
  color: var(--white);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 18px;
}

.site-footer > p {
  grid-column: 1 / -1;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.simple-page {
  min-height: 100vh;
}

.thank-you {
  min-height: 100vh;
  display: grid;
  align-content: center;
  gap: 46px;
  max-width: 880px;
  padding: 40px clamp(20px, 8vw, 80px);
}

.thank-you h1 {
  font-size: clamp(2.6rem, 7vw, 5rem);
}

.thank-you p:not(.eyebrow) {
  max-width: 560px;
  margin: 20px 0 30px;
  color: var(--muted);
  font-size: 1.18rem;
}

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

  .hero-media video {
    display: none;
  }
}

@media (max-width: 1120px) {
  .site-header {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .site-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    width: 100%;
    flex-wrap: wrap;
  }

  .service-grid,
  .logo-rail {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .flow-panel {
    grid-template-columns: 1fr;
  }

  .flow-panel::before,
  .flow-arrow {
    display: none;
  }

  .flow-step.lower {
    grid-column: auto;
    margin-top: 0;
  }

  .faq-carousel {
    grid-template-columns: 1fr;
  }

  .faq-card-shell {
    order: -1;
  }

  .faq-nav-button {
    width: 100%;
  }
}

@media (max-width: 860px) {
  .split,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .case-grid,
  .feature-grid,
  .ticker-band {
    grid-template-columns: 1fr;
  }

  .ticker-band span {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .ticker-band span:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 620px) {
  .site-header {
    grid-template-columns: 1fr;
  }

  .header-cta {
    width: 100%;
    text-align: center;
  }

  .site-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 14px;
    white-space: normal;
  }

  .site-nav a {
    padding: 6px 0;
  }

  .brand-lockup {
    display: grid;
    gap: 0;
  }

  .brand-lockup span {
    font-size: 0.74rem;
  }

  h1 {
    font-size: clamp(1.92rem, 9.3vw, 3rem);
  }

  h2 {
    font-size: clamp(1.65rem, 7.8vw, 2.35rem);
  }

  .hero-copy {
    text-align: left;
  }

  .hero-actions,
  .button,
  .site-footer {
    width: 100%;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .case-grid,
  .service-grid,
  .logo-rail {
    grid-template-columns: 1fr;
  }

  .faq-card-shell,
  .faq-card {
    min-height: 360px;
  }

  .case-topline {
    display: grid;
    min-height: 0;
  }

  .case-topline span {
    text-align: left;
  }

  .matrix span {
    display: block;
    min-width: 0;
    margin-bottom: 4px;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }
}
