/* ============================================================
   ConverterManiac — editorial redesign
   Typography & motion inspired by industrial-editorial design;
   category color system carried over 1:1 from the original site.
   ============================================================ */

:root {
  --background: 0 0% 100%;
  --foreground: 0 0% 7%;
  --card: 0 0% 100%;
  --card-foreground: 0 0% 7%;
  --primary: 0 0% 9%;
  --primary-foreground: 0 0% 98%;
  --secondary: 0 0% 96%;
  --muted: 0 0% 96%;
  --muted-foreground: 0 0% 42%;
  --destructive: 0 84% 60%;
  --border: 0 0% 88%;
  --input: 0 0% 88%;

  /* Category palette — identical to production values */
  --length-primary: 210 100% 50%;
  --length-primary-foreground: 0 0% 100%;
  --length-light: 210 100% 96%;
  --length-light-foreground: 210 100% 20%;
  --weight-primary: 30 100% 50%;
  --weight-primary-foreground: 0 0% 100%;
  --weight-light: 30 100% 96%;
  --weight-light-foreground: 30 100% 20%;
  --surface-primary: 140 100% 40%;
  --surface-primary-foreground: 0 0% 100%;
  --surface-light: 140 100% 96%;
  --surface-light-foreground: 140 100% 20%;
  --volume-primary: 270 100% 60%;
  --volume-primary-foreground: 0 0% 100%;
  --volume-light: 270 100% 96%;
  --volume-light-foreground: 270 100% 20%;
  --capacity-primary: 190 100% 45%;
  --capacity-primary-foreground: 0 0% 100%;
  --capacity-light: 190 100% 96%;
  --capacity-light-foreground: 190 100% 20%;
  --bytes-primary: 220 20% 50%;
  --bytes-primary-foreground: 0 0% 100%;
  --bytes-light: 220 20% 96%;
  --bytes-light-foreground: 220 20% 20%;
  --temperature-primary: 10 100% 55%;
  --temperature-primary-foreground: 0 0% 100%;
  --temperature-light: 10 100% 96%;
  --temperature-light-foreground: 10 100% 20%;

  /* speed reads as a neutral: mid grey in light mode, white in dark */
  --speed-primary: 0 0% 45%;
  --speed-primary-foreground: 0 0% 100%;
  --speed-light: 0 0% 96%;
  --speed-light-foreground: 0 0% 18%;
  --pressure-primary: 145 85% 27%;
  --pressure-primary-foreground: 0 0% 100%;
  --pressure-light: 145 60% 95%;
  --pressure-light-foreground: 145 85% 15%;
  --power-primary: 45 100% 45%;
  --power-primary-foreground: 0 0% 10%;
  --power-light: 45 100% 95%;
  --power-light-foreground: 45 100% 18%;
  --number-primary: 175 85% 38%;
  --number-primary-foreground: 0 0% 100%;
  --number-light: 175 70% 95%;
  --number-light-foreground: 175 85% 15%;

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Space Mono", "Courier New", monospace;
  --header-h: 64px;
  --ticker-h: 34px;
  --ease-out: cubic-bezier(.19, 1, .22, 1);
}

.dark {
  --background: 0 0% 0%;
  --foreground: 0 0% 100%;
  --card: 0 0% 4%;
  --card-foreground: 0 0% 100%;
  --primary: 0 0% 98%;
  --primary-foreground: 0 0% 9%;
  --secondary: 0 0% 12%;
  --muted: 0 0% 12%;
  --muted-foreground: 0 0% 65%;
  --destructive: 0 62.8% 30.6%;
  --border: 0 0% 15%;
  --input: 0 0% 15%;

  --length-light: 210 100% 10%;
  --length-light-foreground: 210 100% 90%;
  --weight-light: 30 100% 10%;
  --weight-light-foreground: 30 100% 90%;
  --surface-light: 140 100% 10%;
  --surface-light-foreground: 140 100% 90%;
  --volume-light: 270 100% 10%;
  --volume-light-foreground: 270 100% 90%;
  --capacity-light: 190 100% 10%;
  --capacity-light-foreground: 190 100% 90%;
  --bytes-light: 220 20% 10%;
  --bytes-light-foreground: 220 20% 90%;
  --temperature-light: 10 100% 10%;
  --temperature-light-foreground: 10 100% 90%;
  --speed-primary: 0 0% 100%;
  --speed-light: 0 0% 12%;
  --speed-light-foreground: 0 0% 92%;
  --pressure-light: 145 70% 8%;
  --pressure-light-foreground: 145 60% 88%;
  --power-light: 45 90% 9%;
  --power-light-foreground: 45 100% 88%;
  --number-light: 175 70% 8%;
  --number-light-foreground: 175 70% 88%;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, label { font: inherit; }
::selection { background: hsl(var(--foreground)); color: hsl(var(--background)); }

.wrap { max-width: 90rem; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); }

.mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* ---------- ticker ---------- */
.ticker {
  height: var(--ticker-h);
  border-bottom: 1px solid hsl(var(--border));
  background: hsl(var(--foreground));
  color: hsl(var(--background));
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
  z-index: 60;
}
.ticker__label {
  flex: none;
  padding: 0 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  border-right: 1px solid hsl(var(--background) / .25);
  height: 100%;
  display: flex;
  align-items: center;
  background: hsl(var(--foreground));
  position: relative;
  z-index: 2;
}
.ticker__viewport { flex: 1; overflow: hidden; }
.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 42s linear infinite;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__track span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 0 26px;
  opacity: .85;
}
.ticker__track span::after { content: "▸"; margin-left: 26px; opacity: .4; }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid hsl(var(--border));
  background: hsl(var(--background) / .88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo {
  font-weight: 800;
  font-stretch: 125%;
  font-size: 19px;
  letter-spacing: -.01em;
  text-transform: uppercase;
  white-space: nowrap;
  display: flex;
  align-items: baseline;
}
.logo sup { font-size: 9px; margin-left: 2px; font-weight: 600; }
.main-nav a {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 7px 10px;
  white-space: nowrap;
  color: hsl(var(--muted-foreground));
  border: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.main-nav a:hover { color: hsl(var(--foreground)); }
.main-nav a.is-active {
  color: hsl(var(--foreground));
  border-color: hsl(var(--foreground));
}
.header-controls { display: flex; align-items: center; gap: 8px; }

.ctrl {
  position: relative;
}
.ctrl__btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 8px 10px;
  border: 1px solid hsl(var(--border));
  transition: border-color .2s, background .2s;
}
.ctrl__btn:hover { border-color: hsl(var(--foreground)); }
.ctrl__btn svg { width: 13px; height: 13px; }
.ctrl__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 140px;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  box-shadow: 0 16px 40px hsl(0 0% 0% / .14);
  display: none;
  z-index: 70;
}
.ctrl.is-open .ctrl__menu { display: block; }
.ctrl__menu button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: background .15s;
}
.ctrl__menu button:hover { background: hsl(var(--muted)); }
.ctrl__menu button.is-current { background: hsl(var(--muted)); }
.ctrl__menu button svg { width: 13px; height: 13px; }
.ctrl__menu--lang { min-width: 180px; }

/* real SVG flags — emoji flags do not render on Windows */
.flag {
  width: 20px;
  height: 14px;
  flex: none;
  display: block;
  border: 1px solid hsl(var(--foreground) / .18);
  box-sizing: content-box;
}
.ctrl__menu--lang button .flag { width: 22px; height: 15px; }
.flag-slot { display: flex; align-items: center; line-height: 0; }
.ctrl__btn .flag, .ctrl__btn svg.flag { width: 20px; height: 14px; margin-inline-end: 2px; }

.menu-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 8px 12px;
  border: 1px solid hsl(var(--foreground));
  background: hsl(var(--foreground));
  color: hsl(var(--background));
  transition: background .2s, color .2s;
}
.menu-btn:hover { background: transparent; color: hsl(var(--foreground)); }

/* mobile overlay menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: hsl(var(--background));
  display: flex;
  flex-direction: column;
  padding: 20px clamp(16px, 4vw, 48px) 40px;
  transform: translateY(-100%);
  transition: transform .55s var(--ease-out);
  overflow-y: auto;
}
.mobile-menu.is-open { transform: translateY(0); }
.mobile-menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  border-bottom: 1px solid hsl(var(--border));
  margin-bottom: 24px;
  flex: none;
}
.mobile-menu nav { display: flex; flex-direction: column; }
@media (min-width: 900px) {
  .mobile-menu nav { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(24px, 4vw, 64px); }
  .mobile-menu nav a { font-size: clamp(24px, 3.2vw, 40px); }
}
.mobile-menu nav a {
  font-weight: 800;
  font-stretch: 125%;
  text-transform: uppercase;
  font-size: clamp(28px, 7vw, 52px);
  line-height: 1.15;
  letter-spacing: -.01em;
  padding: 8px 0;
  border-bottom: 1px solid hsl(var(--border));
  display: flex;
  align-items: baseline;
  gap: 14px;
  transition: color .2s, padding-left .3s var(--ease-out);
}
.mobile-menu nav a:hover { padding-left: 12px; }
.mobile-menu nav a .idx {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: hsl(var(--muted-foreground));
}
.mobile-menu nav a.is-active { color: hsl(var(--muted-foreground)); }

/* ---------- hero (shared) ---------- */
.page-hero { padding: clamp(48px, 8vw, 110px) 0 clamp(28px, 4vw, 56px); position: relative; }
.crumb {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
  margin-bottom: clamp(16px, 2.5vw, 28px);
  display: flex;
  align-items: center;
  gap: 10px;
}
.crumb .dot { width: 8px; height: 8px; flex: none; }
.display {
  font-weight: 800;
  font-stretch: 125%;
  text-transform: uppercase;
  letter-spacing: -.02em;
  line-height: .96;
  margin: 0;
  overflow-wrap: break-word;
}
.display--xl { font-size: clamp(40px, 8.6vw, 128px); }
.display--lg { font-size: clamp(30px, 5.6vw, 76px); }
h1, h2, h3, p, .hero-sub, .fact, .cat-row__title, .cat-row__desc { overflow-wrap: break-word; }
.hero-sub {
  max-width: 620px;
  font-size: clamp(15px, 1.6vw, 19px);
  line-height: 1.6;
  color: hsl(var(--muted-foreground));
  margin: clamp(20px, 3vw, 36px) 0 0;
}

