/* =================================================================
   ViewSpike LLC  ·  Corporate site
   High-end corporate: confident grotesque type, cool near-monochrome
   palette, precise hairline grid, one restrained claret accent.
   Motion is a single quiet settle on first load. No scroll reveals,
   no perpetual movement. All color/type/timing values are :root vars.
   ================================================================= */

:root {
  /* --- Palette: cool near-white, graphite ink, one claret accent --- */
  --paper:       #f6f5f3;
  --paper-2:     #eeece8;
  --paper-3:     #e4e1db;
  --ink:         #15161a;
  --ink-2:       #34363d;
  --muted:       #63656d;
  --line:        #e0ddd6;
  --line-2:      #cbc7be;
  --accent:      #6e2b2b;
  --accent-deep: #531f1e;
  --band:        #16171b;
  --band-2:      #1e1f24;
  --on-band:     #e8e6e0;
  --on-band-dim: #aaa9a2;
  --on-ink:      #d9d7cf;
  --on-ink-dim:  #8b8a82;
  --focus:       #6e2b2b;

  /* --- Type --- */
  --font-text: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* --- Measure & rhythm --- */
  --measure: 34rem;
  --page:    72rem;
  --gutter:  clamp(1.25rem, 5vw, 3.25rem);

  /* --- Motion --- */
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
}

/* ----------------------------- Reset ----------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.66;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }

a { color: var(--accent); }
a:hover { color: var(--accent-deep); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.12;
  margin: 0;
  letter-spacing: -0.02em;
}

/* Body-copy links: quiet underline, offset for legibility */
.copy a, .statement a, .legal a, .contact-aside a, .note-line a {
  color: var(--accent);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-color: var(--line-2);
  transition: text-decoration-color 0.25s var(--ease), color 0.25s var(--ease);
}
.copy a:hover, .statement a:hover, .legal a:hover,
.contact-aside a:hover, .note-line a:hover {
  text-decoration-color: var(--accent);
}

/* --------------------------- Skip link --------------------------- */
.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: var(--paper);
  padding: 0.6rem 1rem; z-index: 60; text-decoration: none;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* ----------------------------- Shell ----------------------------- */
.wrap {
  width: 100%;
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ----------------------------- Header ---------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  min-height: 4.5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  text-decoration: none;
  color: var(--ink);
}
.brand .mark {
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}
.brand::before {
  content: "";
  width: 0.66rem;
  height: 0.66rem;
  border: 1.5px solid var(--accent);
  transform: rotate(45deg);
  flex: none;
}

