/* Peter Valalik — version 2
   Concept: an engineering console for banking software. A finance-terminal palette
   (amber data on graphite, glacier blue for code), expanded grotesk headlines,
   monospaced labels, SAP transaction codes as section addresses.
   Deliberately dark-only.
   Type: Archivo (display + text, width axis) · JetBrains Mono (code, labels, data). */

/* ---------- tokens ---------- */
:root {
  --void: #07090C;
  --graphite: #0D1015;
  --slate: #13181F;
  --slate-2: #1A2029;
  --rule: rgba(236, 233, 226, .09);
  --rule-2: rgba(236, 233, 226, .17);
  --paper: #ECE9E2;
  --paper-2: #C3C7CD;
  --fog: #8B929B;
  --amber: #FFB547;
  --amber-dim: rgba(255, 181, 71, .13);
  --amber-line: rgba(255, 181, 71, .42);
  --glacier: #79C7E8;
  --glacier-dim: rgba(121, 199, 232, .12);
  --ok: #7FD99A;
  --err: #FF8A7A;
  --violet: #B9A4F2;

  --font-display: 'Archivo', 'Arial Narrow', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', 'SF Mono', Consolas, monospace;

  --fs-xs: .72rem;
  --fs-sm: .875rem;
  --fs-base: 1.03rem;
  --fs-lead: clamp(1.06rem, 1rem + .35vw, 1.24rem);
  --fs-h3: clamp(1.15rem, 1.05rem + .5vw, 1.4rem);
  --fs-h2: clamp(1.9rem, 1.3rem + 2.6vw, 3.4rem);

  --container: 1240px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --header-h: 60px;
  --radius: 4px;
  --ease: cubic-bezier(.2, .7, .15, 1);

  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1.25rem);
  background: var(--void);
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(rgba(236, 233, 226, .055) 1px, transparent 1px) 0 0 / 26px 26px,
    var(--void);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: var(--fs-base);
  font-stretch: 100%;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

h1, h2, h3, h4 { margin: 0; font-weight: 700; text-wrap: balance; }
p, ul, ol, dl, dd, figure, pre { margin: 0; }
p { text-wrap: pretty; }
img, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: var(--amber); color: var(--void); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 2px; }
[tabindex="-1"]:focus { outline: none; }

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

.icon {
  width: 16px; height: 16px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.mono { font-family: var(--font-mono); }

kbd {
  display: inline-grid; place-items: center;
  min-width: 1.6em;
  padding: .05em .4em;
  border: 1px solid var(--rule-2);
  border-bottom-width: 2px;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: .72em;
  line-height: 1.5;
  color: var(--paper-2);
}

.skip-link {
  position: fixed; left: 1rem; top: -4rem; z-index: 100;
  padding: .55rem 1rem;
  background: var(--amber); color: var(--void);
  font-weight: 600; text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: calc(env(safe-area-inset-top, 0px) + .75rem); }

/* section address: a transaction code and a name */
.addr {
  display: inline-flex; align-items: center; gap: .65rem;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fog);
}
.addr__code {
  padding: .2rem .45rem;
  border: 1px solid var(--amber-line);
  border-radius: 2px;
  color: var(--amber);
  letter-spacing: .08em;
}

/* ---------- buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .78rem 1.15rem;
  border: 1px solid var(--rule-2);
  border-radius: var(--radius);
  background: transparent;
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.btn:hover { border-color: var(--paper-2); }
.btn:active { transform: translateY(1px); }
.btn .icon { transition: transform .3s var(--ease); }
.btn:hover .icon--go { transform: translateX(3px); }
.btn--primary { background: var(--amber); border-color: var(--amber); color: var(--void); }
.btn--primary:hover { background: #FFC56E; border-color: #FFC56E; }
.btn kbd { color: inherit; border-color: currentColor; opacity: .7; }

/* ---------- scroll progress ---------- */
.progress { position: fixed; inset: 0 0 auto 0; z-index: 70; height: 2px; pointer-events: none; }
.progress__bar {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--glacier), var(--amber));
  transform-origin: 0 50%;
  transform: scaleX(var(--p, 0));
}

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
}
/* frosted background on a pseudo-element so it never traps fixed descendants */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(7, 9, 12, .72);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--rule);
  opacity: 0;
  transition: opacity .3s;
}
.site-header.is-scrolled::before { opacity: 1; }
.site-header__inner { height: var(--header-h); display: flex; align-items: center; gap: 1.25rem; }

