@font-face{font-family:'Switzer';src:url('assets/fonts/Switzer-Light.woff2') format('woff2');font-weight:300;font-display:swap}
@font-face{font-family:'Switzer';src:url('assets/fonts/Switzer-Regular.woff2') format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:'Switzer';src:url('assets/fonts/Switzer-Medium.woff2') format('woff2');font-weight:500;font-display:swap}
@font-face{font-family:'Switzer';src:url('assets/fonts/Switzer-Semibold.woff2') format('woff2');font-weight:600;font-display:swap}
@font-face{font-family:'F37 Lineca';src:url('assets/fonts/F37Lineca-Regular.otf') format('opentype');font-weight:400;font-display:swap}
@font-face{font-family:'F37 Lineca';src:url('assets/fonts/F37Lineca-Medium.otf') format('opentype');font-weight:500;font-display:swap}
@font-face{font-family:'F37 Lineca';src:url('assets/fonts/F37Lineca-Bold.otf') format('opentype');font-weight:700;font-display:swap}

/* One agent v4 — one job, followed end to end; copy and picture tell the same beat. v4's palette:
   white paper, ink type, indigo only for what has been decided. */
:root{
  --paper:#FFFFFF;
  --paper-up:#F6F7F9;      /* raised: open accordion, hover rows */
  --ink:#13151B;           /* headlines */
  --body:#4B505C;          /* body — 8:1 on white */
  --muted:#6B707C;         /* captions — 4.9:1 on white */
  --line:#ECECEC;
  --line-2:#DADADA;
  --indigo:#4500F9;        /* brand: the one filled colour */
  --accent:#4500F9;
  --display:'F37 Lineca','Switzer',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  --sans:'Switzer',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  --gutter:clamp(20px,4.5vw,80px);
  --copyw:30rem;
  --ease:cubic-bezier(.19,1,.22,1);
}

*,*::before,*::after{box-sizing:border-box}
html{background:var(--paper);-webkit-text-size-adjust:100%;scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
body{margin:0;background:var(--paper);color:var(--body);font:400 1.0625rem/1.6 var(--sans);-webkit-font-smoothing:antialiased;overflow-x:hidden}
h1,h2,h3,h4,p{margin:0}
a{color:inherit}
:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:4px}

.skip{position:absolute;left:12px;top:-60px;z-index:50;background:var(--ink);color:var(--paper);padding:10px 14px;border-radius:6px;text-decoration:none;font-weight:500}
.skip:focus{top:12px}

/* ---------- the field ---------- */
#world{position:fixed;inset:0;width:100%;height:100%;z-index:0;display:block}
.scrim{position:fixed;inset:0;z-index:1;pointer-events:none;
  background:linear-gradient(90deg,rgba(255,255,255,.94) 0,rgba(255,255,255,.86) 32%,rgba(255,255,255,0) 46%)}
main,.foot{position:relative;z-index:2}

/* ---------- masthead ---------- */
.mast{position:fixed;top:0;left:0;right:0;z-index:10;display:flex;align-items:center;justify-content:space-between;
  padding:22px var(--gutter);pointer-events:none}
.mast>*{pointer-events:auto}
.mast{transition:background .4s,border-color .4s;border-bottom:1px solid transparent}
.mast.is-solid{background:rgba(255,255,255,.86);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-bottom-color:var(--line);pointer-events:auto}
.brand{display:inline-flex;align-items:center;gap:10px;text-decoration:none;color:var(--ink);font:500 1.0625rem/1 var(--display);letter-spacing:-.01em}
.gl-mark{width:24px;height:auto;fill:currentColor}
.mast-nav{display:flex;gap:28px;align-items:center;font-size:.9375rem}
.mast-nav a{text-decoration:none;color:var(--body);transition:color .2s}
.mast-nav a:hover{color:var(--ink)}
.mast-nav .mast-cta{color:var(--ink);border:1px solid var(--line-2);padding:8px 16px;border-radius:999px}
.mast-nav .mast-cta:hover{border-color:var(--accent)}

