/* Brand Rescue Desk — dispatch-desk design system */
:root {
  --ink: #0F1B2D;         /* deep navy */
  --ink-deep: #0A1421;    /* darker navy for depth */
  --panel: #16253C;       /* raised navy panel */
  --panel-2: #1C2C44;
  --line-navy: #2A3E5E;   /* border on navy */
  --paper: #FAF8F4;       /* warm paper body */
  --paper-2: #F3EFE7;     /* raised paper */
  --card: #FFFFFF;
  --line: #E7E2D8;        /* border on paper */
  --body: #2A3140;        /* body text on paper */
  --mute: #6B7280;
  --amber: #E8A13D;       /* the one action color */
  --amber-soft: #F5E7CF;
  --amber-dark: #B9781A;
  --green: #2E7D5B;
  --green-bright: #6FCF9F;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Menlo, monospace;
  --sans: "Archivo", -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --r-lg: 14px; --r-md: 10px; --r-sm: 6px;
  --sh-1: 0 1px 2px rgba(15,27,45,.05);
  --sh-2: 0 6px 20px rgba(15,27,45,.08), 0 1px 3px rgba(15,27,45,.05);
  --sh-3: 0 22px 48px rgba(15,27,45,.18);
  --maxw: 64rem;
  --ease: cubic-bezier(.2,.7,.2,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--amber); color: #1A1405; }

.wrap { max-width: 46rem; margin: 0 auto; padding: 0 1.5rem; }
.wrap-wide { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }

/* ---------- shared label / eyebrow ---------- */
.eyebrow {
  font-family: var(--mono); font-size: .74rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--amber); display: inline-flex;
  align-items: center; gap: .55rem; margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: ""; width: 1.6rem; height: 1px; background: currentColor; opacity: .6;
}
main .eyebrow { color: var(--amber-dark); }

/* ---------- header (sticky glass) ---------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,21,35,.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(255,255,255,.07);
  color: #EDF1F7;
}
.nav {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.5rem;
  padding: .85rem 1.5rem; max-width: var(--maxw); margin: 0 auto;
}
.wordmark {
  font-family: var(--sans); font-weight: 800; font-size: 1.05rem;
  letter-spacing: .01em; text-decoration: none; color: #fff;
  display: flex; align-items: center; gap: .55rem;
}
.wordmark .dot {
  width: .5rem; height: .5rem; border-radius: 50%;
  background: var(--amber); display: inline-block; position: relative;
  box-shadow: 0 0 0 0 rgba(232,161,61,.6); animation: ping 2.6s var(--ease) infinite;
}
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(232,161,61,.5); }
  70%,100% { box-shadow: 0 0 0 7px rgba(232,161,61,0); }
}
.nav-links { margin-left: auto; display: flex; flex-wrap: wrap; gap: 1.3rem; }
.nav-links a {
  font-family: var(--mono); font-size: .76rem; letter-spacing: .07em;
  text-transform: uppercase; text-decoration: none; color: #AEB9CA;
  padding: .25rem 0; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #fff; border-bottom-color: var(--amber); }
.nav-links a:focus-visible, a:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 2px;
}

/* ---------- status pill ---------- */
.status {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .06em;
  text-transform: uppercase; color: #C4CEDD;
  border: 1px solid var(--line-navy); border-radius: 999px;
  padding: .4rem .85rem; background: rgba(255,255,255,.03);
}
.pulse {
  width: .5rem; height: .5rem; border-radius: 50%; background: var(--green-bright);
  box-shadow: 0 0 0 0 rgba(111,207,159,.55); animation: ping-green 2.4s var(--ease) infinite;
}
@keyframes ping-green {
  0% { box-shadow: 0 0 0 0 rgba(111,207,159,.5); }
  70%,100% { box-shadow: 0 0 0 6px rgba(111,207,159,0); }
}

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink); color: #EDF1F7;
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(3.5rem, 6vw, 5.5rem);
}
.hero::before {   /* subtle console dot-grid */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.045) 1px, transparent 0);
  background-size: 24px 24px; mask-image: linear-gradient(180deg, #000 20%, transparent 92%);
}
.hero::after {   /* warm glow behind photo */
  content: ""; position: absolute; top: -20%; right: -10%; width: 46rem; height: 46rem;
  background: radial-gradient(closest-side, rgba(232,161,61,.10), transparent 70%);
  pointer-events: none;
}
.hero > .wrap-wide { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: minmax(0,1fr) 20rem; gap: 3.5rem; align-items: center; }
.hero .status { margin-bottom: 1.4rem; }
.hero h1 {
  font-family: var(--sans); font-weight: 800;
  font-size: clamp(2.1rem, 5.4vw, 3.4rem);
  line-height: 1.04; letter-spacing: -.022em; color: #fff;
  max-width: 15ch;
}
.hero .sub {
  margin-top: 1.35rem; max-width: 34rem; font-size: 1.15rem; color: #B7C2D2;
}
.hero-cta { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; }
.hero-photo { margin: 0; }
.hero-photo img {
  display: block; width: 100%; max-width: 20rem;
  border-radius: var(--r-md); border: 1px solid var(--line-navy);
  box-shadow: 0 30px 60px rgba(0,0,0,.35);
}
.hero-photo figcaption {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .05em;
  text-transform: uppercase; color: #8FA0B8; text-align: center; margin-top: .8rem;
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.25rem; }
  .hero-photo img { max-width: 14rem; margin: 0 auto; }
}

