/* RCF Security. Single stylesheet, no JavaScript anywhere on this site.
   Motion and interaction are CSS only: scroll timelines, view transitions,
   :target, and the details element. */

@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/barlow-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/barlow-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/barlow-latin-700-normal.woff2') format('woff2');
}

/* Page to page transitions, same origin, no script required. */
@view-transition { navigation: auto; }

:root {
  --ink: #0b0b0c;
  --panel: #141416;
  --line: #26262a;
  --line-soft: #1b1b1e;
  --text: #e8e8e8;
  --muted: #8a929c;
  --red: #dc2626;
  --red-deep: #c0272d;
  --shell: 1120px;
  --prose: 66ch;
  --sans: 'Barlow', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
}

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

a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--red);
  transition: color 0.18s var(--ease), text-decoration-color 0.18s var(--ease);
}
a:hover { color: #fff; text-decoration-color: #fff; }

:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--red-deep);
  color: #fff;
  padding: 10px 16px;
  z-index: 20;
  text-decoration: none;
}
.skip:focus { left: 0; }

.shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px;
}

/* Reading progress. Driven by scroll position, not by a script. */

.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--red);
  transform-origin: 0 50%;
  transform: scaleX(0);
  z-index: 15;
}
@supports (animation-timeline: scroll()) {
  .progress {
    animation: progress linear;
    animation-timeline: scroll(root block);
  }
}
@keyframes progress { to { transform: scaleX(1); } }

/* Header, sticky and condensing */

.masthead {
  position: sticky;
  top: 0;
  z-index: 12;
  border-bottom: 1px solid var(--line-soft);
  padding: 20px 0 16px;
  background: rgba(11, 11, 12, 0.92);
  transition: padding 0.25s var(--ease), border-color 0.25s var(--ease);
}
@supports (backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px)) {
  .masthead {
    background: rgba(11, 11, 12, 0.78);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    backdrop-filter: blur(12px) saturate(140%);
  }
}
@supports (animation-timeline: scroll()) {
  .masthead {
    animation: condense linear both;
    animation-timeline: scroll(root block);
    animation-range: 0 220px;
  }
  @keyframes condense {
    to { padding-top: 10px; padding-bottom: 8px; border-bottom-color: var(--line); }
  }
  .masthead .mark img {
    animation: shrink linear both;
    animation-timeline: scroll(root block);
    animation-range: 0 220px;
  }
  @keyframes shrink { to { width: 190px; } }
}

.masthead .shell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
}
.mark { display: inline-block; line-height: 0; }
.mark img { transition: width 0.25s var(--ease); }

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 26px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.nav a {
  text-decoration: none;
  color: var(--muted);
  padding: 4px 0;
  position: relative;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.22s var(--ease);
}
.nav a:hover { color: var(--text); }
.nav a:hover::after, .nav a:focus-visible::after { transform: scaleX(1); }
.nav a[aria-current='page'] { color: var(--text); }
.nav a[aria-current='page']::after { transform: scaleX(1); }

/* Type */

