/* RevolutAIn design versions, shared base stylesheet.
   Layout, components, and motion. Colors, type, radii, and shadows come from
   the theme stylesheet loaded after this one (assets/theme.css). Static CSS,
   no build step. Motion is additive and gated behind prefers-reduced-motion. */

:root {
  --bg: #f6f1e9;
  --bg-2: #efe8dd;
  --bg-3: #e7dfd1;
  --card: #fffcf7;
  --card-2: #efe8dd;
  --ink: #1e1a17;
  --ink-2: #4e4742;
  --muted: #6f675f;
  --accent: #8a1f1f;
  --accent-deep: #6d1717;
  --accent-soft: rgba(138, 31, 31, .08);
  --on-accent: #fbf5ec;
  --rule: rgba(30, 26, 23, .12);
  --shadow: 0 1px 2px rgba(30, 26, 23, .04), 0 12px 32px -18px rgba(30, 26, 23, .22);
  --shadow-hover: 0 2px 4px rgba(30, 26, 23, .05), 0 22px 44px -20px rgba(30, 26, 23, .3);
  --font-display: "Jost", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --display-weight: 500;
  --h1-size: clamp(2rem, 3.2vw, 3rem);
  --radius: 20px;
  --radius-sm: 12px;
  --btn-radius: 999px;
  --header-h: 4.25rem;
  --tabbar-h: 4.25rem;
  --wrap: 76rem;
  --gap: 1rem;
  --pad: clamp(1rem, 4vw, 2.5rem);
  --card-pad: 1.5rem;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); -webkit-text-size-adjust: 100%; background: var(--bg); scrollbar-gutter: stable; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.6 var(--font-body); overflow-x: hidden; padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px)); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p a, .text-link { color: var(--accent); font-weight: 500; text-decoration: underline; text-underline-offset: .18em; text-decoration-color: rgba(138, 31, 31, .4); }
p a:hover, .text-link:hover { text-decoration-color: var(--accent); color: var(--accent-deep); }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: var(--display-weight); line-height: 1.12; letter-spacing: -.015em; }
h5 { margin: 0; font: 600 .74rem/1.4 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { width: min(100% - 2 * var(--pad), var(--wrap)); margin-inline: auto; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-body); font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.eyebrow::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: var(--accent); }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); line-height: 1.55; color: var(--ink-2); max-width: 44rem; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--on-accent); padding: .6rem 1rem; z-index: 100; border-radius: var(--radius-sm); }
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- Brand ---------- */
/* Brand lockup. The mark is the reference logo redrawn: a thin inner ring sitting high inside an
   open outer arc that runs from one o'clock round to nine, tapering to points at both ends.
   The wordmark is the reference's light, wide-tracked lowercase with a bold crimson AI. */
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); }
.brand .mark { width: 2.4rem; height: 2.4rem; color: var(--accent); flex: none; }
.wordmark { font-family: "Jost", sans-serif; font-weight: 300; font-size: 1.3rem; letter-spacing: .12em; line-height: 1; color: var(--ink); }
.wordmark b { font-weight: 700; color: var(--accent); letter-spacing: .06em; }
.brand.stacked { flex-direction: column; gap: 1.1rem; }
.brand.stacked .mark { width: clamp(5.5rem, 12vw, 7rem); height: clamp(5.5rem, 12vw, 7rem); }
.brand.stacked .wordmark { font-size: clamp(1.9rem, 4.4vw, 2.6rem); }

