/* ------------------------------------------------------------------
   RK — portfolio
   ------------------------------------------------------------------ */

/* The text faces are served from here rather than left to the system.
   Some system fonts lack the Hungarian double acutes, and a browser that
   has to borrow ő and ű from another face sets them visibly out of line.
   Each file below carries the whole alphabet the page uses. */
@font-face{
  font-family:"Newsreader";
  src:url("../fonts/newsreader.woff2") format("woff2");
  font-weight:400; font-style:normal; font-display:swap;
}
@font-face{
  font-family:"Newsreader";
  src:url("../fonts/newsreader-italic.woff2") format("woff2");
  font-weight:400; font-style:italic; font-display:swap;
}
@font-face{
  font-family:"RK Journal Mono";
  src:url("../fonts/journal-mono.woff2") format("woff2");
  font-weight:400; font-style:normal; font-display:swap;
}

:root{
  --bg:#07090A;
  --hair:#1B2724;
  --green:#3BE08E;
  --green-2:#23A96E;
  --green-3:#135C3D;
  --text:#E6F2EA;
  --soft:#A9BEB3;
  --muted:#7F968B;
  /* the fallbacks are chosen for the same reason as the faces: all of
     them carry ő and ű */
  --serif:"Newsreader","Iowan Old Style","Palatino Linotype",Georgia,"Noto Serif",serif;
  --mono:"RK Journal Mono",ui-monospace,"Cascadia Mono","Roboto Mono",Consolas,"Liberation Mono",monospace;
  --gut:clamp(34px,7vw,140px);
  --lane:clamp(38px,5.2vw,92px);
  --ease:cubic-bezier(.19,1,.3,1);
}

*,*::before,*::after{box-sizing:border-box}

html{
  background:var(--bg);
  scroll-behavior:smooth;
  -webkit-text-size-adjust:100%;
  /* sideways swipes turn the figure; vertical ones and pinches stay native */
  touch-action:pan-y pinch-zoom;
}
body{touch-action:pan-y pinch-zoom}