/* ------------------------------ Hero ----------------------------- */
.hero { background: var(--paper); }
.hero .wrap {
  padding-block: clamp(3.5rem, 9vw, 7rem) clamp(3rem, 7vw, 5.5rem);
  display: grid;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: stretch;
}
.hero .lede { max-width: 40rem; align-self: center; }
.hero .overline {
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin: 0 0 1.6rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.hero .overline::before {
  content: "";
  width: 1.6rem;
  height: 1px;
  background: var(--accent);
}
.hero h1 {
  font-size: clamp(2.5rem, 5.8vw, 4.4rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.02;
  max-width: 15ch;
  color: var(--ink);
}
.hero .sub {
  margin: 1.7rem 0 0;
  font-size: clamp(1.1rem, 1.7vw, 1.3rem);
  color: var(--ink-2);
  max-width: 38rem;
  line-height: 1.55;
}
.hero .hairline {
  height: 1px;
  background: var(--line-2);
  margin-top: 2.2rem;
  max-width: 7rem;
}
@media (min-width: 56rem) {
  .hero .wrap { grid-template-columns: 1.45fr 1fr; gap: clamp(3rem, 6vw, 6rem); }
}

/* Hero media: full-bleed photographic panel */
.hero-figure {
  margin: 0;
  position: relative;
  align-self: stretch;
  min-height: clamp(20rem, 42vw, 33rem);
  overflow: hidden;
  background: var(--paper-2);
  box-shadow: 0 40px 70px -42px rgba(22, 23, 27, 0.34),
              0 2px 8px rgba(22, 23, 27, 0.05);
}
.hero-figure img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
  display: block;
}

/* ----------------------- Statement / intro ---------------------- */
.statement { background: var(--band); color: var(--on-band); }
.statement .wrap { padding-block: clamp(3.25rem, 7vw, 5.5rem); }
.statement .inner { max-width: 50rem; display: grid; gap: 1.6rem; }
.statement .rule { width: 2.5rem; height: 2px; background: var(--accent); }
.statement p {
  margin: 0;
  font-size: clamp(1.3rem, 2.3vw, 1.85rem);
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.32;
  color: var(--on-band);
}
.statement p + p {
  color: var(--on-band-dim);
  font-size: clamp(1rem, 1.5vw, 1.14rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.62;
  font-family: var(--font-text);
}
.statement a { color: var(--on-band); text-decoration-color: rgba(232, 230, 224, 0.4); }

/* ---------------------------- Sections --------------------------- */
.section { border-bottom: 1px solid var(--line); background: var(--paper); }
.section:last-of-type { border-bottom: none; }
.section .wrap {
  padding-block: clamp(3rem, 7vw, 5rem);
  display: grid;
  gap: 1.25rem 0;
}
.section .index {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.section h2 {
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.025em;
}
.section .copy { max-width: var(--measure); }
.section .copy > p { margin: 0 0 1.2rem; }
.section .copy > p:last-child { margin-bottom: 0; }
@media (min-width: 56rem) {
  .section .wrap {
    grid-template-columns: 4rem 15rem 1fr;
    gap: 0 clamp(2rem, 4vw, 3.5rem);
    align-items: start;
  }
  .section .index { grid-row: 1; padding-top: 0.55rem; }
  .section .head { grid-row: 1; }
  .section .copy { grid-row: 1; }
}

/* --------------------------- Notice block ------------------------ */
.notice {
  border: 1px solid var(--line-2);
  background: var(--paper-2);
  padding: clamp(1.6rem, 4vw, 2.5rem);
  max-width: var(--measure);
}
.notice .tag {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 1rem;
}
.notice p { margin: 0 0 1rem; }
.notice p:last-child { margin-bottom: 0; }
.notice .crisis {
  margin-top: 1.4rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--line-2);
  font-family: var(--font-display);
  font-size: 1.16rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.4;
  color: var(--ink);
}

/* ----------------------- Support / billing ----------------------- */
.note-line {
  font-size: 0.98rem;
  color: var(--muted);
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

/* ----------------------------- Footer ---------------------------- */
.site-footer { background: var(--ink); color: var(--on-ink); }
.site-footer .wrap {
  padding-block: clamp(2.75rem, 6vw, 4rem);
  display: grid;
  gap: 2rem;
}
.site-footer .foot-brand {
  color: var(--paper);
  font-weight: 700;
  font-size: 0.98rem;
  margin: 0;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.2em;
}
.footer-nav ul {
  list-style: none; margin: 1.1rem 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.6rem 2rem;
}
.footer-nav a {
  color: var(--on-ink);
  text-decoration: none;
  font-size: 0.95rem;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.footer-nav a:hover { color: var(--paper); border-bottom-color: var(--on-ink-dim); }
.copyright { font-size: 0.86rem; color: var(--on-ink-dim); margin: 0; }
@media (min-width: 56rem) {
  .site-footer .wrap { grid-template-columns: 1fr auto; align-items: end; }
  .footer-meta { text-align: right; }
}

/* ====================== Interior page header ===================== */
.page-head { background: var(--paper-2); border-bottom: 1px solid var(--line); }
.page-head .wrap { padding-block: clamp(3rem, 7vw, 4.75rem); }
.page-head .kicker {
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin: 0 0 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.page-head .kicker::before {
  content: "";
  width: 1.6rem;
  height: 1px;
  background: var(--accent);
}
.page-head h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.035em;
}
.page-head .updated {
  margin: 1.2rem 0 0;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  font-weight: 500;
}
.page-head .standfirst {
  margin: 1.5rem 0 0;
  max-width: var(--measure);
  font-size: 1.16rem;
  color: var(--ink-2);
  line-height: 1.55;
}

/* ============================ Legal/doc ========================= */
.doc { background: var(--paper); }
.doc .wrap { padding-block: clamp(2.75rem, 6vw, 4.25rem); display: grid; gap: 2.75rem; }

.toc { font-size: 0.95rem; }
.toc h2 {
  font-family: var(--font-text);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin: 0 0 0.5rem;
}
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc li { margin: 0; border-top: 1px solid var(--line); }
.toc a {
  color: var(--ink-2);
  text-decoration: none;
  display: block;
  padding: 0.6rem 0;
  transition: color 0.2s var(--ease);
}
.toc a:hover { color: var(--accent); }

.legal { max-width: var(--measure); }
.legal .lead {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 2.4rem;
  line-height: 1.4;
}
.legal section { margin-bottom: 2.6rem; scroll-margin-top: 6rem; }
.legal section:last-child { margin-bottom: 0; }
.legal h2 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  gap: 0.8rem;
  align-items: baseline;
  letter-spacing: -0.02em;
}
.legal h2 .n {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  flex: none;
  font-variant-numeric: tabular-nums;
  transform: translateY(-0.15em);
}
.legal h3 {
  font-family: var(--font-text);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 1.5rem 0 0.4rem;
}
.legal p { margin: 0 0 1rem; }
.legal p:last-child { margin-bottom: 0; }
.legal ul { margin: 0 0 1rem; padding-left: 1.2rem; }
.legal li { margin-bottom: 0.5rem; padding-left: 0.2rem; }
.legal li::marker { color: var(--line-2); }

@media (min-width: 56rem) {
  .doc .wrap {
    grid-template-columns: 14rem 1fr;
    gap: clamp(3rem, 6vw, 5.5rem);
    align-items: start;
  }
  .toc { position: sticky; top: 6rem; }
}

/* ---------------------------- Contact ---------------------------- */
.contact-grid { display: grid; gap: 2.75rem; }
.doc .wrap > .contact-grid { grid-column: 1 / -1; }
.embed-slot {
  border: 1px dashed var(--line-2);
  background: var(--paper-2);
  min-height: 30rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}
.embed-slot p { margin: 0; color: var(--muted); font-size: 0.97rem; max-width: 24rem; line-height: 1.6; }
.embed-slot .slot-title {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
  font-weight: 600;
  margin-bottom: 0.7rem;
}
.contact-aside .block { margin-bottom: 2.25rem; }
.contact-aside .block:last-child { margin-bottom: 0; }
.contact-aside h2 {
  font-family: var(--font-text);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin: 0 0 0.9rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--line);
}
.contact-aside address { font-style: normal; line-height: 1.8; color: var(--ink-2); }
.contact-aside .org {
  font-weight: 600;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}
@media (min-width: 52rem) {
  .contact-grid { grid-template-columns: minmax(0, 1.7fr) minmax(15rem, 1fr); gap: clamp(2.5rem, 5vw, 4rem); }
}

/* ============================ Motion ============================ */
/* Content is always visible. A single quiet upward settle plays once on
   first load (transform only, so a frozen or backgrounded frame can
   never blank the content). Respects reduced-motion. No scroll reveals,
   no looping. */
@keyframes rise-in {
  from { transform: translateY(14px); }
  to   { transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .rise    { animation: rise-in 0.7s var(--ease) both; }
  .rise.d1 { animation-delay: 0.08s; }
  .rise.d2 { animation-delay: 0.16s; }
  .rise.d3 { animation-delay: 0.24s; }
  .rise.d4 { animation-delay: 0.32s; }
}
