/* Homepage stage. Type follows the shared font tokens; all artwork is local. */
:root {
  color-scheme:light;
  --home-bg:#FFFFFF; --home-surface:#FFFFFF; --home-text:#131D45;
  --home-muted:#555966; --home-line:#E3E3E3; --home-accent:#C8102E;
  --home-blue:#1E44B4; --home-sun:#E89A1E; --home-on-accent:#FFFFFF;
  --home-font-body:var(--f-body); --home-font-heading:var(--f-display);
  --home-serif:var(--f-display); --home-mono:var(--f-mono);
  --home-width:1440px; --home-gutter:clamp(22px,4.4vw,72px);
  --home-ease:cubic-bezier(.2,.8,.2,1);
}
:root[data-theme=dark] { color-scheme:dark; --home-bg:#080C1A; --home-surface:#10172E; --home-text:#EAEEFB; --home-muted:#AEB8D8; --home-line:#303440; --home-accent:#FF5068; --home-blue:#86A6FF; --home-sun:#FFB547; --home-on-accent:#080C1A; }
@media(prefers-color-scheme:dark) { :root:not([data-theme=light]) { color-scheme:dark; --home-bg:#080C1A; --home-surface:#10172E; --home-text:#EAEEFB; --home-muted:#AEB8D8; --home-line:#303440; --home-accent:#FF5068; --home-blue:#86A6FF; --home-sun:#FFB547; --home-on-accent:#080C1A; } }
* { box-sizing:border-box; }
[hidden] { display:none!important; }
html { scroll-behavior:auto; scroll-padding-top:24px; }
body { margin:0; background:var(--home-bg); color:var(--home-text); font:400 16px/1.6 var(--home-font-body); -webkit-font-smoothing:antialiased; }
a { color:inherit; text-underline-offset:5px; }
button { color:inherit; cursor:pointer; font:inherit; }
button,a,summary { -webkit-tap-highlight-color:transparent; touch-action:manipulation; }
:focus-visible { outline:2px solid var(--home-blue); outline-offset:5px; }
h1,h2,h3,p { margin:0; }
h1,h2 { font-family:var(--home-font-heading); font-weight:500; letter-spacing:-.055em; line-height:1.03; }
h2 { font-size:clamp(32px,3.2vw,48px); }
h3 { font-size:17px; line-height:1.3; font-weight:600; }
.home-sr { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.home-skip { position:fixed; top:-100px; left:16px; z-index:200; padding:12px 20px; background:var(--home-bg); }
.home-skip:focus { top:12px; }
.home-shell { width:100%; max-width:var(--home-width); margin-inline:auto; padding-inline:var(--home-gutter); }
.home-masthead { height:76px; display:flex; align-items:center; gap:20px; position:relative; z-index:5; }
.home-wordmark { display:inline-flex; align-items:center; margin-right:auto; min-height:44px; width:170px; text-decoration:none; }
.home-wordmark svg { display:block; width:100%; height:auto; }
.home-nav,.home-languages { display:flex; align-items:center; gap:24px; }
.home-nav a,.home-languages a { min-height:44px; display:inline-flex; align-items:center; justify-content:center; font-size:12px; text-decoration:none; }
.home-nav a:hover { text-decoration:underline; }
.home-languages { gap:0; border-left:1px solid var(--home-line); padding-left:12px; }
.home-languages a { min-width:36px; color:var(--home-muted); }
.home-languages [aria-current=page] { color:var(--home-accent); text-decoration:underline; }
.home-theme { width:40px; height:40px; background:none; border:1px solid var(--home-line); border-radius:50%; font-size:21px; display:grid; place-items:center; }
.home-return { min-height:44px; text-align:center; font-size:12px; }
.home-return:not([hidden]) + .home-hero { overflow:clip; min-height:calc(100svh - 120px); }
.home-return a { display:inline-flex; min-height:36px; align-items:center; background:var(--home-bg); }
.home-hero { overflow:clip; min-height:calc(100svh - 76px); display:flex; flex-direction:column; text-align:center; }
.home-stage { position:relative; flex:1; min-height:440px; isolation:isolate; }
.home-eyebrow { position:absolute; top:5px; left:50%; transform:translateX(-50%); z-index:3; width:max-content; max-width:100%; padding:8px 12px 7px; background:var(--home-bg); font:10px/1.5 var(--home-mono); text-transform:uppercase; letter-spacing:.14em; }
.home-ring { contain:paint; overflow:hidden; border-radius:50%; position:absolute; height:470px; width:470px; left:50%; top:43%; transform:translate(-50%,-50%); pointer-events:none; color:var(--home-accent); opacity:.72; }
.home-ring svg { width:100%; height:100%; animation:home-orbit 100s linear infinite; }
.home-ring text { font:400 23px var(--home-serif); letter-spacing:2px; fill:currentColor; }
.home-hero h1 { position:absolute; z-index:1; left:50%; top:45%; transform:translate(-50%,-50%); font-size:clamp(78px,8.6vw,136px); width:650px; max-width:75%; pointer-events:none; }
.home-hero h1>span { display:block; width:max-content; max-width:100%; margin:auto; background:var(--home-bg); padding:0 .14em .04em; }
.home-headline-word { display:inline-block; }
.home-hero h1>span:last-child { color:var(--home-accent); font-style:italic; }
.home-side-label { position:absolute; top:24%; color:var(--home-muted); font:italic 400 15px/1.4 var(--home-serif); }
.home-side-left { left:0; }
.home-side-right { right:0; }
.home-gallery { position:absolute; inset:0; pointer-events:none; z-index:2; }
.home-sculpture { position:absolute; width:var(--w); left:var(--x); top:var(--y); pointer-events:auto; }
.home-sculpture-vermut { --w:210px; --x:12%; --y:22%; --turn:-13deg; }
.home-sculpture-castizo { --w:176px; --x:75%; --y:48%; --turn:11deg; }
.home-sculpture-dance { --w:138px; --x:72%; --y:3%; --turn:12deg; }
.home-art-button { border:0; padding:0; background:none; width:100%; display:block; transform:rotate(var(--turn)); }
.home-frame { display:block; position:relative; width:100%; aspect-ratio:1; border:1px solid var(--home-accent); border-radius:50%; background:var(--home-bg); }
.home-sculpture-castizo .home-frame { border-color:var(--home-sun); border-radius:48% 48% 3px 3px; }
.home-sculpture-dance .home-frame { border-color:var(--home-blue); }
.home-object { display:block; width:100%; height:100%; overflow:hidden; border-radius:inherit; }
.home-object>svg { width:100%; height:100%; padding:22%; color:var(--home-text); }
.home-object canvas { border-radius:inherit; }
.home-art-caption { position:relative; background:var(--home-bg); display:block; margin-top:9px; font:italic 400 14px/1.4 var(--home-serif); }
.home-art-button[aria-pressed=true] .home-art-caption { color:var(--home-accent); }
.home-stage-note { position:absolute; left:50%; bottom:14px; transform:translateX(-50%); font:italic 400 14px/1.5 var(--home-serif); color:var(--home-muted); white-space:nowrap; }
.home-hero-copy { position:relative; z-index:3; width:100%; padding:6px 0 22px; background:var(--home-bg); }
.home-lede { font-size:14px; margin:0 auto 12px; max-width:52ch; }
.home-sentence-wrap { min-height:90px; }
.home-sentence { font:400 clamp(21px,1.9vw,28px)/1.8 var(--home-serif); perspective:700px; }
.home-sentence-part { display:inline-block; white-space:nowrap; }
.home-slot { border:0; border-bottom:1px solid currentColor; background:transparent; padding:0 3px; min-height:44px; font:italic 500 1em/1.4 var(--home-serif); display:inline-block; transform-origin:50% 50%; }
.home-slot-mood { color:var(--home-accent); }
.home-slot-barrio { color:var(--home-blue); }
.home-slot-company { color:var(--home-text); border-bottom-color:var(--home-sun); }
.home-sentence-bottom { font-size:10px; color:var(--home-muted); display:flex; align-items:center; justify-content:center; gap:16px; }
.home-sentence-bottom a { display:inline-flex; align-items:center; min-height:32px; color:var(--home-text); text-decoration:none; border-bottom:1px solid var(--home-line); }
.home-actions { display:flex; justify-content:center; align-items:center; gap:12px 26px; flex-wrap:wrap; margin:14px 0 10px; }
.home-action { display:inline-flex; align-items:center; justify-content:center; min-height:52px; padding:12px 23px; border:1px solid transparent; border-radius:40px; gap:12px; text-decoration:none; font-size:14px; font-weight:550; transition:background 180ms ease,box-shadow 180ms ease; }
.home-action[data-variant=primary] { background:var(--home-accent); color:var(--home-on-accent); }
.home-action[data-join]::before { content:'G'; font:650 16px/1 var(--home-font-body); display:grid; place-items:center; width:24px; height:24px; border-radius:50%; background:#FFFFFF; color:#1E44B4; transition:transform 200ms var(--home-ease); }
.home-action[data-variant=primary]:hover { box-shadow:0 0 0 4px color-mix(in srgb,var(--home-accent) 13%,transparent); }
.home-action[data-join]:hover::before { transform:rotate(-14deg); }
.home-action[data-variant=secondary] { padding-inline:0; border-radius:0; }
.home-action[data-variant=secondary]::after { content:'↗'; display:inline-block; transition:transform 200ms var(--home-ease); }
.home-action[data-variant=secondary]:hover::after { transform:translate(3px,-3px); }
.home-action[aria-disabled=true] { opacity:.7; cursor:progress; }
.home-action[aria-busy=true]::before { content:'…'; }
.home-note { font-size:11px; color:var(--home-muted); line-height:1.65; }
[data-auth-status] { font-size:13px; color:var(--home-accent); margin:8px 0; }
.home-stage-foot { display:flex; justify-content:space-between; align-items:center; min-height:46px; border-top:1px solid var(--home-line); gap:20px; }
.home-hero-facts { display:flex; flex-wrap:wrap; gap:8px 20px; font:10px/1.5 var(--home-mono); letter-spacing:.045em; text-transform:uppercase; }
.home-hero-facts span+span::before { content:'·'; margin-right:20px; }
.home-motion-toggle { background:none; border:0; padding:10px 0 10px 10px; font-size:10px; min-height:44px; white-space:nowrap; }
.home-pattern { display:flex; justify-content:space-between; align-items:center; height:42px; border-block:1px solid var(--home-line); color:var(--home-accent); }
.home-pattern svg { width:24px; height:24px; flex:none; }
.home-pattern svg g { stroke:currentColor; }
.home-section { padding-block:42px; border-bottom:1px solid var(--home-line); display:grid; grid-template-columns:1fr 2fr; gap:22px 64px; }
.home-number { font:10px/1.5 var(--home-mono); letter-spacing:.08em; text-transform:uppercase; color:var(--home-muted); margin-bottom:18px; }
.home-points { list-style:none; display:grid; grid-template-columns:repeat(3,1fr); gap:28px; padding:0; margin:0; }
.home-point-number { color:var(--home-accent); font:italic 400 24px/1 var(--home-serif); display:block; margin-bottom:15px; }
.home-points p { color:var(--home-muted); font-size:13px; line-height:1.7; margin-top:10px; }
.home-feature-links { grid-column:2; display:flex; flex-wrap:wrap; gap:8px 24px; font-size:11px; }
.home-feature-links a { display:inline-flex; align-items:center; min-height:32px; }
.home-community-copy { max-width:690px; }
.home-community-copy>p:first-child { font-size:17px; line-height:1.65; }
.home-community-copy .home-note { font-size:12px; margin-top:13px; max-width:70ch; }
.home-community-actions { display:flex; align-items:center; flex-wrap:wrap; gap:12px 26px; }
.home-community-actions .home-action { min-height:46px; font-size:12px; padding:8px 18px; }
.home-community-actions .home-actions { margin:16px 0 0; }
.home-text-link { display:inline-flex; align-items:center; min-height:44px; margin-top:14px; font-size:12px; }
.home-faq-list details { border-top:1px solid var(--home-line); }
.home-faq-list summary { padding:15px 30px 15px 0; min-height:52px; position:relative; list-style:none; font-size:14px; font-weight:500; cursor:pointer; }
.home-faq-list summary::-webkit-details-marker { display:none; }
.home-faq-list summary::after { content:'+'; position:absolute; right:3px; font-size:20px; top:10px; }
.home-faq-list details[open] summary::after { content:'−'; }
.home-faq-list details p { font-size:13px; color:var(--home-muted); line-height:1.65; padding:0 22px 18px 0; }
.home-footer { min-height:90px; display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px 28px; padding-block:20px; font-size:11px; }
.home-footer>p { font:italic 400 17px/1.4 var(--home-serif); }
.home-footer>span { font-size:10px; color:var(--home-muted); }
.home-footer nav { display:flex; gap:24px; }
.home-footer nav a { display:inline-flex; align-items:center; min-height:44px; }
.home-symbol-eyes { transform-box:fill-box; transform-origin:center; }
.home-reveal-pin { transform-box:fill-box; transform-origin:center; }
.home-enhanced .home-object { animation:home-bob 7s ease-in-out infinite; animation-delay:calc(var(--object-index) * -2s); }
.home-enhanced .home-stage[data-stage-visible=false] .home-object,.home-enhanced .home-stage[data-stage-visible=false] .home-ring svg,html[data-home-paused=true] .home-object,html[data-home-paused=true] .home-ring svg { animation-play-state:paused; }
.home-light-scatter { pointer-events:none; position:absolute; inset:-25%; opacity:0; background:radial-gradient(ellipse at 15% 30%,var(--home-sun) 0 1%,transparent 2%),radial-gradient(ellipse at 85% 25%,var(--home-blue) 0 1%,transparent 2%),radial-gradient(ellipse at 85% 80%,var(--home-sun) 0 1%,transparent 2%),radial-gradient(ellipse at 18% 80%,var(--home-blue) 0 1%,transparent 2%); }
@keyframes home-orbit { to { transform:rotate(360deg); } }
@keyframes home-bob { 0%,100% { transform:translateY(0) rotate(-1deg); } 50% { transform:translateY(-9px) rotate(2deg); } }
@media(min-width:1600px) { .home-hero { overflow:clip; min-height:min(100svh - 76px,950px); } }
@media(max-width:900px) {
  .home-section { gap:24px 30px; grid-template-columns:1fr 1.7fr; }
  .home-points { gap:16px; }
  .home-stage { min-height:410px; }
  .home-sculpture-vermut { --w:155px; --x:0%; --y:27%; }
  .home-sculpture-castizo { --w:145px; --x:80%; --y:49%; }
  .home-sculpture-dance { --w:112px; --x:78%; --y:4%; }
  .home-side-label { display:none; }
}
@media(max-width:600px) {
  .home-masthead { height:68px; gap:9px; }
  .home-wordmark { width:132px; }
  .home-desktop-nav { display:none!important; }
  .home-nav { gap:0; }
  .home-nav a { font-size:11px; }
  .home-languages { border:0; padding:0; }
  .home-languages a { min-width:28px; font-size:11px; }
  .home-theme { width:34px; height:34px; flex:none; font-size:19px; }
  .home-hero { overflow:clip; min-height:calc(100svh - 68px); }
  .home-stage { min-height:372px; }
  .home-eyebrow { top:16px; font-size:8px; letter-spacing:.08em; }
  .home-ring { width:306px; height:306px; top:49%; }
  .home-ring text { font-size:24px; }
  .home-hero h1 { font-size:67px; max-width:100%; top:42%; width:340px; }
  .home-hero h1>span { padding:0 .04em .05em; }
  .home-sculpture-vermut { --w:111px; --x:-1%; --y:52%; --turn:-12deg; }
  .home-sculpture-castizo { --w:106px; --x:72%; --y:64%; --turn:9deg; }
  .home-sculpture-dance { --w:78px; --x:77%; --y:10%; --turn:10deg; }
  .home-art-caption { font-size:11px; margin-top:4px; }
  .home-stage-note { bottom:7px; font-size:11px; }
  .home-hero-copy { padding:8px 0 14px; }
  .home-lede { font-size:12px; line-height:1.6; max-width:38ch; margin-bottom:8px; }
  .home-sentence { font-size:22px; line-height:1.75; }
  .home-sentence-wrap { min-height:113px; }
  .home-sentence-bottom { font-size:9px; gap:16px; }
  .home-actions { gap:0; margin:12px 0 5px; flex-direction:column; }
  .home-action { min-height:48px; font-size:13px; }
  .home-hero .home-action[data-variant=primary] { width:100%; max-width:310px; }
  .home-hero .home-action[data-variant=secondary] { min-height:43px; }
  .home-hero .home-note { font-size:9px; }
  .home-stage-foot { position:relative; padding:7px 0 5px; flex-direction:column; gap:0; }
  .home-hero-facts { justify-content:center; gap:5px 9px; font-size:8px; letter-spacing:0; }
  .home-hero-facts span+span::before { margin-right:9px; }
  .home-motion-toggle { min-height:28px; font-size:9px; padding:4px 10px; }
  .home-pattern { height:36px; }
  .home-pattern svg { width:20px; height:20px; }
  .home-pattern svg:nth-child(n+9) { display:none; }
  .home-section { padding-block:32px; display:block; }
  h2 { font-size:38px; letter-spacing:-.045em; }
  .home-number { font-size:9px; margin-bottom:14px; }
  .home-section-title { margin-bottom:26px; }
  .home-points { display:block; }
  .home-points li { position:relative; padding:0 0 22px 37px; }
  .home-points li+li { padding-top:18px; border-top:1px solid var(--home-line); }
  .home-point-number { position:absolute; left:0; font-size:20px; }
  .home-points h3 { font-size:16px; }
  .home-points p { font-size:13px; margin-top:7px; }
  .home-feature-links { gap:2px 22px; }
  .home-community-copy>p:first-child { font-size:16px; }
  .home-community-copy .home-note { font-size:12px; }
  .home-community-actions { gap:0 18px; }
  .home-community-actions .home-actions { align-items:start; }
  .home-community-actions .home-action { padding:8px 16px; }
  .home-text-link { font-size:11px; margin-top:14px; }
  .home-faq-list summary { font-size:13px; padding-block:16px; }
  .home-footer { display:block; padding-block:25px; }
  .home-footer nav { gap:25px; margin-block:8px; }
}
@media(max-height:760px) and (min-width:901px) { .home-stage { min-height:350px; } .home-ring { width:370px; height:370px; } .home-hero h1 { font-size:100px; } .home-sculpture-vermut { --w:166px; } .home-sculpture-castizo { --w:140px; } }
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { animation:none!important; transition:none!important; } }
/* Old homepage section links land on their compact replacement. */
.home-section { position:relative; }
.home-anchor { position:absolute; top:0; width:1px; height:1px; pointer-events:none; }

/* Typography option C (owner pick, 8 Oct 2026): Alegreya + Asap. Faces live in src/fonts.css. */
/* Moodrid typography proposal C — browser-only override. */
:root {
  --f-display:"Alegreya", Georgia, serif;
  --f-body:"Asap", system-ui, sans-serif;
  --f-mono:"Asap", system-ui, sans-serif;
  --home-font-heading:"Alegreya", Georgia, serif;
  --home-serif:"Alegreya", Georgia, serif;
  --home-font-body:"Asap", system-ui, sans-serif;
  --home-mono:"Asap", system-ui, sans-serif;
  --type-accent:"Alegreya";
  --type-accent-style:italic;
  --type-accent-weight:500;
  --type-weight:600;
  --type-tracking:-.025em;
  --type-case:none;
  --type-desktop:92px;
  --type-phone:50px;
}

html { font-synthesis: none; }
body { font-family:var(--f-body); }
.home-wordmark { font-family:var(--f-display); font-weight:var(--type-weight); font-style:normal; letter-spacing:-.03em; }
h1,h2,.home-hero h1,.home-hero h1 em { font-family:var(--f-display); font-weight:var(--type-weight); font-style:normal; letter-spacing:var(--type-tracking); text-transform:var(--type-case); }
.home-hero h1 { font-size:clamp(var(--type-phone),6.12vw,var(--type-desktop)); line-height:1.04; }
.home-hero h1 em { font-size:1em; }
.home-lede { font-size:18px; line-height:1.55; }
.home-note,.home-nav a,.home-languages a { font-size:14px; }
.home-sentence,.home-slot,.home-art-caption i,.home-gallery-note,.home-mood-pitch,.home-wing-title>p,.home-clipping h3 { font-family:var(--type-accent); font-style:var(--type-accent-style); font-weight:var(--type-accent-weight); }
.home-evidence dt,.home-door-sign { font-weight:var(--type-weight); }
.brand-name,.brand-name em,.cuts-title h2,.room-heading h2,.card-name h3,.plaque-name,.modal-head h2,.insta-modal .modal-head h2,.crawl-card h3,.crawl-hero h3,.welcome-brand,.ticker .tk-name { font-family:var(--f-display); font-weight:var(--type-weight); font-style:normal; letter-spacing:var(--type-tracking); }
.room-heading h2 { line-height:1.12; }
.plaque-name { font-size:36px; line-height:1.12; }
.card-name h3 { font-size:22px; line-height:1.2; }
.detail .tagline { font:400 16px/1.55 var(--f-body); }
.card .tagline,.gs p,.detail .block p,.tipcard,.gallery-room>p { font-size:14px; line-height:1.55; }
.gallery-index #chips .chip-copy,.chip,.gallery-nav button,.room-back,.select select { font-size:14px; }
.card .meta,.plaque-kicker,.plaque-since,.cartela-folio,.detail .block .lbl,.fact span,.detail-nav .pos { font-size:12px; line-height:1.45; letter-spacing:.02em; }
.fact b { font-size:14px; line-height:1.4; }
.now-time,.price,.votes,.detail-nav .pos,.fact b,.home-timeline time,.home-evidence dt { font-family:var(--f-body); font-variant-numeric:lining-nums tabular-nums; font-feature-settings:"tnum" 1,"lnum" 1; }
.barrio-label,.cut-blurb,.ask-intro,.say q,.vote-head strong,.stop-body b,.pick-name,.guide-item h3,.prose h3 { font-family:var(--type-accent); font-weight:var(--type-accent-weight); font-style:var(--type-accent-style); }
.cartela-art-no { font-family:var(--f-display); font-weight:var(--type-weight); font-style:normal; }
@media(max-width:600px) { .home-hero h1 { font-size:var(--type-phone); } .plaque-name { font-size:32px; } }

.gallery-index .cuts-title h2 { font-family:var(--f-display); font-style:normal; font-weight:var(--type-weight); font-size:48px; line-height:1.08; letter-spacing:var(--type-tracking); }
@media(max-width:600px) { .gallery-index .cuts-title h2 { font-size:40px; } }

/* Same compact modal on the map and homepage; native dialog supplies focus containment. */
.google-signin.modal { position:fixed; inset:0; margin:auto; translate:none; transform:none; width:min(440px, calc(100% - 24px)); height:fit-content; max-height:calc(100dvh - 24px); box-sizing:border-box; padding:0; border:1px solid var(--line, var(--home-line, #ddd)); border-radius:14px; background:var(--panel, var(--home-surface, #fff)); color:var(--ink, var(--home-text, #131d45)); box-shadow:0 20px 60px #0003; font:16px/1.5 var(--f-body, system-ui); overflow:auto; animation:none; }
.google-signin::backdrop { background:rgba(0, 0, 0, .38); backdrop-filter:blur(3px); }
.google-signin .modal-head { display:flex; align-items:flex-start; gap:12px; padding:20px 20px 12px; }
.google-signin .modal-head h2 { margin:0; font:600 26px/1.15 var(--f-display, Georgia); }
.google-signin .icon-btn { flex-shrink:0; margin-left:auto; width:44px; height:44px; border:0; background:transparent; color:inherit; font-size:28px; cursor:pointer; }
.google-signin .modal-body { display:grid; gap:14px; padding:14px 20px 20px; }
.google-signin p { margin:0; font-size:14px; }
.google-signin .form-note { color:var(--ink-2, var(--home-muted, #555)); }
.google-classic { justify-self:start; padding:8px 0; border:0; background:transparent; color:inherit; font:inherit; font-size:14px; text-decoration:underline; cursor:pointer; }
.google-signin [hidden] { display:none!important; }
.google-signin :focus-visible { outline:2px solid currentColor; outline-offset:3px; }