.brand { display: inline-flex; align-items: center; gap: .65rem; margin-right: auto; text-decoration: none; }
.brand__mark { width: 30px; height: 30px; color: var(--amber); }
.brand__text {
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.brand__text span { color: var(--fog); }

.site-nav ol { display: flex; gap: .1rem; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: flex; align-items: baseline; gap: .4rem;
  padding: .45rem .6rem;
  border-radius: 3px;
  font-size: .86rem;
  color: var(--paper-2);
  text-decoration: none;
  transition: color .2s, background-color .2s;
}
.site-nav a small { font-family: var(--font-mono); font-size: .64rem; color: var(--fog); letter-spacing: .06em; transition: color .2s; }
.site-nav a:hover { color: var(--paper); background: var(--slate); }
.site-nav a[aria-current] { color: var(--paper); }
.site-nav a[aria-current] small { color: var(--amber); }

.header-tools { display: flex; align-items: center; gap: .5rem; }

.cmd-btn {
  display: inline-flex; align-items: center; gap: .55rem;
  height: 34px;
  padding: 0 .6rem 0 .7rem;
  border: 1px solid var(--rule-2);
  border-radius: var(--radius);
  background: var(--graphite);
  color: var(--fog);
  font-family: var(--font-mono);
  font-size: .74rem;
  cursor: pointer;
  transition: border-color .2s, color .2s;
}
.cmd-btn:hover { border-color: var(--amber-line); color: var(--paper); }
.cmd-btn__prompt { color: var(--amber); }

.lang-switch {
  --i: 0;
  position: relative;
  display: grid; grid-template-columns: repeat(3, 2.3rem);
  height: 34px;
  padding: 3px;
  border: 1px solid var(--rule-2);
  border-radius: var(--radius);
  background: var(--graphite);
}
.lang-switch__pill {
  position: absolute; top: 3px; bottom: 3px; left: 3px;
  width: calc((100% - 6px) / 3);
  border-radius: 2px;
  background: var(--slate-2);
  box-shadow: inset 0 -2px 0 var(--amber);
  transform: translateX(calc(var(--i) * 100%));
  transition: transform .45s var(--ease);
}
.lang-switch__btn {
  position: relative; z-index: 1;
  appearance: none; border: 0; background: none;
  font-family: var(--font-mono); font-size: .72rem; font-weight: 500; letter-spacing: .06em;
  color: var(--fog);
  cursor: pointer;
  transition: color .2s;
}
.lang-switch__btn:hover, .lang-switch__btn[aria-pressed="true"] { color: var(--paper); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + clamp(2rem, 6vw, 4.5rem));
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  overflow: hidden;
}
.hero__field {
  position: absolute; inset: 0; z-index: -1;
  width: 100%; height: 100%;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
  opacity: .9;
}
.hero__field-fallback {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse 60% 50% at 72% 30%, rgba(255, 181, 71, .1), transparent 70%),
    radial-gradient(ellipse 50% 40% at 20% 10%, rgba(121, 199, 232, .08), transparent 70%);
}

.bootlog {
  display: grid; gap: .1rem;
  font-family: var(--font-mono);
  font-size: .76rem;
  line-height: 1.6;
  color: var(--fog);
}
.bootlog .p { color: var(--amber); }
.bootlog .v { color: var(--paper-2); }
.bootlog .ok { color: var(--ok); }
.bootlog .caret { display: inline-block; width: .55em; height: 1.05em; margin-left: .15em; background: var(--amber); vertical-align: text-bottom; animation: blink 1.1s steps(1) infinite; }

.hero__name {
  margin-top: clamp(1.25rem, 3vw, 2rem);
  font-size: clamp(3rem, 8.6vw, 8.1rem);
  font-weight: 800;
  font-stretch: 125%;
  line-height: .9;
  letter-spacing: -.02em;
  text-transform: uppercase;
  white-space: nowrap;
}
.hero__name span { display: inline-block; }
.hero__name .accent { color: transparent; -webkit-text-stroke: 1.5px var(--amber); }

.ruler {
  position: relative;
  height: 34px;
  margin-top: clamp(1.25rem, 3vw, 2rem);
  border-top: 1px solid var(--rule-2);
  font-family: var(--font-mono);
  font-size: .66rem;
  color: var(--fog);
}
.ruler__tick { position: absolute; top: 0; width: 1px; height: 6px; background: var(--rule-2); }
.ruler__tick--major { height: 11px; background: var(--fog); }
.ruler__label { position: absolute; top: 13px; transform: translateX(-50%); letter-spacing: .04em; }
.ruler__span {
  position: absolute; top: -2px; left: 0; height: 3px;
  background: linear-gradient(90deg, var(--glacier), var(--amber));
  transform-origin: left;
  animation: grow 1.6s var(--ease) .5s both;
}
.ruler__now {
  position: absolute; top: -6px;
  width: 9px; height: 9px; margin-left: -4px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 4px var(--amber-dim), 0 0 18px var(--amber);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
  margin-top: clamp(1.5rem, 3.5vw, 2.5rem);
}
.hero__text { display: grid; gap: 1.4rem; justify-items: start; }
.hero__role {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .9rem;
  font-size: clamp(1.35rem, 1.1rem + 1.1vw, 2rem);
  font-weight: 700;
  font-stretch: 112%;
  line-height: 1.15;
}
.hero__role span { color: var(--amber); }
.hero__domain { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .04em; color: var(--glacier); }
.hero__lead { max-width: 37rem; font-size: var(--fs-lead); color: var(--paper-2); }
.hero__cta { display: flex; flex-wrap: wrap; gap: .6rem; }
.hero__meta { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; list-style: none; padding: 0; font-family: var(--font-mono); font-size: .74rem; color: var(--fog); }
.hero__meta li, .hero__meta a { display: inline-flex; align-items: center; gap: .45rem; }
.hero__meta a { text-decoration: none; transition: color .2s; }
.hero__meta a:hover { color: var(--amber); }
.hero__meta .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.hero__meta time { color: var(--paper-2); }

