/* klimentrobev.com — lock screen
   Institutional HUD × kinetic type. Colours from the style guide
   (Website_Design_Brief_Kliment_Robev.pdf); type, layout and motion are ours. */

/* ---------- Fonts (self-hosted). Sofia Sans draws Bulgarian Cyrillic forms by default. ---------- */
@font-face {
  font-family: "KR Sans"; src: url("../fonts/sofiasans-cyrillic.woff2") format("woff2");
  font-weight: 1 1000; font-style: normal; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "KR Sans"; src: url("../fonts/sofiasans-latin.woff2") format("woff2");
  font-weight: 1 1000; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "KR Cond"; src: url("../fonts/sofiasanscond-cyrillic.woff2") format("woff2");
  font-weight: 1 1000; font-style: normal; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "KR Cond"; src: url("../fonts/sofiasanscond-latin.woff2") format("woff2");
  font-weight: 1 1000; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "KR Mono"; src: url("../fonts/plexmono-400-cyrillic.woff2") format("woff2");
  font-weight: 400; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "KR Mono"; src: url("../fonts/plexmono-400-latin.woff2") format("woff2");
  font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "KR Mono"; src: url("../fonts/plexmono-500-cyrillic.woff2") format("woff2");
  font-weight: 500; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "KR Mono"; src: url("../fonts/plexmono-500-latin.woff2") format("woff2");
  font-weight: 500; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Colour tokens: the style guide ---------- */
:root {
  --off-white: #F7F7F5;   /* background */
  --graphite:  #202326;   /* main text */
  --soft-gray: #85898D;   /* lines, marks, large type only — never small text */
  --red:       #B3262D;   /* small accents */
  --white:     #FFFFFF;   /* surfaces */
  --divider:   #E5E6E3;   /* light dividers, grid */
  --text-2:    #5B6266;   /* small secondary text */

  --f-sans: "KR Sans", "Sofia Sans", system-ui, sans-serif;
  --f-cond: "KR Cond", "Sofia Sans Condensed", "KR Sans", system-ui, sans-serif;
  --f-mono: "KR Mono", "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;

  --gutter: clamp(16px, 3.4vw, 48px);
  --bar-h: 60px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--off-white); }
body {
  margin: 0;
  min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-rows: var(--bar-h) 1fr auto;
  background: var(--off-white); color: var(--graphite);
  font: 400 16px/1.55 var(--f-sans);
  font-kerning: normal;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: inherit; }
p, dl, dd, figure, h1 { margin: 0; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
::selection { background: var(--graphite); color: var(--off-white); }

/* ---------- Quiet HUD: red band, column guides, crop marks ---------- */
.band { position: fixed; z-index: 20; top: 0; left: 0; right: 0; height: 3px; background: var(--red); transform-origin: left; }
.guides {
  position: fixed; z-index: 0; inset: 0 var(--gutter); pointer-events: none;
  display: grid; grid-template-columns: repeat(6, 1fr);
  border-right: 1px solid var(--divider);
}
.guides i { border-left: 1px solid var(--divider); transform-origin: top; }
.marks i { position: fixed; z-index: 1; width: 14px; height: 14px; pointer-events: none; }
.marks i::before, .marks i::after { content: ""; position: absolute; background: var(--soft-gray); }
.marks i::before { width: 14px; height: 1px; top: 0; }
.marks i::after { width: 1px; height: 14px; left: 0; }
.marks .tl { top: 12px; left: 10px; }
.marks .tr { top: 12px; right: 10px; transform: scaleX(-1); }
.marks .bl { bottom: 10px; left: 10px; transform: scaleY(-1); }
.marks .br { bottom: 10px; right: 10px; transform: scale(-1); }

/* ---------- Bars ---------- */
.bar {
  position: relative; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--gutter);
  font: 500 11px/1.2 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-2);
}
.bar--top { border-bottom: 1px solid var(--divider); background: var(--off-white); }
.bar--bot {
  border-top: 1px solid var(--divider); background: var(--off-white);
  padding-top: 14px; padding-bottom: calc(14px + env(safe-area-inset-bottom));
  flex-wrap: wrap; row-gap: 10px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--graphite); }
.brand__mark { width: 28px; height: 28px; flex: none; }
.brand__mark path { fill: none; stroke: var(--graphite); stroke-width: 5; stroke-linecap: square; }
.brand__mark rect { fill: var(--red); }
.brand__name { font: 650 13px/1 var(--f-sans); letter-spacing: .14em; text-transform: uppercase; }

.bar__end { display: flex; align-items: center; gap: 28px; }
.clock { display: flex; gap: 10px; white-space: nowrap; }
.clock [data-clock] { color: var(--graphite); font-variant-numeric: tabular-nums; }

