:root {
  --red: #e2311d;
  --red-deep: #b82c27;
  --ink: #111820;
  --ink-2: #1d272f;
  --muted: #63717c;
  --line: rgba(17, 24, 32, 0.12);
  --paper: #f7f7f5;
  --white: #ffffff;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 118px;
}

body {
  margin: 0;
  overflow-x: clip;
  background:
    radial-gradient(circle at 12% 8%, rgba(226, 49, 29, 0.12), transparent 30rem),
    radial-gradient(circle at 88% 24%, rgba(71, 87, 99, 0.14), transparent 34rem),
    var(--paper);
  color: var(--ink);
  font-family: Outfit, Lato, Arial, sans-serif;
  line-height: 1.55;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23noise)' opacity='0.7'/%3E%3C/svg%3E");
  content: "";
}

body.menu-open {
  overflow: hidden;
}

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

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

.nav-shell {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: min(1180px, calc(100% - 36px));
  min-height: 74px;
  margin: 0 auto;
  padding: 12px 16px 12px 20px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 22px 70px rgba(17, 24, 32, 0.1);
  backdrop-filter: blur(22px);
  transform: translateX(-50%);
  transition: box-shadow 260ms ease;
}

.nav-shell.is-scrolled {
  box-shadow: 0 28px 85px rgba(17, 24, 32, 0.16);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 176px;
}

.brand img {
  width: 100%;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  color: rgba(17, 24, 32, 0.72);
  font-size: 0.92rem;
  font-weight: 600;
}

.nav-links a {
  padding: 10px 15px;
  border-radius: 999px;
  transition: background 220ms ease, color 220ms ease, transform 220ms ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  background: var(--ink);
  color: var(--white);
}

.nav-links a:active,
.btn:active,
.contact-panel a:active {
  transform: translateY(1px) scale(0.99);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
  transition: transform 220ms ease;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

main {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100dvh;
  margin-top: 0;
  padding: 154px 20px 62px;
  color: var(--white);
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: var(--ink);
}

.hero-bg::after {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 34%, rgba(226, 49, 29, 0.18), transparent 34rem),
    linear-gradient(180deg, rgba(17, 24, 32, 0.62), rgba(17, 24, 32, 0.9));
  content: "";
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.25) contrast(1.1) saturate(0.82);
  opacity: 0.9;
  transform: scale(1.08);
}

.hero-content {
  width: min(1120px, 100%);
  margin: 0 auto;
  text-align: center;
}

h1,
h2,
h3,
p {
  margin: 0;
}

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

h1 {
  max-width: 1120px;
  margin: 0 auto;
  font-size: clamp(2.65rem, 5.1vw, 5.15rem);
  font-weight: 800;
  line-height: 0.98;
}

h2 {
  font-size: clamp(2.05rem, 4.25vw, 4.35rem);
  font-weight: 800;
  line-height: 1;
}

h3 {
  font-size: clamp(1.08rem, 1.32vw, 1.42rem);
  font-weight: 700;
  line-height: 1.12;
}

p {
  color: var(--muted);
  font-size: 1rem;
}

.hero p {
  max-width: 760px;
  margin: 28px auto 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 1.5vw, 1.24rem);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 38px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  transition: background 220ms ease, color 220ms ease, border-color 220ms ease, transform 220ms ease;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--red-deep);
}

.btn-quiet {
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  backdrop-filter: blur(12px);
}

.btn-quiet:hover {
  background: var(--white);
  color: var(--ink);
}

.chapter {
  width: min(1220px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(78px, 9vw, 128px) 0;
}

.kicker {
  margin-bottom: 20px;
  color: var(--red-deep);
  font-family: "Roboto Mono", Cousine, monospace;
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
}

.intro-chapter {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(430px, 0.78fr);
  gap: clamp(42px, 8vw, 118px);
  align-items: center;
}

.focus-copy h2 {
  max-width: 860px;
  color: var(--ink);
}

.focus-copy > p:not(.kicker) {
  max-width: 50ch;
  margin-top: 28px;
  font-size: 1.12rem;
}

.focus-media {
  position: relative;
  min-height: 470px;
  isolation: isolate;
}

.focus-media::before {
  position: absolute;
  inset: 42px 36px -32px -30px;
  z-index: -1;
  border: 1px solid rgba(226, 49, 29, 0.22);
  border-radius: var(--radius);
  content: "";
}

.focus-media img {
  width: 100%;
  height: 470px;
  object-fit: cover;
  border-radius: var(--radius);
  filter: saturate(0.88) contrast(1.1);
  box-shadow: 0 30px 90px rgba(17, 24, 32, 0.18);
}

.focus-note {
  position: absolute;
  right: 22px;
  bottom: 22px;
  width: min(330px, calc(100% - 44px));
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(17, 24, 32, 0.76);
  color: var(--white);
  backdrop-filter: blur(16px);
}

.focus-note strong,
.focus-note span {
  display: block;
}

.focus-note span {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.94rem;
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.48fr);
  gap: clamp(34px, 6vw, 82px);
  align-items: end;
  margin-bottom: 46px;
}