/* portrait scan card */
.scan {
  position: relative;
  border: 1px solid var(--rule-2);
  background: var(--graphite);
}
.scan__foot > span:last-child { white-space: nowrap; }
.scan__head, .scan__foot {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: .55rem .75rem;
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .06em;
  color: var(--fog);
}
.scan__head { border-bottom: 1px solid var(--rule); }
.scan__foot { border-top: 1px solid var(--rule); }
.scan__view { position: relative; aspect-ratio: 1; max-width: 100%; overflow: hidden; background: #050608; cursor: crosshair; }
.scan__view canvas, .scan__view img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scan__view img { filter: grayscale(1) contrast(1.05); opacity: 0; transition: opacity .5s var(--ease); }
.scan.is-photo .scan__view img { opacity: 1; }
.scan__line {
  position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--amber), transparent);
  box-shadow: 0 0 14px var(--amber);
  opacity: .7;
  animation: scanline 5.5s linear infinite;
  pointer-events: none;
}
.scan.is-photo .scan__line { opacity: 0; }
.scan__toggle { display: inline-flex; border: 1px solid var(--rule-2); border-radius: 2px; }
.scan__toggle button {
  appearance: none; border: 0; background: none;
  padding: .2rem .5rem;
  font-family: var(--font-mono); font-size: .64rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--fog); cursor: pointer;
}
.scan__toggle button[aria-pressed="true"] { background: var(--slate-2); color: var(--amber); }

/* corner brackets */
.bracket { --b: var(--amber); }
.bracket::before, .bracket::after {
  content: ""; position: absolute; width: 12px; height: 12px; pointer-events: none;
}
.bracket::before { top: -1px; left: -1px; border-top: 2px solid var(--b); border-left: 2px solid var(--b); }
.bracket::after { bottom: -1px; right: -1px; border-bottom: 2px solid var(--b); border-right: 2px solid var(--b); }

/* KPI tiles */
.kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border: 1px solid var(--rule);
  background: rgba(13, 16, 21, .72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.kpi { display: grid; align-content: start; gap: .35rem; padding: 1.15rem 1.25rem 1.25rem; margin: 0; }
.kpi + .kpi { border-left: 1px solid var(--rule); }
.kpi dt { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--fog); }
.kpi dd { margin: 0; }
.kpi__value {
  display: flex; align-items: baseline; gap: .1em;
  font-size: clamp(2.2rem, 1.7rem + 2vw, 3.3rem);
  font-weight: 800;
  font-stretch: 118%;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.kpi__value small { font-size: .55em; color: var(--amber); }
.kpi__note { font-family: var(--font-mono); font-size: .7rem; color: var(--fog); }
.kpi__viz { display: flex; gap: 2px; height: 6px; margin-top: .55rem; }
.kpi__viz i { display: block; height: 100%; background: var(--slate-2); }
.kpi__viz i.on { background: var(--amber); }
.kpi__viz i.c0 { background: var(--fog); }
.kpi__viz i.c1 { background: var(--glacier); }
.kpi__viz i.c2 { background: #5B8FB0; }
.kpi__viz i.c3 { background: var(--amber); }

/* ---------- sections ---------- */
.section { position: relative; padding-block: clamp(4.5rem, 9vw, 7.5rem); border-top: 1px solid var(--rule); }
.section-head { display: grid; gap: 1rem; max-width: 50rem; margin-bottom: clamp(2.25rem, 4.5vw, 3.5rem); }
.section-title {
  font-size: var(--fs-h2);
  font-weight: 800;
  font-stretch: 115%;
  line-height: 1.02;
  letter-spacing: -.015em;
}
.section-title em { font-style: normal; color: var(--amber); }
.section-intro { max-width: 44rem; font-size: var(--fs-lead); color: var(--paper-2); }

.panel {
  position: relative;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--graphite);
}

/* profile */
.profile__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.profile__text { display: grid; gap: 1.2rem; }
.profile__text .section-title { margin-bottom: .4rem; }
.profile__text p { max-width: 40rem; color: var(--paper-2); }

.record__head {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .7rem 1rem;
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .06em; color: var(--fog);
}
.record__head b { color: var(--amber); font-weight: 500; }
.record dl { display: grid; }
.record__row {
  display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 1rem;
  padding: .8rem 1rem;
  border-bottom: 1px solid var(--rule);
}
.record__row:last-child { border-bottom: 0; }
.record dt { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--fog); padding-top: .15rem; }
.record dd { margin: 0; font-size: .95rem; }

/* live code */
.ide {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  overflow: hidden;
}
.ide__bar {
  grid-column: 1 / -1;
  display: flex; align-items: stretch; gap: 0;
  border-bottom: 1px solid var(--rule);
  background: var(--void);
  overflow-x: auto;
}
.ide__dots { display: flex; align-items: center; gap: 6px; padding: 0 .9rem; border-right: 1px solid var(--rule); }
.ide__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--slate-2); }
.ide__tab {
  appearance: none; border: 0; border-right: 1px solid var(--rule); background: none;
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .7rem 1rem;
  font-family: var(--font-mono); font-size: .74rem;
  color: var(--fog);
  cursor: pointer;
  white-space: nowrap;
}
.ide__tab[aria-selected="true"] { background: var(--graphite); color: var(--paper); box-shadow: inset 0 2px 0 var(--amber); }
.ide__tab small { color: var(--fog); }