/* ---------- Buttons and pills ---------- */
.btn { display: inline-flex; align-items: center; gap: .55rem; padding: .8rem 1.25rem; border-radius: var(--btn-radius); font-family: var(--font-body); font-weight: 600; font-size: .93rem; line-height: 1.1; border: 1px solid var(--rule); background: var(--card); color: var(--ink); box-shadow: var(--shadow); transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: var(--on-accent); }
.btn-on-accent { background: var(--on-accent); border-color: var(--on-accent); color: var(--accent); box-shadow: none; }
.btn-on-accent:hover { background: #fff; color: var(--accent-deep); }
.btn .arrow { width: 1rem; height: 1rem; transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.pill { display: inline-flex; align-items: center; padding: .3rem .7rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: .78rem; font-weight: 600; line-height: 1.3; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
@supports not (color-mix(in srgb, red 50%, blue)) { .site-header { background: rgba(246, 241, 233, .9); } }
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; }
.primary-nav { display: none; }
.primary-nav ul { display: flex; gap: .2rem; padding: .3rem; background: var(--card); border: 1px solid var(--rule); border-radius: var(--btn-radius); box-shadow: var(--shadow); }
.primary-nav a { display: inline-flex; align-items: center; padding: .5rem .95rem; border-radius: var(--btn-radius); font-size: .92rem; font-weight: 500; color: var(--ink-2); transition: background .25s var(--ease), color .25s var(--ease); }
.primary-nav a:hover { background: var(--card-2); color: var(--ink); }
.primary-nav a[aria-current="page"] { background: var(--accent); color: var(--on-accent); }

/* ---------- Bottom tab bar (under 64em) ---------- */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; height: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px)); padding-bottom: env(safe-area-inset-bottom, 0px); background: color-mix(in srgb, var(--card) 94%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--rule); }
@supports not (color-mix(in srgb, red 50%, blue)) { .tabbar { background: rgba(255, 252, 247, .95); } }
.tabbar ul { height: var(--tabbar-h); display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; padding: 0 .4rem; }
.tabbar a { display: grid; justify-items: center; gap: .2rem; padding: .35rem .25rem; border-radius: 14px; font-size: .68rem; font-weight: 600; color: var(--muted); width: 100%; transition: background .25s var(--ease), color .25s var(--ease); }
.tabbar svg { width: 1.35rem; height: 1.35rem; }
.tabbar a[aria-current="page"] { color: var(--on-accent); background: var(--accent); }
.tabbar a:hover { color: var(--accent); }
.tabbar a[aria-current="page"]:hover { color: var(--on-accent); }