/* line-mask reveal for display type.
   The padding/negative-margin pair widens the clipping box horizontally so
   glyph overhang is never shaved off, while the vertical clip (which the
   slide-up reveal depends on) is unchanged. */
.line-mask {
  display: block;
  overflow: hidden;
  padding-inline: 0.08em;
  margin-inline: -0.08em;
}
.line-mask > span {
  display: block;
  transform: translateY(110%);
  animation: line-up .9s var(--ease-out) forwards;
}
.line-mask:nth-child(2) > span { animation-delay: .08s; }
.line-mask:nth-child(3) > span { animation-delay: .16s; }
@keyframes line-up { to { transform: translateY(0); } }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- symbol marquee band ---------- */
.band {
  border-top: 1px solid hsl(var(--border));
  border-bottom: 1px solid hsl(var(--border));
  overflow: hidden;
  padding: 14px 0;
}
.band__track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 30s linear infinite;
}
.band__track span {
  font-weight: 800;
  font-stretch: 125%;
  text-transform: uppercase;
  font-size: clamp(22px, 3.4vw, 42px);
  letter-spacing: .02em;
  white-space: nowrap;
  padding: 0 18px;
  color: transparent;
  -webkit-text-stroke: 1px hsl(var(--muted-foreground) / .55);
}
.band__track span b {
  color: hsl(var(--foreground));
  -webkit-text-stroke: 0;
  font-weight: 800;
}

/* ---------- category index list (home) ---------- */
.cat-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(40px, 6vw, 80px) 0 18px;
}
.cat-list { border-top: 1px solid hsl(var(--border)); }
.cat-row {
  --cp: var(--length-primary);
  --cl: var(--length-light);
  --clf: var(--length-light-foreground);
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: clamp(12px, 3vw, 40px);
  padding: clamp(18px, 3vw, 30px) clamp(8px, 1.5vw, 20px);
  border-bottom: 1px solid hsl(var(--border));
  position: relative;
  overflow: hidden;
  transition: padding-left .35s var(--ease-out);
}
.cat-row::before {
  content: "";
  position: absolute;
  inset: 0;
  background: hsl(var(--cl));
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .45s var(--ease-out);
  z-index: 0;
}
.cat-row:hover::before { transform: scaleY(1); }
.cat-row > * { position: relative; z-index: 1; }
.cat-row__idx {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: hsl(var(--muted-foreground));
  transition: color .3s;
}
.cat-row:hover .cat-row__idx { color: hsl(var(--cp)); }
.cat-row__main { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cat-row__title {
  font-weight: 800;
  font-stretch: 125%;
  text-transform: uppercase;
  font-size: clamp(22px, 4.4vw, 52px);
  line-height: 1;
  letter-spacing: -.015em;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: color .3s;
}
.cat-row:hover .cat-row__title { color: hsl(var(--clf)); }
.cat-row__title > span:not(.cat-ico) { min-width: 0; }
.cat-row__title .cat-ico {
  width: clamp(20px, 3vw, 34px);
  height: clamp(20px, 3vw, 34px);
  color: hsl(var(--cp));
  flex: none;
}
.cat-row__desc {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}
.cat-row:hover .cat-row__desc { color: hsl(var(--clf) / .75); }
.cat-row__cta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
  white-space: nowrap;
  transition: color .3s;
}
.cat-row:hover .cat-row__cta { color: hsl(var(--clf)); }
.cat-row__cta svg { width: 16px; height: 16px; transition: transform .3s var(--ease-out); }
.cat-row:hover .cat-row__cta svg { transform: translateX(6px); }
@media (max-width: 640px) {
  .cat-row { grid-template-columns: 34px 1fr; }
  .cat-row__cta span { display: none; }
}

/* ---------- stats band ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-left: 1px solid hsl(var(--border));
  border-top: 1px solid hsl(var(--border));
  margin: clamp(48px, 7vw, 100px) 0;
}
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat {
  border-right: 1px solid hsl(var(--border));
  border-bottom: 1px solid hsl(var(--border));
  padding: clamp(20px, 3vw, 36px);
}
.stat__num {
  font-weight: 800;
  font-stretch: 125%;
  font-size: clamp(38px, 5.5vw, 72px);
  line-height: 1;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.stat__num em { font-style: normal; font-size: .5em; vertical-align: .35em; }
.stat__label {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}

/* ---------- 3D hero objects ---------- */
.page-hero--obj { position: relative; }
.hero-obj {
  position: absolute;
  top: 50%;
  right: -2%;
  transform: translateY(-50%);
  width: min(42vw, 500px);
  aspect-ratio: 1;
  pointer-events: none;
}
.hero-obj--xl { width: min(48vw, 620px); right: -3%; }
.hero-obj canvas { width: 100%; height: 100%; display: block; }
@media (min-width: 901px) {
  .page-hero--obj h1, .page-hero--obj .hero-sub { max-width: 56%; }
}
@media (max-width: 900px) {
  .hero-obj { top: 0; right: 0; bottom: 0; left: 0; width: 100%; transform: none; aspect-ratio: auto; opacity: .22; }
}