/* hero load choreography */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero-main > * { opacity: 0; animation: rise .65s var(--ease) forwards; }
.hero-main > *:nth-child(1) { animation-delay: .05s; }
.hero-main > *:nth-child(2) { animation-delay: .12s; }
.hero-main > *:nth-child(3) { animation-delay: .19s; }
.hero-main > *:nth-child(4) { animation-delay: .26s; }
.hero-main > *:nth-child(5) { animation-delay: .33s; }
.hero-main > *:nth-child(6) { animation-delay: .40s; }
.hero-photo { opacity: 0; animation: rise .8s var(--ease) .3s forwards; }
@media (prefers-reduced-motion: reduce) {
  .hero-main > *, .hero-photo { opacity: 1; animation: none; }
  .wordmark .dot, .pulse { animation: none; }
}

/* ---------- dispatch log (signature) ---------- */
.log {
  position: relative;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line-navy); border-radius: var(--r-md);
  padding: 1.5rem 1.6rem; margin-top: 2.25rem;
  font-family: var(--mono); font-size: .9rem; color: #D7DFEB;
  max-width: 34rem; box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 12px 30px rgba(0,0,0,.25);
}
.log-title {
  font-size: .7rem; letter-spacing: .16em; text-transform: uppercase;
  color: #8FA0B8; margin-bottom: 1.1rem; padding-bottom: .85rem;
  border-bottom: 1px solid var(--line-navy);
  display: flex; align-items: center; gap: .55rem;
}
.log-title::before {
  content: ""; width: .45rem; height: .45rem; border-radius: 50%;
  background: var(--green-bright); box-shadow: 0 0 8px rgba(111,207,159,.7);
}
.log-row {
  display: grid; grid-template-columns: 6rem 1fr; gap: 1rem;
  padding: .5rem 0;
}
.log-time { color: var(--amber); white-space: nowrap; }
.log-row.resolved .log-time { color: var(--green-bright); }
.log-note {
  margin-top: 1rem; padding-top: .9rem; border-top: 1px solid var(--line-navy);
  font-size: .78rem; color: #8FA0B8;
}
.log-note a { color: #D7DFEB; }
.log.on-paper { background: var(--ink); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--sans); font-weight: 700; font-size: 1rem;
  background: var(--amber); color: #1A1405; text-decoration: none;
  padding: .85rem 1.5rem; border-radius: 8px; border: 1px solid transparent;
  box-shadow: var(--sh-2); transition: transform .18s var(--ease), box-shadow .18s, background .18s;
}
.btn:hover { background: #F1B357; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(232,161,61,.32); }
.btn:active { transform: translateY(0); }
.btn-quiet {
  background: transparent; color: #EDF1F7; box-shadow: none;
  border: 1px solid var(--line-navy);
}
main .btn-quiet, .why .btn-quiet { color: var(--ink); border-color: #C9C1B2; }
.btn-quiet:hover { background: rgba(255,255,255,.06); border-color: #4A5C7C; transform: translateY(-2px); box-shadow: none; }
main .btn-quiet:hover { background: rgba(15,27,45,.04); border-color: var(--ink); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #17263c; box-shadow: 0 12px 26px rgba(15,27,45,.28); }

/* ---------- trust strip ---------- */
.trust-strip { background: var(--paper); border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(4,1fr); max-width: var(--maxw); margin: 0 auto; }
.trust-item { padding: 1.6rem 1.5rem; border-left: 1px solid var(--line); }
.trust-item:first-child { border-left: 0; padding-left: 1.5rem; }
.trust-val {
  font-family: var(--sans); font-weight: 800; font-size: 1.15rem;
  color: var(--ink); letter-spacing: -.01em; display: flex; align-items: center; gap: .45rem;
}
.trust-val::before {
  content: ""; width: .4rem; height: .4rem; border-radius: 1px; background: var(--amber);
  transform: rotate(45deg); flex: none;
}
.trust-label {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .04em;
  color: var(--mute); margin-top: .45rem; line-height: 1.4;
}
@media (max-width: 720px) {
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(2) { border-left: 1px solid var(--line); }
  .trust-item:nth-child(odd) { border-left: 0; }
  .trust-item:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- sections ---------- */
section.block { padding: clamp(3rem, 6vw, 5rem) 0; }
section.block + section.block { border-top: 1px solid var(--line); }
.why { background: var(--paper-2); }
h2 {
  font-family: var(--sans); font-weight: 800;
  font-size: clamp(1.6rem, 3.4vw, 2.2rem); line-height: 1.12;
  letter-spacing: -.018em; color: var(--ink);
  margin-bottom: 1.1rem; max-width: 26ch;
}
h3 { font-family: var(--sans); font-weight: 700; font-size: 1.15rem; color: var(--ink); margin: 2rem 0 .5rem; }
p + p { margin-top: 1rem; }
.lede { font-size: 1.22rem; line-height: 1.6; }
.muted { color: var(--mute); }

/* ---------- what I take down (threats) ---------- */
.threats { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; margin-top: 2rem; }
.threat {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 1.5rem; box-shadow: var(--sh-1);
  transition: transform .2s var(--ease), box-shadow .2s, border-color .2s;
}
.threat:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: #DCD3C2; }
.ic-wrap {
  width: 2.9rem; height: 2.9rem; border-radius: var(--r-sm);
  background: var(--amber-soft); color: var(--amber-dark);
  display: grid; place-items: center; margin-bottom: 1.1rem;
}
.ic { width: 1.5rem; height: 1.5rem; }
.threat h3 { margin: 0 0 .4rem; font-size: 1.05rem; }
.threat p { font-size: .96rem; color: var(--mute); line-height: 1.55; }
@media (max-width: 860px) { .threats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .threats { grid-template-columns: 1fr; } }

/* ---------- how it works (steps) ---------- */
.steps { list-style: none; margin-top: 2rem; display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.step {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 1.6rem 1.5rem; box-shadow: var(--sh-1);
  transition: transform .2s var(--ease), box-shadow .2s;
}
.step:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.step-num {
  font-family: var(--mono); font-size: .95rem; font-weight: 500; color: var(--amber-dark);
  border: 1px solid var(--amber-soft); background: #FCF6EC; border-radius: var(--r-sm);
  width: 2.5rem; height: 2.5rem; display: grid; place-items: center; margin-bottom: 1.1rem;
}
.step h3 { margin: 0 0 .4rem; font-size: 1.08rem; }
.step p { font-size: .98rem; color: var(--mute); }
@media (max-width: 780px) { .steps { grid-template-columns: 1fr; } .step { display: grid; grid-template-columns: 2.5rem 1fr; gap: 1.1rem; align-items: start; } .step-num { margin-bottom: 0; } }

/* plain lists */
ul.plain { margin: 1rem 0 0 1.2rem; }
ul.plain li { margin-top: .6rem; }

/* ---------- reveal on scroll (progressive) ---------- */
html.js [data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s var(--ease); }
html.js [data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html.js [data-reveal] { opacity: 1; transform: none; transition: none; } }

/* ---------- story article ---------- */
article.story { padding: clamp(3rem,6vw,4.5rem) 0 4.5rem; }
article.story h1 {
  font-family: var(--sans); font-weight: 800;
  font-size: clamp(1.9rem, 5vw, 2.7rem); line-height: 1.08;
  letter-spacing: -.02em; color: var(--ink); max-width: 22ch;
}
article.story .standfirst { margin-top: 1rem; font-style: italic; color: var(--mute); font-size: 1.08rem; }
article.story h2 { margin-top: 3rem; font-size: clamp(1.35rem, 3vw, 1.7rem); }
article.story p { margin-top: 1.1rem; }
article.story strong { color: var(--ink); }
figure.shot { margin: 2rem 0; border: 1px dashed #C9C1B2; border-radius: var(--r-md); background: #F1EDE4; padding: 2.5rem 1.5rem; text-align: center; }
figure.shot figcaption { font-family: var(--mono); font-size: .8rem; color: var(--mute); letter-spacing: .04em; }
figure.shot.filled { border: 1px solid var(--line); background: var(--card); padding: .6rem; text-align: left; box-shadow: var(--sh-1); }
figure.shot.filled img { display: block; width: 100%; height: auto; border-radius: var(--r-sm); border: 1px solid #EDE8DE; }
figure.shot.filled figcaption { margin-top: .7rem; text-align: left; line-height: 1.45; letter-spacing: 0; color: var(--mute); }
.shot-pair { display: grid; gap: 1rem; margin: 2rem 0; }
.shot-pair figure.shot { margin: 0; }

/* ---------- founder / portrait ---------- */
.founder { display: grid; grid-template-columns: 1fr 16rem; gap: 2.5rem; align-items: center; }
.founder-photo { margin: 0; justify-self: center; }
.founder-photo img { display: block; width: 100%; max-width: 16rem; aspect-ratio: 1; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--sh-3); }
.founder-photo figcaption { font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; color: var(--mute); text-align: center; margin-top: .8rem; }
@media (max-width: 620px) { .founder { grid-template-columns: 1fr; gap: 1.75rem; } .founder-photo { order: -1; } .founder-photo img { max-width: 12rem; } }

/* byline avatar */
.byline { display: flex; align-items: center; gap: 1rem; margin-top: 2.5rem; }
.byline-photo { width: 3.6rem; height: 3.6rem; border-radius: 50%; flex-shrink: 0; object-fit: cover; object-position: center 22%; border: 1px solid var(--line); }
.byline p { margin: 0; }

/* ---------- price panel ---------- */
.price-panel { background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--amber); border-radius: var(--r-md); padding: 1.75rem; margin-top: 2rem; box-shadow: var(--sh-2); }
.price-line { font-family: var(--sans); font-weight: 800; font-size: 1.6rem; color: var(--ink); }
.price-line .amount { color: var(--amber-dark); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--ink); color: #EDF1F7; padding: clamp(3rem,6vw,4.5rem) 0; }
.cta-band::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.045) 1px, transparent 0); background-size: 24px 24px; mask-image: linear-gradient(180deg, #000, transparent); }
.cta-band > .wrap-wide { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #B7C2D2; max-width: 34rem; }
.cta-band .email { font-family: var(--mono); font-size: 1rem; color: var(--amber); word-break: break-all; }

/* ---------- footer ---------- */
footer.site { background: var(--ink-deep); color: #8FA0B8; border-top: 1px solid #22324B; padding: 3rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.5rem 2rem; padding-bottom: 2.5rem; }
.footer-brand .wordmark { margin-bottom: .9rem; }
.footer-brand p { font-family: var(--serif); font-size: .95rem; color: #9AA7B8; max-width: 24rem; margin-top: 0; }
.footer-status { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--mono); font-size: .74rem; letter-spacing: .04em; color: #C4CEDD; margin-top: 1rem !important; }
.footer-col { display: flex; flex-direction: column; gap: .65rem; }
.footer-h { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: #6C7A8E; margin-bottom: .3rem; }
footer.site a { font-family: var(--mono); font-size: .82rem; color: #B9C4D4; text-decoration: none; transition: color .2s; }
footer.site a:hover { color: #fff; }
.footer-col span { font-family: var(--mono); font-size: .82rem; color: #8FA0B8; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding: 1.25rem 0; border-top: 1px solid #22324B; font-family: var(--mono); font-size: .74rem; letter-spacing: .03em; color: #6C7A8E; }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

@media (max-width: 560px) {
  .nav-links { margin-left: 0; gap: 1rem; }
  .log-row { grid-template-columns: 5rem 1fr; gap: .6rem; }
}
