:root {
  --ink: #111111;
  --coal: #191919;
  --paper: #ede9e1;
  --soft: #d5d0c8;
  --red: #e04431;
  --line: rgba(17, 17, 17, .18);
  --mono: "DM Mono", monospace;
  --sans: "Manrope", Arial, sans-serif;
  --shell: 1180px;
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 82px; }
body { background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.55; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; }
::selection { background: var(--red); color: white; }

.shell { width: min(var(--shell), calc(100% - 64px)); margin-inline: auto; }
.eyebrow { align-items: center; display: flex; font: 500 11px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.eyebrow span { background: currentColor; display: inline-block; height: 8px; margin-right: 10px; width: 8px; }
.eyebrow--dark { color: var(--ink); }
em { color: var(--red); font-style: normal; }

.nav { color: white; left: 0; position: fixed; right: 0; top: 0; transition: background .25s ease, color .25s ease, box-shadow .25s ease; z-index: 10; }
.nav.scrolled { background: rgba(237, 233, 225, .95); box-shadow: 0 1px 0 rgba(17,17,17,.12); color: var(--ink); backdrop-filter: blur(12px); }
.nav.scrolled .brand__logo { filter: brightness(0); }
.nav__inner { align-items: center; display: flex; height: 82px; justify-content: space-between; margin: auto; max-width: var(--shell); width: min(var(--shell), calc(100% - 64px)); }
.brand__logo { height: 28px; width: auto; }
.nav__menu { align-items: center; display: flex; gap: 31px; }
.nav__menu a { font-size: 13px; font-weight: 700; }
.nav__menu > a:not(.nav__cta) { opacity: .74; transition: opacity .2s; }
.nav__menu > a:not(.nav__cta):hover { opacity: 1; }
.nav__cta { align-items: center; border-bottom: 1px solid currentColor; display: flex; gap: 9px; padding-bottom: 3px; }
.nav__toggle { background: transparent; border: 0; cursor: pointer; display: none; padding: 8px 0 8px 10px; }
.nav__toggle span { background: currentColor; display: block; height: 1px; margin: 5px 0; transition: transform .2s; width: 24px; }

.hero { background: #08090a; color: white; min-height: min(800px, 100vh); overflow: hidden; position: relative; }
.hero__image { background: url("assets/images/red-team-operations.png") center / cover no-repeat; inset: 0; position: absolute; }
.hero__veil { background: linear-gradient(90deg, rgba(4, 6, 8, .98) 0%, rgba(5, 6, 8, .92) 28%, rgba(5, 6, 8, .28) 70%, rgba(5, 6, 8, .35) 100%); inset: 0; position: absolute; }
.hero__grid { background-image: linear-gradient(rgba(255,255,255,.11) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.11) 1px, transparent 1px); background-size: 56px 56px; inset: 0; mask-image: linear-gradient(90deg, black, transparent 58%); opacity: .16; position: absolute; }
.hero__content { padding: 168px 0 110px; position: relative; }
.hero .eyebrow { color: #d7d3ca; margin-bottom: 34px; }
.hero h1 { font-size: clamp(44px, 6vw, 82px); font-weight: 800; letter-spacing: -.07em; line-height: .98; max-width: 790px; }
.hero__intro { color: #d1d0cc; font-size: 17px; margin-top: 28px; max-width: 540px; }
.hero__actions { align-items: center; display: flex; gap: 30px; margin-top: 37px; }
.button { align-items: center; display: inline-flex; font-size: 13px; font-weight: 800; gap: 22px; justify-content: space-between; min-height: 52px; padding: 0 18px; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button--light { background: var(--paper); color: var(--ink); }
.button--red { background: var(--red); color: white; }
.text-link { border-bottom: 1px solid rgba(255,255,255,.45); font-size: 13px; font-weight: 700; padding-bottom: 3px; }
.text-link span { color: var(--red); margin-left: 8px; }
.hero__facts { border-top: 1px solid rgba(255,255,255,.34); display: flex; gap: 0; margin-top: 90px; max-width: 560px; padding-top: 16px; }
.hero__facts div { border-right: 1px solid rgba(255,255,255,.25); flex: 1; padding-left: 17px; }
.hero__facts div:first-child { padding-left: 0; }
.hero__facts div:last-child { border: 0; }
.hero__facts dt { color: #bcbab5; font: 400 10px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.hero__facts dd { font-size: 13px; font-weight: 700; margin: 5px 0 0; }
.hero__caption { bottom: 25px; display: flex; font: 400 10px var(--mono); justify-content: space-between; left: 32px; letter-spacing: .06em; position: absolute; right: 32px; text-transform: uppercase; }

.statement { padding: 150px 0 90px; }
.statement__grid { display: grid; gap: 32px; grid-template-columns: 1fr 2fr; }
.statement__main h2 { font-size: clamp(35px, 4.45vw, 62px); letter-spacing: -.06em; line-height: 1.05; max-width: 900px; }
.statement__main p { font-size: 17px; margin: 31px 0 0 auto; max-width: 520px; }
.principles { padding: 20px 0 150px; }
.principles__grid { border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); }
.principle { border-right: 1px solid var(--line); min-height: 280px; padding: 28px 28px 26px 0; }
.principle:not(:first-child) { padding-left: 28px; }
.principle:last-child { border-right: 0; }
.principle__index, .surface__num, .surface__kicker, .deliverable > span { color: var(--red); font: 500 11px var(--mono); letter-spacing: .05em; }
.principle h3 { font-size: 22px; letter-spacing: -.04em; margin-top: 72px; }
.principle p { color: #55514c; font-size: 14px; margin-top: 10px; max-width: 300px; }

.surfaces { background: var(--coal); color: white; padding: 130px 0; }
.section-heading { align-items: flex-end; display: flex; justify-content: space-between; margin-bottom: 56px; }
.section-heading .eyebrow { color: #bbb6ae; margin-bottom: 6px; }
.section-heading h2 { font-size: clamp(37px, 4.5vw, 60px); letter-spacing: -.065em; line-height: .98; }
.surface-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
.surface { border: 1px solid rgba(255,255,255,.25); display: flex; justify-content: space-between; min-height: 300px; padding: 23px; position: relative; transition: background .22s, border-color .22s; }
.surface:hover { background: #242424; border-color: rgba(255,255,255,.6); }
.surface--wide { grid-column: span 2; min-height: 270px; }
.surface--accent { background: var(--red); border-color: var(--red); }
.surface--accent:hover { background: #ca3625; }
.surface > div { align-self: flex-end; max-width: 355px; }
.surface__kicker { color: #cbc6be; margin-bottom: 8px; text-transform: uppercase; }
.surface--accent .surface__num, .surface--accent .surface__kicker { color: var(--ink); }
.surface h3 { font-size: 34px; letter-spacing: -.06em; line-height: 1; }
.surface p:last-child { color: #c7c3bc; font-size: 14px; margin-top: 12px; }
.surface--accent p:last-child { color: #25120f; }
.surface__mark { color: rgba(255,255,255,.16); font-size: 70px; font-weight: 800; letter-spacing: -.1em; line-height: .8; }
.surface--accent .surface__mark { color: rgba(17,17,17,.18); }

.process { background: var(--soft); padding: 140px 0; }
.process__layout { display: grid; gap: 90px; grid-template-columns: .85fr 1.15fr; }
.process__intro h2 { font-size: clamp(38px, 4.2vw, 58px); letter-spacing: -.065em; line-height: .98; margin-top: 26px; }
.process__intro > p:last-child { font-size: 15px; margin-top: 28px; max-width: 320px; }
.process__list { list-style: none; padding: 0; }
.process__list li { border-top: 1px solid var(--line); display: grid; gap: 25px; grid-template-columns: 42px 1fr; padding: 21px 0 33px; }
.process__list li:last-child { border-bottom: 1px solid var(--line); }
.process__list li > span { color: var(--red); font: 500 12px var(--mono); padding-top: 5px; }
.process__list h3 { font-size: 26px; letter-spacing: -.05em; line-height: 1; }
.process__list p { color: #514e49; font-size: 14px; margin-top: 9px; max-width: 410px; }

.deliverables { padding: 150px 0; }
.section-heading--compact { align-items: flex-start; display: block; }
.section-heading--compact .eyebrow { color: #5e5953; margin-bottom: 25px; }
.deliverable-grid { border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, 1fr); }
.deliverable { border-right: 1px solid var(--line); min-height: 245px; padding: 22px 24px 25px 0; }
.deliverable:not(:first-child) { padding-left: 24px; }
.deliverable:last-child { border-right: 0; }
.deliverable h3 { font-size: 20px; letter-spacing: -.045em; line-height: 1.1; margin-top: 75px; }
.deliverable p { color: #5c5751; font-size: 13px; margin-top: 11px; }

.academy { background: var(--coal); color: white; padding: 145px 0; }
.academy__heading { align-items: flex-start; }
.academy__heading .eyebrow { color: #bbb6ae; margin-top: 8px; }
.academy__heading h2 { font-size: clamp(38px, 4.5vw, 60px); letter-spacing: -.065em; line-height: .98; }
.academy__heading > div > p { color: #c7c3bc; font-size: 15px; margin-top: 23px; max-width: 425px; }
.course-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
.course { border: 1px solid rgba(255,255,255,.24); display: flex; flex-direction: column; min-height: 355px; padding: 25px; transition: background .2s, border-color .2s; }
.course:hover { background: #242424; border-color: rgba(255,255,255,.55); }
.course__top { align-items: center; display: flex; justify-content: space-between; }
.course__top span, .course__top small { font: 500 11px var(--mono); letter-spacing: .05em; text-transform: uppercase; }
.course__top span { color: var(--red); }
.course__top small { border: 1px solid rgba(255,255,255,.28); color: #d0cbc4; padding: 5px 7px; }
.course h3 { font-size: clamp(28px, 3vw, 40px); letter-spacing: -.065em; line-height: .98; margin-top: auto; }
.course > p { color: #c7c3bc; font-size: 14px; margin-top: 15px; max-width: 405px; }
.course ul { border-top: 1px solid rgba(255,255,255,.18); display: flex; flex-wrap: wrap; gap: 8px 16px; list-style: none; margin-top: 25px; padding-top: 14px; }
.course li { color: #b8b3ab; font: 400 10px var(--mono); letter-spacing: .025em; }
.course li::before { color: var(--red); content: "•"; margin-right: 6px; }
.course--accent { background: var(--red); border-color: var(--red); }
.course--accent:hover { background: #ca3625; border-color: #ca3625; }
.course--accent .course__top span { color: var(--ink); }
.course--accent .course__top small { border-color: rgba(17,17,17,.35); color: var(--ink); }
.course--accent > p, .course--accent li { color: #2b1714; }
.course--accent ul { border-color: rgba(17,17,17,.25); }
.course--accent li::before { color: var(--ink); }

.testimonials { background: var(--soft); padding: 105px 0; }
.testimonials__layout { align-items: flex-start; display: grid; gap: 10%; grid-template-columns: .85fr 1.15fr; }
.testimonials .eyebrow { margin-bottom: 25px; }
.testimonials h2 { font-size: clamp(38px, 4.2vw, 57px); letter-spacing: -.065em; line-height: .98; max-width: 390px; }
.testimonials__notice { border-top: 1px solid var(--line); padding: 27px 0; }
.testimonials__notice p { font-size: 19px; letter-spacing: -.025em; line-height: 1.38; max-width: 570px; }
.text-link--dark { border-color: rgba(17,17,17,.4); display: inline-block; font-size: 12px; margin-top: 29px; }

.contact { padding: 0 0 90px; }
.contact__box { align-items: end; background: var(--ink); color: white; display: flex; justify-content: space-between; min-height: 380px; padding: 58px; }
.contact .eyebrow { color: #bdb8b0; margin-bottom: 25px; }
.contact h2 { font-size: clamp(38px, 4.5vw, 60px); letter-spacing: -.065em; line-height: .98; }
.contact h2 + p { color: #c3beb7; font-size: 15px; margin-top: 24px; max-width: 520px; }
.contact__action { align-items: flex-start; display: flex; flex-direction: column; flex-shrink: 0; gap: 15px; }
.contact__action small { color: #aaa59d; font: 400 10px var(--mono); letter-spacing: .06em; text-transform: uppercase; }

.footer { border-top: 1px solid var(--line); padding: 34px 0; }
.footer__inner { align-items: center; display: flex; justify-content: space-between; }
.footer img { height: 26px; width: auto; }
.footer p { color: #605b54; font: 400 10px var(--mono); letter-spacing: .06em; text-transform: uppercase; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: .08s; }
.reveal:nth-child(3) { transition-delay: .16s; }
.reveal:nth-child(4) { transition-delay: .24s; }

@media (max-width: 760px) {
  .shell, .nav__inner { width: min(100% - 40px, var(--shell)); }
  .nav__inner { height: 70px; }
  .nav__menu { background: var(--ink); color: white; display: flex; flex-direction: column; gap: 0; left: 0; opacity: 0; padding: 18px 20px 26px; pointer-events: none; position: absolute; right: 0; top: 70px; transform: translateY(-12px); transition: opacity .2s, transform .2s; }
  .nav__menu.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .nav__menu a { border-bottom: 1px solid rgba(255,255,255,.16); padding: 14px 0; width: 100%; }
  .nav__cta { border-bottom: 0; display: flex; justify-content: space-between; }
  .nav__toggle { display: block; }
  .nav__toggle.open span:first-child { transform: translateY(3px) rotate(45deg); }
  .nav__toggle.open span:last-child { transform: translateY(-3px) rotate(-45deg); }
  .hero { min-height: 760px; }
  .hero__image { background-position: 61% center; }
  .hero__veil { background: linear-gradient(90deg, rgba(4,6,8,.95), rgba(4,6,8,.77)), linear-gradient(0deg, rgba(4,6,8,.85), transparent 65%); }
  .hero__content { padding: 146px 0 75px; }
  .hero h1 { font-size: clamp(41px, 12vw, 60px); }
  .hero__intro { font-size: 16px; max-width: 450px; }
  .hero__facts { margin-top: 68px; }
  .hero__caption { left: 20px; right: 20px; }
  .statement { padding: 90px 0 50px; }
  .statement__grid, .process__layout, .testimonials__layout { grid-template-columns: 1fr; }
  .statement__main p { margin-left: 0; }
  .principles { padding: 20px 0 90px; }
  .principles__grid, .deliverable-grid { grid-template-columns: 1fr; }
  .principle, .principle:not(:first-child), .deliverable, .deliverable:not(:first-child) { border-bottom: 1px solid var(--line); border-right: 0; min-height: 0; padding: 26px 0; }
  .principle h3, .deliverable h3 { margin-top: 36px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 29px; }
  .surfaces, .process, .deliverables, .academy { padding: 90px 0; }
  .surface-grid, .course-grid { grid-template-columns: 1fr; }
  .surface--wide { grid-column: auto; }
  .surface { min-height: 250px; }
  .course { min-height: 330px; }
  .testimonials { padding: 80px 0; }
  .testimonials__layout { gap: 45px; }
  .process__layout { gap: 55px; }
  .contact__box { align-items: flex-start; flex-direction: column; gap: 42px; padding: 40px 28px; }
  .footer__inner { align-items: flex-start; flex-direction: column; gap: 17px; }
}

@media (max-width: 430px) {
  .hero__actions { align-items: flex-start; flex-direction: column; gap: 22px; }
  .hero__facts { gap: 7px; }
  .hero__facts div { font-size: 12px; padding-left: 10px; }
  .hero__facts dt { font-size: 9px; }
  .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .button { transition: none; }
}