.editor {
  position: relative;
  min-width: 0;
  border-right: 1px solid var(--rule);
}
.editor__scroll { overflow: auto; }
.code {
  display: grid;
  min-width: max-content;
  padding: 1rem 0 1.25rem;
  font-family: var(--font-mono);
  font-size: .8rem;
  line-height: 1.75;
  counter-reset: ln;
  tab-size: 2;
  font-variant-ligatures: none;
}
.code__line { display: grid; grid-template-columns: 3.4rem auto; padding-right: 1.5rem; white-space: pre; }
.code__line::before {
  counter-increment: ln;
  content: counter(ln);
  padding-right: 1.1rem;
  text-align: right;
  color: #3F4752;
  user-select: none;
}
.code__line.is-active { background: rgba(255, 181, 71, .05); }
.code.is-typing .code__line { opacity: 0; }
.code.is-typed .code__line { animation: line-in .35s var(--ease) both; animation-delay: calc(var(--n) * 28ms); }
.tok-kw { color: var(--glacier); }
.tok-str { color: var(--amber); }
.tok-num { color: var(--violet); }
.tok-cmt { color: #5E6773; font-style: italic; }
.tok-fn { color: var(--ok); }
.tok-op { color: var(--paper-2); }
.editor__status {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem;
  padding: .5rem 1rem;
  border-top: 1px solid var(--rule);
  font-family: var(--font-mono); font-size: .68rem; color: var(--fog);
}
.editor__status .ok { color: var(--ok); }

.runner { display: grid; align-content: start; min-width: 0; }
.runner__block { padding: 1.1rem 1.15rem; }
.runner__block + .runner__block { border-top: 1px solid var(--rule); }
.runner__label { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--fog); margin-bottom: .75rem; }
.runner__field { display: grid; gap: .5rem; }
.runner__field label { font-size: .85rem; color: var(--paper-2); }
.runner__input {
  display: flex; align-items: center;
  border: 1px solid var(--rule-2);
  border-radius: 3px;
  background: var(--void);
}
.runner__input:focus-within { border-color: var(--amber); }
.runner__input input {
  flex: 1; min-width: 0;
  padding: .6rem .75rem;
  border: 0; outline: 0; background: transparent;
  font-family: var(--font-mono); font-size: .95rem;
  font-variant-numeric: tabular-nums;
}
.runner__input span { padding: 0 .75rem; font-family: var(--font-mono); font-size: .75rem; color: var(--fog); }
.runner input[type="range"] { width: 100%; accent-color: var(--amber); }
.runner__exec { margin-top: .9rem; width: 100%; justify-content: space-between; }

.console {
  display: grid; gap: .25rem;
  min-height: 11.5rem;
  font-family: var(--font-mono);
  font-size: .78rem;
  font-variant-numeric: tabular-nums;
  font-variant-ligatures: none;
}
.console__line { display: flex; justify-content: space-between; gap: 1rem; animation: line-in .3s var(--ease) both; animation-delay: calc(var(--n, 0) * 70ms); }
.console__line span:last-child { color: var(--paper); text-align: right; white-space: nowrap; }
.console__line.is-cmd { color: var(--amber); justify-content: flex-start; }
.console__line.is-total { margin-top: .3rem; padding-top: .45rem; border-top: 1px dashed var(--rule-2); }
.console__line.is-total span:last-child { color: var(--ok); font-weight: 700; }
.console__line.is-muted { color: var(--fog); }
.console__line.is-muted span:last-child { color: var(--fog); }
.split { display: flex; height: 8px; margin-top: .8rem; border-radius: 1px; overflow: hidden; background: var(--slate-2); }
.split i { display: block; height: 100%; transition: width .6s var(--ease); }
.split .s-net { background: var(--ok); }
.split .s-kap { background: var(--amber); }
.split .s-sol { background: var(--glacier); }
.runner__note { font-size: .74rem; color: var(--fog); line-height: 1.5; }

.lenout { display: grid; gap: 1rem; }
.lenout .lenout__num { font-size: 4.2rem; font-weight: 800; font-stretch: 120%; line-height: 1; color: var(--amber); }
.lenout .lenout__num small { font-size: .9rem; font-weight: 500; font-stretch: 100%; color: var(--fog); margin-left: .35rem; font-family: var(--font-mono); }
.tokens { display: flex; flex-wrap: wrap; gap: .35rem; }
.token { display: grid; gap: .15rem; padding: .4rem .55rem; border: 1px solid var(--rule-2); border-radius: 3px; background: var(--void); }
.token b { font-family: var(--font-mono); font-size: .8rem; font-weight: 500; color: var(--paper); }
.token small { font-family: var(--font-mono); font-size: .64rem; letter-spacing: .05em; color: var(--glacier); text-transform: uppercase; }
.token i { font-style: normal; font-family: var(--font-mono); font-size: .6rem; color: var(--fog); }
.lenout p { font-size: .9rem; color: var(--paper-2); }
.lenout .runner__note { font-family: var(--font-mono); }

/* expertise */
.cap-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.cap {
  position: relative;
  display: grid; grid-template-rows: auto auto 1fr auto; gap: .8rem;
  padding: 1.5rem 1.3rem;
  background: var(--graphite);
  isolation: isolate;
  overflow: hidden;
}
.cap::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), var(--amber-dim), transparent 65%);
  opacity: 0; transition: opacity .35s;
}
.cap:hover::before { opacity: 1; }
.cap__head { display: flex; justify-content: space-between; align-items: center; }
.cap__icon { width: 26px; height: 26px; color: var(--amber); stroke-width: 1.3; }
.cap__idx { font-family: var(--font-mono); font-size: .66rem; color: var(--fog); }
.cap__title { font-size: var(--fs-h3); font-weight: 700; font-stretch: 110%; line-height: 1.2; }
.cap p { font-size: .92rem; color: var(--paper-2); }
.tags { display: flex; flex-wrap: wrap; gap: .3rem; list-style: none; padding: 0; align-self: end; }
.tags li { padding: .18rem .45rem; border: 1px solid var(--rule-2); border-radius: 2px; font-family: var(--font-mono); font-size: .66rem; color: var(--glacier); }

