/* Boiler Beacon.
   Image-led, spacious, dark. Every image slot is a designed frame with real
   dimensions, so the layout reads correctly before the photography exists. */

:root {
  --ink: #0a0e14;
  --ink-2: #121924;
  --ink-3: #1b2430;
  --line: #253040;
  --paper: #f4f6f8;
  --text: #e8edf2;
  --muted: #8b9bad;
  --muted-2: #5f7186;

  /* One accent. A beacon is a signal, and a signal is one colour. */
  --signal: #ff6b35;
  --signal-dim: #c9502a;
  --ok: #3ddc97;

  --wrap: 1240px;
  --wrap-narrow: 780px;
  --gutter: 24px;
  --radius: 4px;

  --step: clamp(80px, 11vw, 160px);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--text); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: var(--wrap-narrow); margin-left: auto; margin-right: auto; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; color: #000; padding: 10px 14px; }

/* ── Type ───────────────────────────────────────────────────────────── */
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0; font-weight: 600; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }

.eyebrow {
  display: inline-block;
  font-size: .74rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--signal);
  margin-bottom: 18px;
}

.lede { font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: var(--muted); line-height: 1.62; }
.prose p { margin: 0 0 1.1em; color: var(--muted); }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--text); font-weight: 600; }

/* ── Header ─────────────────────────────────────────────────────────── */
.site-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 20;
  padding: 26px 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand {
  display: flex; align-items: center; gap: 11px;
  text-decoration: none; color: var(--text);
  font-weight: 600; letter-spacing: -0.01em;
}
.brand-mark {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 4px rgba(255,107,53,.16), 0 0 20px rgba(255,107,53,.6);
  flex-shrink: 0;
}
.brand-name { font-size: 1.02rem; }

.status-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 40px;
  border: 1px solid var(--line);
  background: rgba(10,14,20,.5);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: .74rem; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--muted);
  white-space: nowrap;
}
.status-pill::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--signal);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}

/* ── Hero ───────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: 140px 0 var(--step);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,14,20,.86) 0%, rgba(10,14,20,.42) 34%, rgba(10,14,20,.94) 100%),
    linear-gradient(90deg, rgba(10,14,20,.7) 0%, rgba(10,14,20,.1) 62%);
}
.hero-inner { position: relative; z-index: 2; width: 100%; }
.hero-text { max-width: 800px; }
.hero h1 { margin-bottom: 26px; }
.hero .lede { max-width: 62ch; margin-bottom: 40px; }

.hero-note {
  display: flex; align-items: baseline; gap: 10px;
  margin-top: 44px; padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: .92rem; color: var(--muted-2); max-width: 60ch;
}

/* ── Image frames ───────────────────────────────────────────────────── */
/* The frame exists whether or not the image does. An empty slot renders its
   brief so the layout can be judged before the photography is made. */
.frame {
  position: relative;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.frame img { width: 100%; height: 100%; object-fit: cover; }

.frame-empty {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; padding: 40px 32px; text-align: center;
  background:
    repeating-linear-gradient(
      45deg,
      transparent, transparent 12px,
      rgba(255,255,255,.014) 12px, rgba(255,255,255,.014) 24px
    ),
    var(--ink-2);
}
.frame-empty .fe-label {
  font-size: .68rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--signal); opacity: .8;
}
.frame-empty .fe-brief {
  font-size: .92rem; color: var(--muted-2); max-width: 46ch; line-height: 1.55;
}
.frame-empty .fe-size {
  font-size: .72rem; color: var(--muted-2); opacity: .55;
  font-family: ui-monospace, monospace;
}

/* Aspect ratios, per slot type. */
.ar-hero    { aspect-ratio: 16 / 9; }
.ar-wide    { aspect-ratio: 21 / 9; }
.ar-square  { aspect-ratio: 1 / 1; }
.ar-portrait{ aspect-ratio: 4 / 5; }
.ar-diagram { aspect-ratio: 16 / 10; }