/* ---------- converter page ---------- */
.pattern-overlay { position: fixed; inset: -120px; z-index: -1; pointer-events: none; opacity: .05; animation: pattern-drift 22s linear infinite; }
.dark .pattern-overlay { opacity: .085; }
@keyframes pattern-drift { to { transform: translate(120px, 120px); } }
.pattern-home { background-image: linear-gradient(hsl(var(--foreground)) 1px, transparent 1px), linear-gradient(90deg, hsl(var(--foreground)) 1px, transparent 1px); background-size: 40px 40px; }
.pattern-length { background-image: radial-gradient(hsl(var(--length-primary)) 1px, transparent 1px); background-size: 20px 20px; }
.pattern-weight { background-image: repeating-linear-gradient(45deg, hsl(var(--weight-primary)) 0, hsl(var(--weight-primary)) 1px, transparent 0, transparent 50%); background-size: 20px 20px; }
.pattern-surface { background-image: linear-gradient(hsl(var(--surface-primary)) 1px, transparent 1px), linear-gradient(90deg, hsl(var(--surface-primary)) 1px, transparent 1px); background-size: 40px 40px; }
.pattern-volume { background-image: radial-gradient(circle at center, hsl(var(--volume-primary)) 2px, transparent 2.5px); background-size: 24px 24px; }
.pattern-capacity { background-image: repeating-linear-gradient(-45deg, hsl(var(--capacity-primary)) 0, hsl(var(--capacity-primary)) 1px, transparent 0, transparent 50%); background-size: 20px 20px; }
.pattern-bytes { background-image: linear-gradient(hsl(var(--bytes-primary)) 1px, transparent 1px), linear-gradient(90deg, hsl(var(--bytes-primary)) 1px, transparent 1px); background-size: 24px 24px; }
.pattern-temperature { background-image: radial-gradient(hsl(var(--temperature-primary)) 1px, transparent 1px); background-size: 20px 20px; }
.pattern-speed { background-image: repeating-linear-gradient(90deg, hsl(var(--speed-primary)) 0, hsl(var(--speed-primary)) 14px, transparent 14px, transparent 34px); background-size: 34px 12px; }
.pattern-pressure { background-image: repeating-radial-gradient(circle at center, hsl(var(--pressure-primary)) 0 1px, transparent 1px 14px); background-size: 56px 56px; }
.pattern-power { background-image: repeating-linear-gradient(60deg, hsl(var(--power-primary)) 0, hsl(var(--power-primary)) 1px, transparent 0, transparent 22px), repeating-linear-gradient(-60deg, hsl(var(--power-primary)) 0, hsl(var(--power-primary)) 1px, transparent 0, transparent 22px); }
.pattern-number { background-image: linear-gradient(hsl(var(--number-primary)) 1px, transparent 1px), linear-gradient(90deg, hsl(var(--number-primary)) 1px, transparent 1px); background-size: 18px 18px; }

.conv-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 3.5vw, 48px);
  align-items: start;
  padding-bottom: clamp(24px, 4vw, 48px);
}
@media (min-width: 1024px) { .conv-layout { grid-template-columns: 2fr 1fr; } }

.notice {
  margin-bottom: 24px;
  padding: 14px 18px;
  border: 1px solid hsl(var(--acc-primary) / .35);
  background: hsl(var(--acc-light));
  color: hsl(var(--acc-light-foreground));
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  display: none;
}
.notice.is-visible { display: block; }

.boxes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 640px) { .boxes { grid-template-columns: 1fr 1fr; } }

.cbox {
  background: hsl(var(--acc-light));
  border: 1px solid hsl(var(--acc-primary) / .2);
  border-top: 3px solid hsl(var(--acc-primary));
  padding: 18px 18px 20px;
  position: relative;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), border-color .2s;
  animation: box-in .5s var(--ease-out) both;
}
@keyframes box-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.cbox:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -12px hsl(var(--acc-primary) / .35);
}
.cbox.is-swap {
  border-color: hsl(var(--acc-primary));
  box-shadow: 0 0 0 2px hsl(var(--acc-primary) / .3);
}
.cbox__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.cbox__name {
  font-weight: 700;
  font-size: 14px;
  color: hsl(var(--acc-light-foreground));
  line-height: 1.25;
}
.cbox__sym {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: hsl(var(--acc-light-foreground) / .7);
  margin-top: 3px;
}
.cbox__tools { display: flex; align-items: center; gap: 7px; }
.cbox__swaplabel {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  color: hsl(var(--acc-primary));
}
.cbox input[type="number"] {
  width: 100%;
  font-family: var(--font-mono);
  font-size: 19px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: hsl(var(--acc-light-foreground));
  background: hsl(var(--background) / .5);
  border: 1px solid hsl(var(--acc-primary) / .3);
  padding: 10px 12px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  border-radius: 0;
  appearance: textfield;
  -moz-appearance: textfield;
}
.cbox input[type="number"]::-webkit-outer-spin-button,
.cbox input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cbox input[type="number"]:focus {
  border-color: hsl(var(--acc-primary));
  box-shadow: 0 0 0 2px hsl(var(--acc-primary) / .25);
}
.cbox input:disabled { opacity: .5; cursor: not-allowed; }
.cbox__remove { color: hsl(var(--acc-light-foreground) / .5); padding: 3px; transition: color .2s; line-height: 0; }
.cbox__remove:hover { color: hsl(var(--destructive)); }
.cbox__remove svg { width: 15px; height: 15px; }

