/* Phoenix Digital Media — site styles. Tokens from the PDM brand guide. */
:root {
  --ink: #0e0e10;
  --ink-2: #141416;
  --raised: #1a1a1d;
  --border: #2a2a2e;
  --border-strong: #5a5650;
  --ash: #f5f2ed;
  --text-soft: #c9c3ba;
  --muted: #a9a39a;
  --faint: #8f897f;
  --gold: #ffc21a;
  --ember: #ff8c1a;
  --blaze: #ff4a17;
  --blaze-text: #ff6a3d;
  --crimson: #e8132b;
  --font-display: "Exo 2", "Poppins", system-ui, sans-serif;
  --font-text: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 22px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--ash);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ember); }
a:hover { color: var(--gold); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--ember); color: var(--ink); padding: 8px 16px; border-radius: var(--radius-sm); z-index: 100; }
.skip-link:focus { left: 16px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}

/* Type */
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(38px, 5.2vw, 60px); line-height: 1.07; letter-spacing: -0.01em; }
h2 { font-size: clamp(30px, 3.6vw, 40px); line-height: 1.15; }
h3 { font-size: 22px; line-height: 1.3; }
p { margin: 0; }
.eyebrow { font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ember); }
.tagline { font-size: 13px; line-height: 18px; font-weight: 500; letter-spacing: 0.13em; color: var(--gold); white-space: pre-wrap; }
.lead { font-size: 19px; line-height: 1.65; color: var(--text-soft); max-width: 640px; }
.soft { color: var(--text-soft); }
.muted { color: var(--muted); }
.small { font-size: 15px; line-height: 1.6; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-lg { display: flex; flex-direction: column; gap: 40px; }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 720px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 26px; border-radius: var(--radius-md);
  font: 500 16px/1.2 var(--font-text); text-decoration: none; cursor: pointer; border: 0;
}
.btn-primary { background: var(--ember); color: var(--ink); }
.btn-primary:hover { background: var(--gold); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ash); border: 1px solid var(--border-strong); }
.btn-ghost:hover { border-color: var(--ember); color: var(--ash); }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }
.text-link { font-weight: 500; text-decoration: none; }

/* Header */
.site-header { border-bottom: 1px solid var(--border); background: var(--ink); position: relative; z-index: 10; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.brand img { height: 42px; width: auto; }
.nav-toggle {
  display: none; background: transparent; border: 1px solid var(--border-strong); color: var(--ash);
  border-radius: var(--radius-md); min-height: 44px; padding: 8px 14px; font: 500 15px var(--font-text); cursor: pointer;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px 26px; flex-wrap: wrap; }
.site-nav a:not(.btn) { color: var(--ash); text-decoration: none; font-size: 15px; padding: 10px 0; display: inline-block; }
.site-nav a:not(.btn):hover, .site-nav a[aria-current="page"] { color: var(--gold); }
.site-nav .btn { min-height: 44px; padding: 10px 20px; font-size: 15px; }
@media (max-width: 1020px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 8px; }
  .site-nav { display: none; width: 100%; }
  .site-nav.open { display: block; }
  .header-inner { flex-wrap: wrap; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0 12px; }
  .site-nav li { border-top: 1px solid var(--border); }
  .site-nav a:not(.btn) { display: block; padding: 14px 0; font-size: 17px; }
  .site-nav li:last-child { border-top: 0; padding-top: 12px; }
  .site-nav .btn { width: 100%; }
}

/* Sections */
.section { padding-top: 88px; padding-bottom: 88px; }
.section-alt { background: var(--ink-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.band { background: var(--raised); border-top: 1px solid var(--border); }
@media (max-width: 640px) { .section { padding-top: 64px; padding-bottom: 64px; } }

/* Home hero */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-top: 96px; padding-bottom: 104px; }
.hero-copy { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero-art { flex: 1 1 340px; min-width: 0; position: relative; display: flex; align-items: center; justify-content: center; min-height: 340px; }
.hero-art svg { position: absolute; width: 100%; max-width: 560px; height: auto; }
.hero-art img { position: relative; width: 82%; max-width: 400px; }
.arcs { fill: none; stroke: var(--ember); stroke-width: 9; stroke-linecap: round; stroke-opacity: 0.13; }
@media (max-width: 640px) { .hero { padding-top: 56px; padding-bottom: 64px; } .hero-art { min-height: 260px; } }

/* Inner-page hero */
.page-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--border); }
.page-hero .wrap { position: relative; padding-top: 88px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 20px; }
.page-hero svg { position: absolute; right: -140px; top: 50%; transform: translateY(-50%); width: 640px; max-width: none; height: auto; pointer-events: none; }
@media (max-width: 900px) { .page-hero svg { right: -320px; opacity: 0.7; } }
@media (max-width: 640px) { .page-hero .wrap { padding-top: 56px; padding-bottom: 56px; } }