.section-intro p {
  font-size: 1.12rem;
}

.ops-board {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 12px;
}

.ops-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 250px;
  grid-column: span 4;
  padding: clamp(22px, 3vw, 36px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 24px 70px rgba(17, 24, 32, 0.07);
  transition: transform 700ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 700ms cubic-bezier(0.16, 1, 0.3, 1), border-color 700ms ease;
}

.ops-card:hover {
  transform: translateY(-6px);
  border-color: rgba(226, 49, 29, 0.32);
  box-shadow: 0 28px 90px rgba(17, 24, 32, 0.14);
}

.ops-wide {
  grid-column: span 5;
}

.ops-card:nth-child(2) {
  grid-column: span 3;
}

.ops-card h3 {
  max-width: 17ch;
}

.ops-card p {
  max-width: 36ch;
  margin-top: 18px;
}

.ops-card span {
  color: var(--red-deep);
  font-family: "Roboto Mono", Cousine, monospace;
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
}

.ops-red {
  background: var(--red);
  color: var(--white);
}

.ops-red span,
.ops-dark span {
  color: rgba(255, 255, 255, 0.78);
}

.ops-red p,
.ops-dark p {
  color: rgba(255, 255, 255, 0.72);
}

.ops-dark {
  background:
    radial-gradient(circle at 100% 0%, rgba(226, 49, 29, 0.24), transparent 17rem),
    var(--ink-2);
  color: var(--white);
}

.ops-outline {
  border-color: rgba(226, 49, 29, 0.32);
  background: rgba(226, 49, 29, 0.06);
}

.stack-chapter {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1fr);
  gap: clamp(48px, 7vw, 110px);
  align-items: start;
}

.stack-heading {
  position: sticky;
  top: 120px;
  align-self: start;
  z-index: 1;
}

.stack-heading p {
  max-width: 44ch;
  margin-top: 28px;
  font-size: 1.12rem;
}

.stack-cards {
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 4vw, 48px);
}

.stack-card {
  position: sticky;
  top: 140px;
  min-height: clamp(340px, 56vh, 460px);
  padding: clamp(32px, 4.2vw, 52px);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 28px 90px rgba(17, 24, 32, 0.13);
  transform-origin: center top;
  will-change: transform;
}

.stack-card:nth-child(1) {
  top: 132px;
}

.stack-card:nth-child(2) {
  top: 164px;
  background: var(--ink-2);
  color: var(--white);
}

.stack-card:nth-child(3) {
  top: 196px;
  background: var(--red);
  color: var(--white);
}

.stack-card span {
  display: block;
  margin-bottom: clamp(56px, 8vw, 96px);
  font-family: "Roboto Mono", Cousine, monospace;
  font-size: 0.84rem;
  opacity: 0.64;
}

.stack-card p {
  max-width: 46ch;
  margin-top: 18px;
}

.stack-card:nth-child(2) p,
.stack-card:nth-child(3) p {
  color: rgba(255, 255, 255, 0.72);
}

.marquee-section {
  display: flex;
  gap: 28px;
  width: 100%;
  padding: 34px 0;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--ink);
  color: var(--white);
  white-space: nowrap;
}

.marquee-track {
  display: flex;
  flex: 0 0 auto;
  gap: 28px;
  animation: marquee 34s linear infinite;
}

.marquee-track span {
  font-size: clamp(1.8rem, 3.7vw, 3.8rem);
  font-weight: 800;
  line-height: 1;
  opacity: 0.92;
}

.contact-chapter {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(360px, 0.78fr);
  gap: clamp(42px, 7vw, 112px);
  align-items: start;
}