/* ---------- progress rail ---------- */
.rail{position:fixed;right:var(--gutter);top:50%;transform:translateY(-50%);z-index:10;transition:opacity .5s}
.rail.is-off{opacity:0;pointer-events:none;visibility:hidden;transition:opacity .4s,visibility 0s linear .4s}
.rail ol{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:14px}
.rail a{display:flex;align-items:center;justify-content:flex-end;gap:12px;text-decoration:none;color:var(--muted);font-size:.8125rem;line-height:1}
.rail a::after{content:"";width:14px;height:1px;background:var(--line-2);transition:width .5s var(--ease),background .3s}
.rail a span{opacity:0;transform:translateX(6px);transition:opacity .3s,transform .4s var(--ease)}
.rail:hover a span,.rail a:focus-visible span,.rail a.is-on span{opacity:1;transform:none}
.rail a.is-on{color:var(--ink)}
.rail a.is-on::after{width:34px;background:var(--ink)}

/* ---------- the story ---------- */
.story{position:relative}
.stage{min-height:100vh;min-height:100svh;display:flex;flex-direction:column;justify-content:center;
  padding:120px var(--gutter) 96px;position:relative}
.copy{max-width:var(--copyw)}
.eyebrow{display:flex;align-items:baseline;gap:12px;color:var(--accent);font-size:.9375rem;font-weight:500;margin-bottom:22px}
.eyebrow .idx{font-family:var(--display);font-weight:400;color:var(--muted);font-variant-numeric:tabular-nums}
.title{font:500 clamp(2.4rem,4.6vw,4.25rem)/1.02 var(--display);letter-spacing:-.03em;color:var(--ink);margin-bottom:28px;text-wrap:balance}
.title--xl{font-size:clamp(3rem,6.8vw,6.5rem);letter-spacing:-.04em;line-height:.96}
.stage--open .copy,.stage--close .copy{max-width:40rem}
.sub{font-size:1.125rem;line-height:1.6;max-width:36ch;color:var(--body)}
.stage--open .sub{max-width:40ch}
.sub+.sub{margin-top:14px}
.sub--strong{color:var(--ink);font-weight:500}
.job{margin-top:22px;max-width:40ch;padding-left:14px;border-left:2px solid var(--ink);color:var(--ink);font-size:1rem;line-height:1.55}
.sys{margin-top:20px;font-size:.9375rem;line-height:1.55;color:var(--body);max-width:36ch}
.sys strong{color:var(--ink);font-weight:500}
.cue{position:absolute;left:var(--gutter);bottom:36px;font-size:.8125rem;color:var(--muted)}
.cue::before{content:"";display:inline-block;width:1px;height:28px;background:linear-gradient(var(--accent),transparent);vertical-align:middle;margin-right:12px;animation:cue 2.4s var(--ease) infinite}
@keyframes cue{0%{transform:scaleY(0);transform-origin:top}50%{transform:scaleY(1);transform-origin:top}51%{transform-origin:bottom}100%{transform:scaleY(0);transform-origin:bottom}}
@media (prefers-reduced-motion:reduce){.cue::before{animation:none}}

/* ---------- buttons ---------- */
.cta-row{display:flex;flex-wrap:wrap;gap:12px;margin-top:34px}
.btn{display:inline-flex;align-items:center;min-height:46px;padding:0 22px;border-radius:999px;text-decoration:none;
  font:500 .9375rem/1 var(--sans);cursor:pointer;transition:background .2s,border-color .2s,color .2s;border:1px solid transparent}
