/* PHOENIX CHECK (phoenix/ARCHITECTURE.md, "Phoenix Check's own pages"): the First Look pages at phoenixcheck.net/ and
   /services/. Phoenix's look, ember on night, set in rem so a reader's own text size carries through: no word under
   1rem (16 px at the standard size), every control at least 48 px, and the pages hold together at 200 % text and 320 px
   wide (the Adaptive Framework's own rules, measured on these pages before they ship). System fonts only. */

:root {
  --ink: #0b0608;
  --panel: rgba(28, 12, 18, 0.72);
  --line: rgba(255, 170, 90, 0.2);
  --line-hot: rgba(255, 150, 60, 0.55);
  --text: #fff3e6;
  --muted: #d4c0b3;
  --ember: #ff6a1a;
  --flame: #ffb23e;
  --gold: #ffd27a;
  --cream: #ffe9c4;
  --display: 'Trajan Pro', 'Cinzel', 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --radius: 1rem;
  /* room grows with the reader's text, but never takes a narrow screen's width from the words */
  --pad: min(1.5rem, 5vw);
  --gutter: max(min(1.25rem, 5vw), env(safe-area-inset-left, 0px));
  --gutter-r: max(min(1.25rem, 5vw), env(safe-area-inset-right, 0px));
  color-scheme: dark;
}

* { box-sizing: border-box; }
/* a jump to a part of the page lands below the sticky bar and the camera's band */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(5rem + env(safe-area-inset-top, 0px)); }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(120% 80% at 70% 0%, #2a0d12 0%, var(--ink) 55%) fixed, var(--ink);
  color: var(--text);
  font: 1rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); }
