/* ROSIE — playrosie.com v3 (built from the "A Living City" site mockup)
   Near-black with a red glow, wide heavy headings, red outline buttons, red line icons. */

:root {
  --bg: #07060a;
  --bg-2: #0d0a0f;
  --ink: #f5f5f7;
  --ink-2: #c3c3cc;
  --ink-3: #85858f;
  --line: rgba(255,255,255,.08);
  --red: #ff2b36;
  --red-deep: #b30f1a;
  --red-glow: rgba(255,43,54,.55);
  --red-line: rgba(255,43,54,.45);
  --display: 'Unbounded', 'Segoe UI', sans-serif;
  --body: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --brush: 'Permanent Marker', 'Segoe Print', cursive;
  --ease: cubic-bezier(.2,.7,.2,1);
  --wrap: 1280px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 70px; }
body { background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
code, kbd { font-family: ui-monospace, Consolas, monospace; font-size: .92em; background: rgba(255,255,255,.06); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; color: #fff; }
.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: #fff; color: #000; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }

/* ── type ───────────────────────────────────────── */
.title { font-family: var(--display); font-weight: 900; text-transform: uppercase; text-align: center; letter-spacing: .02em; line-height: 1.1; font-size: clamp(26px, 3.4vw, 50px); }
.title em { font-style: italic; color: var(--red); text-shadow: 0 0 24px var(--red-glow); }
.subtitle { text-align: center; color: var(--ink-2); font-size: clamp(15px, 1.2vw, 18px); margin-top: 10px; }
.kicker { text-align: center; font-family: var(--display); font-weight: 600; font-size: clamp(11px, .95vw, 14px); letter-spacing: .32em; text-transform: uppercase; color: var(--ink-2); margin-top: 10px; }
h3 { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: .04em; line-height: 1.2; }

/* ── buttons ────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; border-radius: 8px; white-space: nowrap; transition: background .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease); }
.btn-outline { color: #fff; border: 1.5px solid var(--red); background: rgba(255,43,54,.08); box-shadow: 0 0 14px rgba(255,43,54,.35), inset 0 0 12px rgba(255,43,54,.15); padding: 11px 22px; font-size: 12px; }
.btn-outline:hover { background: rgba(255,43,54,.22); box-shadow: 0 0 26px var(--red-glow), inset 0 0 14px rgba(255,43,54,.25); transform: translateY(-1px); }
.btn-sm { padding: 9px 18px; font-size: 10.5px; }

/* ── nav ────────────────────────────────────────── */
.nav { position: fixed; top: 0; inset-inline: 0; z-index: 60; height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-inline: clamp(16px, 4vw, 64px);
  background: linear-gradient(180deg, rgba(7,6,10,.85), rgba(7,6,10,.55)); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255,43,54,.18); transition: background .3s; }
.nav.scrolled { background: rgba(7,6,10,.94); }
.nav-logo img { height: 34px; width: auto; filter: drop-shadow(0 0 10px rgba(255,43,54,.35)); }
.nav-links { display: flex; align-items: center; gap: clamp(6px, 1.4vw, 22px); }
.nav-links a { font-family: var(--display); font-weight: 700; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); padding: 7px 12px; border-radius: 4px; transition: color .2s, background .2s; }
.nav-links a:hover { color: #fff; }
.nav-links a.is-active { color: #fff; background: var(--red); box-shadow: 0 0 16px var(--red-glow); }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 10px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14); cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 12px; right: 12px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s var(--ease), top .3s var(--ease); }
.menu-btn span:first-child { top: 17px; } .menu-btn span:last-child { top: 25px; }
.menu-btn[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ── hero ───────────────────────────────────────── */
.hero { position: relative; padding-top: 64px; background: var(--bg); }
.hero-img { width: 100%; height: auto; }
.hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 22%; background: linear-gradient(180deg, transparent, var(--bg)); pointer-events: none; }

/* ── section frame (thin red rule between bands, like the mockup) ── */
.about, .roles, .features, .meet, .media, .strip { position: relative; }
.roles, .features, .meet, .media, .strip { border-top: 1px solid rgba(255,43,54,.16); }

/* about */
.about { padding: clamp(36px, 5vw, 70px) 0 clamp(44px, 5vw, 72px); background: radial-gradient(ellipse 60% 80% at 50% 0%, rgba(255,43,54,.08), transparent 70%), var(--bg); }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(28px, 3.5vw, 48px); }
.pillar { display: flex; gap: 18px; padding: 8px clamp(16px, 2.4vw, 36px); }
.pillar + .pillar { border-left: 1px solid transparent; border-image: linear-gradient(180deg, transparent, var(--red-line), transparent) 1; }
.pillar-ic, .meet-list svg, .strip-item svg { flex: none; width: 50px; height: 50px; fill: none; stroke: var(--red); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px var(--red-glow)); }
.pillar h3 { font-size: clamp(14px, 1.2vw, 17px); }
.pillar p { color: var(--ink-2); font-size: 14px; margin-top: 8px; }
.motto { margin-top: clamp(36px, 4.5vw, 60px); text-align: center; }
.motto-top { font-family: var(--display); font-weight: 700; font-size: clamp(12px, 1.2vw, 17px); letter-spacing: .34em; text-transform: uppercase; }
.motto-brush { display: flex; align-items: center; gap: clamp(12px, 2vw, 28px); justify-content: center; margin-top: 6px; }
.motto-brush::before, .motto-brush::after { content: ''; flex: 1; max-width: 260px; height: 2px; background: linear-gradient(90deg, transparent, var(--red)); box-shadow: 0 0 10px var(--red-glow); }
.motto-brush::after { background: linear-gradient(90deg, var(--red), transparent); }
.motto-brush span { font-family: var(--brush); font-size: clamp(28px, 3.6vw, 54px); color: var(--red); text-transform: uppercase; transform: skewX(-8deg); line-height: 1.1; text-shadow: 0 0 22px var(--red-glow); }