.btn-primary{background:var(--indigo);color:#fff}
.btn-primary:hover{background:#3B00DB}
.btn-ghost{border-color:var(--line-2);color:var(--ink);background:transparent}
.btn-ghost:hover{border-color:var(--accent)}

/* ---------- lower sections ---------- */
.sec{padding:clamp(96px,12vw,176px) var(--gutter) 0;max-width:1440px;margin:0 auto}
.sec-head{max-width:44rem}
.sec-head .eyebrow{margin-bottom:18px}
.sec-title{font:500 clamp(2rem,3.6vw,3.25rem)/1.04 var(--display);letter-spacing:-.025em;color:var(--ink);text-wrap:balance}
.sec-title--xl{font-size:clamp(2.5rem,5.4vw,5rem);letter-spacing:-.035em;line-height:1}
.sec-body{margin-top:22px;font-size:1.125rem;max-width:52ch}
.sec--split{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:clamp(32px,6vw,112px);align-items:start}
.sec--split .sec-head{position:sticky;top:120px}

/* arenas: three long rows, the name carries the row */
.arenas{list-style:none;margin:clamp(48px,6vw,80px) 0 0;padding:0;border-top:1px solid var(--line)}
.arenas li{border-bottom:1px solid var(--line)}
.arena{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr) 8.5rem;align-items:center;gap:clamp(16px,3vw,48px);
  padding:clamp(28px,3.4vw,44px) clamp(8px,1.5vw,20px);text-decoration:none;transition:background .3s}
a.arena:hover{background:rgba(69,0,249,.04)}
.arena-name{font:500 clamp(1.75rem,3.2vw,2.75rem)/1 var(--display);letter-spacing:-.025em;color:var(--ink)}
.arena-line{color:var(--body);max-width:36ch}
/* the action column: a quiet text link, the same left edge on every row */
.arena-go{justify-self:start;font-size:.9375rem;font-weight:500;color:var(--ink);
  text-decoration:underline;text-decoration-color:var(--line-2);text-decoration-thickness:1px;text-underline-offset:5px;transition:text-decoration-color .2s}
a.arena:hover .arena-go,a.arena:focus-visible .arena-go{text-decoration-color:var(--accent)}
.arena--soon .arena-name{color:var(--body)}
.arena--soon .arena-go{color:var(--muted);font-weight:400;text-decoration:none}

/* origins: a horizontal time axis */
.axis{list-style:none;margin:clamp(56px,7vw,96px) 0 0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));position:relative}
.axis::before{content:"";position:absolute;left:0;right:0;top:3.35rem;height:1px;background:var(--line-2)}
.axis li{position:relative;padding-right:24px}
.axis .ty{display:block;font:400 clamp(2rem,3.2vw,2.75rem)/1 var(--display);letter-spacing:-.02em;color:var(--accent);height:3.35rem;font-variant-numeric:tabular-nums}
.axis .ongoing{font:400 .875rem/1 var(--sans);letter-spacing:0;color:var(--muted);vertical-align:middle}
.axis li::after{content:"";position:absolute;left:0;top:calc(3.35rem - 4px);width:9px;height:9px;border-radius:50%;background:var(--paper);border:1px solid var(--accent)}
.axis li.is-now::after{background:var(--accent)}
.axis h3{margin-top:30px;font:500 1.375rem/1.2 var(--display);color:var(--ink);letter-spacing:-.01em}
.axis p{margin-top:8px;color:var(--body);max-width:24ch}
.origin-note{margin-top:56px;font:400 clamp(1.25rem,2vw,1.625rem)/1.35 var(--display);color:var(--ink);letter-spacing:-.01em;max-width:32ch}

/* research */
.pubs{list-style:none;margin:0;padding:0;border-top:1px solid var(--line)}
.pubs li{border-bottom:1px solid var(--line)}
.pub{display:block;padding:32px 0;text-decoration:none}
.pub-status{display:block;font-size:.875rem;color:var(--accent);margin-bottom:12px}
.pub--soon .pub-status{color:var(--muted)}
.pub h3{font:500 clamp(1.375rem,2.2vw,1.75rem)/1.15 var(--display);letter-spacing:-.015em;color:var(--ink)}
.pub p{margin-top:10px;max-width:48ch}
a.pub h3{text-decoration:underline;text-decoration-color:transparent;text-underline-offset:6px;text-decoration-thickness:1px;transition:text-decoration-color .3s}
a.pub:hover h3{text-decoration-color:var(--accent)}

/* team */
.founders{list-style:none;margin:clamp(48px,6vw,80px) 0 0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:32px;border-top:1px solid var(--line);padding-top:32px}
.founders h3{font:500 clamp(1.5rem,2.4vw,2.125rem)/1.08 var(--display);letter-spacing:-.02em;color:var(--ink)}
.founders p{margin-top:10px;color:var(--muted)}
.team-summary{margin-top:48px}
.team-more{margin-top:24px}
.team-more summary{list-style:none;width:max-content}
.team-more summary::-webkit-details-marker{display:none}
.team-more[open] summary{border-color:var(--accent)}
.team-grid{list-style:none;margin:32px 0 0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(16rem,1fr));gap:22px 32px}
.team-grid li{display:flex;flex-direction:column;gap:4px;padding-top:14px;border-top:1px solid var(--line)}
.tm-name{color:var(--ink);font-weight:500}
.tm-role{color:var(--muted);font-size:.9375rem}

