/* charlsiewigley.com v4 - premium dark
   Deep evergreen charcoal, champagne gold, mint light. Glass, glow, fluid type.
   One display font (Bricolage Grotesque) + Instrument Serif for quotes. */

:root {
  --bg: #0a1216;
  --bg-2: #0e181e;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-2: rgba(255, 255, 255, 0.075);
  --stroke: rgba(255, 255, 255, 0.10);
  --stroke-2: rgba(56, 214, 232, 0.38);
  --text: #eef4f6;
  --muted: #a2b2ba;
  --faint: #6d7f88;
  --gold: #38d6e8;
  --gold-2: #8ff2fb;
  --mint: #5aa7ff;
  --glow-gold: rgba(56, 214, 232, 0.17);
  --glow-mint: rgba(90, 167, 255, 0.13);
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max: 1160px;
  --r: 18px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .ticker-track { animation: none !important; }
}

body {
  font-family: var(--sans); background: var(--bg); color: var(--text);
  line-height: 1.65; font-size: 17px; -webkit-font-smoothing: antialiased;
}

.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: #0a1216; padding: 8px 16px; z-index: 100; border-radius: 0 0 8px 0; }
.skip:focus { left: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

.grad-text {
  background: linear-gradient(100deg, var(--gold-2), var(--gold) 45%, var(--mint));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- header ---------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12, 19, 16, 0.75); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--stroke);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; gap: 24px; flex-wrap: wrap; }
.brand { font-family: var(--display); font-weight: 700; font-size: 1.15rem; text-decoration: none; color: var(--text); letter-spacing: -0.01em; }
.brand .dot { color: var(--gold); }
.nav ul { display: flex; gap: 4px; list-style: none; background: var(--panel); border: 1px solid var(--stroke); border-radius: 99px; padding: 4px; }
.nav a.item {
  display: block; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 0.9rem;
  padding: 8px 18px; border-radius: 99px; transition: color 0.15s ease, background 0.15s ease;
}
.nav a.item:hover { color: var(--text); }
.nav a.item[aria-current="page"] { background: linear-gradient(100deg, var(--gold), var(--gold-2)); color: #04222a; font-weight: 700; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 96px 0 84px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; width: 720px; height: 720px; border-radius: 50%;
  background: radial-gradient(circle, var(--glow-gold), transparent 62%);
  top: -280px; right: -160px; pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle, var(--glow-mint), transparent 60%);
  bottom: -260px; left: -140px; pointer-events: none;
}
.hero .horizon {
  position: absolute; left: 0; right: 0; bottom: -2px; height: 240px; pointer-events: none;
  opacity: 0.5;
}
.hero-grid, .cover { display: grid; grid-template-columns: 1.5fr 1fr; gap: 56px; align-items: center; position: relative; z-index: 1; max-width: var(--max); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
@media (max-width: 880px) { .hero-grid, .cover { grid-template-columns: 1fr; } }

.issue-line, .eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 650; font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--mint); margin-bottom: 26px;
  background: var(--panel); border: 1px solid var(--stroke); border-radius: 99px; padding: 8px 18px;
}
.issue-line::before, .eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px 2px var(--glow-gold); }

h1, .cover-title {
  font-family: var(--display); font-weight: 720; letter-spacing: -0.03em;
  font-size: clamp(2.7rem, 6.2vw, 4.9rem); line-height: 1.02; margin-bottom: 26px;
  text-wrap: balance;
}
.cover-title .row { display: inline; }
.cover-title .yellow-block, h1 em, .cover-title em {
  font-style: normal;
  background: linear-gradient(100deg, var(--gold-2), var(--gold) 45%, var(--mint));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding: 0;
}
.circled { position: relative; display: inline; }
.circled::after { content: none; }

.cover-sub, .lede { font-size: 1.2rem; color: var(--muted); max-width: 33em; margin-bottom: 34px; }
.cover-sub b { color: var(--text); font-weight: 650; }

.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block; text-decoration: none; font-family: var(--display); font-weight: 700;
  font-size: 0.98rem; padding: 14px 28px; border-radius: 99px;
  color: var(--text); border: 1px solid var(--stroke); background: var(--panel);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}