/* custom checkbox */
.chk {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  flex: none;
  border: 1px solid hsl(var(--acc-primary, var(--primary)));
  background: transparent;
  cursor: pointer;
  display: inline-grid;
  place-content: center;
  transition: background .15s, border-color .15s;
  margin: 0;
}
.chk::before {
  content: "";
  width: 9px;
  height: 9px;
  transform: scale(0);
  transition: transform .15s var(--ease-out);
  background: hsl(var(--acc-primary, var(--primary)));
}
.chk:checked::before { transform: scale(1); }
.chk:disabled { cursor: not-allowed; opacity: .4; }

/* sidebar unit picker */
.picker {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  padding: 20px;
}
.picker__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 10px;
}
.picker__title {
  font-weight: 800;
  font-stretch: 125%;
  text-transform: uppercase;
  font-size: 15px;
  letter-spacing: .01em;
  margin: 0;
}
.picker__count {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: hsl(var(--muted-foreground));
  font-variant-numeric: tabular-nums;
}
.picker__list {
  height: 500px;
  overflow-y: auto;
  padding-right: 8px;
  scrollbar-width: thin;
  scrollbar-color: hsl(var(--border)) transparent;
}
.picker__list::-webkit-scrollbar { width: 6px; }
.picker__list::-webkit-scrollbar-thumb { background: hsl(var(--border)); }
.unit-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 10px;
  transition: background .15s;
}
.unit-item:hover { background: hsl(var(--muted)); }
.unit-item.is-locked { opacity: .5; }
.unit-item label {
  flex: 1;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
}
.unit-item.is-locked label { cursor: not-allowed; color: hsl(var(--muted-foreground)); }
.unit-item .sym { font-family: var(--font-mono); font-size: 10.5px; color: hsl(var(--muted-foreground)); }

/* common conversions / info cards */
.facts {
  margin-top: clamp(40px, 6vw, 72px);
  background: hsl(var(--acc-light));
  border: 1px solid hsl(var(--acc-primary) / .2);
  padding: clamp(22px, 3.5vw, 40px);
}
.facts__title {
  font-weight: 800;
  font-stretch: 125%;
  text-transform: uppercase;
  font-size: clamp(19px, 2.6vw, 28px);
  letter-spacing: -.01em;
  color: hsl(var(--acc-light-foreground));
  margin: 0 0 20px;
}
.facts__grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 700px) { .facts__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .facts__grid--3 { grid-template-columns: 1fr 1fr 1fr; } }
.fact {
  background: hsl(var(--background) / .5);
  border-left: 2px solid hsl(var(--acc-primary));
  padding: 13px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .02em;
  color: hsl(var(--acc-light-foreground));
  font-variant-numeric: tabular-nums;
}
.fact h3 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 6px;
  letter-spacing: 0;
}
.fact p { margin: 0; font-family: var(--font-display); font-size: 13.5px; letter-spacing: 0; line-height: 1.55; color: hsl(var(--acc-light-foreground) / .85); }

/* temperature extras */
.temp-grid { max-width: 900px; margin: 0 auto; }
.temp-duo {
  margin-top: clamp(40px, 6vw, 72px);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 3vw, 32px);
}
@media (min-width: 1024px) { .temp-duo { grid-template-columns: 1fr 1fr; } }
.map-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  padding: clamp(22px, 3.5vw, 40px);
  display: flex;
  flex-direction: column;
}
.map-card h2 {
  font-weight: 800;
  font-stretch: 125%;
  text-transform: uppercase;
  font-size: clamp(19px, 2.6vw, 28px);
  letter-spacing: -.01em;
  margin: 0 0 20px;
}
.map-box {
  border: 1px solid hsl(var(--border));
  background: hsl(var(--muted) / .3);
  aspect-ratio: 2 / 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}
