@font-face {
  font-family: "HeroLocal";
  src: url("assets/fonts/Hero-Regular.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "HeroLocal";
  src: url("assets/fonts/Hero-Bold.otf") format("opentype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "LatoLocal";
  src: url("assets/fonts/Lato-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "LatoLocal";
  src: url("assets/fonts/Lato-Medium.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "LatoLocal";
  src: url("assets/fonts/Lato-Semibold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  --ink: #030404;
  --graphite: #090c0d;
  --raised: #121718;
  --paper: #e9e5dc;
  --muted: #9ea6a3;
  --red: #d51f32;
  --red-soft: #e14959;
  --wine: #120507;
  --line: rgba(233, 229, 220, 0.18);
  --header-height: 64px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 18px);
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--paper);
  font-family: "LatoLocal", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(circle at 88% 4%, rgba(213, 31, 50, 0.055), transparent 25%),
    linear-gradient(180deg, #030404, #060808 55%, #020303);
}

button, a { font: inherit; }

a { color: inherit; }

strong { font-weight: 600; }

::selection {
  background: var(--red);
  color: #fff;
}

.reading-progress {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
}

.reading-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--red);
  transform: scaleX(var(--reading-progress, 0));
  transform-origin: left;
}

.site-header {
  position: fixed;
  z-index: 90;
  top: 3px;
  left: 0;
  width: 100%;
  min-height: var(--header-height);
  padding: 0 max(18px, env(safe-area-inset-left));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid rgba(233, 229, 220, 0.11);
  background: rgba(3, 4, 4, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--paper);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand i {
  width: 22px;
  height: 3px;
  flex: 0 0 auto;
  background: var(--red);
}

.contents-toggle {
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid rgba(233, 229, 220, 0.27);
  border-radius: 2px;
  background: transparent;
  color: var(--paper);
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.contents-toggle:hover,
.contents-toggle[aria-expanded="true"] {
  border-color: var(--red);
  background: rgba(213, 31, 50, 0.12);
}

.quick-nav {
  position: fixed;
  z-index: 80;
  top: calc(var(--header-height) + 3px);
  right: 0;
  width: min(100%, 430px);
  max-height: calc(100svh - var(--header-height) - 3px);
  padding: 13px 18px 24px;
  overflow-y: auto;
  border-left: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(12, 14, 14, 0.98);
  box-shadow: -16px 24px 60px rgba(0, 0, 0, 0.35);
  transform: translateX(101%);
  visibility: hidden;
  transition: transform 0.28s ease, visibility 0.28s;
}

.quick-nav.is-open {
  transform: translateX(0);
  visibility: visible;
}

.quick-nav a {
  min-height: 52px;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  color: var(--paper);
  text-decoration: none;
}

.quick-nav a[aria-current="true"] {
  background: rgba(213, 31, 50, 0.1);
}

.quick-nav b {
  color: var(--red-soft);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.quick-nav span { font-size: 14px; }

.shell {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.narrow { max-width: 840px; }

.hero {
  position: relative;
  min-height: 100svh;
  padding-top: var(--header-height);
  overflow: hidden;
  background:
    radial-gradient(ellipse at 88% 30%, rgba(213, 31, 50, 0.1), transparent 27%),
    radial-gradient(ellipse at 64% 100%, rgba(255, 255, 255, 0.035), transparent 38%),
    linear-gradient(145deg, #020303 0%, #080b0c 58%, #050506 100%);
}

.hero::after {
  content: "";
  position: absolute;
  right: -16%;
  bottom: -220px;
  width: 660px;
  height: 660px;
  border: 1px solid rgba(213, 31, 50, 0.13);
  border-radius: 50%;
  box-shadow: 0 0 100px rgba(213, 31, 50, 0.08) inset;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 72%, var(--ink));
  pointer-events: none;
  transform-origin: 78% 28%;
  animation: ambient-light 8s ease-in-out infinite alternate;
}

.hero-thread {
  position: absolute;
  top: 18%;
  right: clamp(22px, 6vw, 96px);
  width: 1px;
  height: 58%;
  background: linear-gradient(180deg, transparent, var(--red) 16%, rgba(213, 31, 50, 0.24) 82%, transparent);
}

.hero-thread span {
  position: absolute;
  right: -4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 20px rgba(213, 31, 50, 0.6);
}

.hero-thread span:nth-child(1) { top: 12%; }
.hero-thread span:nth-child(2) { top: 47%; }
.hero-thread span:nth-child(3) { top: 82%; }

.hero-inner {
  position: relative;
  z-index: 2;
  min-height: calc(100svh - var(--header-height));
  padding: clamp(76px, 11vw, 148px) 0 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow,
.section-index,
.copy-label {
  margin: 0 0 22px;
  color: var(--red-soft);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1, h2, h3 {
  font-family: "HeroLocal", Arial, sans-serif;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 930px;
  margin: 0;
  font-size: clamp(52px, 10vw, 122px);
  line-height: 0.91;
  text-wrap: balance;
}

h1 span, h2 span { color: var(--red-soft); }

.hero-lead {
  max-width: 740px;
  margin: 30px 0 0;
  color: var(--paper);
  font-size: clamp(22px, 2.8vw, 36px);
  line-height: 1.22;
}

.hero-copy {
  max-width: 700px;
  margin: 22px 0 36px;
  color: #b8bcb7;
  font-size: clamp(16px, 1.5vw, 20px);
}

.button {
  min-height: 52px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border: 1px solid transparent;
  border-radius: 2px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.button-primary {
  align-self: flex-start;
  background: var(--red);
  color: #fff;
}

.button-primary:hover { transform: translateY(-2px); background: #e3293e; }

.hero-contrast {
  margin-top: clamp(70px, 10vw, 130px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--line);
}

.hero-contrast article {
  min-height: 200px;
  padding: 28px;
  background: rgba(4, 5, 5, 0.86);
}

.hero-contrast article:last-child {
  background:
    linear-gradient(125deg, rgba(213, 31, 50, 0.09), transparent 58%),
    rgba(7, 9, 9, 0.9);
}

.hero-contrast span {
  color: var(--red-soft);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero-contrast p { margin: 18px 0 0; color: #c2c4bf; }

.section {
  position: relative;
  padding: clamp(96px, 12vw, 160px) 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(255, 255, 255, 0.025), transparent 34%),
    var(--graphite);
}

.section + .section { margin-top: -1px; }

.section:nth-of-type(3n) { background: linear-gradient(180deg, #090c0d, #050707 100%); }
.section:nth-of-type(4n) { background: linear-gradient(180deg, #050707, #020404 100%); }

.section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(1180px, calc(100% - 36px));
  height: 1px;
  background: var(--line);
  transform: translateX(-50%);
}

h2 {
  margin: 0;
  font-size: clamp(43px, 6vw, 82px);
  line-height: 0.98;
  text-wrap: balance;
}

h3 {
  margin: 0;
  font-size: clamp(27px, 3vw, 40px);
  line-height: 1.08;
}

.section-heading {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(38px, 7vw, 96px);
  align-items: end;
}

.section-heading > p,
.section-heading > div {
  margin: 0;
  color: #b5b9b4;
}

.section-heading > div p { margin: 0 0 18px; }

.lead {
  margin: 42px 0 20px;
  color: var(--paper);
  font-size: clamp(21px, 2.3vw, 30px);
  line-height: 1.35;
}

.narrow > p:not(.section-index),
.story > p {
  color: #c2c5bf;
}

blockquote {
  margin: 40px 0;
  padding: 4px 0 4px 24px;
  border-left: 3px solid var(--red);
  color: var(--paper);
  font-size: clamp(19px, 2vw, 25px);
  line-height: 1.48;
}

.contents { background: linear-gradient(180deg, #030404, #090c0d); }

.contents-list {
  margin: 70px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.contents-list a {
  min-height: 78px;
  display: grid;
  grid-template-columns: 50px 1fr 30px;
  gap: 18px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: background-color 0.2s ease, padding 0.2s ease;
}

.contents-list a:hover { padding-left: 12px; background: rgba(213, 31, 50, 0.07); }
.contents-list b { color: var(--red-soft); font-size: 12px; letter-spacing: 0.08em; }
.contents-list span { font-family: "HeroLocal", Arial, sans-serif; font-size: clamp(20px, 2vw, 29px); }
.contents-list i { color: var(--muted); font-style: normal; text-align: right; }

.line-list {
  margin: 70px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.line-list li {
  min-height: 86px;
  padding: 20px 0;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.line-list b { color: var(--red-soft); font-size: 12px; }
.line-list span { font-size: clamp(18px, 2vw, 25px); }

.callout,
.warning {
  margin: 58px 0 0;
  padding: 28px;
  border-left: 3px solid var(--red);
  background:
    linear-gradient(110deg, rgba(213, 31, 50, 0.055), transparent 46%),
    rgba(18, 23, 24, 0.8);
  color: #c7cac4;
}

.task-rail {
  position: relative;
  margin-top: 78px;
  padding-left: 42px;
}

.task-rail::before {
  content: "";
  position: absolute;
  top: 7px;
  bottom: 7px;
  left: 7px;
  width: 1px;
  background: linear-gradient(180deg, var(--red), rgba(213, 31, 50, 0.2));
}

.task-rail article {
  position: relative;
  padding: 26px 0;
  display: grid;
  grid-template-columns: minmax(150px, 0.7fr) 1.3fr;
  gap: 28px;
  border-bottom: 1px solid var(--line);
}

.task-rail article::before {
  content: "";
  position: absolute;
  left: -39px;
  top: 34px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
}

.task-rail b { font-family: "HeroLocal", Arial, sans-serif; font-size: 24px; }
.task-rail p { margin: 0; color: #b9bcb6; }

.accordions {
  margin-top: 78px;
  border-top: 1px solid var(--line);
}

.accordions details { border-bottom: 1px solid var(--line); }

.accordions summary {
  min-height: 104px;
  display: grid;
  grid-template-columns: 48px 1fr 34px;
  gap: 16px;
  align-items: center;
  cursor: pointer;
  list-style: none;
}

.accordions summary::-webkit-details-marker { display: none; }
.accordions summary span { color: var(--red-soft); font-size: 12px; font-weight: 600; }
.accordions summary strong { font-family: "HeroLocal", Arial, sans-serif; font-size: clamp(25px, 3vw, 40px); line-height: 1.08; }
.accordions summary i { color: var(--red-soft); font-size: 30px; font-style: normal; text-align: right; }
.accordions details[open] summary i { transform: rotate(45deg); }

.details-body {
  padding: 0 0 48px 64px;
  color: #c2c5bf;
}

.copy-block {
  position: relative;
  margin: 28px 0;
  padding: 24px;
  border: 1px solid rgba(233, 229, 220, 0.2);
  background: rgba(2, 3, 3, 0.72);
}

.copy-block blockquote {
  margin: 0 0 22px;
  padding: 0;
  border: 0;
  font-size: 17px;
  line-height: 1.58;
}

.copy-block-large { margin-top: 50px; padding: clamp(24px, 4vw, 46px); }
.copy-block-large blockquote { font-size: clamp(18px, 2vw, 23px); }

.copy-button {
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid var(--red);
  border-radius: 2px;
  background: rgba(213, 31, 50, 0.08);
  color: var(--paper);
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background-color 0.2s ease;
}

.copy-button:hover { background: var(--red); }
.copy-button.is-copied { background: var(--red); }

.steps {
  position: relative;
  margin: 78px 0 0;
  padding: 0;
  list-style: none;
}

.steps::before {
  content: "";
  position: absolute;
  top: 32px;
  bottom: 32px;
  left: 24px;
  width: 1px;
  background: linear-gradient(180deg, var(--red), rgba(213, 31, 50, 0.2));
}

.steps li {
  position: relative;
  padding: 32px 0;
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 26px;
  border-bottom: 1px solid var(--line);
}

.step-number {
  position: relative;
  z-index: 1;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 1px solid var(--red);
  border-radius: 50%;
  background: var(--graphite);
  color: var(--red-soft);
  font-size: 11px;
  font-weight: 600;
}

.steps h3 { font-size: clamp(27px, 3vw, 42px); }
.steps p { max-width: 760px; margin: 16px 0 0; color: #bdc0bb; }
.steps .step-check { color: var(--paper); }

.inline-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--paper);
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.message-card {
  margin-top: 58px;
  padding: clamp(24px, 5vw, 52px);
  border-top: 2px solid var(--red);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.025), transparent 45%),
    rgba(15, 20, 21, 0.88);
}

.message-card-muted { border-top-color: #69716e; }

.message-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.message-head span {
  color: var(--red-soft);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.message-head h3 { margin-top: 7px; font-size: clamp(25px, 3vw, 39px); }
.message-card blockquote { margin: 38px 0; }
.message-card > p { color: #b9bdb7; }

.editorial-grid {
  margin-top: 70px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
}

.editorial-grid article {
  padding: clamp(26px, 4vw, 46px);
  background: var(--raised);
}

.editorial-grid h3 { font-size: clamp(26px, 3vw, 39px); }
.editorial-grid p { color: #b9bdb7; }

.subheading { margin-top: 90px; }

.model-list {
  margin-top: 34px;
  border-top: 1px solid var(--line);
}

.model-list article {
  padding: 27px 0;
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 30px;
  border-bottom: 1px solid var(--line);
}

.model-list b { color: var(--red-soft); font-family: "HeroLocal", Arial, sans-serif; font-size: 31px; }
.model-list p { margin: 0; color: #bdc0ba; }

.warning a { color: var(--paper); }

.concepts { margin-top: 76px; border-top: 1px solid var(--line); }

.concepts article {
  padding: 34px 0;
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.concepts article > span { color: var(--red-soft); font-size: 12px; font-weight: 600; }
.concepts h3 { font-size: clamp(27px, 3vw, 42px); }
.concepts p { color: #b9bdb7; }

.checklist {
  margin: 58px 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.checklist li {
  padding: 22px 0;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  color: #d4d5d0;
}

.checklist span { color: var(--red-soft); font-weight: 600; }

.next-level {
  background:
    radial-gradient(ellipse at 88% 18%, rgba(213, 31, 50, 0.12), transparent 26%),
    radial-gradient(ellipse at 66% 72%, rgba(255, 255, 255, 0.028), transparent 42%),
    linear-gradient(145deg, #020303 0%, #090c0d 54%, #030404 100%) !important;
}

@keyframes ambient-light {
  from { opacity: 0.72; transform: scale(1); }
  to { opacity: 1; transform: scale(1.025); }
}

.motion-ready [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.72s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.motion-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.motion-ready .task-rail article::before,
.motion-ready .steps li .step-number,
.motion-ready .concepts article > span {
  transition: box-shadow 0.55s ease, color 0.55s ease, border-color 0.55s ease;
}

.motion-ready .task-rail article.is-visible::before,
.motion-ready .steps li.is-visible .step-number {
  box-shadow: 0 0 0 6px rgba(213, 31, 50, 0.08), 0 0 24px rgba(213, 31, 50, 0.24);
}

.motion-ready .concepts article.is-visible > span { color: #ff5a6b; }

.next-level h2 { max-width: 960px; }
.story { max-width: 850px; margin-top: 70px; }
.story blockquote { margin: 64px 0; font-size: clamp(25px, 3vw, 39px); line-height: 1.28; }

.final-action {
  margin-top: 76px;
  padding-top: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border-top: 1px solid var(--line);
}

.final-action p { max-width: 600px; margin: 0; font-family: "HeroLocal", Arial, sans-serif; font-size: clamp(27px, 3vw, 42px); line-height: 1.1; }
.final-action .button { flex: 0 0 auto; }

.footer { background: #060707; }
.footer .shell { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.footer a { text-decoration: none; }

.copy-toast {
  position: fixed;
  z-index: 120;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  max-width: calc(100% - 36px);
  padding: 14px 18px;
  border-left: 3px solid var(--red);
  background: #222829;
  color: var(--paper);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.42);
  font-size: 14px;
}

:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .brand span { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hero-thread { right: 18px; opacity: 0.7; }
  .hero-inner { padding-top: 80px; justify-content: flex-start; }
  h1 { font-size: clamp(50px, 14vw, 70px); }
  .hero-lead { margin-top: 24px; font-size: 23px; }
  .hero-copy { font-size: 16px; }
  .button { width: 100%; }
  .hero-contrast { grid-template-columns: 1fr; }
  .hero-contrast article { min-height: 0; padding: 24px 0; }
  .section-heading { grid-template-columns: 1fr; gap: 26px; }
  .contents-list a { min-height: 70px; grid-template-columns: 36px 1fr 20px; gap: 10px; }
  .contents-list span { font-size: 20px; }
  .line-list li { grid-template-columns: 38px 1fr; gap: 8px; }
  .task-rail { padding-left: 30px; }
  .task-rail article { grid-template-columns: 1fr; gap: 8px; }
  .task-rail article::before { left: -27px; }
  .details-body { padding-left: 0; }
  .accordions summary { grid-template-columns: 32px 1fr 24px; min-height: 92px; gap: 8px; }
  .accordions summary strong { font-size: 26px; }
  .copy-block { padding: 20px; }
  .steps::before { left: 19px; }
  .steps li { grid-template-columns: 48px 1fr; gap: 14px; }
  .step-number { width: 40px; height: 40px; }
  .message-head { flex-direction: column; }
  .message-head .copy-button { width: 100%; }
  .editorial-grid { grid-template-columns: 1fr; }
  .model-list article { grid-template-columns: 1fr; gap: 8px; }
  .concepts article { grid-template-columns: 34px 1fr; gap: 8px; }
  .final-action { flex-direction: column; align-items: stretch; }
  .footer .shell { padding: 24px 0; flex-direction: column; align-items: flex-start; }
}

@media (max-width: 390px) {
  :root { --header-height: 60px; }
  .shell { width: min(100% - 28px, 1180px); }
  .section::before { width: calc(100% - 28px); }
  .site-header { padding-left: 14px; padding-right: 14px; }
  .brand span { max-width: 142px; }
  .contents-toggle { padding: 0 10px; font-size: 10px; }
  h1 { font-size: 47px; }
  h2 { font-size: 41px; }
  .message-card { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  .motion-ready [data-reveal] { opacity: 1 !important; transform: none !important; }
}