.expertise__more { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; margin-top: 1rem; }
.sub { padding: 1.4rem 1.3rem; }
.sub__title { font-size: 1.15rem; font-weight: 700; font-stretch: 110%; }
.sub__caption { margin-top: .25rem; font-size: .85rem; color: var(--fog); }

.tcodes { width: 100%; margin-top: 1.1rem; border-collapse: collapse; font-size: .88rem; }
.tcodes th { text-align: left; padding: 0 0 .45rem; font-family: var(--font-mono); font-size: .64rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--fog); border-bottom: 1px solid var(--rule-2); }
.tcodes td { padding: .45rem 0; border-bottom: 1px solid var(--rule); }
.tcodes td:first-child { width: 8.5rem; font-family: var(--font-mono); font-size: .78rem; color: var(--amber); }
.tcodes tr:last-child td { border-bottom: 0; }

.pipeline { position: relative; display: grid; gap: .55rem; margin-top: 1.2rem; list-style: none; padding: 0; counter-reset: step; }
.pipeline::before { content: ""; position: absolute; left: 15px; top: 16px; bottom: 16px; width: 1px; background: var(--rule-2); }
.pipeline::after {
  content: ""; position: absolute; left: 12px; top: 16px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--amber); box-shadow: 0 0 12px var(--amber);
  animation: packet 5s linear infinite;
}
.pipeline li { position: relative; display: grid; grid-template-columns: 31px minmax(0, 1fr); gap: .9rem; align-items: center; }
.pipeline .n {
  position: relative; z-index: 1;
  display: grid; place-items: center;
  width: 31px; height: 31px;
  border: 1px solid var(--rule-2); border-radius: 3px;
  background: var(--void);
  font-family: var(--font-mono); font-size: .72rem; color: var(--amber);
}
.pipeline .l { font-size: .95rem; }
.pipeline .s { display: block; font-family: var(--font-mono); font-size: .64rem; color: var(--fog); letter-spacing: .05em; }

/* career */
.gantt { padding: 1rem 1rem .5rem; }
.gantt__scroll { overflow-x: auto; }
.gantt svg { min-width: 760px; width: 100%; height: auto; overflow: visible; }
.gantt text { font-family: var(--font-mono); }
.g-axis { fill: var(--fog); font-size: 10px; }
.g-grid { stroke: var(--rule); stroke-width: 1; }
.g-grid--major { stroke: var(--rule-2); }
.g-company { fill: var(--paper); font-size: 11px; font-weight: 600; }
.g-bracket { stroke: var(--rule-2); fill: none; }
.g-bar { cursor: pointer; transition: opacity .2s, filter .2s; transform-box: fill-box; transform-origin: left; animation: grow 1.1s var(--ease) both; animation-delay: calc(var(--n) * 90ms + 200ms); }
.g-bar:hover, .g-bar:focus-visible { filter: brightness(1.25); outline: none; }
.g-bar rect { rx: 2; }
.g-bar text { fill: var(--void); font-size: 10px; font-weight: 600; pointer-events: none; }
.g-bar.c-tsys rect { fill: var(--fog); }
.g-bar.c-ibs rect { fill: var(--glacier); }
.g-bar.c-ibs2 rect { fill: #5B8FB0; }
.g-bar.c-allianz rect { fill: #9BB7C9; }
.g-bar.c-fioneer rect { fill: var(--amber); }
.g-bar.c-ibs2 text { fill: var(--paper); }
.g-today line { stroke: var(--amber); stroke-dasharray: 3 3; }
.g-today text { fill: var(--amber); font-size: 10px; }
.gantt__caption { margin-top: .6rem; font-family: var(--font-mono); font-size: .7rem; color: var(--fog); }
.gantt__tip {
  position: fixed; z-index: 80; pointer-events: none;
  max-width: 18rem;
  padding: .6rem .75rem;
  border: 1px solid var(--amber-line);
  border-radius: 3px;
  background: rgba(13, 16, 21, .96);
  font-size: .82rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .5);
}
.gantt__tip b { display: block; font-weight: 700; }
.gantt__tip span { display: block; font-family: var(--font-mono); font-size: .7rem; color: var(--fog); }

.log { display: grid; gap: 1rem; margin-top: 1rem; list-style: none; padding: 0; }
.log__item { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 1.5rem; padding: 1.4rem 1.3rem; scroll-margin-top: calc(var(--header-h) + 1rem); }
.log__item:target, .log__item.is-flash { border-color: var(--amber-line); }
.log__when { font-family: var(--font-mono); font-size: .74rem; color: var(--fog); }
.log__when b { display: block; font-size: 1.5rem; font-family: var(--font-display); font-weight: 800; font-stretch: 118%; color: var(--paper); line-height: 1.1; }
.log__when .live { display: inline-flex; align-items: center; gap: .35rem; margin-top: .35rem; color: var(--ok); }
.log__when .live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); animation: blink 2s ease-in-out infinite; }
.log__body { display: grid; gap: .45rem; min-width: 0; }
.log__company { font-size: var(--fs-h3); font-weight: 800; font-stretch: 112%; line-height: 1.2; }
.log__role { font-weight: 600; }
.log__meta { font-family: var(--font-mono); font-size: .72rem; color: var(--fog); font-variant-numeric: tabular-nums; }
.log__text { color: var(--paper-2); font-size: .95rem; }
.log__list { display: grid; gap: .35rem; padding-left: 1.1rem; color: var(--paper-2); font-size: .95rem; overflow-wrap: break-word; }
.log__list li::marker { color: var(--amber); }
.log__roles { display: grid; gap: 1.1rem; margin-top: .6rem; padding-left: 1.1rem; border-left: 1px solid var(--rule-2); list-style: none; }
.log__sub { display: grid; gap: .2rem; scroll-margin-top: calc(var(--header-h) + 1rem); }
.log__sub.is-flash .log__role { color: var(--amber); }
.log__link { justify-self: start; display: inline-flex; align-items: center; gap: .35rem; font-family: var(--font-mono); font-size: .74rem; color: var(--amber); text-decoration: none; border-bottom: 1px solid currentColor; }