.lang { display: flex; gap: 2px; }
.lang a {
  position: relative; padding: 7px 8px; text-decoration: none; color: var(--text-2);
  font: 500 11px/1 var(--f-mono); letter-spacing: .12em;
  transition: color .2s var(--ease);
}
.lang a::after {
  content: ""; position: absolute; left: 8px; right: 8px; bottom: 1px; height: 1px;
  background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.lang a:hover, .lang a[aria-current="page"] { color: var(--graphite); }
.lang a:hover::after, .lang a[aria-current="page"]::after { transform: scaleX(1); }

.clocks { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.clocks__item { display: flex; gap: 8px; }
.clocks dd { color: var(--graphite); font-variant-numeric: tabular-nums; }
.bar__meta { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }

/* ---------- Stage ---------- */
.stage {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center; gap: clamp(28px, 5vw, 96px);
  padding: clamp(28px, 5vh, 72px) var(--gutter);
}
.intro { display: flex; flex-direction: column; gap: clamp(14px, 2.3vh, 26px); min-width: 0; }

.eyebrow {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px;
  font: 500 11px/1.3 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-2);
}
.eyebrow .idx { color: var(--red); }
.eyebrow__rule { width: clamp(32px, 5vw, 72px); height: 1px; background: var(--graphite); transform-origin: left; }

.name {
  font-family: var(--f-cond);
  font-weight: 400;
  font-size: clamp(54px, min(7.6vw, 13.5svh), 140px);
  line-height: .92;
  letter-spacing: -.012em;
  color: var(--graphite);
  text-wrap: balance;
}
.name .char { display: inline-block; font-weight: var(--wg, 400); }
.is-revealing .name { overflow: hidden; padding-bottom: .2em; margin-bottom: -.2em; }

.role { font: 550 clamp(17px, 1.45vw, 21px)/1.35 var(--f-sans); color: var(--graphite); }
.lead { max-width: 46ch; font: 400 clamp(17px, 1.45vw, 21px)/1.5 var(--f-sans); color: var(--text-2); }

.facts { max-width: 640px; margin-top: 4px; }
.facts__row { position: relative; display: grid; grid-template-columns: 136px 1fr; gap: 20px; padding: 11px 0 10px; }
.facts__row::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: var(--soft-gray); opacity: .45; transform: scaleX(var(--line, 1)); transform-origin: left;
}
.facts__row:last-child::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--soft-gray); opacity: .45; transform: scaleX(var(--line, 1)); transform-origin: left;
}
.facts dt { padding-top: 3px; font: 500 10.5px/1.4 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); }
.facts dd { font: 450 15px/1.45 var(--f-sans); color: var(--graphite); }
.dot {
  display: inline-block; width: 7px; height: 7px; margin-right: 10px; vertical-align: 1px;
  border-radius: 50%; background: var(--red); box-shadow: 0 0 0 3px rgba(179, 38, 45, .16);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(179, 38, 45, 0); } }

.contact { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.contact a {
  display: grid; gap: 5px; min-width: 210px; padding: 12px 16px 13px;
  background: var(--white); border: 1px solid var(--divider); text-decoration: none; color: var(--graphite);
  transition: border-color .25s var(--ease);
}
.contact a:hover { border-color: var(--red); }
.contact__k { font: 500 10px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--text-2); }
.contact__v { font: 550 15px/1.2 var(--f-sans); transition: color .25s var(--ease); }
.contact a:hover .contact__v { color: var(--red); }

/* ---------- Portrait ---------- */
.portrait { position: relative; justify-self: end; width: min(100%, max(280px, calc((100svh - 2 * var(--bar-h) - 150px) * .8))); }
.portrait__frame { position: relative; aspect-ratio: 4 / 5; background: var(--divider); }
.portrait__frame picture { display: block; width: 100%; height: 100%; overflow: hidden; }
.portrait__frame img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.tick { position: absolute; width: 12px; height: 12px; border: 1px solid var(--graphite); pointer-events: none; }
.tick.tl { top: -7px; left: -7px; border-right: 0; border-bottom: 0; }
.tick.tr { top: -7px; right: -7px; border-left: 0; border-bottom: 0; }
.tick.bl { bottom: -7px; left: -7px; border-right: 0; border-top: 0; }
.tick.br { bottom: -7px; right: -7px; border-left: 0; border-top: 0; }
.portrait__cap {
  display: flex; justify-content: space-between; gap: 16px; padding-top: 14px;
  font: 500 10.5px/1.3 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-2);
}
.portrait__cap span:first-child { color: var(--graphite); }

/* Hidden until the intro takes over (JS + motion only; failsafe in <head>). */
.preintro [data-bar], .preintro .intro > *, .preintro [data-portrait], .preintro [data-marks] { visibility: hidden; }
.motion-off .dot { animation: none; }

/* ---------- Error page ---------- */
.lost { justify-content: center; }
.lost__code { font: 300 clamp(110px, 22vw, 300px)/.84 var(--f-cond); letter-spacing: -.02em; color: var(--graphite); }
.lost .contact a { min-width: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .bar__meta span:first-child { display: none; }
}
@media (max-width: 899px) {
  .stage { grid-template-columns: 1fr; gap: 24px; padding-top: 32px; padding-bottom: 40px; }
  .intro { display: contents; }
  .eyebrow { order: 1; }
  .name { order: 2; font-size: clamp(48px, 14vw, 96px); }
  .role { order: 3; }
  .portrait { order: 4; justify-self: stretch; width: 100%; max-width: 480px; margin: 8px 0; }
  .lead { order: 5; }
  .facts { order: 6; }
  .contact { order: 7; }
  .guides { grid-template-columns: repeat(4, 1fr); }
  .guides i:nth-child(n + 5) { display: none; }
  .marks { display: none; }
}
@media (max-width: 560px) {
  .brand__name { display: none; }
  .bar__end { gap: 14px; }
  .facts__row { grid-template-columns: 1fr; gap: 2px; }
  .contact a { min-width: 0; flex: 1 1 100%; }
  .clocks { gap: 8px 18px; }
}