body{
  margin:0;
  position:relative;
  font-family:var(--serif);
  font-weight:400;
  font-synthesis:none;
  color:var(--text);
  background:var(--bg);
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

::selection{background:rgba(59,224,142,.26);color:#fff}

a{color:inherit}

.vh{
  position:absolute; width:1px; height:1px; margin:-1px; padding:0;
  overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0;
}

/* the open space beside the text is a handle on the figure */
@media (hover:hover){
  .has-field main{cursor:grab}
  .has-field .s__in{cursor:auto}
}
.is-turning,.is-turning *{cursor:grabbing !important; user-select:none; -webkit-user-select:none}

/* ---------- fixed layers ---------- */

.watermark{
  position:fixed; inset:0; z-index:0;
  display:grid; place-items:center;
  pointer-events:none;
  opacity:.024;
  will-change:transform;
}
.watermark img{width:min(92vmin,1040px); height:auto; display:block}

/* a little light behind the figure, wherever it is */
.halo{
  position:fixed; left:0; top:0; z-index:0;
  width:96vmin; height:96vmin; margin:-48vmin 0 0 -48vmin;
  border-radius:50%; pointer-events:none; opacity:0;
  background:radial-gradient(closest-side, rgba(46,170,116,.115), rgba(46,170,116,.045) 46%, rgba(46,170,116,0) 72%);
  will-change:transform,opacity;
}

/* Sized to the tallest the viewport gets, not to what is showing: on a
   phone the address bar comes and goes as you scroll, and a canvas that
   followed it would be torn down and rebuilt each time. */
#field{
  position:fixed; left:0; top:0; z-index:1;
  width:100%; height:100vh; height:100lvh;
  display:block; pointer-events:none;
}

.vignette{
  position:fixed; inset:0; z-index:3; pointer-events:none;
  background:
    radial-gradient(130% 95% at 50% 48%, transparent 34%, rgba(7,9,10,.5) 100%),
    linear-gradient(to bottom, rgba(7,9,10,.8) 0%, transparent 15%, transparent 86%, rgba(7,9,10,.86) 100%);
}

/* ---------- header ---------- */

.bar{
  position:fixed; top:0; left:0; right:0; z-index:6;
  display:flex; align-items:center; justify-content:space-between;
  padding:clamp(16px,2.4vw,30px) var(--gut);
  pointer-events:none;
}
.bar > *{pointer-events:auto}
.bar::before{
  content:''; position:absolute; inset:0 0 auto 0; height:140%; z-index:-1;
  background:linear-gradient(to bottom, rgba(7,9,10,.98), rgba(7,9,10,.94) 60%, rgba(7,9,10,0));
  pointer-events:none;
  transition:opacity .35s ease;
}
.is-top .bar::before{opacity:0}

.brand{
  display:inline-flex; align-items:center; gap:.8em;
  text-decoration:none; color:var(--text);
}
.brand__mark{
  height:46px; width:auto; flex:none; display:block; overflow:visible;
  transform-origin:left center;
  transition:transform .55s var(--ease);
}
/* the first screen already says the name, large; the header takes it over
   once that has scrolled away */
.brand__name{
  font-family:var(--mono); font-size:.74rem; letter-spacing:.2em; text-transform:uppercase;
  opacity:0; transition:transform .55s var(--ease), opacity .5s ease;
}
.past-hero .brand__name,.brand:hover .brand__name,.brand:focus-visible .brand__name{opacity:.92}
html:not(.js) .brand__name{opacity:.92}
:lang(en) .brand__b{color:var(--green)}
:lang(hu) .brand__a{color:var(--green)}
.brand:hover .brand__mark,.brand:focus-visible .brand__mark{transform:scale(1.42)}
.brand:hover .brand__name,.brand:focus-visible .brand__name{transform:translateX(50px)}

/* hover: the letters draw apart and a synapse forms in the gap */
.mk-r,.mk-k,.mk-bulb,.mk-face{transition:transform .55s var(--ease)}
.mk-syn{opacity:0; transition:opacity .3s ease}
.mk-bulb{fill:var(--text)}
.mk-face{fill:none; stroke:var(--green); stroke-width:44; stroke-linecap:round}
.mk-ves{fill:#E4FFF1; opacity:0}
.mk-mesh,.mk-dots{transition:opacity .45s ease}

.brand:hover .mk-r,.brand:focus-visible .mk-r,
.brand:hover .mk-bulb,.brand:focus-visible .mk-bulb{transform:translateX(-205px)}
.brand:hover .mk-k,.brand:focus-visible .mk-k,
.brand:hover .mk-face,.brand:focus-visible .mk-face{transform:translateX(205px)}
.brand:hover .mk-syn,.brand:focus-visible .mk-syn{opacity:1}
.brand:hover .mk-mesh,.brand:focus-visible .mk-mesh{opacity:.5}
.brand:hover .mk-ves,.brand:focus-visible .mk-ves{animation:rk-cross 1.35s linear infinite}
.brand:hover .mk-ves.v2,.brand:focus-visible .mk-ves.v2{animation-delay:.27s}
.brand:hover .mk-ves.v3,.brand:focus-visible .mk-ves.v3{animation-delay:.54s}
.brand:hover .mk-ves.v4,.brand:focus-visible .mk-ves.v4{animation-delay:.81s}
.brand:hover .mk-ves.v5,.brand:focus-visible .mk-ves.v5{animation-delay:1.08s}

/* leave the R, cross the cleft, arrive at the K */
@keyframes rk-cross{
  0%{transform:translateX(0) scale(.65); opacity:0}
  14%{opacity:1; transform:translateX(62px) scale(1)}
  82%{opacity:1}
  100%{transform:translateX(452px) scale(.6); opacity:0}
}

.lang{display:inline-flex; align-items:center; gap:.42em; font-family:var(--mono); font-size:.76rem}
.lang__btn{
  appearance:none; background:none; border:0; padding:.35em .2em;
  color:var(--muted); font:inherit; letter-spacing:.1em; cursor:pointer;
  transition:color .25s;
}
.lang__btn:hover{color:var(--text)}
.lang__btn.is-on{color:var(--green)}
.lang__sep{color:#2A3835}

/* ---------- the fibre ---------- */

.axonwrap{
  position:absolute; inset:0; z-index:2;
  pointer-events:none; overflow:hidden;
}
.axon{display:block}
.axon path{fill:none}
.axon__base{stroke:#22684A; stroke-width:1.2}
/* myelin: capsules with a bare node between each pair */
.axon__sheath{stroke:#1C5A40; stroke-width:5; stroke-linecap:round; opacity:.5}
.axon__hot{stroke:var(--green); stroke-width:5; stroke-linecap:round; opacity:0}
.axon__lit{stroke:var(--green-2); stroke-width:1.5; opacity:.85}
.axon__glow{stroke:var(--green); stroke-width:9; stroke-linecap:round}
.axon__pulse{stroke:#E4FFF1; stroke-width:2.2; stroke-linecap:round}
.axon__spark{fill:#F4FFFA; stroke:rgba(99,255,186,.4); stroke-width:2.6}
.axon__arc{stroke:#D2FFE8; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round}
.axon__dot{fill:var(--green); opacity:.3}

/* the stations: each section's name, written along the fibre beside its node */
.stations{position:absolute; inset:0; z-index:5; pointer-events:none; overflow:hidden}
.station{
  position:absolute; pointer-events:auto;
  font-family:var(--mono); font-size:.7rem; letter-spacing:.1em; line-height:1;
  color:#6E877B; text-decoration:none; white-space:nowrap;
  writing-mode:vertical-rl;
  padding:1em .75em;
  transition:color .4s ease;
}
.station--l{transform:translate(-100%,-50%) rotate(180deg)}
.station--r{transform:translate(0,-50%)}
.station--c{writing-mode:horizontal-tb; transform:translate(.4em,-50%); padding:.75em 1em}
.station:hover{color:#D8FFEC}
.station[aria-current]{color:var(--green)}

/* ---------- the figure's apparatus ---------- */

.plate{
  position:fixed; inset:0; z-index:3;
  width:100%; height:100%; pointer-events:none; overflow:visible;
}
.plate__fig{transition:opacity .35s ease}
.co polyline{fill:none; stroke:#9FE0C2; stroke-width:.8; opacity:.62}
.co circle{fill:var(--bg); stroke:#C6F7DF; stroke-width:1}
.co text{
  font-family:var(--serif); font-style:italic; font-size:15px; letter-spacing:.005em;
  fill:#D3EEE0;
  paint-order:stroke; stroke:var(--bg); stroke-width:4px; stroke-linejoin:round;
}

.legend{
  position:fixed; left:0; top:0; z-index:3;
  width:max-content;
  text-align:center; pointer-events:none; opacity:0;
  will-change:transform,opacity;
}
.legend p{margin:0}
.legend__t{font-style:italic; font-size:1rem; line-height:1.3; color:#BCD6C8; text-wrap:balance; max-width:30ch; margin-inline:auto !important}
.legend__n{font-style:normal; color:var(--text)}
.legend__s{
  margin-top:.62rem !important;
  display:flex; align-items:center; justify-content:center; gap:.75em;
  font-family:var(--mono); font-size:.68rem; letter-spacing:.06em; color:var(--muted);
  white-space:nowrap;
}
/* a scale bar the way a drawing has one: a line with a tick at each end */
.legend__bar{
  display:block; flex:none; width:80px; height:6px;
  border:solid var(--soft); border-width:0 1px 1px;
}
.legend__h{
  margin-top:.7rem !important;
  font-family:var(--mono); font-size:.64rem; letter-spacing:.08em; color:#62796E;
  transition:opacity .6s ease;
}
.legend--turned .legend__h,.legend--aside .legend__h{opacity:0}
.legend--aside{text-align:left}
.legend--aside .legend__t{margin-inline:0 !important}
.legend--aside .legend__s{justify-content:flex-start}

/* ---------- sections ---------- */

main{position:relative; z-index:4}

.s{
  position:relative;
  min-height:100vh; min-height:100svh;
  display:grid; align-items:center;
  padding:16vh 0;
}
.s--hero{padding-top:max(16vh,116px)}
.s__in{position:relative; z-index:1; width:min(580px,100%)}
.s__in::before{
  content:''; position:absolute; z-index:-1; pointer-events:none;
  inset:-11vh calc(var(--gut) * -0.85);
  background:radial-gradient(58% 54% at 42% 50%, rgba(7,9,10,.94), rgba(7,9,10,.7) 52%, rgba(7,9,10,0) 78%);
}

.col-l{margin-left:var(--gut); margin-right:auto}
.col-r{margin-right:var(--gut); margin-left:auto}
.col-r::before{background:radial-gradient(58% 54% at 58% 50%, rgba(7,9,10,.94), rgba(7,9,10,.7) 52%, rgba(7,9,10,0) 78%)}
.col-c{margin-inline:auto; text-align:center; width:min(640px,100%)}
.col-c::before{background:radial-gradient(62% 60% at 50% 55%, rgba(7,9,10,.95), rgba(7,9,10,.74) 54%, rgba(7,9,10,0) 80%)}

/* ---------- type ---------- */

/* on a wide screen the section's name is written on the fibre instead */
.kick{
  display:none;
  margin:0 0 1.3rem;
  font-family:var(--mono); font-size:.72rem; letter-spacing:.1em;
  color:var(--green);
}

h2{
  margin:0;
  font-size:clamp(1.95rem,3.55vw,3.3rem);
  font-weight:400; letter-spacing:-.022em; line-height:1.07;
  color:var(--text);
  text-wrap:balance;
}

.body{
  margin:1.55rem 0 0;
  font-size:clamp(1.05rem,1.24vw,1.16rem);
  line-height:1.62; color:#9DB3A8; max-width:44ch;
  hanging-punctuation:first;
}

.note{
  margin:2rem 0 0; padding-top:1.05rem;
  border-top:1px solid var(--hair);
  font-family:var(--mono); font-size:.7rem; line-height:1.7;
  letter-spacing:.02em; color:#70867B; max-width:46ch;
}

/* ---------- first screen ---------- */

/* The name is set in the face the mark is cut from, as outlines. The two
   words are stacked; Hungarian puts the family name first, so which one
   is on top follows the language. The family name carries the green in
   both, because in the mark the green letter is the K. */
.name{
  --cap:min(11.4vh, 104px, calc((100vw - 2 * var(--gut)) * .1934));
  margin:0; display:flex; flex-direction:column; align-items:flex-start;
  gap:calc(var(--cap) * .21);
  color:#fff;
}
.name__w{display:block; height:var(--cap); width:auto; overflow:visible}
.name__family{color:var(--green)}
:lang(hu) .name__family{order:-1}
.name__w path{fill:currentColor; stroke:currentColor; stroke-width:7; stroke-opacity:0}
/* it draws itself, letter after letter, then fills */
.js .name.go .name__w path{
  fill-opacity:0; stroke-opacity:1;
  stroke-dasharray:1; stroke-dashoffset:1;
  animation:
    name-draw 1.25s cubic-bezier(.65,0,.2,1) forwards,
    name-fill .7s ease forwards;
  animation-delay:calc(var(--i) * 75ms + 180ms), calc(var(--i) * 75ms + 1050ms);
}
@keyframes name-draw{to{stroke-dashoffset:0}}
@keyframes name-fill{to{fill-opacity:1; stroke-opacity:0}}

.role{
  margin:1.75rem 0 0;
  font-family:var(--mono); font-size:.74rem; letter-spacing:.06em; line-height:1.8;
  color:var(--green);
}
.role span{display:block}
.role span + span{color:#4F8F70}

/* label and value are told apart by colour, not by rules or boxes */
.spec{margin:2.1rem 0 0; display:grid; gap:1.15rem}
.spec__row{
  display:grid; grid-template-columns:minmax(0,8.4rem) minmax(0,1fr);
  gap:.3rem 1.35rem; align-items:baseline;
}
.spec dt{font-family:var(--mono); font-size:.72rem; letter-spacing:.06em; color:var(--green-2); white-space:nowrap}
.spec dd{margin:0}
.spec__v{font-size:clamp(1.5rem,2.3vw,1.95rem); letter-spacing:-.018em; line-height:1.1; color:var(--green)}
.spec__t{font-size:clamp(1.02rem,1.2vw,1.12rem); line-height:1.52; color:#BDD2C6; max-width:42ch}

.cta{
  margin:1.9rem 0 0; padding-left:calc(8.4rem + 1.35rem);
  display:flex; flex-wrap:wrap; gap:.7rem .8rem;
}
.btn{
  display:inline-flex; align-items:center; gap:.8em;
  padding:.82em 1.15em;
  border:1px solid var(--green-3); border-radius:2px;
  font-family:var(--mono); font-size:.72rem; letter-spacing:.07em;
  color:var(--green); text-decoration:none; white-space:nowrap;
  transition:border-color .3s, color .3s, background-color .3s;
}
.btn svg{
  width:.95em; height:.95em; flex:none;
  fill:none; stroke:currentColor; stroke-width:1.6;
  stroke-linecap:round; stroke-linejoin:round;
  transition:transform .3s;
}
.btn:hover{border-color:var(--green); background-color:rgba(59,224,142,.08); color:#D8FFEC}
.btn--ghost{border-color:#223A32; color:#8FA69B}
.btn--ghost:hover{border-color:var(--green-3); color:var(--green); background-color:rgba(59,224,142,.05)}
.btn:hover svg{transform:translateX(3px)}

.hint{
  position:absolute; left:var(--gut); bottom:clamp(18px,4.2vh,40px); margin:0;
  display:flex; align-items:center; gap:.85rem;
  font-family:var(--mono); font-size:.66rem; letter-spacing:.2em; color:var(--muted);
  transition:opacity .5s ease;
}
.hint__l{display:block; width:44px; height:1px; background:linear-gradient(90deg,var(--green),transparent)}
.past-hero .hint{opacity:0}

/* ---------- data strip ---------- */

.data{
  margin:2.4rem 0 0; padding-top:1.5rem;
  border-top:1px solid var(--hair);
  display:grid; grid-template-columns:repeat(2,minmax(0,1fr));
  gap:1.5rem 1.6rem; max-width:27rem;
}
.data div{min-width:0}
.data dt{
  font-size:2.35rem; letter-spacing:-.02em; color:var(--green);
  white-space:nowrap; line-height:.95; font-variant-numeric:lining-nums tabular-nums;
}
.data dt i{font-style:italic}
.data dd{
  margin:.6rem 0 0;
  font-family:var(--mono); font-size:.68rem; letter-spacing:.04em; color:#6F857A;
  line-height:1.5;
}

/* ---------- margin note ---------- */
/* the device belongs here: a condition of the work, not its subject */

.aside{
  margin:2rem 0 0; padding:.1rem 0 .1rem 1.15rem;
  border-left:1px solid var(--green-3);
  font-style:italic; font-size:clamp(1rem,1.16vw,1.08rem); line-height:1.58;
  color:#9CB3A7; max-width:42ch;
}

/* ---------- contact ---------- */

/* the synapse hangs from the fibre in the upper half; this sits under it */
.s--end{align-items:end; padding:14vh 0 clamp(84px,12vh,118px)}

.links{
  list-style:none; margin:1.5rem 0 0; padding:0;
  display:flex; flex-wrap:wrap; justify-content:center; gap:.2rem 2.2rem;
}
.links a{
  display:inline-block; position:relative;
  font-size:clamp(1.12rem,1.7vw,1.36rem); letter-spacing:-.01em;
  text-decoration:none; color:var(--text);
  padding:.2em 0;
  transition:color .3s;
}
.links a::after{
  content:''; position:absolute; left:0; right:0; bottom:.08em; height:1px;
  background:var(--green); transform:scaleX(0); transform-origin:100% 50%;
  transition:transform .45s cubic-bezier(.22,.7,.2,1);
}
.links a:hover{color:var(--green)}
.links a:hover::after{transform:scaleX(1); transform-origin:0 50%}

/* Above the text column, not under it: the column carries a dark scrim
   that reaches well below its last line, and the footer was being read
   through it. */
.foot{
  position:absolute; z-index:2; left:var(--gut); right:var(--gut); bottom:clamp(18px,3.4vh,36px);
  display:flex; flex-wrap:wrap; justify-content:center; align-items:baseline; gap:.3em 1.8em;
  font-family:var(--mono); font-size:.64rem; letter-spacing:.05em;
  color:var(--soft);
}
/* the credit the lettering's licence asks for: there to be read, and out of the way */
.foot__set{font-size:.54rem; color:#6B7F75}

/* ---------- a quiet word about coffee ---------- */

.support{position:relative; margin:1.5rem 0 0; display:flex; justify-content:center}
.support a{
  display:inline-flex; align-items:center; gap:.6em;
  font-family:var(--mono); font-size:.7rem; letter-spacing:.06em;
  color:#647A6F; text-decoration:none; transition:color .3s;
}
.support a svg{
  width:1.25em; height:1.25em; flex:none;
  fill:none; stroke:currentColor; stroke-width:1.5;
  stroke-linecap:round; stroke-linejoin:round;
}
.support a:hover{color:var(--green)}
/* the code is there for anyone scanning off the screen; it stays out of the way */
.support__qr{
  position:absolute; bottom:calc(100% + 14px); left:50%;
  width:118px; height:118px; padding:7px; border-radius:5px; background:#fff;
  opacity:0; pointer-events:none;
  transform:translateX(-50%) translateY(6px) scale(.94);
  transition:opacity .28s, transform .28s;
}
.support:hover .support__qr,
.support:focus-within .support__qr{opacity:1; transform:translateX(-50%) translateY(0) scale(1)}

/* ---------- reveal ---------- */
/* hidden only once the script that reveals them is known to be running */

.js .rv{
  opacity:0; translate:0 26px;
  transition:opacity .95s cubic-bezier(.22,.7,.2,1), translate .95s cubic-bezier(.22,.7,.2,1);
}
.js .rv.in{opacity:1; translate:0 0}

/* headings arrive word by word, each rising out of its own mask.
   The generic reveal is switched off for them — the words carry it. */
.js .rv[data-split],.js .rv[data-soft]{opacity:1; translate:none; transition:none}
.ws{
  display:inline-block; opacity:0;
  transform:translate3d(0,12px,0);
  transition:opacity .75s ease, transform .75s var(--ease);
}
.in .ws{opacity:1; transform:none}
.w{
  display:inline-block; overflow:hidden; vertical-align:bottom;
  padding:.24em .05em .2em; margin:-.24em -.05em -.2em;
}
.wi{
  display:inline-block;
  transform:translate3d(0,112%,0);
  transition:transform 1.05s cubic-bezier(.16,1,.3,1);
}
.in .wi{transform:none}

/* ---------- focus ---------- */

a:focus-visible,button:focus-visible{
  outline:1px solid var(--green); outline-offset:4px; border-radius:2px;
}

/* ---------- responsive ---------- */

@media (min-width:861px){
  .col-r{text-align:right}
  .col-r .body,.col-r .data{margin-left:auto}
}

@media (max-width:860px){
  .s{padding:14vh 0}
  /* With one column the figure cannot stand beside the text, so it gets the
     screen to itself first: each section opens on an empty stage, and the
     text then rises over the figure. The first screen does it the other way
     round — text, then the neuron on its own. */
  .s--hero{padding-bottom:calc(14vh + 58vh); padding-bottom:calc(14vh + 58svh); align-items:start}
  .s:not(.s--hero):not(.s--end){padding-top:66vh; padding-top:66svh; align-items:start}
  .col-l,.col-r{margin-inline:var(--gut); width:auto}
  .col-c{margin-inline:var(--gut); width:auto}
  .s__in::before,.col-r::before,.col-c::before{
    inset:-9vh calc(var(--gut) * -0.8);
    background:radial-gradient(80% 66% at 46% 50%, rgba(7,9,10,.97), rgba(7,9,10,.86) 60%, rgba(7,9,10,0) 90%);
  }
  .kick{display:block}
  .stations,.plate{display:none}
  .spec__row{grid-template-columns:1fr; gap:.4rem}
  .spec dt{white-space:normal}
  .cta{padding-left:0}
  .hint{display:none}
  .watermark{opacity:.026}
  .s--end{padding-bottom:clamp(96px,15vh,140px)}

  /* with one column the figure stands behind the text, so its legend
     moves up under the header as a single line */
  .legend{
    left:var(--gut); right:var(--gut); top:clamp(64px,10.5vw,84px); z-index:7;
    width:auto; max-width:none; text-align:left;
    display:flex; flex-wrap:wrap; align-items:baseline; gap:.2rem 1rem;
  }
  .legend__t{font-size:.92rem; margin-inline:0 !important; max-width:none}
  .legend__s{margin-top:0 !important}
  /* the header's shade reaches down past the legend, so text passing
     underneath is gone before it gets there */
  .bar::before{
    height:auto; bottom:-92px;
    background:linear-gradient(to bottom, rgba(7,9,10,.98), rgba(7,9,10,.95) 74%, rgba(7,9,10,0));
  }
  .legend__bar{height:5px}
  .legend__h{display:none}
}

@media (max-width:520px){
  .brand__name{display:none}
  .links{flex-direction:column; align-items:center; gap:.25rem}
}

@media (hover:none){
  .legend__h{display:none}
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .js .rv{opacity:1; translate:none; transition:none}
  .brand__mark,.brand__name,.mk-r,.mk-k,.mk-bulb,.mk-face{transition:none}
  .brand:hover .mk-ves{animation:none}
  .js .name.go .name__w path{animation:none; fill-opacity:1; stroke-opacity:0}
  .w{overflow:visible; padding:0; margin:0}
  .wi{transform:none; transition:none}
  .ws{opacity:1; transform:none; transition:none}
  .links a::after{transition:none}
}