/* definitions */
.defs{border-top:1px solid var(--line)}
.def{border-bottom:1px solid var(--line)}
.def summary{list-style:none;display:flex;justify-content:space-between;align-items:center;gap:24px;padding:24px 4px;cursor:pointer}
.def summary::-webkit-details-marker{display:none}
.def summary h3{font:500 clamp(1.125rem,1.6vw,1.375rem)/1.25 var(--display);letter-spacing:-.01em;color:var(--ink)}
.def-x{flex:none;position:relative;width:14px;height:14px}
.def-x::before,.def-x::after{content:"";position:absolute;left:0;right:0;top:50%;height:1.5px;margin-top:-.75px;background:var(--accent);transition:transform .35s var(--ease)}
.def-x::after{transform:rotate(90deg)}
.def[open] .def-x::after{transform:rotate(0)}
.def summary:hover h3{color:var(--accent)}
.def-body{padding:0 4px 30px;max-width:60ch}
.def-body p+p{margin-top:12px}
.def-body strong{color:var(--ink);font-weight:500}

/* contact */
.sec--contact{padding-bottom:clamp(96px,12vw,176px)}
.sec--contact .sec-title{max-width:18ch}

/* footer */
.foot{border-top:1px solid var(--line);padding:56px var(--gutter) 64px;display:flex;flex-wrap:wrap;justify-content:space-between;gap:48px;max-width:1440px;margin:0 auto}
.foot-tag{margin-top:14px;color:var(--muted);font-size:.9375rem}
.foot-cols{display:grid;grid-template-columns:repeat(4,auto);gap:24px clamp(32px,5vw,80px)}
.foot-cols h3{font-size:.875rem;font-weight:500;color:var(--ink);margin-bottom:14px}
.foot-cols a{display:block;text-decoration:none;color:var(--muted);font-size:.9375rem;padding:4px 0}
.foot-cols a:hover{color:var(--ink)}

/* ---------- responsive ---------- */
@media (max-width:900px){
  .scrim{background:linear-gradient(180deg,rgba(255,255,255,0) 0,rgba(255,255,255,0) 34%,rgba(255,255,255,.92) 45%,rgba(255,255,255,.96) 100%)}
  .rail{right:auto;left:0;top:auto;bottom:0;transform:none;width:100%;padding:0 var(--gutter) 12px}
  .rail ol{flex-direction:row;gap:6px}
  .rail li{flex:1}
  .rail a{justify-content:stretch}
  .rail a::after{width:100%;height:2px;border-radius:1px}
  .rail a.is-on::after{width:100%;background:var(--accent)}
  .rail a span{display:none}
  .mast-nav a:not(.mast-cta){display:none}
  .stage{justify-content:flex-end;padding-bottom:72px}
  .title--xl{font-size:clamp(2.75rem,12vw,4rem)}
  .sec--split{grid-template-columns:1fr}
  .sec--split .sec-head{position:static}
  .arena{grid-template-columns:minmax(0,1fr);grid-template-areas:"n" "l" "c";row-gap:10px;align-items:start}
  .arena-name{grid-area:n}.arena-line{grid-area:l}.arena-go{grid-area:c;justify-self:start;margin-top:8px}
  .axis{grid-template-columns:1fr;gap:36px;padding-left:28px}
  .axis::before{left:4px;right:auto;top:0;bottom:0;width:1px;height:auto}
  .axis li::after{left:-28px;top:.9rem}
  .axis .ty{height:auto}
  .axis h3{margin-top:10px}
  .founders{grid-template-columns:1fr;gap:22px}
  .foot-cols{grid-template-columns:repeat(2,auto)}
}
@media (max-width:420px){
  .stage{padding-left:18px;padding-right:18px}
  .sub{font-size:1.0625rem}
}

/* the live caption that narrates Agent 42's state, placed next to it by agent.js */
.tell{position:fixed;left:0;top:0;z-index:3;margin:0;pointer-events:none;
  font:500 .875rem/1.35 var(--sans);color:var(--ink);white-space:nowrap;
  background:rgba(255,255,255,.92);padding:6px 10px;border-radius:8px;box-shadow:0 0 0 1px var(--line);
  opacity:0;transition:opacity .35s;will-change:transform}