.caption {
  margin: 16px 0 0; font-size: .82rem; color: var(--muted-2);
  max-width: 60ch;
}

/* ── Sections ───────────────────────────────────────────────────────── */
.section { padding: var(--step) 0; }
.section + .section { border-top: 1px solid rgba(255,255,255,.05); }

.sec-text { max-width: 62ch; }
.sec-text h2 { margin-bottom: 20px; }

.sec-wide .frame { margin-top: 56px; }
.sec-full .frame { border-radius: 0; border-left: 0; border-right: 0; }
.sec-full .frame-wrap { margin: 56px calc(-50vw + 50%) 0; width: 100vw; }

.sec-split { display: grid; gap: 48px; align-items: center; }
.sec-diagram .frame { margin: 48px auto 0; max-width: 900px; }
.sec-diagram { text-align: center; }
.sec-diagram .sec-text { margin: 0 auto; }

/* ── Signup ─────────────────────────────────────────────────────────── */
.signup {
  padding: var(--step) 0;
  border-top: 1px solid rgba(255,255,255,.06);
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255,107,53,.07), transparent 70%),
    var(--ink);
}
.signup-inner { max-width: 560px; margin: 0 auto; text-align: center; }
.signup h2 { margin-bottom: 18px; }
.signup .lede { margin-bottom: 36px; }

.signup-form { display: grid; gap: 14px; text-align: left; }
.field-row { display: flex; gap: 10px; }
.signup-form input[type="email"] {
  flex: 1; min-width: 0;
  padding: 16px 18px; font: inherit; font-size: 16px;
  background: var(--ink-2); border: 1px solid var(--line);
  border-radius: var(--radius); color: var(--text);
}
.signup-form input[type="email"]::placeholder { color: var(--muted-2); }
.signup-form input[type="email"]:focus {
  outline: none; border-color: var(--signal);
  box-shadow: 0 0 0 3px rgba(255,107,53,.14);
}
.btn {
  padding: 16px 28px; border: 0; border-radius: var(--radius);
  background: var(--signal); color: #fff;
  font: inherit; font-weight: 600; font-size: 1rem;
  cursor: pointer; white-space: nowrap;
  transition: background .15s ease;
}
.btn:hover { background: var(--signal-dim); }

.consent {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: .88rem; color: var(--muted);
}
.consent input { margin: 4px 0 0; flex-shrink: 0; accent-color: var(--signal); }
.consent a { color: var(--muted); }

.field-error { color: #ff8a75; font-size: .86rem; margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.signup-fine { margin-top: 22px; font-size: .8rem; color: var(--muted-2); }

/* ── FAQ ────────────────────────────────────────────────────────────── */
.faq-list { max-width: 720px; margin: 48px auto 0; }
.faq-item { border-top: 1px solid rgba(255,255,255,.08); }
.faq-item:last-child { border-bottom: 1px solid rgba(255,255,255,.08); }
.faq-item summary {
  padding: 22px 0; cursor: pointer; font-weight: 600;
  list-style: none; display: flex; justify-content: space-between; gap: 20px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; color: var(--signal); font-weight: 400; font-size: 1.4rem;
  line-height: 1; flex-shrink: 0;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item .faq-a { padding: 0 0 24px; color: var(--muted); max-width: 62ch; }

/* ── Footer ─────────────────────────────────────────────────────────── */
.site-footer {
  padding: 56px 0; border-top: 1px solid rgba(255,255,255,.06);
  font-size: .86rem; color: var(--muted-2);
}
.foot-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }

/* ── Thanks / holding ───────────────────────────────────────────────── */
.centred {
  min-height: 100svh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 40px var(--gutter);
}
.centred-inner { max-width: 540px; }
.centred h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 20px; }

/* ── Desktop ────────────────────────────────────────────────────────── */
@media (min-width: 900px) {
  :root { --gutter: 40px; }
  .sec-split { grid-template-columns: 1fr 1fr; gap: 72px; }
  .sec-split.rev .sec-text { order: 2; }
  .sec-wide .frame { margin-top: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
}
