/* =========================================================
   thelifeofkev.com — styles
   iOS-inspired system: large titles, grouped lists, widgets,
   frosted bars. Light/dark follows the visitor's device.
   ========================================================= */

:root {
  --bg: #f2f2f7;
  --surface: #ffffff;
  --surface-2: #f7f7fa;
  --fill: rgba(120, 120, 128, 0.12);
  --fill-strong: rgba(120, 120, 128, 0.2);
  --label: #000000;
  --label-2: rgba(60, 60, 67, 0.72);
  --label-3: rgba(60, 60, 67, 0.45);
  --sep: rgba(60, 60, 67, 0.16);
  --gold: #9a7420;          /* text-safe gold on light */
  --gold-fill: #c8a24a;
  --red: #c81e1e;
  --on-accent: #ffffff;
  --bar: rgba(249, 249, 251, 0.78);
  --shadow: 0 1px 0 rgba(0,0,0,.04), 0 12px 32px -18px rgba(0,0,0,.28);
  --r-xl: 32px;
  --r-lg: 22px;
  --r-md: 14px;
  --r-sm: 10px;
  --max: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", system-ui, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000;
    --surface: #1c1c1e;
    --surface-2: #2c2c2e;
    --fill: rgba(118, 118, 128, 0.24);
    --fill-strong: rgba(118, 118, 128, 0.36);
    --label: #ffffff;
    --label-2: rgba(235, 235, 245, 0.7);
    --label-3: rgba(235, 235, 245, 0.4);
    --sep: rgba(84, 84, 88, 0.55);
    --gold: #d9b45a;
    --gold-fill: #d9b45a;
    --red: #ff5a52;
    --on-accent: #000000;
    --bar: rgba(22, 22, 24, 0.72);
    --shadow: none;
  }
}
:root[data-theme="dark"] {
  --bg: #000000; --surface: #1c1c1e; --surface-2: #2c2c2e;
  --fill: rgba(118,118,128,.24); --fill-strong: rgba(118,118,128,.36);
  --label: #fff; --label-2: rgba(235,235,245,.7); --label-3: rgba(235,235,245,.4);
  --sep: rgba(84,84,88,.55); --gold: #d9b45a; --gold-fill: #d9b45a; --red: #ff5a52;
  --on-accent: #000; --bar: rgba(22,22,24,.72); --shadow: none;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--label);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.012em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p a, .link { color: var(--gold); }
p a:hover, .link:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--gold-fill); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 10px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Type scale (iOS-inspired) ---------- */
.t-hero  { font-size: clamp(44px, 8.4vw, 96px); line-height: 0.98; letter-spacing: -0.045em; font-weight: 800; margin: 0; }
.t-large { font-size: clamp(34px, 5.2vw, 56px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 750; margin: 0; }
.t-title { font-size: clamp(26px, 3.2vw, 34px); line-height: 1.12; letter-spacing: -0.025em; font-weight: 700; margin: 0; }
.t-head  { font-size: 21px; line-height: 1.25; letter-spacing: -0.02em; font-weight: 650; margin: 0; }
.t-body  { font-size: 17px; }
.t-lede  { font-size: clamp(19px, 2vw, 23px); line-height: 1.42; letter-spacing: -0.018em; color: var(--label-2); margin: 0; max-width: 34em; }
.t-foot  { font-size: 13px; line-height: 1.38; color: var(--label-2); letter-spacing: -0.005em; }
.muted { color: var(--label-2); }
.gold { color: var(--gold); }
.prose p { max-width: 38em; margin: 0 0 1em; }
.prose p:last-child { margin-bottom: 0; }

/* ---------- Top bar ---------- */
.bar {
  position: sticky; top: 0; z-index: 50;
  background: var(--bar);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 0.5px solid var(--sep);
}
.bar-in { display: flex; align-items: center; gap: 24px; height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.02em; font-size: 17px; white-space: nowrap; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 8px;
  background: #000; color: #d9b45a; display: grid; place-items: center;
  font-size: 15px; font-weight: 800; letter-spacing: -0.04em;
  box-shadow: inset 0 0 0 1px rgba(217,180,90,.45);
}
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { font-size: 14px; padding: 7px 12px; border-radius: 999px; color: var(--label-2); }
.nav a:hover { color: var(--label); background: var(--fill); }
.nav a[aria-current="page"] { color: var(--label); background: var(--fill); font-weight: 600; }
.bar .btn { margin-left: 8px; }
.menu-btn { display: none; margin-left: auto; width: 38px; height: 38px; border-radius: 999px; border: 0; background: var(--fill); color: var(--label); cursor: pointer; }
.menu-btn svg { width: 18px; height: 18px; margin: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 22px; border-radius: 999px; border: 0;
  font: inherit; font-size: 16px; font-weight: 600; letter-spacing: -0.015em;
  cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, opacity .15s ease;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--label); color: var(--bg); }