.tell.is-on{opacity:1}
.tell b{font-weight:500;color:var(--accent)}
@media (max-width:900px){.tell{font-size:.8125rem}}

/* research guide link */
.research-guide{margin-top:clamp(20px,2.4vw,28px)}

/* v3 polish: an opaque masthead (copy never scrolls under see-through chrome), and
   44px tap targets for the brand and the phone progress rail */
.mast{background:rgba(255,255,255,.94);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-bottom:1px solid transparent;pointer-events:auto}
.mast.is-solid{border-bottom-color:var(--line)}
.brand{min-height:44px}
@media (max-width:900px){
  .mast{padding-top:10px;padding-bottom:10px}
  .mast-nav .mast-cta{min-height:44px;display:inline-flex;align-items:center}
  .rail{padding-bottom:0;background:rgba(255,255,255,.94)}
  .rail a{height:44px;align-items:flex-end;padding-bottom:12px}
  .stage{padding-bottom:88px}
  .rail ol{gap:0}
  .rail a::after{margin:0 3px}
  .foot-cols a{padding:12px 0;min-height:44px;box-sizing:border-box}
  .foot-cols h3{margin-bottom:4px}
}
@media (max-width:360px){.rail{padding-left:8px;padding-right:8px}}

.tell.is-away{opacity:0}
/* landscape phones: copy left, the world right (not a thin band above the copy) */
@media (max-width:900px) and (orientation:landscape){
  .scrim{background:linear-gradient(90deg,rgba(255,255,255,.96) 0,rgba(255,255,255,.9) 50%,rgba(255,255,255,0) 58%)}
  .stage{justify-content:center;padding-top:84px;padding-bottom:72px}
  .stage .copy,.stage--open .copy,.stage--close .copy{max-width:52%}
  .title{font-size:clamp(1.75rem,4.4vw,2.5rem)}
  .title--xl{font-size:clamp(2rem,5.6vw,3rem)}
  .sub,.stage--open .sub{max-width:none}
}

/* portrait phones: every stage opens with a band for the scene, then the copy */
@media (max-width:900px) and (orientation:portrait){
  .stage{justify-content:flex-start;padding-top:calc(44svh + 8px);padding-bottom:96px}
  .scrim{background:linear-gradient(180deg,rgba(255,255,255,0) 0,rgba(255,255,255,0) 43%,rgba(255,255,255,.94) 47%,rgba(255,255,255,.96) 100%)}
  .cue{display:none}
}

/* ---------- stance: the lab's point of view, in place of a team list ---------- */
.stance{padding-top:clamp(128px,16vw,248px)}
.stance-title{font:500 clamp(2.125rem,4.4vw,4.25rem)/1.04 var(--display);letter-spacing:-.033em;max-width:21ch;text-wrap:balance}
.stance-from,.stance-to{display:block}
.stance-from{color:var(--muted)}
.stance-to{color:var(--ink);margin-top:.18em}

/* ---------- v7: a lab, not a shop ---------- */
/* product links in the story are quiet text links; indigo is kept for what is decided */
.cta-row--quiet{margin-top:10px}
.lnk{display:inline-flex;align-items:center;min-height:44px;color:var(--ink);font:500 .9375rem/1.3 var(--sans);
  text-decoration:underline;text-decoration-color:var(--line-2);text-decoration-thickness:1px;text-underline-offset:5px;
  transition:text-decoration-color .2s}
.lnk:hover,.lnk:focus-visible{text-decoration-color:var(--accent)}