/* ---------- Precision cursor (fine pointers only; added by hud.js) ---------- */
.has-cursor, .has-cursor * { cursor: none !important; }
.cur { position: fixed; inset: 0; z-index: 300; pointer-events: none; opacity: 0; transition: opacity .25s var(--ease); }
.cur.is-on { opacity: 1; }
.cur__dot, .cur__ring, .cur__box, .cur__label { position: fixed; left: 0; top: 0; }
.cur__dot { width: 4px; height: 4px; margin: -2px 0 0 -2px; border-radius: 50%; background: var(--red); }
.cur__ring {
  width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%;
  border: 1px solid rgba(32, 35, 38, .55);
  transition: width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), opacity .2s, border-color .2s;
}
.cur__ring b { position: absolute; background: var(--graphite); }
.cur__ring b:nth-child(1) { left: 50%; top: -6px; width: 1px; height: 5px; }
.cur__ring b:nth-child(2) { left: 50%; bottom: -6px; width: 1px; height: 5px; }
.cur__ring b:nth-child(3) { top: 50%; left: -6px; width: 5px; height: 1px; }
.cur__ring b:nth-child(4) { top: 50%; right: -6px; width: 5px; height: 1px; }
.cur.is-down .cur__ring { width: 22px; height: 22px; margin: -11px 0 0 -11px; }
.cur.is-chart .cur__ring { width: 12px; height: 12px; margin: -6px 0 0 -6px; border-color: var(--red); }
.cur.is-lock .cur__ring { opacity: 0; }
.cur__box { width: 0; height: 0; opacity: 0; transition: opacity .2s var(--ease); }
.cur.is-lock .cur__box { opacity: 1; }
.cur__box b { position: absolute; width: 9px; height: 9px; border: 0 solid var(--graphite); }
.cur__box b:nth-child(1) { left: 0; top: 0; border-left-width: 1px; border-top-width: 1px; }
.cur__box b:nth-child(2) { right: 0; top: 0; border-right-width: 1px; border-top-width: 1px; }
.cur__box b:nth-child(3) { left: 0; bottom: 0; border-left-width: 1px; border-bottom-width: 1px; }
.cur__box b:nth-child(4) { right: 0; bottom: 0; border-right-width: 1px; border-bottom-width: 1px; }
.cur__label {
  padding: 4px 7px; white-space: nowrap; opacity: 0; transition: opacity .2s var(--ease);
  background: var(--graphite); color: var(--off-white);
  font: 500 10px/1.1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase;
}
.cur.has-label .cur__label { opacity: 1; }

/* ---------- Guilloché (engraved rosette, drawn by hud.js) ---------- */
.portrait { isolation: isolate; }
.guilloche {
  position: absolute; z-index: -1; pointer-events: none;
  width: 150%; aspect-ratio: 1; right: -55%; top: -28%;
}
.guilloche svg { display: block; width: 100%; height: 100%; overflow: visible; }
.guilloche path { fill: none; stroke: var(--soft-gray); stroke-width: .45; stroke-opacity: .5; vector-effect: non-scaling-stroke; }
.guilloche__rot { transform-origin: 0 0; animation: guilloche 360s linear infinite; }
@keyframes guilloche { to { transform: rotate(360deg); } }
.motion-off .guilloche__rot { animation: none; }
@media (max-width: 899px) { .guilloche { width: 120%; right: -40%; top: -16%; } }

/* ---------- Scroll rail (replaces the native scrollbar; added by hud.js) ---------- */
html.has-rail { scrollbar-width: none; }
html.has-rail::-webkit-scrollbar, html.has-rail body::-webkit-scrollbar { width: 0; height: 0; display: none; }
.rail {
  position: fixed; z-index: 250; right: 0; top: 14px; bottom: 14px; width: 26px;
  touch-action: none; user-select: none; -webkit-user-select: none;
}
.is-site .rail { top: calc(var(--bar-h) + 14px); }
.rail.is-off { display: none; }
.rail__track { position: absolute; right: 9px; top: 0; bottom: 0; width: 1px; background: var(--soft-gray); opacity: .4; }
.rail__marks { position: absolute; inset: 0; }
.rail__mark {
  position: absolute; right: 9px; width: 8px; height: 1px; margin-top: -.5px; background: var(--graphite); opacity: .55;
}
.rail__mark::after { content: ""; position: absolute; left: -6px; right: -8px; top: -7px; bottom: -7px; } /* easier to hit */
.rail__mark::before {
  content: attr(data-n); position: absolute; right: 14px; top: -5px;
  font: 500 9px/1 var(--f-mono); letter-spacing: .1em; color: var(--text-2);
  opacity: 0; transition: opacity .25s var(--ease);
}
.rail:hover .rail__mark::before, .rail.is-drag .rail__mark::before { opacity: 1; }
.rail__thumb {
  position: absolute; right: 8px; top: 0; width: 3px; border-radius: 2px; background: var(--graphite);
  transition: width .25s var(--ease), right .25s var(--ease), background-color .2s var(--ease);
  will-change: transform;
}
.rail__thumb::before { content: ""; position: absolute; top: 0; bottom: 0; left: -10px; right: -8px; } /* grab area */
.rail:hover .rail__thumb, .rail.is-drag .rail__thumb { width: 5px; right: 7px; }
.rail.is-drag .rail__thumb, .rail__thumb:hover { background: var(--red); }
.rail__read {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%); white-space: nowrap; pointer-events: none;
  padding: 3px 6px; background: var(--graphite); color: var(--off-white);
  font: 500 9.5px/1.1 var(--f-mono); letter-spacing: .1em; font-variant-numeric: tabular-nums;
  opacity: 0; transition: opacity .2s var(--ease);
}
.rail:hover .rail__read, .rail.is-drag .rail__read { opacity: 1; }

/* Touch: slim, shows while scrolling, only the thumb is draggable */
@media (hover: none), (pointer: coarse) {
  .rail { width: 20px; opacity: 0; pointer-events: none; transition: opacity .35s var(--ease); }
  .rail.is-active, .rail.is-drag { opacity: 1; }
  .rail.is-active .rail__thumb, .rail.is-drag .rail__thumb { pointer-events: auto; }
  .rail__track, .rail__mark { right: 3px; }
  .rail__thumb { right: 2px; }
  .rail.is-drag .rail__thumb { width: 5px; right: 1px; }
  .rail__mark::before { display: none; }
}