.btn:hover { transform: translateY(-2px); border-color: var(--stroke-2); background: var(--panel-2); }
.btn.solid {
  background: linear-gradient(100deg, var(--gold), var(--gold-2)); color: #04222a; border: none;
  box-shadow: 0 6px 28px rgba(56, 214, 232, 0.30);
}
.btn.solid:hover { box-shadow: 0 10px 36px rgba(56, 214, 232, 0.45); transform: translateY(-2px); }

.cover-right { display: grid; place-items: center; }
.portrait-frame { position: relative; }
.portrait-frame::before {
  content: ""; position: absolute; inset: -26px; border-radius: 32px;
  background: radial-gradient(circle at 30% 20%, var(--glow-gold), transparent 70%);
  filter: blur(6px); pointer-events: none;
}
.portrait-frame img {
  position: relative; width: min(300px, 68vw); aspect-ratio: 4/5; object-fit: cover; display: block;
  border-radius: 24px; border: 1px solid var(--stroke-2);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 0 6px rgba(56, 214, 232, 0.10);
}
.portrait-frame .stamp { display: none; }
.portrait-frame figcaption {
  position: relative; text-align: center; font-weight: 650; font-size: 0.8rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted); margin-top: 20px;
}

/* ---------- ticker ---------- */
.ticker { border-top: 1px solid var(--stroke); border-bottom: 1px solid var(--stroke); background: var(--bg-2); overflow: hidden; }
.ticker-track { display: inline-flex; white-space: nowrap; padding: 13px 0; animation: tick 40s linear infinite; will-change: transform; }
.ticker-track span { font-family: var(--display); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding: 0 28px; position: relative; }
.ticker-track span::after { content: ""; position: absolute; right: -3px; top: 50%; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); transform: translateY(-50%); }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- stats ---------- */
.statband { padding: 64px 0 8px; }
.statband .wrap { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
@media (max-width: 900px) { .statband .wrap { grid-template-columns: repeat(2, 1fr); } }
.stat {
  background: var(--panel); border: 1px solid var(--stroke); border-radius: var(--r);
  padding: 24px 20px 20px; backdrop-filter: blur(8px);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.stat:hover { transform: translateY(-4px); border-color: var(--stroke-2); background: var(--panel-2); }
.stat b { display: block; font-family: var(--display); font-weight: 720; font-size: 2.3rem; line-height: 1.05; letter-spacing: -0.02em;
  background: linear-gradient(120deg, var(--gold-2), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 650; color: var(--muted); }

/* ---------- pull quote ---------- */
.pull { margin: 72px auto 8px; max-width: 820px; text-align: center; padding: 0 24px; }
.pull p { font-family: var(--serif); font-style: italic; font-size: clamp(1.6rem, 3.4vw, 2.4rem); line-height: 1.35; color: var(--text); }
.pull p mark { background: none; color: var(--mint); font-style: italic; }
.pull cite { display: block; margin-top: 18px; font-family: var(--display); font-weight: 650; font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint); font-style: normal; }

/* ---------- sections ---------- */
section.block { padding: 84px 0; position: relative; }
section.block.on-deep { background: var(--bg-2); border-top: 1px solid var(--stroke); border-bottom: 1px solid var(--stroke); }

.sec-head { display: flex; align-items: center; gap: 18px; margin-bottom: 48px; }
.sec-num {
  font-family: var(--display); font-weight: 720; font-size: 0.95rem; color: #04222a;
  background: linear-gradient(120deg, var(--gold), var(--gold-2)); border-radius: 12px;
  width: 46px; height: 46px; display: grid; place-items: center; flex: none;
  box-shadow: 0 4px 20px rgba(56, 214, 232, 0.28);
}
h2 { font-family: var(--display); font-weight: 700; font-size: clamp(1.8rem, 3.4vw, 2.5rem); letter-spacing: -0.02em; text-wrap: balance; }
.sec-head .rule { flex: 1; height: 1px; background: linear-gradient(90deg, var(--stroke-2), transparent); }
h3 { font-family: var(--display); font-weight: 700; font-size: 1.28rem; margin-bottom: 8px; letter-spacing: -0.01em; }

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }
.card {
  background: var(--panel); border: 1px solid var(--stroke); border-radius: var(--r);
  padding: 28px 26px 24px; display: flex; flex-direction: column; gap: 13px;
  backdrop-filter: blur(8px); position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.card:hover {
  transform: translateY(-6px); border-color: var(--stroke-2); background: var(--panel-2);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45), 0 0 40px rgba(56, 214, 232, 0.08);
}
.card .tag {
  align-self: flex-start; font-weight: 700; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--mint); background: rgba(90, 167, 255, 0.10); border: 1px solid rgba(90, 167, 255, 0.30);
  padding: 5px 12px; border-radius: 99px;
}
.card p { color: var(--muted); font-size: 0.96rem; flex: 1; }
.card .kpi { font-family: var(--display); font-weight: 720; font-size: 1.4rem;
  background: linear-gradient(120deg, var(--gold-2), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kpi.check::before { content: none; }
.card a.more { font-weight: 700; font-size: 0.9rem; color: var(--gold); text-decoration: none; transition: color 0.15s ease; }
.card a.more::after { content: " ->"; font-family: var(--display); transition: margin-left 0.15s ease; }
.card a.more:hover { color: var(--gold-2); }
.card a.more:hover::after { margin-left: 4px; }

/* ---------- case studies ---------- */
.wrap { counter-reset: fig; }
.case { display: grid; grid-template-columns: 260px 1fr; gap: 48px; padding: 52px 0; border-top: 1px solid var(--stroke); counter-increment: fig; }
.case:first-of-type { border-top: none; padding-top: 8px; }
@media (max-width: 820px) { .case { grid-template-columns: 1fr; gap: 20px; } }
.case-rail .idx {
  display: inline-block; font-weight: 700; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--mint); background: rgba(90, 167, 255, 0.10); border: 1px solid rgba(90, 167, 255, 0.30);
  border-radius: 99px; padding: 5px 13px; margin-bottom: 16px;
}
.case-rail .idx::before { content: "0" counter(fig) " · "; color: var(--gold); }
.case-rail .metric { font-family: var(--display); font-weight: 720; font-size: 2.5rem; line-height: 1; letter-spacing: -0.03em;
  background: linear-gradient(120deg, var(--gold-2), var(--gold) 55%, var(--mint)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.case-rail .metric small { display: block; font-size: 0.73rem; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); margin-top: 8px; -webkit-text-fill-color: var(--faint); }
.case-rail svg {
  margin-top: 20px; width: 100%; height: auto;
  background: var(--panel); border: 1px solid var(--stroke); border-radius: 14px; padding: 12px;
}
.case-body h3 { font-size: 1.5rem; margin-bottom: 16px; }
.case-body .row { display: grid; grid-template-columns: 96px 1fr; gap: 16px; margin-bottom: 14px; }
.case-body .row dt { font-weight: 700; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); padding-top: 4px; }
.case-body .row dd { color: var(--muted); }
.case-body .row dd strong { color: var(--text); background: none; padding: 0; }

/* ---------- strips ---------- */
.strip { background: var(--panel); border: 1px solid var(--stroke); border-radius: var(--r); padding: 32px; margin-top: 48px; backdrop-filter: blur(8px); box-shadow: none; }
.strip h3 { margin-bottom: 16px; }
.strip ul { list-style: none; }
.strip li { padding: 12px 0 12px 30px; border-top: 1px solid var(--stroke); color: var(--muted); position: relative; }
.strip li:first-child { border-top: none; }
.strip li::before {
  content: ""; position: absolute; left: 2px; top: 21px; width: 12px; height: 12px; border-radius: 4px;
  background: linear-gradient(135deg, var(--gold), var(--mint)); opacity: 0.85;
}
.strip li strong { color: var(--text); }

/* ---------- talks ---------- */
.talks { list-style: none; border: 1px solid var(--stroke); border-radius: var(--r); overflow: hidden; counter-reset: talk; background: var(--panel); backdrop-filter: blur(8px); }
.talks li { display: grid; grid-template-columns: 56px 84px 1fr; gap: 18px; padding: 17px 22px; border-top: 1px solid var(--stroke); align-items: baseline; counter-increment: talk; transition: background 0.15s ease; }
.talks li:hover { background: var(--panel-2); }
.talks li::before { content: counter(talk, decimal-leading-zero); font-family: var(--display); font-weight: 700; color: var(--faint); font-size: 0.85rem; }
.talks li:first-child { border-top: none; }
.talks .yr { font-family: var(--display); font-weight: 700; color: var(--gold); font-size: 0.9rem; text-align: left; background: none; border: none; padding: 0; }
.talks .t strong { display: block; color: var(--text); font-weight: 650; }
.talks .t span { color: var(--muted); font-size: 0.92rem; }
.community { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 8px; border: none; background: none; }
@media (max-width: 820px) { .community { grid-template-columns: 1fr; } }

/* ---------- about arc ---------- */
.arc { list-style: none; margin-top: 8px; position: relative; }
.arc::before { content: ""; position: absolute; left: 146px; top: 14px; bottom: 14px; width: 1px; background: linear-gradient(var(--gold), var(--mint)); opacity: 0.35; }
@media (max-width: 640px) { .arc::before { display: none; } }
.arc li { display: grid; grid-template-columns: 128px 1fr; gap: 40px; padding: 22px 0; }
@media (max-width: 640px) { .arc li { grid-template-columns: 1fr; gap: 6px; } }
.arc .when { font-family: var(--display); font-weight: 700; font-size: 0.88rem; color: var(--gold); background: none; border: none; text-align: right; padding: 2px 0 0; }
.arc .what { position: relative; }
.arc .what::before { content: ""; position: absolute; left: -26px; top: 10px; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 14px 2px var(--glow-gold); }
@media (max-width: 640px) { .arc .what::before { display: none; } }
.arc .what strong { display: block; font-family: var(--display); font-weight: 700; font-size: 1.12rem; color: var(--text); }
.arc .what p { color: var(--muted); font-size: 0.95rem; margin-top: 4px; }

.creds { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 820px) { .creds { grid-template-columns: 1fr; } }
.creds .strip { margin-top: 0; }
.creds li { font-size: 0.93rem; padding: 9px 0 9px 30px; }
.creds li::before { top: 15px; }

/* ---------- footer ---------- */
footer.site { margin-top: 64px; background: var(--bg-2); border-top: 1px solid var(--stroke); padding: 60px 0 42px; position: relative; overflow: hidden; }
footer.site::before { content: ""; position: absolute; width: 600px; height: 400px; border-radius: 50%; background: radial-gradient(circle, var(--glow-gold), transparent 65%); bottom: -260px; right: -120px; pointer-events: none; }
.foot-grid { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; align-items: flex-start; position: relative; }
.foot-grid h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-bottom: 12px; }
.foot-grid h2 em { font-style: normal; background: linear-gradient(100deg, var(--gold-2), var(--gold) 50%, var(--mint)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.foot-grid p { color: var(--muted); max-width: 30em; }
.foot-contact { display: flex; flex-direction: column; gap: 12px; position: relative; }
.foot-contact a { font-family: var(--display); font-weight: 650; font-size: 0.96rem; color: var(--gold); text-decoration: none; transition: color 0.15s ease; }
.foot-contact a:hover { color: var(--gold-2); }
.colophon { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--stroke); font-size: 0.78rem; color: var(--faint); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; position: relative; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
::selection { background: var(--gold); color: #04222a; }

/* ---------- photos ---------- */
.case-shot { margin-top: 18px; }
.case-shot img { width: 100%; border-radius: 14px; border: 1px solid var(--stroke); display: block; }
.case-shot figcaption { font-size: 0.78rem; color: var(--faint); margin-top: 8px; font-weight: 600; letter-spacing: 0.04em; }
.photo-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 8px 0 20px; }
@media (max-width: 820px) { .photo-row { grid-template-columns: 1fr; } }
.photo-row figure { margin: 0; }
.photo-row img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 14px; border: 1px solid var(--stroke); display: block; }
.photo-row figcaption { font-size: 0.78rem; color: var(--faint); margin-top: 8px; font-weight: 600; letter-spacing: 0.04em; }