/* roles */
.roles { padding: clamp(40px, 5vw, 70px) 0; background: linear-gradient(180deg, rgba(7,6,10,.88), rgba(7,6,10,.94)), url(city-panorama-960.jpg) center 60% / cover; }
.origins { display: flex; gap: clamp(8px, 1vw, 14px); margin-top: clamp(24px, 3vw, 40px); }
.origin { flex: var(--ar) 1 0; aspect-ratio: var(--ar); min-width: 0; position: relative; overflow: hidden; border-radius: 10px; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.origin img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .5s var(--ease); }
.origin:hover { transform: translateY(-8px); box-shadow: 0 24px 50px -20px hsl(var(--hue) 90% 50% / .7); }
.origin:hover img { transform: scale(1.04); filter: brightness(.5); }
.origin-body { position: absolute; left: 8px; right: 8px; top: 50%; transform: translateY(-40%); padding: 14px; border-radius: 10px; background: rgba(7,6,10,.75); border: 1px solid hsl(var(--hue) 90% 60% / .45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .4s var(--ease), transform .4s var(--ease); pointer-events: none; }
.origin:hover .origin-body, .origin:focus-within .origin-body { opacity: 1; transform: translateY(-50%); }
.origin-body h3 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.origin-body p { font-size: 13px; color: #fff; line-height: 1.45; }

/* features */
.features { padding: clamp(16px, 2vw, 24px) 0; background: var(--bg-2); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.feature { position: relative; overflow: hidden; min-height: 300px; display: flex; flex-direction: column; justify-content: flex-end; }
.feature + .feature { border-left: 1px solid rgba(255,43,54,.16); }
.feature img { position: absolute; inset: 0 0 auto 0; width: 100%; height: 62%; object-fit: cover; transition: transform 1s var(--ease); }
.feature::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 20%, rgba(13,10,15,.7) 48%, var(--bg-2) 66%); }
.feature:hover img { transform: scale(1.05); }
.feature-body { position: relative; z-index: 1; padding: 0 clamp(16px, 2vw, 28px) 18px; }
.feature h3 { font-size: clamp(15px, 1.35vw, 19px); }
.feature p { color: var(--ink-2); font-size: 14px; margin: 8px 0 16px; max-width: 380px; }

/* meet rosie */
.meet { overflow: hidden; padding: clamp(40px, 4vw, 60px) 0; background: radial-gradient(ellipse 40% 90% at 15% 60%, rgba(255,43,54,.22), transparent 70%), linear-gradient(180deg, #0c070b, var(--bg)); }
.meet-grid { display: grid; grid-template-columns: 1fr 1.15fr 1.1fr; align-items: center; gap: clamp(20px, 3vw, 44px); }
.meet-art img { width: 100%; max-width: 440px; margin-inline: auto; filter: drop-shadow(0 0 40px rgba(255,43,54,.35)); }
.meet-copy { text-align: center; }
.meet-copy .title { font-size: clamp(34px, 4vw, 60px); font-style: italic; }
.meet-copy > p:not(.kicker) { color: var(--ink-2); font-size: 15px; margin: 18px auto 22px; max-width: 420px; }
.meet-list { list-style: none; display: grid; gap: 22px; padding-left: clamp(18px, 2.4vw, 36px); border-left: 1px solid transparent; border-image: linear-gradient(180deg, transparent, var(--red-line), transparent) 1; }
.meet-list li { display: flex; align-items: center; gap: 16px; }
.meet-list svg { width: 38px; height: 38px; }
.meet-list h3 { font-size: 13px; }
.meet-list p { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-top: 3px; }

/* media */
.media { padding: clamp(40px, 5vw, 64px) 0; background: var(--bg); }
.media-grid { display: grid; grid-template-columns: 2.2fr .8fr 1.25fr; gap: 12px; margin-top: clamp(24px, 3vw, 36px); align-items: stretch; }
.shot { position: relative; overflow: hidden; border-radius: 8px; border: 1px solid rgba(255,255,255,.12); margin: 0; background: #111; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.shot:hover img { transform: scale(1.04); }
.shot-main { min-height: clamp(220px, 24vw, 400px); }
.shot-stack { display: grid; grid-template-rows: repeat(4, 1fr); gap: 8px; }
.shot-side { min-height: 100%; }
.play { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.14); border: 2px solid rgba(255,255,255,.85); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: transform .4s var(--ease), background .4s; }
.play svg { width: 28px; height: 28px; fill: #fff; margin-left: 4px; }
.shot-main:hover .play { transform: translate(-50%,-50%) scale(1.08); background: rgba(255,43,54,.45); }
.shot-main figcaption { position: absolute; top: 12px; right: 12px; font-family: var(--display); font-weight: 700; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; background: rgba(0,0,0,.6); border: 1px solid rgba(255,255,255,.18); }

/* strip */
.strip { padding: clamp(22px, 2.6vw, 34px) 0; background: var(--bg-2); border-bottom: 1px solid rgba(255,43,54,.16); }
.strip-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.strip-item { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 6px 16px; }
.strip-item + .strip-item { border-left: 1px solid rgba(255,255,255,.1); }
.strip-item svg { width: 42px; height: 42px; }
.strip-item h3 { font-size: 13px; }
.strip-item p { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-top: 2px; }
a.strip-item:hover h3 { color: var(--red); }

/* footer */
.footer { padding: 30px 0 26px; background: #040306; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-logo { height: 26px; width: auto; opacity: .9; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { font-size: 13px; color: var(--ink-2); } .footer-links a:hover { color: #fff; }
.f-status { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #f5a524; box-shadow: 0 0 10px #f5a524; flex: none; }
.status-dot.online { background: #34d27b; box-shadow: 0 0 10px #34d27b; }
.legal { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.legal p { font-size: 12px; color: var(--ink-3); }
.legal a { color: var(--ink-2); }

/* reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in, .no-js .reveal { opacity: 1; transform: none; }
.origin.reveal.in:hover { transform: translateY(-8px); }

/* ── responsive ─────────────────────────────────── */
@media (min-width: 2000px) { :root { --wrap: 1560px; } body { font-size: 17px; } .hero-img { max-height: calc(100svh - 64px); object-fit: cover; } }
@media (max-width: 1180px) {
  .nav-links { display: none; }
  .menu-btn { display: block; }
  .nav-join { margin-left: auto; }
  .nav-links.open { display: flex; position: fixed; top: 64px; left: 12px; right: 12px; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px; border-radius: 14px; background: rgba(10,8,12,.97); border: 1px solid rgba(255,43,54,.25); }
  .nav-links.open a { padding: 13px 16px; font-size: 13px; }
  .origins { overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; margin-inline: -24px; padding-inline: 24px; scrollbar-width: thin; scrollbar-color: rgba(255,43,54,.5) transparent; }
  .origin { flex: none; height: min(480px, 64svh); width: auto; scroll-snap-align: center; }
  .meet-grid { grid-template-columns: .8fr 1.2fr; }
  .meet-list { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; border-left: 0; border-top: 1px solid rgba(255,43,54,.25); border-image: none; padding: 26px 0 0; }
}
@media (max-width: 860px) {
  .pillars { grid-template-columns: 1fr; gap: 22px; }
  .pillar + .pillar { border-left: 0; border-image: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature + .feature { border-left: 0; border-top: 1px solid rgba(255,43,54,.16); }
  .feature { min-height: 280px; }
  .media-grid { grid-template-columns: 1fr 1fr; }
  .shot-main { grid-column: 1 / -1; min-height: 0; aspect-ratio: 418/186; }
  .shot-stack { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  .shot-stack .shot { aspect-ratio: 16/9; }
  .strip-grid { grid-template-columns: 1fr; gap: 14px; }
  .strip-item { justify-content: flex-start; }
  .strip-item + .strip-item { border-left: 0; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .nav-join { display: none; }
  .nav-logo img { height: 28px; }
  .origins { margin-inline: -16px; padding-inline: 16px; }
  .origin-body { display: none; }
  .meet-grid { grid-template-columns: 1fr; }
  .meet-art img { max-width: 260px; }
  .meet-list { grid-template-columns: 1fr; }
  .motto-brush::before, .motto-brush::after { max-width: 40px; }
  .footer-row { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ── logo (keyed transparent) ── */
.nav-logo img { height: 36px; }
.footer-logo { height: 30px; }

/* ── roles: big character-select rail (scrolls instead of shrinking) ── */
.rail { position: relative; margin-top: clamp(24px, 3vw, 40px); }
.roles .origins { display: flex; gap: clamp(12px, 1.2vw, 18px); margin: 0 calc(50% - 50vw); padding: 14px max(24px, calc(50vw - var(--wrap) / 2)) 22px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(24px, calc(50vw - var(--wrap) / 2)); scrollbar-width: thin; scrollbar-color: rgba(255,43,54,.55) transparent; overscroll-behavior-x: contain; }
.roles .origins::-webkit-scrollbar { height: 6px; } .roles .origins::-webkit-scrollbar-thumb { background: rgba(255,43,54,.55); border-radius: 3px; }
.roles .origin { flex: none; height: clamp(420px, 36vw, 600px); width: auto; aspect-ratio: var(--ar); scroll-snap-align: start; border-radius: 14px; box-shadow: 0 18px 40px -22px rgba(0,0,0,.9); }
.roles .origin:hover { box-shadow: 0 26px 60px -22px hsl(var(--hue) 90% 50% / .75); }
.rail-btn { position: absolute; top: 50%; z-index: 3; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; background: rgba(7,6,10,.8); border: 1.5px solid var(--red); box-shadow: 0 0 18px rgba(255,43,54,.45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transform: translateY(-50%); transition: background .25s, opacity .25s; }
.rail-btn:hover { background: rgba(255,43,54,.35); }
.rail-btn svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.rail-prev { left: -8px; } .rail-next { right: -8px; }
.rail-btn[disabled] { opacity: 0; pointer-events: none; }
@media (max-width: 1180px) { .roles .origin { height: min(520px, 66svh); } }
@media (max-width: 640px) { .rail-btn { display: none; } .roles .origin { height: min(480px, 64svh); } .roles .origins { padding-inline: 16px; scroll-padding-inline: 16px; } }

/* ── roles v4: 7 equal cards — one row when it fits, swipe when it doesn't ── */
.roles .origins { justify-content: safe center; }
.roles .origin { height: clamp(380px, calc((min(100vw, 1760px) - 48px - 6 * 16px) / 7 / var(--ar)), 470px); border-radius: 12px; background: transparent; }
.roles .origin img { object-fit: contain; }
@media (max-width: 1180px) { .roles .origin { height: min(480px, 64svh); } }
@media (max-width: 640px) { .roles .origin { height: min(460px, 62svh); } }
@media (min-width: 1181px) {
  .roles .origins { padding-inline: 24px; scroll-padding-inline: 24px; }
  .roles .origin { height: clamp(330px, calc((min(100vw, 2200px) - 48px - 6 * 16px - 24px) / 7 / var(--ar)), 470px); }
}

/* ── launch announcement bar ── */
:root { --bar: 38px; }
.announce { position: fixed; top: 0; inset-inline: 0; z-index: 61; height: var(--bar); display: flex; align-items: center; justify-content: center; gap: 10px; padding-inline: 16px; font-family: var(--display); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: #fff; white-space: nowrap; overflow: hidden;
  background: linear-gradient(90deg, #6d0710, #d4101d 30%, #ff2b36 50%, #d4101d 70%, #6d0710); box-shadow: 0 0 22px rgba(255,43,54,.45); }
.announce b { font-weight: 900; }
.announce-sep { opacity: .6; }
.announce-dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px #fff; animation: announce-blink 1.6s ease-in-out infinite; flex: none; }
@keyframes announce-blink { 50% { opacity: .25; } }
.announce-count:not(:empty) { padding: 3px 9px; border-radius: 999px; background: rgba(0,0,0,.35); font-weight: 800; }
.announce svg { width: 20px; height: 20px; fill: #fff; flex: none; }
.announce:hover { filter: brightness(1.1); }
.nav { top: var(--bar); }
.hero { padding-top: calc(64px + var(--bar)); }
html { scroll-padding-top: calc(70px + var(--bar)); }
.nav-links.open { top: calc(64px + var(--bar)) !important; }
.announce-short { display: none; }
@media (max-width: 640px) { .announce { font-size: 10px; gap: 7px; letter-spacing: .06em; } .announce-long, .announce-count { display: none; } .announce-short { display: inline; } }