.map-box svg { width: 100%; height: 100%; }
.map-legend { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.map-legend .pill {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  padding: 7px 14px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.map-legend .swatch { width: 12px; height: 12px; }

/* ---------- information page ---------- */
.info-wrap { max-width: 64rem; margin: 0 auto; }
.info-section { padding: clamp(28px, 4vw, 48px) 0; }
.info-section + .info-section { border-top: 1px solid hsl(var(--border)); }
.info-h {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: clamp(20px, 3vw, 32px);
}
.info-h .glyph {
  width: 46px;
  height: 46px;
  flex: none;
  border: 1px solid hsl(var(--border));
  display: grid;
  place-content: center;
}
.info-h .glyph svg { width: 20px; height: 20px; }
.info-h h1, .info-h h2.big {
  font-weight: 800;
  font-stretch: 125%;
  text-transform: uppercase;
  font-size: clamp(24px, 4vw, 40px);
  letter-spacing: -.015em;
  margin: 0;
  line-height: 1.05;
}
.prose { color: hsl(var(--muted-foreground)); font-size: 16px; line-height: 1.7; }
.prose h2 {
  color: hsl(var(--foreground));
  font-weight: 800;
  font-stretch: 125%;
  text-transform: uppercase;
  font-size: clamp(18px, 2.4vw, 24px);
  letter-spacing: -.01em;
  margin: 40px 0 16px;
}
.prose h3 { color: hsl(var(--foreground)); font-size: 17px; font-weight: 700; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.prose ol { padding-left: 20px; margin: 0; }
.prose ol li { margin-bottom: 14px; }
.prose ol li strong { color: hsl(var(--foreground)); }
.cat-support {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}
@media (min-width: 640px) { .cat-support { grid-template-columns: 1fr 1fr; } }
.cat-support li { display: flex; align-items: center; gap: 10px; }
.cat-support .dot { width: 6px; height: 6px; background: hsl(var(--foreground)); flex: none; }
.priv-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 24px; }
@media (min-width: 768px) { .priv-grid { grid-template-columns: 1fr 1fr; } }
.priv-card { background: hsl(var(--secondary) / .5); border: 1px solid hsl(var(--border)); padding: 22px; }
.priv-card ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.priv-card li { display: flex; align-items: flex-start; gap: 8px; font-size: 14.5px; }
.priv-card li .b { flex: none; margin-top: 2px; font-weight: 700; }
.priv-card.good h3 .ic, .priv-card.good li .b { color: hsl(140 60% 45%); }
.priv-card.bad h3 .ic, .priv-card.bad li .b { color: hsl(var(--destructive)); }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid hsl(var(--border));
  margin-top: clamp(48px, 8vw, 110px);
  overflow: hidden;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(28px, 4vw, 48px) 0;
}
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col .head {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
  margin-bottom: 6px;
}
.footer-col a {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: hsl(var(--foreground));
  transition: opacity .2s;
  width: fit-content;
}
.footer-col a:hover { opacity: .55; }
.footer-note {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
  max-width: 340px;
  line-height: 1.8;
}
.footer-mark {
  font-weight: 800;
  font-stretch: 125%;
  text-transform: uppercase;
  font-size: clamp(48px, 12.5vw, 190px);
  line-height: .82;
  letter-spacing: -.03em;
  text-align: center;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px hsl(var(--muted-foreground) / .4);
  user-select: none;
  transform: translateY(.12em);
  transition: color .6s var(--ease-out);
}
.site-footer:hover .footer-mark { color: hsl(var(--foreground)); -webkit-text-stroke: 0; }
.footer-bottom {
  border-top: 1px solid hsl(var(--border));
  padding: 14px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}

/* value flash on conversion update */
@keyframes val-flash { from { background: hsl(var(--acc-primary) / .18); } to { background: hsl(var(--background) / .5); } }
.cbox input.flash { animation: val-flash .5s ease-out; }

/* ---------- non-Latin scripts ---------- */
:root:lang(he) {
  --font-display: "Heebo", "Archivo", "Segoe UI", sans-serif;
  --font-mono: "Heebo", "Space Mono", monospace;
}
:root:lang(ar) {
  --font-display: "Noto Sans Arabic", "Archivo", "Segoe UI", sans-serif;
  --font-mono: "Noto Sans Arabic", "Space Mono", monospace;
}
:root:lang(hi) {
  --font-display: "Noto Sans Devanagari", "Archivo", "Nirmala UI", sans-serif;
  --font-mono: "Noto Sans Devanagari", "Space Mono", monospace;
}
:root:lang(bn) {
  --font-display: "Noto Sans Bengali", "Archivo", "Nirmala UI", sans-serif;
  --font-mono: "Noto Sans Bengali", "Space Mono", monospace;
}

/* These scripts have no case and are damaged by tracking, so drop the
   uppercase/letter-spacing/width treatment the Latin display type uses. */
:lang(he) .display, :lang(ar) .display, :lang(hi) .display, :lang(bn) .display,
:lang(he) .cat-row__title, :lang(ar) .cat-row__title, :lang(hi) .cat-row__title, :lang(bn) .cat-row__title,
:lang(he) .logo, :lang(ar) .logo, :lang(hi) .logo, :lang(bn) .logo,
:lang(he) .footer-mark, :lang(ar) .footer-mark, :lang(hi) .footer-mark, :lang(bn) .footer-mark,
:lang(he) .band__track span, :lang(ar) .band__track span, :lang(hi) .band__track span, :lang(bn) .band__track span {
  font-stretch: normal;
  letter-spacing: 0;
}
:lang(he) .mono, :lang(ar) .mono, :lang(hi) .mono, :lang(bn) .mono,
:lang(he) .crumb, :lang(ar) .crumb, :lang(hi) .crumb, :lang(bn) .crumb,
:lang(he) .cat-row__desc, :lang(ar) .cat-row__desc, :lang(hi) .cat-row__desc, :lang(bn) .cat-row__desc,
:lang(he) .cat-row__cta, :lang(ar) .cat-row__cta, :lang(hi) .cat-row__cta, :lang(bn) .cat-row__cta,
:lang(he) .picker__count, :lang(ar) .picker__count, :lang(hi) .picker__count, :lang(bn) .picker__count,
:lang(he) .main-nav a, :lang(ar) .main-nav a, :lang(hi) .main-nav a, :lang(bn) .main-nav a,
:lang(he) .ctrl__btn, :lang(ar) .ctrl__btn, :lang(hi) .ctrl__btn, :lang(bn) .ctrl__btn,
:lang(he) .ctrl__menu button, :lang(ar) .ctrl__menu button, :lang(hi) .ctrl__menu button, :lang(bn) .ctrl__menu button,
:lang(he) .menu-btn, :lang(ar) .menu-btn, :lang(hi) .menu-btn, :lang(bn) .menu-btn,
:lang(he) .footer-col a, :lang(ar) .footer-col a, :lang(hi) .footer-col a, :lang(bn) .footer-col a,
:lang(he) .footer-col .head, :lang(ar) .footer-col .head, :lang(hi) .footer-col .head, :lang(bn) .footer-col .head,
:lang(he) .footer-note, :lang(ar) .footer-note, :lang(hi) .footer-note, :lang(bn) .footer-note,
:lang(he) .footer-bottom, :lang(ar) .footer-bottom, :lang(hi) .footer-bottom, :lang(bn) .footer-bottom,
:lang(he) .ticker__track span, :lang(ar) .ticker__track span, :lang(hi) .ticker__track span, :lang(bn) .ticker__track span,
:lang(he) .notice, :lang(ar) .notice, :lang(hi) .notice, :lang(bn) .notice,
:lang(he) .fact, :lang(ar) .fact, :lang(hi) .fact, :lang(bn) .fact,
:lang(he) .unit-item .sym, :lang(ar) .unit-item .sym, :lang(hi) .unit-item .sym, :lang(bn) .unit-item .sym,
:lang(he) .map-legend .pill, :lang(ar) .map-legend .pill, :lang(hi) .map-legend .pill, :lang(bn) .map-legend .pill {
  letter-spacing: 0;
  text-transform: none;
}
/* Devanagari and Bengali hang glyphs above the cap line — give them room. */
:lang(hi) .display, :lang(bn) .display, :lang(ar) .display { line-height: 1.25; }
:lang(hi) .line-mask, :lang(bn) .line-mask, :lang(ar) .line-mask { padding-block: 0.06em; }

[dir="rtl"] .ticker__label { border-right: 0; border-left: 1px solid hsl(var(--background) / .25); }
[dir="rtl"] .ticker__track span::after { content: "◂"; margin-left: 0; margin-right: 26px; }
[dir="rtl"] .hero-obj { right: auto; left: -2%; }
[dir="rtl"] .hero-obj--xl { right: auto; left: -3%; }
[dir="rtl"] .cat-row__cta svg { transform: scaleX(-1); }
[dir="rtl"] .cat-row:hover .cat-row__cta svg { transform: scaleX(-1) translateX(6px); }
[dir="rtl"] .mobile-menu nav a:hover { padding-left: 0; padding-right: 12px; }
[dir="rtl"] .stats { border-left: 0; border-right: 1px solid hsl(var(--border)); }
[dir="rtl"] .stat { border-right: 0; border-left: 1px solid hsl(var(--border)); }
[dir="rtl"] .fact { border-left: 0; border-right: 2px solid hsl(var(--acc-primary)); }
[dir="rtl"] .prose ol { padding-left: 0; padding-right: 20px; }
[dir="rtl"] .picker__list { padding-right: 0; padding-left: 8px; }
/* numbers stay left-to-right even in an RTL page */
[dir="rtl"] .cbox input[type="number"] { direction: ltr; text-align: right; }
@media (max-width: 900px) {
  [dir="rtl"] .hero-obj { left: 0; right: 0; }
}


/* ---------- speed converter: unit + amount + time per row ---------- */
.speed-rows { display: grid; grid-template-columns: 1fr; gap: 14px; }

.srow {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: stretch;
  animation: box-in .5s var(--ease-out) both;
}
.srow__card {
  background: hsl(var(--acc-light));
  border: 1px solid hsl(var(--acc-primary) / .2);
  border-top: 3px solid hsl(var(--acc-primary));
  padding: 14px 16px 16px;
  position: relative;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), border-color .2s;
}
.srow:hover .srow__card {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -12px hsl(var(--acc-primary) / .35);
}
.srow__lbl {
  display: block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: hsl(var(--acc-light-foreground) / .65);
  margin-bottom: 5px;
}
.srow__field + .srow__field { margin-top: 11px; }
.srow__value {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid hsl(var(--acc-primary) / .3);
  background: hsl(var(--background) / .5);
  padding: 8px 11px;
  min-height: 40px;
}
.srow__name { font-weight: 700; font-size: 14px; color: hsl(var(--acc-light-foreground)); line-height: 1.2; }
.srow__sym {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  color: hsl(var(--acc-light-foreground) / .7);
  white-space: nowrap;
}
.srow input[type="number"] {
  width: 100%;
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: hsl(var(--acc-light-foreground));
  background: hsl(var(--background) / .5);
  border: 1px solid hsl(var(--acc-primary) / .3);
  padding: 8px 11px;
  outline: none;
  border-radius: 0;
  appearance: textfield;
  -moz-appearance: textfield;
  transition: border-color .2s, box-shadow .2s;
}
.srow input[type="number"]::-webkit-outer-spin-button,
.srow input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.srow input[type="number"]:focus { border-color: hsl(var(--acc-primary)); box-shadow: 0 0 0 2px hsl(var(--acc-primary) / .25); }
.srow input:disabled { opacity: .5; cursor: not-allowed; }