/* ---------- Bento grid and cards ---------- */
main { position: relative; z-index: 1; }
.bento { display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1fr); }
.card { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: var(--card-pad); box-shadow: var(--shadow); position: relative; display: grid; gap: .75rem; align-content: start; }
a.card { transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
a.card.lift:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card.tone { background: var(--card-2); }
.card.accent { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.card.accent .eyebrow { color: var(--on-accent); opacity: .85; }
.card.accent .eyebrow::before { background: var(--on-accent); }
.card.accent p, .card.accent li { color: var(--on-accent); opacity: .92; }
.card.accent h2, .card.accent h3, .card.accent strong { color: var(--on-accent); }
.card.accent .card-link { color: var(--on-accent); }
.card h3 { font-size: 1.25rem; }
.card p { color: var(--ink-2); font-size: .97rem; }
.card .num { font-family: var(--font-mono); font-size: .8rem; font-weight: 600; color: var(--accent); letter-spacing: .04em; }
.card .card-link { margin-top: auto; display: inline-flex; align-items: center; gap: .5rem; color: var(--accent); font-weight: 600; font-size: .92rem; padding-top: .25rem; }
.card .card-link .arrow { width: 1rem; height: 1rem; transition: transform .25s var(--ease); }
a.card:hover .card-link .arrow { transform: translateX(4px); }
.card ul.dash li { position: relative; padding-left: 1.1rem; margin-bottom: .4rem; color: var(--ink-2); font-size: .95rem; }
.card ul.dash li:last-child { margin-bottom: 0; }
.card ul.dash li::before { content: ""; position: absolute; left: 0; top: .72em; width: .5rem; height: 2px; border-radius: 2px; background: var(--accent); }
.card .field { background: var(--bg); border-radius: var(--radius-sm); padding: 1rem 1.1rem; display: grid; gap: .6rem; align-content: start; }
.card.tone .field { background: var(--card); }
.two-col { display: grid; gap: var(--gap); }

/* ---------- Hero (home) ---------- */
.hero { padding: clamp(1.25rem, 3vw, 2.25rem) 0 0; }
.hero .card.main { padding: clamp(1.75rem, 4vw, 3rem); gap: 1.25rem; align-content: center; }
.status { display: flex; flex-wrap: wrap; gap: .35rem .75rem; font-family: var(--font-mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.status span + span::before { content: "\00B7"; margin-right: .75rem; color: var(--accent); }
.hero h1 { font-size: var(--h1-size); line-height: 1.08; letter-spacing: -.025em; }
.hero h1 .line { display: block; }
.hero h1 .line > span { display: inline-block; }
.hero h1 .hl { color: var(--accent); }
.hero .lead { margin: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .25rem; }
.starts .steps { display: grid; gap: .85rem; }
.starts .steps li { display: grid; grid-template-columns: 1.9rem 1fr; gap: .75rem; align-items: start; }
.starts .steps .n { width: 1.9rem; height: 1.9rem; border-radius: 50%; display: grid; place-items: center; background: var(--on-accent); color: var(--accent); font-family: var(--font-mono); font-weight: 600; font-size: .85rem; }
.starts .steps strong { display: block; font-family: var(--font-display); font-weight: var(--display-weight); font-size: 1.08rem; line-height: 1.2; margin-bottom: .15rem; }
.starts .steps div span { display: block; font-size: .92rem; color: var(--on-accent); opacity: .9; line-height: 1.45; }
.starts .fine { font-size: .85rem; opacity: .85; padding-top: .5rem; border-top: 1px solid rgba(255, 255, 255, .25); }
.tile h3 { font-size: 1.3rem; }
/* The three home tiles share a row. Flex lets the crimson link sit on the bottom edge of each card, so the three links line up. */
.hero .tile { display: flex; flex-direction: column; align-items: flex-start; }
.hero .tile > p { align-self: stretch; }
.hero .tile .card-link { margin-top: auto; }
.avatars { display: flex; }
.avatars img { width: 2.6rem; height: 2.6rem; border-radius: 50%; object-fit: cover; border: 2px solid var(--card); margin-left: -.6rem; }
.avatars img:first-child { margin-left: 0; }
.closing { gap: 1.25rem; padding: clamp(1.75rem, 4vw, 2.75rem); }
.closing h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin: .5rem 0 .75rem; }
.closing p { max-width: 40rem; }
.closing-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; }
.text-link.on-accent { color: var(--on-accent); text-decoration-color: rgba(255, 255, 255, .45); }
.text-link.on-accent:hover { color: #fff; text-decoration-color: #fff; }

/* ---------- Sections and page heads ---------- */
.section { padding: clamp(1.75rem, 3.5vw, 3rem) 0 0; }
.page-head { padding-top: clamp(1.25rem, 3vw, 2.25rem); }
.title-card { padding: clamp(1.75rem, 4vw, 3rem); gap: 1rem; }
.title-card h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); letter-spacing: -.025em; max-width: 18ch; }
.section-head { margin-bottom: var(--gap); display: grid; gap: .35rem; }
.section-head h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); max-width: 22ch; }
.stage-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }
.stage-nav a { display: inline-flex; align-items: center; gap: .55rem; padding: .5rem .95rem .5rem .5rem; border-radius: var(--btn-radius); border: 1px solid var(--rule); background: var(--bg); font-size: .9rem; font-weight: 500; color: var(--ink-2); transition: background .25s var(--ease), color .25s var(--ease); }
.stage-nav a:hover { background: var(--accent-soft); color: var(--accent); }
.stage-nav .n { width: 1.6rem; height: 1.6rem; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-family: var(--font-mono); font-size: .78rem; font-weight: 600; }
.stage { scroll-margin-top: calc(var(--header-h) + .5rem); }
.service h3 { font-size: 1.3rem; }
.service.wide { padding: clamp(1.5rem, 3vw, 2.25rem); }
.service.wide .two-col { margin-top: .25rem; }
.facts { display: grid; gap: var(--gap); margin-top: var(--gap); }
.fact { gap: .35rem; padding: 1.1rem 1.25rem; box-shadow: none; }
.fact p { font-size: .95rem; color: var(--ink); }
.band { margin-top: var(--gap); background: var(--accent-soft); border-color: rgba(138, 31, 31, .22); padding: 1.25rem 1.5rem; box-shadow: none; }
.band p { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 1.1rem; line-height: 1.35; color: var(--ink); }
.band p strong { font-weight: var(--display-weight); color: var(--accent); }
.terms h3 { font-size: 1.3rem; }
.cta-short { padding: clamp(1.5rem, 3.5vw, 2.5rem); gap: 1.25rem; }
.cta-short h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); margin-top: .4rem; }
.cta-short p { margin-top: .6rem; max-width: 36rem; }