.faq-chapter {
  display: grid;
  grid-template-columns: minmax(0, 0.68fr) minmax(360px, 0.92fr);
  gap: clamp(36px, 6vw, 92px);
  align-items: start;
}

.faq-copy p {
  max-width: 46ch;
  margin-top: 24px;
  font-size: 1.08rem;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 48px rgba(17, 24, 32, 0.06);
}

.faq-item summary {
  position: relative;
  padding: 22px 54px 22px 22px;
  color: var(--ink);
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  font-weight: 700;
  line-height: 1.3;
  list-style: none;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  position: absolute;
  top: 50%;
  right: 22px;
  color: var(--red-deep);
  font-size: 1.4rem;
  line-height: 1;
  content: "+";
  transform: translateY(-50%);
}

.faq-item[open] summary::after {
  content: "-";
}

.faq-item p {
  max-width: 58ch;
  padding: 0 22px 22px;
  font-size: 1rem;
}

.contact-copy p {
  max-width: 48ch;
  margin-top: 26px;
  font-size: 1.12rem;
}

.contact-panel {
  display: grid;
  gap: 10px;
}

.contact-panel a {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-height: 84px;
  padding: 20px 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
  transition: transform 260ms ease, border-color 260ms ease, background 260ms ease;
}

.contact-panel a:hover {
  border-color: rgba(226, 49, 29, 0.42);
  background: var(--white);
  transform: translateX(8px);
}

.contact-panel span {
  color: var(--red-deep);
  font-family: "Roboto Mono", Cousine, monospace;
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
}

.contact-panel strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: clamp(1rem, 1.8vw, 1.28rem);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(1220px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 48px;
  color: rgba(17, 24, 32, 0.62);
  font-size: 0.95rem;
}

.footer a {
  color: var(--red-deep);
  font-weight: 700;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-100% - 28px));
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

@media (max-width: 980px) {
  html {
    scroll-padding-top: 98px;
  }

  .chapter {
    padding: 72px 0;
  }

  .section-intro,
  .intro-chapter,
  .stack-chapter,
  .faq-chapter,
  .contact-chapter {
    grid-template-columns: 1fr;
  }

  .stack-heading {
    position: static;
  }

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

  .ops-card,
  .ops-wide,
  .ops-card:nth-child(2) {
    grid-column: span 1;
  }
}

@media (max-width: 720px) {
  html {
    scroll-padding-top: 90px;
  }

  .nav-shell {
    top: 10px;
    left: 50%;
    width: calc(100% - 24px);
    min-height: 66px;
    margin-top: 0;
    padding: 10px 12px 10px 16px;
  }

  .brand {
    width: 138px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 84px;
    right: 12px;
    left: 12px;
    display: grid;
    gap: 6px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 24px 70px rgba(17, 24, 32, 0.18);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 220ms ease, transform 220ms ease;
  }

  .nav-links.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links a {
    padding: 14px 16px;
    color: var(--ink);
  }

  .hero {
    min-height: 700px;
    padding: 126px 18px 52px;
  }

  h1 {
    font-size: clamp(2.05rem, 10vw, 3rem);
    line-height: 1.02;
  }

  h2 {
    font-size: clamp(1.72rem, 8vw, 2.42rem);
    line-height: 1.04;
  }

  h3 {
    font-size: clamp(1rem, 5vw, 1.18rem);
  }

  .hero-actions {
    display: grid;
  }

  .btn {
    width: 100%;
  }

  .chapter {
    width: calc(100% - 32px);
    padding: 58px 0;
  }

  .focus-media,
  .focus-media img {
    min-height: 0;
    height: 360px;
  }

  .focus-media::before {
    inset: 24px 18px -18px -12px;
  }

  .focus-note {
    position: relative;
    right: auto;
    bottom: auto;
    width: calc(100% - 28px);
    margin: -74px 14px 0;
  }

  .ops-board {
    grid-template-columns: 1fr;
  }

  .ops-card {
    min-height: 245px;
  }

  .stack-cards {
    min-height: auto;
  }

  .stack-card,
  .stack-card:nth-child(2),
  .stack-card:nth-child(3) {
    position: relative;
    top: auto;
  }

  .stack-card span {
    margin-bottom: 58px;
  }

  .contact-panel a {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .footer {
    display: grid;
    width: calc(100% - 32px);
  }
}