/* ---------- Photo hover: subdued → true colour behind a red "price line" ----------
   Two layers ride across together. ::after greys the photo with a blend mode (works with or without GPU
   compositing, unlike backdrop-filter); ::before is the red line and its marker, kept out of the blend.
   any-hover: touchscreen laptops with a trackpad get it too; phones keep the photo in true colour. */
@media (any-hover: hover) {
  .portrait__frame picture, .side-photo picture, .press-photos__img { position: relative; isolation: isolate; }
  .portrait__frame picture::before, .side-photo picture::before, .press-photos__img::before,
  .portrait__frame picture::after, .side-photo picture::after, .press-photos__img::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    transform: translateX(0); transition: transform .95s cubic-bezier(.65, 0, .25, 1);
  }
  .portrait__frame picture::after, .side-photo picture::after, .press-photos__img::after {
    z-index: 2; background: #8A8A8A; mix-blend-mode: saturation; opacity: .58;   /* ≈ saturate(.42) */
  }
  .portrait__frame picture::before, .side-photo picture::before, .press-photos__img::before {
    z-index: 3; border-left: 1.5px solid transparent;
    background: linear-gradient(var(--red), var(--red)) no-repeat 0 14px / 0 0;   /* marker riding at the top of the line */
    /* leaving: the line stays red while it travels back, and fades only once it is home */
    transition: transform .95s cubic-bezier(.65, 0, .25, 1), border-color .3s ease .9s, background-size .3s ease .9s;
  }
  .portrait__frame:hover picture::before, .side-photo:hover picture::before, .press-photos a:hover .press-photos__img::before,
  .portrait__frame:hover picture::after, .side-photo:hover picture::after, .press-photos a:hover .press-photos__img::after {
    transform: translateX(101%);
  }
  .portrait__frame:hover picture::before, .side-photo:hover picture::before, .press-photos a:hover .press-photos__img::before {
    border-left-color: var(--red); background-size: 6px 6px;
    transition: transform .95s cubic-bezier(.65, 0, .25, 1), border-color .2s ease, background-size .2s ease;   /* entering: red at once */
  }
  .portrait__frame picture img, .side-photo picture img, .press-photos__img img { transition: scale 1.4s var(--ease); }
  .portrait__frame:hover picture img, .side-photo:hover picture img, .press-photos a:hover .press-photos__img img { scale: 1.035; }
}
.press-photos__img { display: block; overflow: hidden; }

/* ---------- Buttons: red wipe from left to right (exits to the right) ---------- */
.contact a { position: relative; isolation: isolate; overflow: hidden; }
.contact a::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--red);
  transform: scaleX(0); transform-origin: right center; transition: transform .5s cubic-bezier(.65, 0, .25, 1);
}
.contact a:hover::before, .contact a:focus-visible::before { transform: scaleX(1); transform-origin: left center; }
.contact a:hover { border-color: var(--red); }
.contact a:hover .contact__k, .contact a:hover .contact__v,
.contact a:focus-visible .contact__k, .contact a:focus-visible .contact__v { color: var(--white); }
.contact__k { transition: color .3s ease .05s; }

.motion-off .portrait__frame picture::after, .motion-off .side-photo picture::after, .motion-off .press-photos__img::after,
.motion-off .portrait__frame picture::before, .motion-off .side-photo picture::before, .motion-off .press-photos__img::before,
.motion-off .contact a::before { transition: none; }