.btn-gold { background: var(--gold-fill); color: #000; }
.btn-tint { background: var(--fill); color: var(--label); }
.btn-sm { height: 34px; padding: 0 15px; font-size: 14px; }
.btn svg { width: 16px; height: 16px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0 0; }
.section:last-of-type { padding-bottom: clamp(56px, 8vw, 104px); }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.sec-head p { margin: 8px 0 0; }

/* ---------- Page header (large title) ---------- */
.page-head { padding: clamp(36px, 6vw, 72px) 0 0; }
.page-head .kicker { font-size: 15px; font-weight: 600; color: var(--gold); margin: 0 0 10px; letter-spacing: -0.01em; }
.page-head .t-lede { margin-top: 18px; }

/* ---------- Hero: the three names ---------- */
.hero { padding: clamp(28px, 5vw, 64px) 0 0; }
.hero-top { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; }
.hero .t-lede { margin-top: 18px; }
.seg {
  display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  background: var(--fill); padding: 3px; border-radius: 12px; position: relative;
  margin-top: 32px; max-width: 100%;
}
.seg button {
  position: relative; z-index: 1;
  border: 0; background: none; color: var(--label); font: inherit;
  font-size: 15px; font-weight: 500; letter-spacing: -0.015em;
  padding: 9px 18px; border-radius: 9px; cursor: pointer; white-space: nowrap;
}
.seg button[aria-selected="true"] { font-weight: 650; }
.seg-thumb {
  position: absolute; top: 3px; bottom: 3px; left: 3px; border-radius: 9px;
  background: var(--surface); box-shadow: 0 3px 8px rgba(0,0,0,.12), 0 1px 1px rgba(0,0,0,.04);
  transition: transform .32s cubic-bezier(.3,.7,.2,1), width .32s cubic-bezier(.3,.7,.2,1);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .seg-thumb { background: #636366; } }
:root[data-theme="dark"] .seg-thumb { background: #636366; }

.stage {
  margin-top: 20px; position: relative; border-radius: var(--r-xl); overflow: hidden;
  background: #000; color: #fff; aspect-ratio: 16 / 8.2; min-height: 440px;
  isolation: isolate;
}
.stage-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; }
.stage-slide.is-on { opacity: 1; }
.stage-slide img { width: 100%; height: 100%; object-fit: cover; }
.stage-slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.78) 100%);
}
.stage-copy[hidden] { display: none; }
.stage-copy {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: clamp(20px, 3.4vw, 40px);
  display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: end;
}
.stage-name { font-size: clamp(28px, 4.4vw, 52px); font-weight: 750; letter-spacing: -0.035em; line-height: 1; margin: 0; }
.stage-role { margin: 10px 0 0; font-size: clamp(15px, 1.6vw, 19px); color: rgba(255,255,255,.82); max-width: 32em; }
.stage .btn-tint { background: rgba(255,255,255,.18); color: #fff; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }

/* ---------- Widgets (iOS home-screen style) ---------- */
.widgets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.widget {
  background: var(--surface); border-radius: var(--r-lg); padding: 18px 18px 16px;
  box-shadow: var(--shadow); min-height: 150px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 14px;
}
.widget.w2 { grid-column: span 2; }
.widget .w-k { font-size: 13px; font-weight: 600; color: var(--label-2); display: flex; align-items: center; gap: 6px; }
.widget .w-k svg { width: 15px; height: 15px; color: var(--gold); }
.widget .w-v { font-size: clamp(30px, 3.6vw, 40px); font-weight: 750; letter-spacing: -0.04em; line-height: 1; }
.widget .w-s { font-size: 13px; color: var(--label-2); margin-top: 6px; line-height: 1.3; }
.widget.dark { background: #000; color: #fff; }
.widget.dark .w-k, .widget.dark .w-s { color: rgba(255,255,255,.66); }
.widget.gold { background: linear-gradient(160deg, #e6c56d, #b88d2c); color: #000; }
.widget.gold .w-k, .widget.gold .w-s { color: rgba(0,0,0,.62); }
.widget.gold .w-k svg { color: #000; }
.widget.photo { position: relative; overflow: hidden; color: #fff; padding: 0; }
.widget.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.widget.photo .w-body { position: relative; margin-top: auto; padding: 18px; background: linear-gradient(180deg, transparent, rgba(0,0,0,.72)); }
.widget.photo .w-k, .widget.photo .w-s { color: rgba(255,255,255,.8); }
.live { display: inline-flex; align-items: center; gap: 6px; }
.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 25%, transparent); }

/* ---------- Two names ---------- */
.names { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; background: var(--surface); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.name-col { padding: 26px 24px 24px; border-left: 0.5px solid var(--sep); display: flex; flex-direction: column; gap: 10px; }
.name-col:first-child { border-left: 0; }
.name-col h3 { font-size: 22px; letter-spacing: -0.025em; margin: 0; font-weight: 700; }
.name-col .where { font-size: 14px; font-weight: 600; color: var(--gold); margin: 0; }
.name-col p { margin: 0; color: var(--label-2); font-size: 16px; }
.name-col .link { margin-top: auto; padding-top: 8px; font-size: 15px; font-weight: 600; }
.story-split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }

/* ---------- Lane cards (large, photo-led) ---------- */
.lanes { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 14px; }
.lane { position: relative; border-radius: var(--r-xl); overflow: hidden; min-height: 460px; color: #fff; background: #000; display: flex; isolation: isolate; }
.lane img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; transition: transform .6s ease; }
.lane::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.05) 30%, rgba(0,0,0,.82)); }
.lane:hover img { transform: scale(1.03); }
.lane-body { margin-top: auto; padding: 24px; }
.lane-body .k { font-size: 14px; font-weight: 600; color: #e7c873; margin: 0 0 6px; }
.lane-body h3 { font-size: 28px; letter-spacing: -0.03em; margin: 0; line-height: 1.05; }
.lane-body p { margin: 8px 0 0; color: rgba(255,255,255,.8); font-size: 15px; }

/* ---------- Grouped lists (Settings style) ---------- */
.group-label { font-size: 15px; font-weight: 650; color: var(--label); margin: 0 0 8px 16px; letter-spacing: -0.015em; }
.group { background: var(--surface); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow); margin: 0; padding: 0; list-style: none; }
.group + .group-label, .group + .group-foot + .group-label { margin-top: 28px; }
.group-foot { font-size: 13px; color: var(--label-2); margin: 8px 16px 0; }
.row { display: flex; align-items: center; gap: 14px; padding: 13px 16px; min-height: 52px; position: relative; }
.row + .row::before { content: ""; position: absolute; top: 0; right: 0; left: 60px; border-top: 0.5px solid var(--sep); }
.group.plain .row + .row::before { left: 16px; }
.row .ico { width: 30px; height: 30px; border-radius: 8px; flex: none; display: grid; place-items: center; color: #fff; background: #8e8e93; }
.row .ico svg { width: 17px; height: 17px; }
.ico.c-gold { background: #b98d2b; } .ico.c-red { background: #d63b30; } .ico.c-black { background: #000; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.ico.c-blue { background: #0a84ff; } .ico.c-green { background: #30a14e; } .ico.c-purple { background: #8e44ef; }
.row .main { flex: 1; min-width: 0; }
.row .title { font-size: 17px; letter-spacing: -0.02em; }
.row .sub { font-size: 14px; color: var(--label-2); margin-top: 1px; }
.row .val { color: var(--label-2); font-size: 16px; text-align: right; white-space: nowrap; }
.row .chev { width: 8px; height: 13px; color: var(--label-3); flex: none; }
a.row:hover { background: var(--surface-2); }
.row .year { width: 76px; flex: none; font-weight: 650; color: var(--gold); font-variant-numeric: tabular-nums; font-size: 16px; }

/* ---------- Timeline (it is a real sequence) ---------- */
.timeline .row { align-items: flex-start; padding: 16px; }
.timeline .row + .row::before { left: 16px; }
.timeline .title { font-weight: 600; }

/* ---------- Lineage chain ---------- */
.lineage { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; list-style: none; padding: 0; margin: 0; counter-reset: gen; }
.lineage li { background: var(--surface); border-radius: 999px; padding: 9px 16px 9px 10px; font-size: 15px; box-shadow: var(--shadow); display: inline-flex; gap: 10px; align-items: center; counter-increment: gen; }
.lineage li::before { content: counter(gen); width: 22px; height: 22px; border-radius: 50%; background: var(--fill); font-size: 12px; font-weight: 700; display: grid; place-items: center; color: var(--label-2); }
.lineage li.me { background: #000; color: #e7c873; }
.lineage li.me::before { background: #e7c873; color: #000; }
.lineage .sep { color: var(--label-3); font-size: 14px; background: none; box-shadow: none; padding: 0; }
.lineage .sep::before { display: none; }

/* ---------- Media grids ---------- */
.mosaic { columns: 3 260px; column-gap: 12px; }
.mosaic figure { margin: 0 0 12px; break-inside: avoid; border-radius: var(--r-md); overflow: hidden; background: var(--fill); cursor: zoom-in; position: relative; }
.mosaic img { width: 100%; height: auto; transition: opacity .3s; }
.mosaic figure:hover img { opacity: .9; }
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 30%); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.strip figure { margin: 0; scroll-snap-align: start; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 3 / 4; cursor: zoom-in; background: var(--fill); }
.strip img { width: 100%; height: 100%; object-fit: cover; }

.video-card { position: relative; border-radius: var(--r-xl); overflow: hidden; background: #000; aspect-ratio: 16/9; }
.video-card video, .video-card img { width: 100%; height: 100%; object-fit: cover; }
.play {
  position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%;
  border: 0; cursor: pointer; display: grid; place-items: center;
  background: rgba(255,255,255,.22); color: #fff; -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  transition: transform .2s;
}
.play:hover { transform: scale(1.06); }
.play svg { width: 26px; height: 26px; margin-left: 4px; }

/* ---------- Two-column feature ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.feature .media { border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 4/5; background: var(--fill); }
.feature .media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--surface); box-shadow: var(--shadow); border-radius: 999px; padding: 8px 14px; font-size: 15px; letter-spacing: -0.015em; }
.chip-cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.chip-cat { background: var(--surface); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow); }
.chip-cat h3 { margin: 0 0 12px; font-size: 17px; letter-spacing: -0.02em; }
.chip-cat .chips .chip { background: var(--fill); box-shadow: none; }

/* Black surfaces need an edge on a black page */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) :is(.widget.dark, .cta, .lineage li.me) { box-shadow: inset 0 0 0 1px rgba(217,180,90,.32); } }
:root[data-theme="dark"] :is(.widget.dark, .cta, .lineage li.me) { box-shadow: inset 0 0 0 1px rgba(217,180,90,.32); }

/* ---------- Pending note (until Kevin fills it in) ---------- */
.pending { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: #8a5a00; background: #fff4d6; border-radius: 999px; padding: 4px 10px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pending { color: #ffd479; background: rgba(255, 196, 0, .16); } }

/* ---------- Form (iOS inset grouped form) ---------- */
.form { display: grid; gap: 28px; }
.fgroup { background: var(--surface); border-radius: var(--r-md); box-shadow: var(--shadow); overflow: hidden; }
.field { display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 12px; padding: 0 16px; min-height: 52px; position: relative; }
.field + .field::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; border-top: 0.5px solid var(--sep); }
.field label { font-size: 16px; letter-spacing: -0.015em; }
.field input, .field select, .field textarea {
  width: 100%; border: 0; background: transparent; color: var(--label);
  font: inherit; font-size: 16px; padding: 14px 0; outline: none; min-width: 0;
}
.field select { appearance: none; -webkit-appearance: none; color: var(--label-2); cursor: pointer; text-align: right; text-align-last: right; padding-right: 18px; background: no-repeat right center / 9px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 16'%3E%3Cpath d='M1 5l4-4 4 4M1 11l4 4 4-4' fill='none' stroke='%238e8e93' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.field input { text-align: right; }
.field input::placeholder, .field textarea::placeholder { color: var(--label-3); }
.field.stack { grid-template-columns: 1fr; padding-top: 12px; }
.field.stack textarea { min-height: 140px; resize: vertical; padding-top: 4px; }
.field.stack input { text-align: left; }
.form-status { font-size: 15px; margin: 0; }
.hp { position: absolute; left: -9999px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills input { position: absolute; opacity: 0; }
.pills label { padding: 9px 15px; border-radius: 999px; background: var(--fill); font-size: 15px; cursor: pointer; }
.pills input:checked + label { background: var(--label); color: var(--bg); font-weight: 600; }
.pills input:focus-visible + label { outline: 3px solid var(--gold-fill); outline-offset: 2px; }
.pill-wrap { padding: 16px; }
.pill-wrap .q { font-size: 15px; color: var(--label-2); margin: 0 0 12px; }

/* ---------- CTA banner ---------- */
.cta { background: #000; color: #fff; border-radius: var(--r-xl); padding: clamp(32px, 6vw, 72px); display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: end; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; right: -10%; top: -60%; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(217,180,90,.35), transparent); }
.cta > * { position: relative; }
.cta p { color: rgba(255,255,255,.72); margin: 12px 0 0; max-width: 32em; }
.cta .btn-tint { background: rgba(255,255,255,.14); color: #fff; }

/* ---------- Gallery filter ---------- */
.filter { margin: 28px 0 22px; }

/* ---------- Footer ---------- */
.foot { margin-top: clamp(56px, 8vw, 104px); border-top: 0.5px solid var(--sep); padding: 36px 0 120px; font-size: 14px; color: var(--label-2); }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; }
.foot h4 { color: var(--label); font-size: 14px; margin: 0 0 10px; font-weight: 650; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a:hover { color: var(--label); }
.foot .legal { margin-top: 32px; font-size: 12px; color: var(--label-3); }

/* ---------- Tab bar (phones) ---------- */
.tabbar { display: none; }

/* ---------- Sheet (menu + video) ---------- */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.42); z-index: 80; opacity: 0; pointer-events: none; transition: opacity .25s; }
.sheet-backdrop.open { opacity: 1; pointer-events: auto; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: var(--bg); border-radius: 14px 14px 0 0; max-height: 88vh; overflow: auto; transform: translateY(102%); transition: transform .38s cubic-bezier(.2,.8,.2,1), visibility 0s .38s; padding: 8px var(--gutter) calc(24px + env(safe-area-inset-bottom)); }
.sheet.open { transform: none; visibility: visible; transition: transform .38s cubic-bezier(.2,.8,.2,1), visibility 0s; }
.sheet { visibility: hidden; }
.sheet.open, .sheet.open * { visibility: visible; }
.sheet .grab { width: 36px; height: 5px; border-radius: 3px; background: var(--fill-strong); margin: 0 auto 14px; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.sheet-head h2 { font-size: 20px; margin: 0; letter-spacing: -0.02em; }
.x { width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--fill); color: var(--label-2); cursor: pointer; display: grid; place-items: center; }
.x svg { width: 12px; height: 12px; }
@media (min-width: 761px) {
  .sheet { left: 50%; right: auto; bottom: auto; top: 50%; width: min(880px, 92vw); border-radius: 20px; transform: translate(-50%, -46%) scale(.98); opacity: 0; pointer-events: none; transition: transform .3s ease, opacity .25s; padding-top: 18px; }
  .sheet.open { transform: translate(-50%, -50%); opacity: 1; pointer-events: auto; }
  .sheet { transition: transform .3s ease, opacity .25s, visibility 0s .3s; }
  .sheet.open { transition: transform .3s ease, opacity .25s, visibility 0s; }
  .sheet .grab { display: none; }
  .sheet.menu-sheet { display: none; }
}
.sheet video { width: 100%; border-radius: 14px; background: #000; max-height: 70vh; }

/* ---------- Lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 120; background: rgba(0,0,0,.94); display: none; align-items: center; justify-content: center; }
.lb.open { display: flex; }
.lb img { max-width: 94vw; max-height: 86vh; border-radius: 10px; object-fit: contain; }
.lb button { position: absolute; border: 0; background: rgba(255,255,255,.16); color: #fff; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.lb button svg { width: 18px; height: 18px; }
.lb .lb-x { top: calc(14px + env(safe-area-inset-top)); right: 14px; }
.lb .lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb .lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
.lb .lb-cap { position: absolute; bottom: calc(18px + env(safe-area-inset-bottom)); left: 0; right: 0; text-align: center; color: rgba(255,255,255,.75); font-size: 14px; padding: 0 60px; }

/* ---------- Load moment: hero only ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero .t-hero { animation: rise .9s cubic-bezier(.2,.8,.2,1) both; }
  .hero .t-lede { animation: rise .9s .08s cubic-bezier(.2,.8,.2,1) both; }
  .hero .seg, .hero .stage { animation: rise .9s .16s cubic-bezier(.2,.8,.2,1) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .widgets { grid-template-columns: repeat(2, 1fr); }
  .lanes { grid-template-columns: 1fr 1fr; }
  .lanes .lane:first-child { grid-column: span 2; min-height: 380px; }
  .names { grid-template-columns: 1fr; }
  .name-col { border-left: 0; border-top: 0.5px solid var(--sep); }
  .name-col:first-child { border-top: 0; }
  .story-split { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav, .bar .btn { display: none; }
  .menu-btn { display: grid; }
  .bar-in { height: 52px; }
  .hero-top { grid-template-columns: 1fr; }
  .seg { display: grid; width: 100%; margin-top: 24px; }
  .seg button { padding: 8px 6px; font-size: 13px; }
  .stage { aspect-ratio: 3 / 4; min-height: 0; border-radius: 24px; }
  .stage-copy .btn { justify-self: start; }
  .sec-head { flex-direction: column; align-items: flex-start; }
  .stage-copy { grid-template-columns: 1fr; }
  .lanes { grid-template-columns: 1fr; }
  .lanes .lane:first-child { grid-column: auto; }
  .lane { min-height: 360px; border-radius: 24px; }
  .widgets { gap: 10px; }
  .widget { min-height: 132px; padding: 14px; border-radius: 20px; }
  .feature { grid-template-columns: 1fr; }
  .chip-cats { grid-template-columns: 1fr; }
  .cta { grid-template-columns: 1fr; border-radius: 24px; }
  .field { grid-template-columns: 1fr; gap: 0; padding-top: 10px; }
  .field label { font-size: 13px; color: var(--label-2); }
  .field input, .field select { text-align: left; padding: 6px 0 12px; text-align-last: left; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > :first-child { grid-column: span 2; }
  .row .year { width: 58px; }
  .strip { grid-auto-columns: 72%; }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    background: var(--bar); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
    border-top: 0.5px solid var(--sep);
  }
  .tabbar a { display: grid; justify-items: center; gap: 2px; font-size: 10px; font-weight: 500; color: var(--label-3); padding: 4px 0; letter-spacing: 0; }
  .tabbar a svg { width: 25px; height: 25px; }
  .tabbar a[aria-current="page"] { color: var(--gold); }
}

/* =========================================================
   GAME LAYER — Modern Warfare HUD + EA FC hub/cards,
   layered on the iOS base. Lists, forms, sheets stay iOS.
   ========================================================= */
:root {
  --font-d: "Barlow Condensed", "SF Pro Display", "Arial Narrow", var(--font);
  --font-m: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --cut: 18px;
}
.t-hero, .t-large {
  font-family: var(--font-d); text-transform: uppercase; font-weight: 800;
  letter-spacing: -0.005em; line-height: 0.9;
}
.t-hero { font-size: clamp(60px, 11vw, 140px); }
.t-large { font-size: clamp(40px, 6vw, 68px); }
.cta .t-large { font-size: clamp(40px, 5.4vw, 64px); }

/* HUD corner brackets */
.hud-corners { position: relative; }
.hud-corners::before {
  content: ""; position: absolute; inset: 12px; pointer-events: none; z-index: 3;
  --c: var(--gold-fill); --l: 18px; --w: 2px;
  background:
    linear-gradient(var(--c), var(--c)) top left / var(--l) var(--w) no-repeat,
    linear-gradient(var(--c), var(--c)) top left / var(--w) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) top right / var(--l) var(--w) no-repeat,
    linear-gradient(var(--c), var(--c)) top right / var(--w) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / var(--l) var(--w) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / var(--w) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / var(--l) var(--w) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / var(--w) var(--l) no-repeat;
}
.stage.hud-corners::before { --c: rgba(255,255,255,.85); inset: 16px; }
.hud-grid {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 55%); mask-image: linear-gradient(180deg, #000, transparent 55%);
}
.hud-read {
  position: absolute; top: 30px; left: 34px; z-index: 3;
  font-family: var(--font-m); font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  color: rgba(255,255,255,.88); display: flex; align-items: center; gap: 10px;
}
.hud-read[hidden] { display: none; }
.rec { width: 8px; height: 8px; border-radius: 50%; background: #ff3b30; }
@media (prefers-reduced-motion: no-preference) { .rec { animation: blink 1.4s steps(2, start) infinite; } @keyframes blink { to { visibility: hidden; } } }
.stage-name { font-family: var(--font-d); text-transform: uppercase; font-weight: 800; font-size: clamp(40px, 6vw, 76px); letter-spacing: 0; line-height: .9; }

/* EA FC-style hub */
.hub { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 96px; gap: 12px; }
.tile {
  position: relative; overflow: hidden; isolation: isolate; color: #fff; background: #000;
  grid-column: span 3; grid-row: span 2; display: flex; flex-direction: column;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
  transition: transform .2s ease;
}
.tile.t-feature { grid-column: span 6; grid-row: span 4; }
.tile.t-tall { grid-column: span 3; grid-row: span 4; }
.tile.t-wide { grid-column: span 6; grid-row: span 2; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .5s ease; }
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.85)); }
.tile::after { content: ""; position: absolute; inset: 0; border: 2px solid transparent; transition: border-color .15s; pointer-events: none; }
.tile:hover::after, .tile:focus-visible::after { border-color: var(--gold-fill); }
.tile:hover img { transform: scale(1.04); }
.tile:focus-visible { outline: none; }
.tile-body { margin-top: auto; padding: 18px 20px; }
.tile-k { margin: 0 0 4px; font-family: var(--font-d); text-transform: uppercase; letter-spacing: .04em; font-weight: 700; font-size: 15px; color: #e7c873; }
.tile h3 { margin: 0; font-family: var(--font-d); text-transform: uppercase; font-weight: 800; font-size: clamp(26px, 2.4vw, 34px); line-height: .92; }
.tile.t-feature h3 { font-size: clamp(38px, 4.6vw, 64px); }
.tile-s { margin: 8px 0 0; font-size: 14px; color: rgba(255,255,255,.78); }
.tile-tag {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  font-family: var(--font-d); text-transform: uppercase; font-weight: 700; letter-spacing: .05em; font-size: 14px;
  background: var(--gold-fill); color: #000; padding: 4px 12px 4px 10px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}
.tile-tag .live::before { box-shadow: none; }
.tile-meta { position: absolute; right: 22px; top: 18px; font-family: var(--font-m); font-size: 11px; letter-spacing: .06em; color: rgba(255,255,255,.8); z-index: 2; }
.tile.t-solid { background: var(--surface); color: var(--label); }
.tile.t-solid::before { display: none; }
.tile.t-solid .tile-k { color: var(--gold); }
.tile.t-solid .tile-s { color: var(--label-2); }
.tile.t-gold { background: linear-gradient(150deg, #edd07f, #b8892b); color: #000; }
.tile.t-gold .tile-k, .tile.t-gold .tile-s { color: rgba(0,0,0,.7); }
.tile-ico { position: absolute; top: 18px; right: 22px; width: 26px; height: 26px; opacity: .8; }
.tile-ico svg { width: 100%; height: 100%; }

/* EA FC-style player cards (real stats) */
.squad { display: grid; grid-template-columns: repeat(3, minmax(0, 340px)); gap: 22px; justify-content: center; }
.pcard {
  --ink: #2a1c00; --ink-2: rgba(42,28,0,.66); --rule: rgba(42,28,0,.25); --accent: #2a1c00;
  position: relative; display: flex; flex-direction: column; aspect-ratio: 0.66; padding: 22px 22px 48px;
  color: var(--ink); isolation: isolate;
  background: linear-gradient(160deg, #f3dc95 0%, #d8b45a 38%, #b98b2c 70%, #e6c76f 100%);
  clip-path: polygon(0 5%, 9% 0, 91% 0, 100% 5%, 100% 89%, 50% 100%, 0 89%);
  transition: transform .2s ease, filter .2s ease;
}
.pcard::after { /* foil sheen */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.35) 45%, transparent 60%);
}
a.pcard:hover { transform: translateY(-4px); filter: drop-shadow(0 18px 24px rgba(0,0,0,.25)); }
.pc-red { --ink: #fff; --ink-2: rgba(255,255,255,.72); --rule: rgba(255,255,255,.22); --accent: #ffcf6b; background: linear-gradient(160deg, #6d0b0b 0%, #b3161b 45%, #2a0405 100%); }
.pc-black { --ink: #fff; --ink-2: rgba(255,255,255,.7); --rule: rgba(217,180,90,.35); --accent: #e7c873; background: linear-gradient(160deg, #26231d 0%, #0b0b0b 55%, #2b2414 100%); }
.pc-top { position: absolute; top: 34px; left: 26px; z-index: 2; display: grid; gap: 2px; }
.pc-big b { display: block; font-family: var(--font-d); font-weight: 800; font-size: 54px; line-height: .85; letter-spacing: -.01em; color: var(--accent); }
.pc-big span, .pc-pos { font-family: var(--font-d); text-transform: uppercase; font-weight: 700; letter-spacing: .05em; font-size: 15px; color: var(--ink); }
.pc-pos { margin-top: 6px; padding-top: 6px; border-top: 1.5px solid var(--rule); }
.pc-photo { position: absolute; top: 0; right: 0; left: 26%; height: 62%; z-index: 0; }
.pc-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22%, #000 70%, transparent 100%), linear-gradient(90deg, transparent 0, #000 30%);
  mask-image: linear-gradient(180deg, transparent 0, #000 22%, #000 70%, transparent 100%), linear-gradient(90deg, transparent 0, #000 30%);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
.pc-name { font-family: var(--font-d); text-transform: uppercase; font-weight: 800; font-size: 28px; text-align: center; line-height: 1; padding-bottom: 8px; border-bottom: 1.5px solid var(--rule); margin-top: auto; position: relative; z-index: 1; }
.pc-stats, .pc-tags { position: relative; z-index: 1; }
.pc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 6px; padding: 10px 0 8px; }
.pc-stat { text-align: center; }
.pc-stat b { display: block; font-family: var(--font-d); font-weight: 800; font-size: 22px; line-height: 1; }
.pc-stat span { display: block; font-size: 10.5px; line-height: 1.2; color: var(--ink-2); margin-top: 3px; font-weight: 600; }
.pc-tags { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.pc-tags span { font-family: var(--font-d); text-transform: uppercase; font-weight: 700; letter-spacing: .05em; font-size: 12px; color: var(--ink-2); }
.pc-tags span + span::before { content: "/"; margin-right: 6px; opacity: .6; }

/* Lane page header with card */
.head-split { display: grid; grid-template-columns: 1fr 320px; gap: clamp(28px, 5vw, 72px); align-items: center; }
.head-card .pcard { width: 100%; }

/* Loadout slots (HUD frames on iOS cards) */
.chip-cat.hud-corners::before { inset: 8px; --l: 14px; }
.chip-cat h3 { font-family: var(--font-d); text-transform: uppercase; font-weight: 800; font-size: 22px; letter-spacing: .01em; }

@media (max-width: 1020px) {
  .hub { grid-template-columns: repeat(6, 1fr); }
  .tile.t-feature { grid-column: span 6; grid-row: span 4; }
  .tile.t-tall { grid-column: span 3; grid-row: span 4; }
  .tile { grid-column: span 3; }
  .tile.t-wide { grid-column: span 6; }
  .squad { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .head-split { grid-template-columns: 1fr 280px; }
}
@media (max-width: 760px) {
  .hub { grid-template-columns: 1fr 1fr; grid-auto-rows: 88px; gap: 10px; }
  .tile, .tile.t-tall { grid-column: span 1; }
  .tile.t-feature, .tile.t-wide { grid-column: span 2; }
  .tile.t-feature { grid-row: span 4; }
  .tile.t-tall { grid-row: span 4; }
  .tile { grid-row: span 2; }
  .tile h3 { font-size: 24px; }
  .tile-body { padding: 14px; }
  .tile-meta { display: none; }
  .squad { display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; justify-content: start; margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter) 10px; scrollbar-width: none; }
  .squad::-webkit-scrollbar { display: none; }
  .squad .pcard { scroll-snap-align: center; }
  .head-split { grid-template-columns: 1fr; }
  .head-card { max-width: 300px; }
  .hud-read { top: 24px; left: 26px; font-size: 10.5px; }
  .t-hero { font-size: clamp(54px, 16vw, 80px); }
}

/* HUD feature tile (no photo yet) */
.tile.t-hud { background: radial-gradient(120% 90% at 80% 20%, #2a2312 0%, #050505 60%); }
.tile.t-hud::before { background: none; }
.tile.t-hud .hud-grid { -webkit-mask-image: radial-gradient(80% 80% at 70% 30%, #000, transparent); mask-image: radial-gradient(80% 80% at 70% 30%, #000, transparent); background-size: 40px 40px; }
.hud-target { position: absolute; right: 18%; top: 22%; width: 120px; height: 120px; border: 1.5px solid rgba(217,180,90,.7); border-radius: 50%; z-index: 1; }
.hud-target::before, .hud-target::after { content: ""; position: absolute; background: rgba(217,180,90,.7); }
.hud-target::before { left: 50%; top: -22px; bottom: -22px; width: 1.5px; }
.hud-target::after { top: 50%; left: -22px; right: -22px; height: 1.5px; }
@media (max-width: 760px) { .hud-target { width: 80px; height: 80px; right: 12%; top: 18%; } }
.hero .t-hero { margin-bottom: 4px; }
.cta.give { background: var(--surface); color: var(--label); box-shadow: var(--shadow); }
.cta.give p { color: var(--label-2); }
.cta.give .btn-tint { background: var(--fill); color: var(--label); }
.cta.give::before { background: radial-gradient(closest-side, rgba(48,161,78,.18), transparent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cta.give { box-shadow: none; } }

/* Posters, spinning card, logo spin */
.strip.posters figure { aspect-ratio: 2400 / 3057; background: #000; }
.video-card.spin-card, .video-card.logo-spin { aspect-ratio: 1 / 1; background: #000; max-width: 520px; width: 100%; justify-self: center; }
.video-card.spin-card video, .video-card.logo-spin video { object-fit: contain; }
.stage-slide.poster { background: #0b0b0c; overflow: hidden; }
.stage-slide.poster::before { content: ""; position: absolute; inset: -40px; background: var(--bg) center / cover no-repeat; filter: blur(30px) brightness(.5) saturate(1.2); }
.stage-slide.poster img { position: relative; object-fit: contain; object-position: 90% 50% !important; }
@media (max-width: 760px) { .stage-slide.poster img { object-position: 50% 0% !important; } }