/* projects */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.project { display: grid; align-content: start; gap: .65rem; padding: 1.4rem 1.3rem; transition: border-color .25s, transform .3s var(--ease); }
.project:hover { border-color: var(--amber-line); transform: translateY(-2px); }
.project--wide { grid-column: span 2; grid-row: span 2; }
.project__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .7rem; font-family: var(--font-mono); font-size: .68rem; color: var(--fog); letter-spacing: .04em; }
.project__code { padding: .12rem .4rem; border: 1px solid var(--rule-2); border-radius: 2px; color: var(--paper); }
.project__tag { margin-left: auto; color: var(--amber); }
.project__name { font-size: var(--fs-h3); font-weight: 800; font-stretch: 112%; line-height: 1.15; }
.project--wide .project__name { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.5rem); }
.project__desc { font-size: .92rem; color: var(--paper-2); }
.project__list { display: grid; margin-top: .5rem; list-style: none; padding: 0; }
.project__list li { display: flex; gap: .7rem; padding: .65rem 0; border-top: 1px solid var(--rule); font-family: var(--font-mono); font-size: .8rem; }
.project__list li span { color: var(--fog); }

/* contact */
.contact__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.contact__intro { display: grid; gap: 1.2rem; justify-items: start; }
.contact__title { font-size: clamp(2.2rem, 1.3rem + 3.6vw, 4.4rem); font-weight: 800; font-stretch: 118%; line-height: 1; letter-spacing: -.02em; }
.contact__title em { font-style: normal; color: var(--amber); }
.contact__text { max-width: 30rem; font-size: var(--fs-lead); color: var(--paper-2); }

.composer__head { display: flex; justify-content: space-between; align-items: center; padding: .7rem 1rem; border-bottom: 1px solid var(--rule); font-family: var(--font-mono); font-size: .7rem; letter-spacing: .06em; color: var(--fog); }
.composer__head b { color: var(--amber); font-weight: 500; }
.composer form { display: grid; }
.cf-row { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); align-items: start; border-bottom: 1px solid var(--rule); }
.cf-row > label, .cf-row > .cf-label { padding: .95rem 1rem; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .06em; color: var(--fog); }
.cf-row .cf-static { padding: .85rem 1rem; font-size: .95rem; }
.cf-field { display: grid; min-width: 0; }
.cf-field input, .cf-field textarea {
  width: 100%;
  padding: .85rem 1rem;
  border: 0; outline: 0;
  background: transparent;
  font-size: .98rem;
  line-height: 1.5;
}
.cf-field textarea { min-height: 10rem; resize: vertical; }
.cf-row:focus-within { background: rgba(255, 181, 71, .035); box-shadow: inset 2px 0 0 var(--amber); }
.cf-field [aria-invalid="true"] { box-shadow: inset 0 -1px 0 var(--err); }
.field__error { padding: 0 1rem .6rem; font-size: .8rem; color: var(--err); }
.field__error:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.composer__foot { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.2rem; padding: 1rem; }
.composer button[disabled] { opacity: .6; cursor: progress; }
.cf-status { font-family: var(--font-mono); font-size: .76rem; color: var(--fog); }
.cf-status.is-success { color: var(--ok); }
.cf-status.is-error { color: var(--err); }
.cf-note { padding: 0 1rem 1rem; font-size: .78rem; color: var(--fog); }

/* footer: a status bar */
.site-footer { border-top: 1px solid var(--rule); background: var(--graphite); }
.site-footer__inner {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem 2rem;
  padding-block: .9rem calc(.9rem + env(safe-area-inset-bottom, 0px));
  font-family: var(--font-mono); font-size: .7rem; color: var(--fog);
}
.site-footer a { color: var(--paper-2); text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; }
.site-footer a:hover { color: var(--amber); }
.site-footer .ok { color: var(--ok); }