/* Screen-reader-only text (e.g. "opens in a new tab" next to ↗ links) */
.sr-only {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* No horizontal scroll on phones: decorative layers (guilloché, route, marks) may extend past the
   viewport by design, so clip at the root. `clip` keeps position: sticky working; `hidden` is the fallback. */
html { overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
@media (max-width: 899px) { .guilloche { width: 115%; right: -28%; top: -14%; } }

/* ---------- Horizontal rail (hud.js): takes over while a pinned stage travels sideways ---------- */
.rail { transition: opacity .45s var(--ease); }
.is-site .rail.rail--x { top: auto; bottom: 0; left: 14px; right: 14px; width: auto; height: 26px; }
.rail--x .rail__track { top: auto; right: 0; left: 0; bottom: 9px; width: auto; height: 1px; }
.rail--x .rail__mark { top: auto; right: auto; bottom: 9px; width: 1px; height: 8px; margin: 0 0 0 -.5px; }
.rail--x .rail__mark::after { left: -7px; right: -7px; top: -6px; bottom: -8px; }
.rail--x .rail__mark::before { right: auto; left: 50%; top: -15px; transform: translateX(-50%); }
.rail--x .rail__thumb { top: auto; right: auto; left: 0; bottom: 8px; height: 3px; transition: height .25s var(--ease), bottom .25s var(--ease), background-color .2s var(--ease); }
.rail--x .rail__thumb::before { left: 0; right: 0; top: -10px; bottom: -8px; }
.rail--x:hover .rail__thumb, .rail--x.is-drag .rail__thumb { right: auto; height: 5px; bottom: 7px; }
.rail--x .rail__read { right: auto; left: 50%; top: auto; bottom: 14px; transform: translateX(-50%); }
/* One rail at a time: the direction the page is travelling fades in, the other fades out. */
html:not(.rail-x) .rail.rail--x:not(.is-drag) { opacity: 0; pointer-events: none; }
.rail-x .rail.rail--x { opacity: 1; pointer-events: auto; }
.rail-x .rail.rail--y { opacity: 0; pointer-events: none; }
@media (hover: none), (pointer: coarse) {
  .is-site .rail.rail--x { left: 6px; right: 6px; }
  .rail-x .rail.rail--x:not(.is-active):not(.is-drag) { opacity: 0; pointer-events: none; }
}

/* ---------- Market watch (hud.js): a faint watchlist that now and then fades in along a grid line ---------- */
.mwatch { position: fixed; inset: 0; z-index: 1; width: 100vw; height: 100vh; pointer-events: none; }
@media print { .mwatch { display: none; } }

/* ---------- Designer's signature (bottom bar): greyed out, takes its colour on hover ---------- */
.bar__meta a.credit { display: inline-flex; align-items: center; gap: 8px; line-height: inherit; white-space: nowrap; color: var(--text-2); text-decoration: none; }
.credit img { display: block; flex: none; width: 18px; height: 18px; margin: -4px 0; border-radius: 50%; filter: grayscale(1); opacity: .5; transition: filter .4s var(--ease), opacity .4s var(--ease), transform .4s var(--ease); }
.credit:hover img, .credit:focus-visible img { filter: none; opacity: 1; transform: rotate(-10deg) scale(1.1); }
.bar__meta a.credit:hover, .bar__meta a.credit:focus-visible { color: var(--graphite); }
.motion-off .credit img { transition: none; transform: none; }

/* =====================================================================
   Cookie choice as an order ticket: Buy = accept, Sell = essentials only (non-blocking)
   ===================================================================== */
.ticket {
  position: fixed; z-index: 270; right: 40px; bottom: 40px; width: min(360px, calc(100vw - 32px));
  background: var(--white); border: 1px solid var(--graphite); box-shadow: 0 22px 60px -28px rgba(32, 35, 38, .5); color: var(--graphite);
  opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.ticket[hidden] { display: none; }
.ticket.is-on { opacity: 1; transform: none; }
.ticket__head {
  display: flex; justify-content: space-between; gap: 12px; padding: 11px 16px; background: var(--graphite); color: var(--off-white);
  font: 500 10px/1.2 var(--f-mono); letter-spacing: .14em; text-transform: uppercase;
}
.ticket__no { color: rgba(247, 247, 245, .6); }
.ticket__rows { margin: 0; padding: 6px 16px 0; }
.ticket__rows div { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; border-bottom: 1px dashed var(--divider); }
.ticket__rows dt { font: 500 10px/1.5 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); }
.ticket__rows dd { margin: 0; font: 550 13px/1.4 var(--f-sans); text-align: right; }
.ticket__text { margin: 12px 16px 14px; font: 400 13.5px/1.5 var(--f-sans); color: var(--text-2); }
.ticket__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 16px; }
.ticket__btn {
  position: relative; isolation: isolate; overflow: hidden; display: grid; gap: 5px; padding: 11px 12px; text-align: left; cursor: pointer;
  border: 1px solid var(--graphite); background: none; color: var(--graphite); transition: color .3s ease .05s, border-color .3s ease;
}
.ticket__btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--graphite); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.ticket__btn:hover::before, .ticket__btn:focus-visible::before { transform: scaleX(1); }
.ticket__btn:hover, .ticket__btn:focus-visible { color: var(--off-white); }
.ticket__btn b { font: 600 15px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; }
.ticket__btn span { font: 500 9.5px/1.2 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.ticket__btn--buy { border-color: var(--red); background: var(--red); color: var(--white); }
.ticket__btn--buy::before { background: #8C1D23; }
.ticket__btn:focus-visible { outline: 2px solid var(--graphite); outline-offset: 2px; }
.ticket__more { display: inline-block; margin: 12px 16px 14px; font: 500 10px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); text-decoration: none; }
.ticket__more:hover { color: var(--red); }
.ticket__filled {
  position: absolute; inset: 35px 0 0; display: grid; place-items: center; margin: 0; pointer-events: none;
  background: rgba(255, 255, 255, .94); opacity: 0; transition: opacity .3s var(--ease);
}
.ticket__filled:not(:empty) { opacity: 1; }
.ticket__filled span {
  padding: 10px 16px; border: 2px solid var(--red); color: var(--red); transform: rotate(-7deg) scale(1);
  font: 600 14px/1 var(--f-mono); letter-spacing: .18em; text-transform: uppercase; animation: stamp .45s var(--ease) both;
}
@keyframes stamp { from { opacity: 0; transform: rotate(-7deg) scale(1.6); } }
@media (max-width: 599px) { .ticket { left: 12px; right: 12px; bottom: 12px; width: auto; } }
.motion-off .ticket { transition: none; transform: none; }
.motion-off .ticket__filled span { animation: none; }

/* =====================================================================
   Quick contact dock: one button, opens into email and LinkedIn
   ===================================================================== */
.dock {
  position: fixed; z-index: 240; left: 14px; bottom: 40px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.dock.is-ready:not(.is-on), .ticket-open .dock { opacity: 0; transform: translateY(10px); pointer-events: none; }
.page-contact .dock { display: none; }
.dock__menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.dock__menu li { transition: opacity .3s var(--ease), transform .45s var(--ease); }
.dock.is-ready:not(.is-open) .dock__menu { visibility: hidden; transition: visibility 0s .45s; }
.dock.is-ready:not(.is-open) .dock__menu li { opacity: 0; transform: translateY(14px); }
.dock.is-open .dock__menu li:first-child { transition-delay: .06s; }
.dock__opt {
  position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; gap: 12px; height: 40px; padding: 0 14px 0 0;
  background: var(--off-white); border: 1px solid var(--graphite); color: var(--graphite); text-decoration: none;
  transition: color .3s ease .05s, border-color .3s ease;
}
.dock__opt::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.dock__opt:hover::before, .dock__opt:focus-visible::before { transform: scaleX(1); }
.dock__opt:hover, .dock__opt:focus-visible { color: var(--white); border-color: var(--red); }
.dock__g { display: grid; place-items: center; width: 38px; height: 38px; border-right: 1px solid currentColor; font: 600 14px/1 var(--f-mono); }
.dock__l { font: 500 11px/1 var(--f-mono); letter-spacing: .08em; white-space: nowrap; }
.dock__btn {
  display: inline-flex; align-items: center; height: 44px; padding: 0 14px 0 0; cursor: pointer;
  border: 1px solid var(--graphite); background: var(--graphite); color: var(--off-white); transition: background-color .3s var(--ease), border-color .3s var(--ease);
}
.dock__x { position: relative; width: 42px; height: 42px; }
.dock__x i { position: absolute; left: 50%; top: 50%; width: 16px; height: 1.5px; margin: -.75px 0 0 -8px; background: currentColor; transition: transform .4s var(--ease); }
.dock__x i:nth-child(2) { transform: rotate(90deg); }
.dock.is-open .dock__x i:nth-child(1) { transform: rotate(45deg); }
.dock.is-open .dock__x i:nth-child(2) { transform: rotate(135deg); }
.dock__t { font: 500 10.5px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; }
.dock__btn:hover, .dock__btn:focus-visible, .dock.is-open .dock__btn { background: var(--red); border-color: var(--red); }
@media (max-width: 599px) {
  .dock { left: 12px; bottom: 16px; }
  .dock__btn { padding: 0; }
  .dock__t { display: none; }
}
.motion-off .dock, .motion-off .dock__menu li, .motion-off .dock__x i { transition: none; }

/* Coming-soon page: the bottom bar is always on screen, so the ticket and the dock sit above it */
.is-lock .ticket, .is-lock .dock { bottom: calc(var(--bar-h) + 18px); }
@media (max-width: 599px) { .is-lock .ticket { bottom: 12px; } .is-lock .dock { bottom: 16px; } }

/* the coming-soon page already shows both contacts in its column: its dock is just the square */
.is-lock .dock__t { display: none; }
.is-lock .dock__btn { padding: 0; }

/* =====================================================================
   Mobile menu (≤980px): an "order book" burger whose lines never stop moving,
   and an off-canvas index styled like a quote board
   ===================================================================== */
.burger {
  display: none; align-items: center; gap: 10px; padding: 8px 0 8px 6px; border: 0; background: none; cursor: pointer;
  color: var(--graphite); font: 500 11px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase;
}
.burger__lines { display: grid; gap: 4px; width: 20px; }
.burger__lines i {
  display: block; height: 1.5px; background: currentColor; transform-origin: right center;
  animation: kr-depth 2.4s ease-in-out infinite alternate; transition: transform .35s var(--ease), opacity .25s var(--ease);
}
.burger__lines i:nth-child(1) { --a: .5; }
.burger__lines i:nth-child(2) { --a: .28; animation-duration: 3.1s; animation-delay: -1.3s; }
.burger__lines i:nth-child(3) { --a: .7; animation-duration: 1.9s; animation-delay: -.7s; }
@keyframes kr-depth { from { transform: scaleX(1); } to { transform: scaleX(var(--a)); } }
.burger:hover .burger__lines i { background: var(--red); }
.burger[aria-expanded="true"] .burger__lines i { animation: none; transform-origin: center; }
.burger[aria-expanded="true"] .burger__lines i:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__lines i:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger__lines i:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
@media (max-width: 980px) { .burger { display: inline-flex; } }
@media (max-width: 420px) { .burger__l { display: none; } }
.motion-off .burger__lines i { animation: none; }

.oc { position: fixed; inset: 0; z-index: 280; }
.oc[hidden] { display: none; }
.oc__scrim { position: absolute; inset: 0; background: rgba(32, 35, 38, .34); opacity: 0; transition: opacity .45s var(--ease); }
.oc__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; -webkit-overflow-scrolling: touch;
  display: flex; flex-direction: column; padding-bottom: 26px; isolation: isolate;
  background: var(--graphite); color: var(--off-white);
  transform: translateX(100%); transition: transform .6s cubic-bezier(.65, 0, .25, 1);
}
.oc__panel::before {   /* the page's six-column grid, engraved on the dark panel */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(to right, rgba(247, 247, 245, .05) 1px, transparent 1px); background-size: calc(100% / 6) 100%;
}
.oc.is-open .oc__scrim { opacity: 1; }
.oc.is-open .oc__panel { transform: none; }
.oc .guilloche.oc__rosette { position: absolute; z-index: -1; top: auto; right: -34%; bottom: -14%; width: 120%; }
.oc .guilloche path { stroke: var(--off-white); stroke-opacity: .13; }
.oc__head {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: var(--bar-h); padding: 0 var(--gutter);
  border-bottom: 1px solid rgba(247, 247, 245, .14); font: 500 10.5px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase;
}
.oc__live { display: inline-flex; align-items: center; gap: 0; color: rgba(247, 247, 245, .75); font-variant-numeric: tabular-nums; }
.oc__live [data-clock] { margin-left: .5em; color: var(--off-white); }
.oc__close {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 0; border: 0; background: none; cursor: pointer;
  color: var(--off-white); font: inherit; letter-spacing: inherit; text-transform: inherit;
}
.oc__close i { position: relative; width: 16px; height: 16px; }
.oc__close i::before, .oc__close i::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -.75px; background: currentColor; transform: rotate(45deg); }
.oc__close i::after { transform: rotate(-45deg); }
.oc__close:hover { color: var(--red); }
.oc__cols, .oc__row { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: baseline; padding-left: var(--gutter); padding-right: var(--gutter); }
.oc__cols { padding-top: 16px; padding-bottom: 8px; font: 500 9.5px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(247, 247, 245, .5); }
.oc__nav { display: grid; }
.oc__row {
  position: relative; isolation: isolate; padding-top: 15px; padding-bottom: 15px; border-top: 1px solid rgba(247, 247, 245, .12);
  color: var(--off-white); text-decoration: none; opacity: 0; transform: translateX(28px);
  transition: opacity .5s var(--ease), transform .6s var(--ease), color .25s ease; transition-delay: calc(.14s + var(--i, 0) * .055s);
}
.oc__row:last-child { border-bottom: 1px solid rgba(247, 247, 245, .12); }
.oc.is-open .oc__row { opacity: 1; transform: none; }
.oc__row::before {     /* order-book depth bar: decorative, drifting slowly */
  content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 100%; z-index: -2; background: rgba(247, 247, 245, .05);
  transform-origin: right center; transform: scaleX(var(--d, .4)); animation: kr-book var(--t, 8s) ease-in-out infinite alternate;
}
@keyframes kr-book { from { transform: scaleX(var(--d, .4)); } to { transform: scaleX(var(--d2, .6)); } }
.oc__row::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--red); transform: scaleX(0); transform-origin: left center; transition: transform .45s cubic-bezier(.65, 0, .25, 1); }
.oc__row:hover::after, .oc__row:focus-visible::after { transform: scaleX(1); }
.oc__row:focus-visible { outline: none; }
.oc__n { font: 500 11px/1 var(--f-mono); letter-spacing: .12em; color: var(--red); transition: color .25s ease; }
.oc__l { font: 400 clamp(28px, 7.6vw, 40px)/1.05 var(--f-cond); }
.oc__a { font: 500 12px/1 var(--f-mono); color: rgba(247, 247, 245, .45); transition: transform .3s var(--ease), color .25s ease; }
.oc__row[aria-current="page"] .oc__l { color: var(--red); }
.oc__row:hover .oc__n, .oc__row:hover .oc__l, .oc__row:hover .oc__a,
.oc__row:focus-visible .oc__n, .oc__row:focus-visible .oc__l, .oc__row:focus-visible .oc__a { color: var(--off-white); }
.oc__row:hover .oc__a { transform: translateX(4px); }
.oc__note { margin: 14px var(--gutter) 0; font: 500 10px/1.5 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: rgba(247, 247, 245, .6); }
.oc__k { margin: 28px var(--gutter) 10px; font: 500 9.5px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(247, 247, 245, .5); }
.oc__clocks { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0 var(--gutter); border-top: 1px solid rgba(247, 247, 245, .14); }
.oc__clocks div { padding-top: 10px; }
.oc__clocks dt { margin-bottom: 5px; font: 500 9px/1.2 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: rgba(247, 247, 245, .55); }
.oc__clocks dd { margin: 0; font: 500 13px/1 var(--f-mono); color: var(--off-white); font-variant-numeric: tabular-nums; }
.oc__foot { margin-top: auto; padding: 26px var(--gutter) 0; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; font: 500 11px/1 var(--f-mono); letter-spacing: .08em; }
.oc__foot a { color: var(--off-white); text-decoration: none; }
.oc__foot a:hover { color: var(--red); }
.oc__lang { display: inline-flex; gap: 12px; margin-left: auto; }
.oc__lang a { color: rgba(247, 247, 245, .55); }
.oc__lang a[aria-current="page"] { color: var(--off-white); border-bottom: 1px solid var(--red); padding-bottom: 3px; }
.oc-open, .oc-open body { overflow: hidden; }
@media (min-width: 981px) { .oc { display: none !important; } }
.motion-off .oc__scrim, .motion-off .oc__panel, .motion-off .oc__row { transition: none; }
.motion-off .oc__row::before { animation: none; }