a:hover { color: #fff0c8; }
:focus-visible { outline: 0.15rem solid var(--flame); outline-offset: 0.2rem; border-radius: 0.4rem; }
/* off the screen until focused, far enough that its words at 200 % text never reach back in */
.skip { position: absolute; left: -200vw; top: 0; }
.skip:focus { left: var(--gutter); top: 0.5rem; z-index: 30; padding: 0.6rem 1rem; background: var(--ink); border: 1px solid var(--line-hot); border-radius: 0.6rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ------------------------------------------------------------------ the bar */
.bar {
  position: sticky; top: 0; z-index: 20;
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.25rem;
  padding: max(0.6rem, env(safe-area-inset-top, 0px)) var(--gutter-r) 0.6rem var(--gutter);
  background: rgba(11, 6, 8, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; min-width: 0; min-height: 3rem; text-decoration: none; color: var(--text); }
.brand img { width: 2.4rem; height: 2.4rem; filter: drop-shadow(0 0 0.5rem rgba(255, 120, 40, 0.6)); }
.brand span { min-width: 0; font: 700 1.125rem/1.25 var(--display); letter-spacing: 0.24em; }
.bar nav { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 0 1.1rem; }
.bar nav a { display: inline-flex; align-items: center; justify-content: center; min-width: 3rem; min-height: 3rem; color: var(--muted); text-decoration: none; letter-spacing: 0.02em; }
.bar nav a:hover { color: var(--text); }
.bar nav a[aria-current="page"] { color: var(--gold); }
/* On a narrow screen the links take a second row, so the bar scrolls away with the page instead of covering it. */
@media (max-width: 40rem) { .bar { position: relative; } .bar nav { margin-left: 0; width: 100%; } .brand span { letter-spacing: 0.12em; } }

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  max-width: 100%; min-height: 3rem; padding: 0.7rem 1.4rem; border-radius: 999px;
  font: 700 1rem/1.2 var(--sans); letter-spacing: 0.02em; text-decoration: none; text-align: center;
  color: #1a0a04; background: linear-gradient(180deg, #ffc35a, var(--ember));
  border: 1px solid rgba(255, 210, 140, 0.6);
  box-shadow: 0 0.4rem 1.6rem rgba(255, 106, 26, 0.35);
}
.btn:hover { color: #1a0a04; filter: brightness(1.08); }
.btn.ghost { color: var(--text); background: rgba(11, 6, 8, 0.55); border-color: var(--line-hot); box-shadow: none; }
.btn.ghost:hover { color: var(--gold); }

/* ------------------------------------------------------------------ the hero */
.hero { position: relative; display: grid; min-height: min(44rem, 88vh); overflow: hidden; isolation: isolate; }
.hero > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 30% 40%; }
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(11, 6, 8, 0.9) 0%, rgba(11, 6, 8, 0.55) 55%, rgba(11, 6, 8, 0.2) 100%),
    linear-gradient(0deg, var(--ink) 0%, rgba(11, 6, 8, 0) 35%);
}
.hero-copy { align-self: end; max-width: 46rem; padding: 6rem var(--gutter-r) 4rem var(--gutter); }
.hero.short { min-height: min(34rem, 70vh); }
.eyebrow { margin: 0 0 1rem; color: var(--flame); font-weight: 700; font-size: 1rem; letter-spacing: 0.22em; text-transform: uppercase; }
/* The titles grow with the reader's text, but never past what a narrow screen can hold in one word. */
.title { margin: 0 0 1.25rem; font: 700 min(clamp(2.4rem, 8vw, 5.5rem), 13vw)/1 var(--display); overflow-wrap: anywhere; letter-spacing: 0.08em; color: var(--cream); text-shadow: 0 0 2.5rem rgba(255, 110, 30, 0.45); }
.title.mid { font-size: min(clamp(2rem, 6vw, 3.8rem), 10.5vw); line-height: 1.08; }
.lede { margin: 0 0 1.75rem; font-size: 1.15rem; color: var(--text); max-width: 40rem; }
.lede b { color: var(--gold); }
.cta { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ------------------------------------------------------------------ bands */
.band { padding: 4.5rem var(--gutter-r) 4.5rem var(--gutter); }
.band > .inner { max-width: 72rem; margin: 0 auto; }
.band h2 { margin: 0 0 0.75rem; font: 700 clamp(1.75rem, 4vw, 2.75rem)/1.15 var(--display); letter-spacing: 0.06em; text-transform: uppercase; color: var(--cream); }
.band .intro { margin: 0 0 2.25rem; max-width: 46rem; color: var(--muted); font-size: 1.1rem; }
.kicker { display: block; margin-bottom: 0.75rem; color: var(--ember); font-weight: 800; font-size: 1rem; letter-spacing: 0.22em; text-transform: uppercase; }
.band.alt { background: linear-gradient(180deg, rgba(26, 10, 18, 0.5), rgba(11, 6, 8, 0)); border-top: 1px solid var(--line); }

/* ------------------------------------------------------------------ the service tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr)); gap: 1.5rem; }
.tile {
  position: relative; display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: calc(var(--radius) * 1.25); overflow: hidden;
  background: var(--panel); color: var(--text); text-decoration: none;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.tile:hover { color: var(--text); transform: translateY(-0.2rem); border-color: var(--line-hot); box-shadow: 0 1.2rem 3rem rgba(255, 106, 26, 0.18); }
.tile img { width: 100%; aspect-ratio: 760 / 424; object-fit: cover; }
.tile .body { display: flex; flex-direction: column; flex: 1; padding: var(--pad) var(--pad) calc(var(--pad) + 0.25rem); }
.tile h3 { hyphens: auto; margin: 0 0 0.6rem; font: 700 clamp(1.35rem, 3vw, 1.75rem)/1.2 var(--display); letter-spacing: 0.05em; color: var(--cream); }
.tile p { margin: 0 0 1rem; color: var(--muted); }
.tile ul { margin: 0 0 1.5rem; padding: 0; list-style: none; }
.tile li { position: relative; padding-left: 1.6rem; margin: 0.4rem 0; }
.tile li::before { content: ''; position: absolute; left: 0.2rem; top: 0.55em; width: 0.7rem; height: 0.7rem; border-radius: 50%; background: radial-gradient(circle, #fff3c4 0%, var(--flame) 45%, rgba(255, 106, 26, 0) 72%); }
.tile .go { margin-top: auto; align-self: flex-start; }

/* ------------------------------------------------------------------ cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 1.25rem; }
.card { padding: var(--pad); border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.card h3 { hyphens: auto; margin: 0 0 0.6rem; font: 700 1.15rem/1.3 var(--sans); color: var(--gold); }
.card h3 svg { display: inline-block; vertical-align: -0.3em; margin-right: 0.5rem; width: 1.5rem; height: 1.5rem; stroke: var(--flame); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card p { margin: 0; color: var(--muted); }
.card p + p { margin-top: 0.6rem; }

/* numbered steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 1.25rem; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; padding: var(--pad); border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); overflow: hidden; }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; right: 0.9rem; top: -0.6rem; font: 700 6rem/1 var(--display); color: rgba(255, 140, 50, 0.1); }
.steps h3 { hyphens: auto; margin: 0 0 0.5rem; font: 700 1.15rem/1.3 var(--sans); color: var(--gold); }
.steps p { margin: 0; color: var(--muted); }

/* a picture beside words */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); gap: 2.5rem; align-items: center; }
.split img { border-radius: calc(var(--radius) * 1.25); border: 1px solid var(--line); box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.5); }
.split p { color: var(--muted); }
.split .points { margin: 1rem 0 0; padding: 0; list-style: none; }
.split .points li { position: relative; padding-left: 1.6rem; margin: 0.6rem 0; }
.split .points li::before { content: ''; position: absolute; left: 0.2rem; top: 0.55em; width: 0.7rem; height: 0.7rem; border-radius: 50%; background: radial-gradient(circle, #fff3c4 0%, var(--flame) 45%, rgba(255, 106, 26, 0) 72%); }
.split .points b { color: var(--gold); }

/* a plain-words notice: what is open now, what is not yet */
.notice { margin: 2rem 0 0; padding: var(--pad); border: 1px solid var(--line-hot); border-radius: var(--radius); background: rgba(255, 106, 26, 0.08); }
.notice h3 { margin: 0 0 0.4rem; font: 700 1.1rem/1.3 var(--sans); color: var(--flame); }
.notice p { margin: 0; color: var(--text); }
.fine { margin: 1.5rem 0 0; color: var(--muted); max-width: 52rem; }

/* ------------------------------------------------------------------ the foot */
.foot { padding: 2.5rem var(--gutter-r) max(2.5rem, env(safe-area-inset-bottom, 0px)) var(--gutter); border-top: 1px solid var(--line); color: var(--muted); }
.foot .inner { max-width: 72rem; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
.foot nav a { display: inline-flex; align-items: center; justify-content: center; min-width: 3rem; min-height: 3rem; color: var(--muted); }
.foot nav a:hover { color: var(--gold); }
.foot p { min-width: 0; margin: 0; }