/* command palette */
.palette {
  width: min(36rem, calc(100vw - 2rem));
  max-height: min(32rem, calc(100vh - 6rem));
  margin: 12vh auto auto;
  padding: 0;
  border: 1px solid var(--amber-line);
  border-radius: 6px;
  background: var(--graphite);
  color: var(--paper);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .65);
  overflow: hidden;
}
.palette[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; animation: pop .22s var(--ease); }
.palette::backdrop { background: rgba(4, 5, 7, .6); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.palette__input { display: flex; align-items: center; gap: .6rem; padding: .9rem 1rem; border-bottom: 1px solid var(--rule); }
.palette__input span { font-family: var(--font-mono); color: var(--amber); font-size: .9rem; }
.palette__input input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-family: var(--font-mono); font-size: .95rem; }
.palette__list { overflow-y: auto; padding: .4rem; list-style: none; margin: 0; }
.palette__group { padding: .55rem .6rem .25rem; font-family: var(--font-mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--fog); }
.palette__item {
  display: flex; align-items: center; gap: .8rem;
  padding: .55rem .6rem;
  border-radius: 3px;
  cursor: pointer;
}
.palette__item code { min-width: 3.6rem; font-family: var(--font-mono); font-size: .74rem; color: var(--amber); }
.palette__item span { flex: 1; }
.palette__item small { font-family: var(--font-mono); font-size: .66rem; color: var(--fog); }
.palette__item[aria-selected="true"] { background: var(--slate-2); box-shadow: inset 2px 0 0 var(--amber); }
.palette__empty { padding: 1rem .6rem; color: var(--fog); font-size: .9rem; }
.palette__hint { padding: .55rem 1rem; border-top: 1px solid var(--rule); font-family: var(--font-mono); font-size: .66rem; color: var(--fog); }

/* ---------- motion ---------- */
@keyframes blink { 50% { opacity: 0; } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes scanline { from { top: -2%; } to { top: 102%; } }
@keyframes line-in { from { opacity: 0; translate: -6px 0; } to { opacity: 1; translate: 0 0; } }
@keyframes packet { 0% { top: 16px; opacity: 0; } 5% { opacity: 1; } 88% { top: calc(100% - 23px); opacity: 1; } 95%, 100% { top: calc(100% - 23px); opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(-8px) scale(.98); } }
@keyframes reveal { from { opacity: 0; translate: 0 1.75rem; } to { opacity: 1; translate: 0 0; } }
@keyframes rise { from { opacity: 0; translate: 0 1rem; } to { opacity: 1; translate: 0 0; } }

main { transition: opacity .18s ease; }
.is-switching main { opacity: .15; }
.i18n-pending main, .i18n-pending .site-header { opacity: 0; }

.js .hero-anim { animation: rise .9s var(--ease) both; animation-delay: calc(var(--d, 0) * 90ms + 100ms); animation-play-state: paused; }
.js.is-ready .hero-anim { animation-play-state: running; }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 220px; }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .scan__line, .pipeline::after { display: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .site-nav { display: none; }
}
@media (max-width: 1020px) {
  .cap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ide { grid-template-columns: minmax(0, 1fr); }
  .editor { border-right: 0; border-bottom: 1px solid var(--rule); }
  .editor__scroll { max-height: 26rem; }
}
@media (max-width: 860px) {
  .hero__grid, .profile__grid, .contact__grid, .expertise__more { grid-template-columns: minmax(0, 1fr); }
  .hero__visual { max-width: 420px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi:nth-child(3) { border-left: 0; }
  .kpi:nth-child(n + 3) { border-top: 1px solid var(--rule); }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project--wide { grid-column: 1 / -1; grid-row: auto; }
  .log__item { grid-template-columns: minmax(0, 1fr); gap: .7rem; }
}
@media (max-width: 640px) {
  .hero__name { white-space: normal; font-size: clamp(2.6rem, 15vw, 4.4rem); }
  .hero__name span { display: block; }
  .cap-grid, .bento { grid-template-columns: minmax(0, 1fr); }
  .record__row, .cf-row { grid-template-columns: minmax(0, 1fr); gap: .2rem; }
  .cf-row > label, .cf-row > .cf-label { padding-bottom: 0; }
  .cmd-btn__label, .brand__text { display: none; }
  .code { font-size: .74rem; }
}
@media (max-width: 400px) {
  .lang-switch { grid-template-columns: repeat(3, 2.1rem); }
  .kpi { padding: 1rem .9rem; }
}

/* ---------- version switch: "Click me" ---------- */
/* Sits on the top-left corner of the portrait card, where the eye goes first. */
.hero__visual { position: relative; }

.vswitch {
  position: absolute; z-index: 5;
  top: -18px; left: -12px;
  translate: var(--tx, 0px) var(--ty, 0px);
  transition: translate .35s var(--ease);
}

.vswitch__btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .85rem .95rem;
  border: 1px solid var(--amber);
  border-radius: var(--radius);
  background: rgba(13, 16, 21, .94);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .6);
  animation: vs-breathe 2.4s ease-in-out infinite;
  transition: color .25s, scale .35s cubic-bezier(.34, 1.56, .64, 1);
}
.vswitch__btn::before { /* idle: a scanning beam */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 181, 71, .32) 50%, transparent 70%);
  translate: -110% 0;
  animation: vs-sweep 2.8s ease-in-out infinite;
}
.vswitch__btn::after { /* hover: amber flood */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.vswitch__prompt { color: var(--amber); transition: color .25s; }
.vswitch__label { position: relative; }
.vswitch__cursor { width: .55em; height: 1.05em; background: var(--amber); animation: blink 1s steps(1) infinite; transition: background-color .25s; }
.vswitch__badge {
  padding: .2rem .35rem;
  border: 1px solid currentColor;
  border-radius: 2px;
  font-size: .66rem;
  letter-spacing: .06em;
}
/* corner marks inside the button, drawn in on hover */
.vswitch__corners, .vswitch__corners::before, .vswitch__corners::after { position: absolute; pointer-events: none; }
.vswitch__corners { inset: 0; }
.vswitch__corners::before, .vswitch__corners::after { content: ""; width: 10px; height: 10px; transition: translate .35s var(--ease), opacity .25s; opacity: 0; }
.vswitch__corners::before { top: 3px; left: 3px; border-top: 2px solid var(--void); border-left: 2px solid var(--void); translate: 4px 4px; }
.vswitch__corners::after { bottom: 3px; right: 3px; border-bottom: 2px solid var(--void); border-right: 2px solid var(--void); translate: -4px -4px; }

/* the hint types itself out below the button */
.vswitch__bubble {
  position: absolute; left: 0; top: calc(100% + 10px);
  padding: .55rem .75rem;
  border: 1px solid var(--amber-line);
  border-radius: 3px;
  background: var(--graphite);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: .78rem;
  white-space: nowrap;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .5);
  clip-path: inset(0 100% 0 0);
  transition: clip-path .45s steps(16, end);
  pointer-events: none;
}
.vswitch__bubble .vswitch__prompt { color: var(--amber); }
.vswitch__caret { display: inline-block; width: .5em; height: 1em; margin-left: .2rem; vertical-align: -.15em; background: var(--amber); animation: blink 1s steps(1) infinite; }