.srow__time {
  background: hsl(var(--acc-light));
  border: 1px solid hsl(var(--acc-primary) / .2);
  border-top: 3px solid hsl(var(--acc-primary));
  padding: 14px 16px 16px;
  width: clamp(140px, 22vw, 190px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.srow__time select {
  width: 100%;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: hsl(var(--acc-light-foreground));
  background: hsl(var(--background) / .5);
  border: 1px solid hsl(var(--acc-primary) / .3);
  padding: 9px 10px;
  outline: none;
  border-radius: 0;
  cursor: pointer;
}
.srow__time select:focus { border-color: hsl(var(--acc-primary)); box-shadow: 0 0 0 2px hsl(var(--acc-primary) / .25); }
.srow__time select:disabled { opacity: .55; cursor: not-allowed; }
.srow__builtin {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: hsl(var(--acc-light-foreground) / .65);
  line-height: 1.5;
  padding: 9px 0 0;
}
.srow__remove {
  position: absolute;
  top: 8px;
  inset-inline-end: 8px;
  color: hsl(var(--acc-light-foreground) / .45);
  padding: 3px;
  line-height: 0;
  transition: color .2s;
}
.srow__remove:hover { color: hsl(var(--destructive)); }
.srow__remove svg { width: 14px; height: 14px; }
@media (max-width: 560px) {
  .srow { grid-template-columns: 1fr; }
  .srow__time { width: 100%; }
}

/* ---------- comparison table (speed) ---------- */
.table-scroll { overflow-x: auto; }
.cmp-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
  min-width: 460px;
}
.cmp-table th, .cmp-table td {
  padding: 11px 14px;
  text-align: start;
  border-bottom: 1px solid hsl(var(--acc-primary) / .25);
  font-size: 13.5px;
  color: hsl(var(--acc-light-foreground));
}
.cmp-table thead th {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: hsl(var(--acc-light-foreground) / .8);
  border-bottom-width: 2px;
}
.cmp-table tbody td:not(:first-child) { font-family: var(--font-mono); font-size: 12.5px; }
.cmp-table tbody tr:last-child td { border-bottom: 0; }
.cmp-table tbody tr { transition: background .2s; }
.cmp-table tbody tr:hover { background: hsl(var(--acc-primary) / .07); }

/* ---------- bulleted fact cards ---------- */
.fact__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.fact__list li {
  position: relative;
  padding-inline-start: 15px;
  font-family: var(--font-display);
  font-size: 13.5px;
  letter-spacing: 0;
  line-height: 1.55;
  color: hsl(var(--acc-light-foreground) / .88);
}
.fact__list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: .6em;
  width: 5px;
  height: 5px;
  background: hsl(var(--acc-primary));
}

/* ---------- number converter ---------- */
.cbox input[type="text"] {
  width: 100%;
  font-family: var(--font-mono);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .06em;
  color: hsl(var(--acc-light-foreground));
  background: hsl(var(--background) / .5);
  border: 1px solid hsl(var(--acc-primary) / .3);
  padding: 10px 12px;
  outline: none;
  border-radius: 0;
  direction: ltr;
  transition: border-color .2s, box-shadow .2s;
}
.cbox input[type="text"]:focus { border-color: hsl(var(--acc-primary)); box-shadow: 0 0 0 2px hsl(var(--acc-primary) / .25); }
.cbox input[type="text"].is-invalid { border-color: hsl(var(--destructive)); box-shadow: 0 0 0 2px hsl(var(--destructive) / .25); }
.cbox__hint {
  margin-top: 7px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: hsl(var(--acc-light-foreground) / .6);
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker__track, .band__track, .pattern-overlay { animation: none; }
  .line-mask > span { animation: none; transform: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .cbox { animation: none; }
  * { transition-duration: .01ms !important; }
}