/* Cards */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 24px; }
.card { background: var(--raised); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.card h3 { font-size: 24px; }
.card .text-link { margin-top: auto; padding-top: 8px; }
.card-icon { width: 40px; height: 40px; }
.icon { fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ticks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.ticks li { padding-left: 26px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 12px; height: 7px; border-left: 2px solid var(--ember); border-bottom: 2px solid var(--ember); transform: rotate(-45deg); }

/* Split layouts */
.split { display: flex; flex-wrap: wrap; gap: 48px 64px; align-items: flex-start; }
.split > .narrow { flex: 1 1 340px; min-width: 0; }
.split > .wide { flex: 999 1 560px; min-width: 0; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 32px 40px; }
.stat { display: flex; flex-direction: column; gap: 8px; padding-top: 20px; border-top: 2px solid var(--gold); }
.stat:nth-child(2) { border-color: var(--ember); }
.stat:nth-child(3) { border-color: var(--blaze); }
.stat:nth-child(4) { border-color: var(--crimson); }
.stat-big { font-family: var(--font-display); font-weight: 600; font-size: 40px; line-height: 1.1; color: var(--gold); }
.stat:nth-child(2) .stat-big { color: var(--ember); }
.stat:nth-child(3) .stat-big { color: var(--blaze-text); }
.stat:nth-child(4) .stat-big { color: var(--ash); }
.stat-label { font-weight: 500; }

/* Steps */
.steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 28px; counter-reset: step; }
.steps li { display: flex; flex-direction: column; gap: 10px; counter-increment: step; }
.steps li::before {
  content: counter(step); width: 44px; height: 44px; border-radius: 999px; border: 2px solid var(--gold); color: var(--gold);
  display: flex; align-items: center; justify-content: center; font: 600 17px var(--font-display);
}
.steps li:nth-child(2)::before { border-color: var(--ember); color: var(--ember); }
.steps li:nth-child(3)::before { border-color: var(--blaze); color: var(--blaze-text); }
.steps li:nth-child(4)::before, .steps li:nth-child(5)::before { border-color: var(--crimson); color: var(--ash); }
.steps h3 { font-size: 20px; }

/* Reel */
.reel { position: relative; aspect-ratio: 4 / 3; width: 100%; border-radius: var(--radius-lg); overflow: hidden; background: var(--ink); border: 1px solid var(--border); }
.reel iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.reel-fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-decoration: none; }
.reel-fallback span { width: 88px; height: 88px; border-radius: 999px; background: var(--ember); display: flex; align-items: center; justify-content: center; }

/* Quotes */
.quote { margin: 0; display: flex; flex-direction: column; gap: 12px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.quote:last-child { border-bottom: 0; padding-bottom: 0; }
.quote blockquote { margin: 0; font: 500 22px/1.42 var(--font-display); }
.quote figcaption { font-size: 14px; color: var(--muted); }

/* CTA band */
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.cta > div { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.contact-line { color: var(--muted); }
.contact-line a { color: var(--text-soft); text-decoration: none; }
.contact-line a:hover { color: var(--gold); }

/* Two-up feature blocks */
.feature { background: var(--raised); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.pill { display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--border-strong); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }
.pill-live::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: var(--crimson); }

/* FAQ */
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font: 600 19px/1.4 var(--font-display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 26px; color: var(--ember); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 22px; color: var(--text-soft); max-width: 760px; }

/* Case studies */
.case { background: var(--raised); border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); padding: 32px; display: flex; flex-direction: column; gap: 12px; }

/* About */
.portrait { aspect-ratio: 4 / 5; border-radius: var(--radius-lg); background: var(--raised); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.timeline { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0; border-left: 2px solid var(--border); }
.timeline li { padding: 0 0 24px 24px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 8px; width: 12px; height: 12px; border-radius: 999px; background: var(--ember); }
.timeline strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 18px; }

/* Forms */
.form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 500; color: var(--text-soft); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--ink); color: var(--ash); border: 1px solid var(--border-strong); font: 400 16px/1.4 var(--font-text);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ember); }
.form-note { font-size: 14px; color: var(--muted); grid-column: 1 / -1; }
.form-status { grid-column: 1 / -1; font-size: 15px; color: var(--gold); min-height: 1.5em; }
.hp { position: absolute; left: -9999px; }
.calendly-inline-widget { min-width: 320px; height: 720px; border-radius: var(--radius-lg); overflow: hidden; background: var(--ash); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding-top: 56px; padding-bottom: 40px; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px 48px; }
.footer-grid .brand-col { flex: 1 1 280px; display: flex; flex-direction: column; gap: 14px; }
.footer-grid .brand-col img { height: 40px; width: auto; align-self: flex-start; }
.footer-grid nav, .footer-grid .contact-col { display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.footer-grid nav { flex: 0 1 200px; }
.footer-grid .contact-col { flex: 0 1 260px; color: var(--text-soft); }
.footer-grid a { color: var(--text-soft); text-decoration: none; }
.footer-grid a:hover { color: var(--gold); }
.social { display: flex; gap: 18px; padding-top: 4px; }
.social a { color: var(--ember); }
.legal { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 13px; color: var(--faint); }

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