/* =====================================================================
   Opening sequence ("session log"): html.boot is set by the head script, boot.js plays it
   ===================================================================== */
.boot, .boot body { overflow: hidden; }
.boot body::before {     /* plain curtain from the first paint until boot.js has built the screen */
  content: ""; position: fixed; inset: 0; z-index: 399; background: var(--graphite);
}
.boot.boot-out body::before { display: none; }
.boot-screen {
  position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; overflow: hidden;
  background: var(--graphite); color: var(--off-white);
  clip-path: inset(0 0 0 0); transition: clip-path .6s cubic-bezier(.76, 0, .24, 1);
}
.boot-screen.is-out { clip-path: inset(0 0 100% 0); }
html:not(.boot) .boot-screen { display: none; }
.boot-screen::before {   /* the page's six-column grid, engraved on the dark screen */
  content: ""; position: absolute; inset: 0 var(--gutter); pointer-events: none;
  background-image: linear-gradient(to right, rgba(247, 247, 245, .06) 1px, transparent 1px); background-size: calc(100% / 6) 100%;
  border-right: 1px solid rgba(247, 247, 245, .06);
}
.boot__band { position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--red); transform: scaleX(0); transform-origin: left; }

/* the rosette is engraved by a turning lathe: a conic mask sweeps it in */
@property --kr-sweep { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.boot-screen .guilloche.boot__rosette {
  position: absolute; z-index: 0; top: auto; right: -14vmin; bottom: -22vmin; width: 84vmin;
  -webkit-mask-image: conic-gradient(from -90deg, #000 var(--kr-sweep), transparent 0);
  mask-image: conic-gradient(from -90deg, #000 var(--kr-sweep), transparent 0);
  animation: kr-sweep .85s cubic-bezier(.65, 0, .25, 1) forwards;
}
@keyframes kr-sweep { to { --kr-sweep: 360deg; } }
.boot-screen .guilloche path { stroke: var(--off-white); stroke-opacity: .14; }

.boot__panel {
  position: relative; z-index: 1; width: min(580px, calc(100vw - 2 * var(--gutter)));
  font: 500 11px/1.4 var(--f-mono); letter-spacing: .12em; text-transform: uppercase;
  transition: opacity .35s var(--ease), transform .6s var(--ease);
}
.boot-screen.is-out .boot__panel { opacity: 0; transform: translateY(-24px); }
.boot__head { display: flex; justify-content: space-between; gap: 16px; margin: 0; padding-bottom: 14px; border-bottom: 1px solid rgba(247, 247, 245, .22); color: rgba(247, 247, 245, .62); font-variant-numeric: tabular-nums; }
.boot__log { list-style: none; margin: 12px 0 14px; padding: 0; }
.boot__log li { display: flex; align-items: baseline; gap: 12px; padding: 7px 0; opacity: 0; transform: translateY(6px); transition: opacity .2s var(--ease), transform .3s var(--ease); }
.boot__log li.is-on { opacity: 1; transform: none; }
.boot__n { flex: none; width: 2.2em; color: var(--red); }
.boot__k { flex: none; color: rgba(247, 247, 245, .72); }
.boot__dots { flex: 1; min-width: 24px; border-bottom: 1px dotted rgba(247, 247, 245, .28); transform: translateY(-3px); }
.boot__v { flex: none; max-width: 60%; overflow: hidden; white-space: nowrap; text-overflow: clip; color: var(--off-white); text-align: right; }
.boot__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding-top: 16px; border-top: 1px solid rgba(247, 247, 245, .22); }
.boot__state { color: rgba(247, 247, 245, .62); }
.boot-screen.is-done .boot__state { color: var(--red); }
.boot__pct { display: inline-flex; align-items: baseline; gap: 6px; }
.boot__pct b { font: 400 clamp(64px, 12vw, 128px)/.82 var(--f-cond); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.boot__pct small { font: 500 11px/1 var(--f-mono); color: rgba(247, 247, 245, .6); }
.boot__skip { position: absolute; z-index: 1; right: var(--gutter); bottom: 18px; font: 500 10px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: rgba(247, 247, 245, .45); }
@media (max-width: 599px) {
  .boot__head { flex-direction: column; gap: 6px; }
  .boot__k { max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .boot__skip { left: var(--gutter); right: auto; }
}
.boot .cur { z-index: 401; }   /* the precision cursor stays visible over the opening sequence */

/* ---------- No selection highlight, no tap flash, no dragging images (user's choice) ----------
   Form fields stay selectable; keyboard focus stays visible (only the ring after a mouse click is hidden). */
html { -webkit-tap-highlight-color: transparent; }
body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
input, textarea, select, [contenteditable="true"] { -webkit-user-select: text; user-select: text; }
img, svg, picture, a { -webkit-user-drag: none; }
:focus:not(:focus-visible) { outline: none; }

/* ---------- The dock's own box never blocks the page under it: only the button and the open menu take clicks ---------- */
.dock { pointer-events: none; }
.dock__btn, .dock.is-open .dock__menu a { pointer-events: auto; }
.dock.is-ready:not(.is-on) .dock__btn, .ticket-open .dock .dock__btn { pointer-events: none; }

/* =====================================================================
   Page transitions: no hard cut between pages.
   Browsers with cross-document view transitions: the page glides out and the next one glides in,
   while the header holds still. Others: a soft fade out (ui.js) and in (html.no-vt).
   ===================================================================== */
@view-transition { navigation: auto; }
.bar--top { view-transition-name: kr-bar; }
::view-transition-old(root) { animation: kr-vt-out .42s cubic-bezier(.65, 0, .25, 1) both; }
::view-transition-new(root) { animation: kr-vt-in .75s cubic-bezier(.22, 1, .36, 1) .1s both; }
::view-transition-group(kr-bar) { animation-duration: .45s; }
@keyframes kr-vt-out { to { opacity: 0; transform: translateY(-14px); } }
@keyframes kr-vt-in { from { opacity: 0; transform: translateY(24px); } }
html.no-vt body { animation: kr-page-in .6s cubic-bezier(.22, 1, .36, 1) both; }   /* opacity only: a transform would unpin fixed elements */
html.is-leaving body { opacity: 0; transition: opacity .38s cubic-bezier(.65, 0, .25, 1); }
@keyframes kr-page-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  html.no-vt body { animation: none; }
}

/* ---------- Line breaks: whole words only, never inside a word (user's rule) ---------- */
h1, h2, h3, h4, .name, .sec__title, .phead__title, .track__name, .oc__l, .boot__pct, .player__title, .connect__v {
  -webkit-hyphens: manual; hyphens: manual; overflow-wrap: normal; word-break: normal;
}
h1, h2, h3, .sec__title, .phead__title { text-wrap: balance; }   /* even lines instead of a lone last word */
[data-name] .word, [data-split] .word { display: inline-block; white-space: nowrap; }   /* the animated titles keep each word whole */

/* Brand: on phones the name is hidden; when it flies out of the KR mark it floats beside it, over the bar */
.brand { position: relative; }
.brand__name .char { will-change: transform, opacity; }
.brand__mark { overflow: visible; }                                     /* K and R travel out of the box onto the name */
.js:not(.motion-off) .is-site .bar--top .brand__name { opacity: 0; }   /* full site: main.js shows it letter by letter */
@media (max-width: 560px) {
  .brand.is-out .brand__name {
    display: block; position: absolute; z-index: 3; left: 100%; top: 50%; transform: translateY(-50%);
    margin-left: 10px; padding: 8px 12px 8px 0; background: var(--off-white); white-space: nowrap;
  }
}

/* Photo reveal curtain (main.js): a page-coloured cover that scales away, GPU-only */
.curtain { position: absolute; inset: 0; z-index: 2; display: block; background: var(--off-white); pointer-events: none; will-change: transform; }