h1, h2, h3 { font-weight: 700; letter-spacing: -0.015em; line-height: 1.12; margin: 0; }
h1 { font-size: 3.05rem; }
h2 { font-size: 2rem; line-height: 1.16; }
h3 { font-size: 1.28rem; line-height: 1.25; letter-spacing: -0.005em; }
p { margin: 0 0 1.1em; max-width: var(--prose); }
p:last-child { margin-bottom: 0; }
.lede { font-size: 1.24rem; line-height: 1.5; color: #d2d2d2; }
.muted { color: var(--muted); }
strong { font-weight: 600; }

.stack { padding: 74px 0; border-top: 1px solid var(--line-soft); scroll-margin-top: 110px; }
.stack:first-of-type { border-top: 0; }
.stack > * + * { margin-top: 26px; }

/* Sections arrive as you reach them. Content is visible by default,
   so anything without scroll timeline support loses nothing. */

@supports (animation-timeline: view()) {
  .stack > .shell, .hero .frame {
    animation: rise linear both;
    animation-timeline: view(block);
    animation-range: entry 0% entry 55%;
  }
  @keyframes rise {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

/* Hero */

.hero { padding: 90px 0 74px; }
.frame { position: relative; padding: 42px 40px 44px; }
.frame::before, .frame::after {
  content: '';
  position: absolute;
  width: 46px;
  height: 46px;
  border: 3px solid var(--red);
}
.frame::before { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.frame::after { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.hero h1 { max-width: 20ch; }
.hero .lede { margin-top: 20px; max-width: 58ch; }

.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.btn {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 13px 24px;
  text-decoration: none;
  border: 1px solid var(--red);
  background: var(--red-deep);
  color: #fff;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.btn:hover { background: #e0332f; border-color: #e0332f; color: #fff; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-quiet { background: transparent; border-color: var(--line); color: var(--text); }
.btn-quiet:hover { background: transparent; border-color: var(--text); color: #fff; }

/* Section jump bar on long pages.
   Full bleed sticky band on the outside, centered column on the inside. */

.jump {
  position: sticky;
  top: 74px;
  z-index: 10;
  background: rgba(11, 11, 12, 0.92);
  border-bottom: 1px solid var(--line-soft);
}
@supports (backdrop-filter: blur(10px)) {
  .jump { background: rgba(11, 11, 12, 0.72); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
}
.jump-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  padding-top: 12px;
  padding-bottom: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.jump a { color: var(--muted); text-decoration: none; padding: 2px 0; }
.jump a:hover { color: var(--text); }

/* Service and content blocks */

.entries { margin-top: 10px; }
.entry {
  border-top: 1px solid var(--line);
  border-left: 2px solid transparent;
  padding: 30px 0 30px 0;
  transition: border-left-color 0.22s var(--ease), padding-left 0.22s var(--ease), background 0.22s var(--ease);
}
.entry:hover {
  border-left-color: var(--red);
  padding-left: 18px;
  background: linear-gradient(90deg, rgba(220, 38, 38, 0.05), rgba(220, 38, 38, 0));
}
.entry h3 { margin-bottom: 10px; }
.entry .deliver { color: var(--muted); font-size: 0.95rem; max-width: var(--prose); }
.entry .deliver strong { color: var(--text); font-weight: 600; }

.pillars { display: grid; gap: 34px; grid-template-columns: repeat(3, 1fr); margin-top: 8px; }
.pillars h3 { margin-bottom: 8px; }
.pillars p { font-size: 0.98rem; margin-bottom: 0; }
.pillars > div {
  border-top: 2px solid var(--red);
  padding-top: 16px;
  transition: transform 0.22s var(--ease);
}
.pillars > div:hover { transform: translateY(-3px); }

/* Approach: a real sequence, so it is numbered */

.phases { list-style: none; margin: 8px 0 0; padding: 0; counter-reset: phase; }
.phases li {
  counter-increment: phase;
  border-left: 1px solid var(--line);
  padding: 0 0 30px 26px;
  position: relative;
}
.phases li::before {
  content: counter(phase, decimal-leading-zero);
  position: absolute;
  left: -1px;
  top: 2px;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--red);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  padding: 2px 0;
  line-height: 1;
}
.phases li:last-child { padding-bottom: 0; border-left-color: transparent; }
.phases h3 { margin-bottom: 6px; }
.phases p { margin-bottom: 0; }

/* Disclosure blocks. Native element, keyboard accessible, no script. */

.faq { max-width: var(--prose); margin-top: 8px; }
.faq details {
  border-top: 1px solid var(--line);
}
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 40px 18px 0;
  position: relative;
  font-weight: 600;
  font-size: 1.05rem;
  transition: color 0.18s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: #fff; }
.faq summary::after {
  content: '';
  position: absolute;
  right: 6px;
  top: 27px;
  width: 11px;
  height: 11px;
  border-right: 2px solid var(--red);
  border-bottom: 2px solid var(--red);
  transform: rotate(45deg);
  transform-origin: 70% 70%;
  transition: transform 0.22s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { padding: 0 0 20px; margin: 0; color: #cfcfcf; }

/* Notes and panels */

.note {
  border-left: 3px solid var(--red);
  background: var(--panel);
  padding: 18px 22px;
  max-width: var(--prose);
}
.note p { margin-bottom: 0; }

/* Contact form */

.form { max-width: 34rem; margin-top: 8px; }
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.5;
  padding: 11px 13px;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
}
.field textarea { min-height: 170px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--red); background: #17171a; }
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--red); }
.field input:user-valid, .field textarea:user-valid { border-color: #2f6b3f; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
button.btn { cursor: pointer; font-family: var(--sans); }

.detail { border-top: 1px solid var(--line); padding-top: 22px; margin-top: 44px; }
.detail dt { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.detail dd { margin: 4px 0 18px; }
.detail dd:last-child { margin-bottom: 0; }

/* Footer */

.colophon {
  border-top: 1px solid var(--line-soft);
  margin-top: 80px;
  padding: 34px 0 58px;
  color: var(--muted);
  font-size: 0.93rem;
}
.colophon-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 30px;
  justify-content: space-between;
  align-items: baseline;
}
.colophon a { color: var(--muted); }
.colophon a:hover { color: var(--text); }
.colophon p { margin: 0; max-width: none; }
.fineprint {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  font-size: 0.86rem;
  color: #6f7680;
}
.footnav { display: flex; flex-wrap: wrap; gap: 10px 22px; }

/* Responsive */

@media (max-width: 860px) {
  h1 { font-size: 2.3rem; }
  h2 { font-size: 1.62rem; }
  .pillars { grid-template-columns: 1fr; gap: 28px; }
  .hero { padding: 58px 0 50px; }
  .frame { padding: 30px 24px 32px; }
  .frame::before, .frame::after { width: 30px; height: 30px; border-width: 2px; }
  .stack { padding: 54px 0; }
  .jump { top: 62px; }
  .entry:hover { padding-left: 12px; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  h1 { font-size: 1.95rem; }
  .nav { gap: 4px 16px; font-size: 11px; }
  .masthead { padding: 14px 0 12px; }
  .mark img { width: 200px; }
  .colophon-row { flex-direction: column; gap: 10px; }
}

/* Motion is a courtesy, never a requirement */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .stack > .shell, .hero .frame { opacity: 1 !important; transform: none !important; }
  .progress { display: none; }
  @view-transition { navigation: none; }
}

@media print {
  body { background: #fff; color: #000; }
  .nav, .actions, .skip, .progress, .jump { display: none; }
  .masthead { position: static; }
}

/* Inline diagram. Same origin, no image request, scales with the page. */

.path { width: 100%; height: auto; margin-top: 8px; overflow: visible; }
.path .p-link { stroke: var(--line); stroke-width: 2; }
.path .p-node rect {
  fill: var(--panel);
  stroke: var(--line);
  stroke-width: 1;
}
.path .p-node text {
  fill: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  text-anchor: middle;
}
.path .p-node .p-sub { fill: var(--muted); font-size: 12.5px; font-weight: 400; }
.path .p-end rect { stroke: var(--red); stroke-width: 2; fill: rgba(220, 38, 38, 0.08); }
.path .p-caption {
  fill: var(--muted);
  font-family: var(--sans);
  font-size: 13.5px;
}
@supports (animation-timeline: view()) {
  .path .p-link {
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: draw linear both;
    animation-timeline: view(block);
    animation-range: entry 10% entry 70%;
  }
  @keyframes draw { to { stroke-dashoffset: 0; } }
}
@media (prefers-reduced-motion: reduce) {
  .path .p-link { stroke-dashoffset: 0 !important; }
}
@media (max-width: 720px) {
  .path { min-width: 680px; }
  .scroller { overflow-x: auto; }
}

/* Credential and proof strip */

.creds { display: grid; gap: 26px; grid-template-columns: repeat(3, 1fr); margin-top: 10px; }
.creds > div { border-top: 1px solid var(--line); padding-top: 14px; }
.creds dt {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.creds dd { margin: 6px 0 0; font-size: 1.05rem; }
@media (max-width: 720px) { .creds { grid-template-columns: 1fr; gap: 18px; } }

/* Next steps on the confirmation page */

.next { counter-reset: n; list-style: none; padding: 0; margin: 10px 0 0; max-width: var(--prose); }
.next li {
  counter-increment: n;
  padding: 0 0 16px 40px;
  position: relative;
}
.next li::before {
  content: counter(n);
  position: absolute;
  left: 0;
  top: 2px;
  width: 24px;
  height: 24px;
  line-height: 24px;
  text-align: center;
  border: 1px solid var(--red);
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 700;
}