/* a solid masthead: no blur smearing the headlines that pass under it */
.mast,.mast.is-solid{background:#fff;-webkit-backdrop-filter:none;backdrop-filter:none}

/* the live caption: plain text on the same paper backing as the canvas labels */
.tell{font:400 .8125rem/1.35 var(--sans);color:var(--ink);background:var(--paper);padding:3px 6px;border-radius:0;box-shadow:none;max-width:calc(100vw - 24px)}
.tell b{font-weight:500;color:var(--ink)}
@media (max-width:900px){.tell{font-size:.8125rem}}
@media (max-width:900px) and (orientation:portrait){.tell{white-space:normal;width:max-content}}

/* portrait phones and tablets: a taller band for the scene, with the caption at its foot */
@media (max-width:900px) and (orientation:portrait){
  .stage{padding-top:calc(52svh + 8px)}
  .scrim{background:linear-gradient(180deg,rgba(255,255,255,0) 0,rgba(255,255,255,0) 51%,rgba(255,255,255,.94) 55%,rgba(255,255,255,.96) 100%)}
}

/* the running example: one quiet line per step, marked by the same rule as the hero's example line */
.job,.eg{max-width:40ch;padding-left:12px;border-left:2px solid var(--line-2);color:var(--muted);font-size:.9375rem;line-height:1.5}
.job{margin-top:22px}
.eg{margin-top:20px}
.nw{white-space:nowrap}


/* ---------- responsive pass ---------- */
/* laptops: a narrower copy column leaves the scene room for its labels */
@media (min-width:901px) and (max-width:1359px){
  :root{--copyw:25rem}
  .title{font-size:clamp(2.1rem,3.6vw,3rem)}
  .title--xl{font-size:clamp(3rem,5.6vw,4.75rem)}
  .stage--open .copy,.stage--close .copy{max-width:34rem}
}
/* portrait phones: the caption under the scene carries the example, so the example line steps aside */
@media (max-width:599px) and (orientation:portrait){
  .stage .eg{display:none}
}
/* portrait tablets: a taller scene band, larger type, a wider column */
@media (min-width:600px) and (max-width:900px) and (orientation:portrait){
  .stage{padding-top:calc(56svh + 8px)}
  .scrim{background:linear-gradient(180deg,rgba(255,255,255,0) 0,rgba(255,255,255,0) 55%,rgba(255,255,255,.94) 59%,rgba(255,255,255,.96) 100%)}
  .stage .copy,.stage--open .copy,.stage--close .copy{max-width:36rem}
  .title{font-size:clamp(2.5rem,6vw,3.25rem)}
  .title--xl{font-size:clamp(3rem,8vw,4.25rem)}
  .sub,.stage--open .sub{font-size:1.1875rem;max-width:36rem}
}
/* landscape phones: start below the masthead, smaller titles, one paragraph per beat */
@media (max-width:900px) and (orientation:landscape){
  .stage{justify-content:flex-start;padding-top:76px}
  .title{font-size:clamp(1.5rem,3.6vw,2rem);margin-bottom:12px}
  .title--xl{font-size:clamp(1.75rem,4.4vw,2.4rem)}
  .eyebrow{margin-bottom:10px}
  .sub,.stage--open .sub{font-size:.9375rem;line-height:1.5}
  .stage .eg,.stage--open .job{display:none}
}

/* v13: each application leads with the question it asks the network */
.arena-q{display:block;margin-bottom:4px;font:500 1.0625rem/1.35 var(--display);color:var(--ink);letter-spacing:-.005em}
.arena--soon .arena-q{color:var(--body)}

/* languages: the masthead picker, the footer list, and fonts for scripts Switzer and F37 Lineca don't cover */
.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.lang-pick select{appearance:none;-webkit-appearance:none;font:inherit;font-size:.875rem;color:var(--body);background:transparent;border:1px solid var(--line-2);border-radius:999px;
  padding:7px 26px 7px 12px;cursor:pointer;background-image:linear-gradient(45deg,transparent 50%,currentColor 50%),linear-gradient(135deg,currentColor 50%,transparent 50%);
  background-position:calc(100% - 14px) 52%,calc(100% - 10px) 52%;background-size:4px 4px;background-repeat:no-repeat}
.lang-pick select:hover{border-color:var(--accent);color:var(--ink)}
.foot-langs{display:flex;flex-wrap:wrap;gap:4px 16px;margin-top:20px}
.foot-langs a{color:var(--muted);text-decoration:none;font-size:.875rem;padding:4px 0}
.foot-langs a:hover,.foot-langs a[aria-current]{color:var(--ink)}
@media (max-width:900px){.lang-pick select{min-height:44px}.foot-langs a{display:inline-flex;align-items:center;min-height:44px;min-width:44px;padding:0 2px}}
.brand span{font-family:'Switzer',system-ui,sans-serif}
:root:lang(ru){--display:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Noto Sans',system-ui,sans-serif;--sans:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Noto Sans',system-ui,sans-serif}
:root:lang(ko){--display:'Apple SD Gothic Neo','Noto Sans KR','Malgun Gothic',system-ui,sans-serif;--sans:'Apple SD Gothic Neo','Noto Sans KR','Malgun Gothic',system-ui,sans-serif}
:root:lang(zh-Hans){--display:'PingFang SC','Hiragino Sans GB','Noto Sans SC','Microsoft YaHei',system-ui,sans-serif;--sans:'PingFang SC','Hiragino Sans GB','Noto Sans SC','Microsoft YaHei',system-ui,sans-serif}
:lang(ko) body{word-break:keep-all}
:lang(ko) :is(.title,.sec-title,.rqc-q,.arena-name),:lang(zh-Hans) :is(.title,.sec-title,.rqc-q,.arena-name){letter-spacing:0}
/* Russian runs to long words ("неоднозначности"): the hero headline scales with the phone's width,
   and titles may hyphenate rather than overflow */
:lang(ru) :is(.title,.sec-title){-webkit-hyphens:auto;hyphens:auto}
@media (max-width:600px){:lang(ru) .title--xl{font-size:min(2.75rem,10.2vw)}}
/* phones: the language picker shares the masthead with Contact; keep the wordmark on one line */
@media (max-width:600px){
  .mast-nav{gap:8px}
  .brand span{white-space:nowrap}
  .lang-pick select{padding:7px 22px 7px 10px;background-position:calc(100% - 12px) 52%,calc(100% - 8px) 52%}
}
@media (max-width:374px){.mast .brand span{display:none}.mast .brand{min-width:44px;min-height:44px}}

/* the language offer: one quiet line, never a redirect. Desktop: bottom right, clear of the copy
   column; phones: just under the masthead, over the scene rather than the copy. */
.lang-hint{position:fixed;z-index:11;right:var(--gutter);bottom:28px;display:flex;align-items:center;gap:14px;max-width:min(30rem,calc(100vw - 32px));
  padding:10px 8px 10px 16px;background:rgba(255,255,255,.96);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
  border:1px solid var(--line-2);border-radius:999px;box-shadow:0 1px 2px rgba(19,21,27,.06);font-size:.875rem;line-height:1.35;color:var(--body);
  opacity:0;transform:translateY(6px);transition:opacity .35s,transform .35s var(--ease),visibility 0s linear .35s;visibility:hidden}
.lang-hint.is-in{opacity:1;transform:none;visibility:visible;transition:opacity .35s,transform .35s var(--ease)}
.lang-hint.is-in.is-away{opacity:0;transform:translateY(6px);visibility:hidden;pointer-events:none;transition:opacity .25s,transform .25s,visibility 0s linear .25s}
.lang-hint p{margin:0}
.lang-hint a{color:var(--ink);font-weight:500;white-space:nowrap;text-decoration:underline;text-decoration-color:var(--line-2);text-underline-offset:3px}
.lang-hint a:hover{text-decoration-color:var(--accent)}
.lang-hint button{flex:none;width:32px;height:32px;border:0;border-radius:50%;background:transparent;color:var(--muted);font:400 1.25rem/1 var(--sans);cursor:pointer}
.lang-hint button:hover{background:rgba(19,21,27,.06);color:var(--ink)}
.lang-hint :focus-visible{outline:2px solid var(--accent);outline-offset:2px}
@media (max-width:600px){
  .lang-hint{top:calc(env(safe-area-inset-top) + 74px);bottom:auto;left:12px;right:12px;max-width:none;border-radius:14px;flex-wrap:wrap;gap:4px 12px;padding:10px 6px 10px 14px}
  .lang-hint p{flex:1 1 100%;padding-right:40px}
  .lang-hint a{min-height:44px;display:inline-flex;align-items:center}
  .lang-hint button{position:absolute;top:4px;right:4px;width:44px;height:44px}
}
@media (prefers-reduced-motion:reduce){.lang-hint,.lang-hint.is-in,.lang-hint.is-in.is-away{transition:none;transform:none}}
@media (max-width:900px){.lang-hint a{min-height:44px;display:inline-flex;align-items:center}.lang-hint button{width:44px;height:44px}}