/* hover, keyboard focus and the recurring tease: the motivating animation */
.vswitch__btn:hover ~ .vswitch__bubble,
.vswitch__btn:focus-visible ~ .vswitch__bubble,
.vswitch.is-tease .vswitch__bubble { clip-path: inset(0 0 0 0); }

.vswitch__btn:hover, .vswitch__btn:focus-visible {
  color: var(--void);
  scale: 1.08;
  animation: vs-pulse 1s ease-out infinite;
}
.vswitch__btn:hover::after, .vswitch__btn:focus-visible::after { transform: scaleX(1); }
.vswitch__btn:hover::before, .vswitch__btn:focus-visible::before { animation: none; opacity: 0; }
.vswitch__btn:hover .vswitch__prompt, .vswitch__btn:focus-visible .vswitch__prompt { color: var(--void); }
.vswitch__btn:hover .vswitch__cursor, .vswitch__btn:focus-visible .vswitch__cursor { background: var(--void); }
.vswitch__btn:hover .vswitch__label, .vswitch__btn:focus-visible .vswitch__label { animation: vs-glitch .9s steps(1) infinite; }
.vswitch__btn:hover .vswitch__corners::before, .vswitch__btn:focus-visible .vswitch__corners::before,
.vswitch__btn:hover .vswitch__corners::after, .vswitch__btn:focus-visible .vswitch__corners::after { opacity: 1; translate: 0 0; }
.vswitch.is-near .vswitch__btn::before { animation-duration: 1s; }
.vswitch.is-tease .vswitch__btn { animation: vs-pulse 1s ease-out 3; }
.vswitch.is-tease .vswitch__label { animation: vs-glitch .9s steps(1) 2; }

/* click: the screen switches off like an old CRT, then the next version loads */
.vs-crt { position: fixed; inset: 0; z-index: 90; pointer-events: none; visibility: hidden; }
.vs-crt::before, .vs-crt::after { content: ""; position: absolute; left: 0; right: 0; height: 50%; background: #000; transform: scaleY(0); }
.vs-crt::before { top: 0; transform-origin: top; }
.vs-crt::after { bottom: 0; transform-origin: bottom; }
html.vs-leaving .vs-crt {
  visibility: visible;
  background: linear-gradient(transparent calc(50% - 1px), rgba(255, 220, 160, .95) 50%, transparent calc(50% + 1px));
}
html.vs-leaving .vs-crt::before, html.vs-leaving .vs-crt::after { animation: vs-shut .42s cubic-bezier(.7, 0, .84, 0) forwards; }
.vswitch.is-leaving .vswitch__btn { animation: vs-glitch .12s steps(1) infinite; }

@keyframes vs-breathe { 0%, 100% { box-shadow: 0 12px 34px rgba(0, 0, 0, .6), 0 0 0 0 rgba(255, 181, 71, 0); } 50% { box-shadow: 0 12px 34px rgba(0, 0, 0, .6), 0 0 26px 2px rgba(255, 181, 71, .35); } }
@keyframes vs-sweep { 0% { translate: -110% 0; } 55%, 100% { translate: 110% 0; } }
@keyframes vs-pulse { 0% { box-shadow: 0 12px 34px rgba(0, 0, 0, .6), 0 0 0 0 rgba(255, 181, 71, .65); } 100% { box-shadow: 0 12px 34px rgba(0, 0, 0, .6), 0 0 0 16px rgba(255, 181, 71, 0); } }
@keyframes vs-glitch {
  0%, 100% { text-shadow: none; translate: 0 0; }
  10% { text-shadow: -2px 0 var(--glacier), 2px 0 #FF5D73; translate: -1px 0; }
  14% { text-shadow: 2px 0 var(--glacier), -2px 0 #FF5D73; translate: 1px 0; }
  18% { text-shadow: none; translate: 0 0; }
  62% { text-shadow: 1px 0 var(--glacier), -1px 0 #FF5D73; translate: 0 -1px; }
  66% { text-shadow: none; translate: 0 0; }
}
@keyframes vs-shut { to { transform: scaleY(1); } }

@media (prefers-reduced-motion: reduce) {
  .vswitch__btn, .vswitch__btn::before, .vswitch__label, .vswitch__cursor, .vswitch__caret { animation: none !important; }
  .vswitch__bubble { transition: none; }
}
@media (max-width: 860px) {
  .vswitch { left: -6px; }
}
@media (max-width: 420px) {
  .vswitch__btn { font-size: .74rem; padding: .7rem .75rem; }
}