/* ---------- Training ---------- */
.format .meta { display: flex; flex-wrap: wrap; gap: .35rem; }
.format h3 { font-size: 1.2rem; }

/* ---------- About ---------- */
.story { padding: clamp(1.5rem, 3.5vw, 2.5rem); }
.story p { font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(1.15rem, 2vw, 1.5rem); line-height: 1.4; color: var(--ink); max-width: 52rem; }
.partner { display: flex; flex-direction: column; align-items: stretch; gap: .6rem; height: 100%; }
.partner img { width: 100%; max-width: 220px; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-sm); align-self: flex-start; }
.partner h3 { font-size: 1.3rem; margin-top: .5rem; }
.partner .role { font-size: .85rem; font-weight: 600; color: var(--accent); }
.partner .bio { font-size: .93rem; line-height: 1.55; }
.partner .creds { font-size: .8rem; color: var(--muted); border-top: 1px solid var(--rule); padding-top: .75rem; margin-top: auto; }

/* ---------- Contact ---------- */
.contact-intro { gap: 1rem; padding: clamp(1.5rem, 3.5vw, 2.5rem); }
.contact-intro h1 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); letter-spacing: -.02em; }
.contact-intro .lead { font-size: 1.02rem; }
.contact-meta { display: grid; gap: .6rem; margin-top: .25rem; }
.contact-meta div { display: flex; align-items: center; gap: .6rem; color: var(--ink-2); font-size: .95rem; }
.contact-meta svg { width: 1.1rem; height: 1.1rem; color: var(--accent); flex: none; }
.contact-form { padding: clamp(1.5rem, 3.5vw, 2.5rem); }
form { display: grid; gap: .9rem; }
.form-row { display: grid; gap: .9rem; }
.control { display: grid; gap: .3rem; }
.control label { font-size: .74rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.control input, .control select, .control textarea { width: 100%; font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--rule); border-radius: var(--radius-sm); padding: .8rem .95rem; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.control input:focus, .control select:focus, .control textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.control textarea { resize: vertical; min-height: 6.5rem; }
.control select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a1f1f' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9rem center; background-size: 1.1rem; padding-right: 2.5rem; }
.control .error { display: none; font-size: .82rem; color: var(--accent); font-weight: 500; }
form.was-validated :invalid { border-color: var(--accent); }
form.was-validated :invalid ~ .error { display: block; }
.form-note { margin-top: 1rem; padding: 1rem 1.25rem; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--accent); font-weight: 500; }
.form-note[hidden] { display: none; }

/* ---------- Footer ---------- */
.site-footer { padding: clamp(1.75rem, 3.5vw, 3rem) 0 1.5rem; }
.footer-card { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.5rem); box-shadow: var(--shadow); }
.footer-grid { display: grid; gap: 1.5rem; }
.footer-brand p { margin: .9rem 0 0; color: var(--ink-2); font-size: .95rem; max-width: 22rem; }
.footer-col h4 { font: 600 .74rem/1.4 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: .75rem; }
.footer-col ul { display: grid; gap: .45rem; }
.footer-col a { color: var(--ink-2); font-weight: 500; font-size: .95rem; }
.footer-col a:hover { color: var(--accent); }
.legal { margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); font-size: .82rem; color: var(--muted); }

/* ---------- Intro overlay (home only, variants takeover and rings) ---------- */
.intro[hidden] { display: none; }
html.intro-on { overflow: hidden; }
html.intro-on .intro { display: grid; position: fixed; inset: 0; z-index: 90; background: var(--bg); place-items: center; padding: var(--pad); }
.intro-stage { display: grid; justify-items: start; gap: clamp(1rem, 3vw, 2rem); max-width: 100%; }
.intro-mark { display: none; width: clamp(5rem, 14vw, 9rem); height: clamp(5rem, 14vw, 9rem); color: var(--accent); }
html[data-intro="rings"] .intro-mark { display: block; }
.intro-mark .mark { width: 100%; height: 100%; }
.intro-type { font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(2.4rem, 11vw, 3.6rem); line-height: 1.06; letter-spacing: -.025em; color: var(--ink); transform-origin: top left; will-change: transform, opacity; }
.intro-line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.intro-line > span { display: inline-block; transform: translateY(115%); opacity: 0; }
.intro-line.hl { color: var(--accent); }
html.intro-on .site-header, html.intro-on #main, html.intro-on .site-footer, html.intro-on .tabbar { opacity: 0; }
html.intro-on #heroTitle { opacity: 0; }
/* Failsafe if site.js never runs: show the page after 4.5 s and dissolve the overlay. */
@keyframes forced-visible { to { opacity: 1; } }
@keyframes forced-hidden { to { opacity: 0; visibility: hidden; } }
html.intro-on:not(.intro-js) .site-header, html.intro-on:not(.intro-js) #main, html.intro-on:not(.intro-js) .site-footer, html.intro-on:not(.intro-js) .tabbar, html.intro-on:not(.intro-js) #heroTitle { animation: forced-visible .6s 4.5s var(--ease) forwards; }
html.intro-on:not(.intro-js) .intro { animation: forced-hidden .6s 4.5s var(--ease) forwards; }
@media (min-width: 48em) {
  .intro-type { font-size: min(8rem, 7.4vw); }
  .intro-line { white-space: nowrap; }
}

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .brand { view-transition-name: brand; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .3s; }
  @keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.985); } }
  @keyframes rise { to { transform: translateY(0); } }
  @keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
  /* A home load without the overlay: lines rise in place, cards pop in with a stagger. */
  .js:not(.intro-on):not(.intro-done) .hero .card { animation: pop .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms); }
  .js:not(.intro-on):not(.intro-done) .hero h1 .line { overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
  .js:not(.intro-on):not(.intro-done) .hero h1 .line > span { transform: translateY(110%); animation: rise .9s var(--ease) forwards; }
  .js:not(.intro-on):not(.intro-done) .hero h1 .line:nth-child(2) > span { animation-delay: 140ms; }
  /* After the overlay hands off, the sibling cards pop in while the page fades up. */
  .js.intro-done .hero .card:not(.main) { animation: pop .7s var(--ease) both; animation-delay: calc(var(--i, 1) * 90ms); }
  .js .title-card, .js .contact .card { animation: pop .6s var(--ease) both; }
  .js .contact .card:nth-child(2) { animation-delay: 90ms; }
  @supports (animation-timeline: view()) {
    .js .reveal { opacity: 1; transform: none; transition: none; animation: fade-up linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Fixed-count variants ---------- */
.bento.cols-2, .bento.cols-3 { grid-template-columns: minmax(0, 1fr); }

/* ---------- Breakpoints ---------- */
@media (min-width: 48em) {
  .bento { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .bento.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bento > .span-2 { grid-column: span 2; }
  .bento > .span-3 { grid-column: span 2; }
  .bento > .span-4, .bento > .span-6 { grid-column: span 4; }
  .hero .card.main { grid-column: span 4; }
  .hero .starts, .hero .tile { grid-column: span 2; }
  .hero .closing { grid-column: span 4; }
  .formats { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .formats > .span-2 { grid-column: span 2; }
  .formats > .span-3 { grid-column: span 3; }
  .two-col { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .band { grid-template-columns: 1fr auto; align-items: center; }
  .form-row { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; }
  .closing { grid-template-columns: 1fr auto; align-items: end; }
  .cta-short { grid-template-columns: 1fr auto; align-items: center; }
  .contact .span-2 { grid-column: span 4; }
  .contact .span-4 { grid-column: span 4; }
}
@media (min-width: 64em) {
  body { padding-bottom: 0; }
  .primary-nav { display: block; }
  .tabbar { display: none; }
  .bento { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--gap); }
  .bento.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bento > .span-2 { grid-column: span 2; }
  .bento > .span-3 { grid-column: span 3; }
  .bento > .span-4 { grid-column: span 4; }
  .bento > .span-6 { grid-column: span 6; }
  .hero .card.main { grid-column: span 4; grid-row: span 2; }
  .hero .starts { grid-column: span 2; grid-row: span 2; }
  .hero .tile { grid-column: span 2; }
  .hero .closing { grid-column: span 6; }
  .hero h1 .line { white-space: nowrap; }
  .contact .span-2 { grid-column: span 2; }
  .contact .span-4 { grid-column: span 4; }
}
