/* ═══════════════════════════════════════════════════════════════
   ehsan torabi farsani resume
   "live circuit" design: ink base, bone type, one volt accent.
   identity motif: pcb fiducial "+" marks + an energized trace.
   palette: #0d0f0b ink / #f2f1e9 bone / #7fee64 volt (brand lime,
   carried over from the favicon). archivo expanded for display,
   ibm plex mono for data, vazirmatn for persian.
   radius scale: 2px modules, 999px only for the sanctioned pills.
   ═══════════════════════════════════════════════════════════════ */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --ink: #0d0f0b;
  --ink-2: #12150d;
  --ink-3: #191d12;
  --bone: #f2f1e9;
  --bone-rgb: 242, 241, 233;
  --volt: #7fee64;
  --volt-rgb: 127, 238, 100;
  --volt-ink: #0c130a;
  --hairline: rgba(var(--bone-rgb), 0.14);
  --hairline-strong: rgba(var(--bone-rgb), 0.3);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-io: cubic-bezier(0.77, 0, 0.175, 1);

  --font-sans: "Archivo", "Vazirmatn", sans-serif;
  --font-mono: "IBM Plex Mono", "Vazirmatn", monospace;

  --track: 0.01em;
  --track-neg: -0.02em;

  --topbar-h: 64px;
  --rail-w: 92px;
  --pad-x: clamp(20px, 4vw, 56px);
  --sec-pad: clamp(72px, 10vw, 128px);

  /* small feedback (hover) / standard (reveals) durations */
  --t-fast: 150ms;
  --t-med: 260ms;
}

/* arabic script must not be tracked or synthetically widened */
html[lang="fa"] {
  --track: 0;
  --track-neg: 0;
}

html {
  background: var(--ink);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topbar-h) + 16px);
}

body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-sans);
  font-optical-sizing: auto;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

html[lang="fa"] body {
  font-family: "Vazirmatn", var(--font-sans);
}

::selection {
  background: var(--volt);
  color: var(--volt-ink);
}

:focus-visible {
  outline: 2px solid var(--volt);
  outline-offset: 3px;
  border-radius: 2px;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

/* every interactive element gets the pointer; disabled gets not-allowed */
a[href],
button,
summary,
label[for] {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ═══════════════════════ utilities ═══════════════════════ */

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

/* scroll reveals: transform + opacity only, staggered via --d.
   hidden initial states are gated behind html.js so a no-JS visit
   still sees all content. */
html.js .rv {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.7s var(--ease-out);
  transition-delay: var(--d, 0s);
}

html.js .rv.in {
  opacity: 1;
  transform: none;
}

/* heading-wrapped toggle buttons must fill their row */
.project-h3,
.drive-h3 {
  display: grid;
}

/* skip link + screen-reader-only text */
.skip-link {
  position: fixed;
  inset-block-start: -64px;
  inset-inline-start: 16px;
  z-index: 80;
  background: var(--volt);
  color: var(--volt-ink);
  padding: 10px 16px;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 13px;
  transition: inset-block-start 0.2s ease;
}

.skip-link:focus-visible {
  inset-block-start: 12px;
}

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

/* pcb fiducial mark: the identity "+" */
.fid {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1;
  color: rgba(var(--volt-rgb), 0.75);
  user-select: none;
  pointer-events: none;
}

/* ═══════════════════════ progress hairline ═══════════════════════ */

.progress {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  height: 2px;
  z-index: 60;
  background: rgba(var(--bone-rgb), 0.08);
  pointer-events: none;
}

.progress-fill {
  display: block;
  height: 100%;
  background: var(--volt);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

html[dir="rtl"] .progress-fill {
  transform-origin: 100% 50%;
}

/* ═══════════════════════ top bar ═══════════════════════ */

.topbar {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 50;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  gap: 18px;
  padding-inline: var(--pad-x);
  border-bottom: 1px solid transparent;
  transition:
    background-color var(--t-med) ease,
    border-color var(--t-med) ease;
}

.topbar.scrolled {
  background: rgba(13, 15, 11, 0.72);
  border-bottom-color: var(--hairline);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-stretch: 118%;
  font-size: 17px;
  letter-spacing: var(--track);
  transition: opacity var(--t-fast) ease;
}

html[lang="fa"] .wordmark {
  font-stretch: 100%;
}

.wordmark:hover {
  opacity: 0.75;
}

/* the power led: the only pulsing element on the page */
.wordmark-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--volt);
  animation: led 2.8s ease-in-out infinite;
}

@keyframes led {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.topbar-status {
  margin-inline-start: auto;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: var(--track);
  color: rgba(var(--bone-rgb), 0.62);
}

.lang-pill {
  min-height: 44px;
  min-width: 64px;
  padding-inline: 16px;
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: var(--track);
  transition:
    background-color var(--t-fast) ease,
    color var(--t-fast) ease,
    border-color var(--t-fast) ease;
}

.lang-pill:hover {
  background: var(--volt);
  border-color: var(--volt);
  color: var(--volt-ink);
}

/* ═══════════════════════ section rail (desktop) ═══════════════════════ */

.rail {
  position: fixed;
  inset-block: 0;
  inset-inline-start: 0;
  width: var(--rail-w);
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: center;
}

.rail-track {
  position: absolute;
  inset-block: 0;
  inset-inline-start: calc(50% - 0.5px);
  width: 1px;
  background: rgba(var(--bone-rgb), 0.1);
}

/* the energized segment: grows with scroll progress */
.rail-juice {
  position: absolute;
  inset-block: 0;
  inset-inline-start: calc(50% - 0.5px);
  width: 1px;
  background: var(--volt);
  transform: scaleY(0);
  transform-origin: 50% 0;
}

.rail-list {
  list-style: none;
  display: grid;
  gap: 26px;
  position: relative;
}

.rail-node {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-inline-start: -22px;
}

.rail-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid rgba(var(--bone-rgb), 0.45);
  background: var(--ink);
  transition:
    background-color var(--t-fast) ease,
    border-color var(--t-fast) ease,
    transform var(--t-fast) var(--ease-out);
}

.rail-node:hover .rail-dot {
  border-color: var(--volt);
  transform: scale(1.25);
}

.rail-node.active .rail-dot {
  background: var(--volt);
  border-color: var(--volt);
  transform: scale(1.35);
}

.rail-tip {
  position: absolute;
  inset-inline-start: 34px;
  top: 50%;
  translate: 0 -50%;
  padding: 5px 10px;
  border: 1px solid var(--hairline);
  background: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: var(--track);
  white-space: nowrap;
  color: var(--bone);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-fast) ease, translate var(--t-fast) var(--ease-out);
}

html[dir="rtl"] .rail-tip {
  translate: 0 -50%;
}

.rail-node:hover .rail-tip,
.rail-node:focus-visible .rail-tip {
  opacity: 1;
}

.rail-node.active .rail-tip {
  color: var(--volt);
}

/* ═══════════════════════ main column ═══════════════════════ */

main {
  padding-inline-start: 0;
}

/* ═══════════════════════ 00 · hero ═══════════════════════ */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: calc(var(--topbar-h) + 32px) var(--pad-x) 0;
  overflow: clip;
}

@supports (height: 100dvh) {
  .hero {
    min-height: 100dvh;
  }
}

.hero-grid {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(240px, 0.7fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(16px, 3vh, 48px);
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  letter-spacing: var(--track);
  color: rgba(var(--bone-rgb), 0.66);
}

.kicker-line {
  width: 56px;
  height: 1px;
  background: var(--hairline-strong);
}

.hero-name {
  margin-top: clamp(14px, 2.5vh, 28px);
  font-weight: 640;
  font-stretch: 122%;
  font-size: clamp(52px, 8.6vw, 124px);
  line-height: 0.96;
  letter-spacing: var(--track-neg);
}

html[lang="fa"] .hero-name {
  font-stretch: 100%;
  font-weight: 750;
  line-height: 1.12;
}

.name-line {
  display: block;
}

.name-line--indent {
  margin-inline-start: clamp(24px, 6vw, 96px);
}

.name-line--accent .name-mask > span {
  color: var(--volt);
}

/* line-mask entrance: each line rises out of its own mask */
.name-mask {
  display: block;
  overflow: clip;
  padding-block-end: 0.08em;
  margin-block-end: -0.08em;
}

.name-mask > span {
  display: inline-block;
}

/* the entrance is js-driven; without js the name simply shows */
html.js .name-mask > span {
  transform: translateY(112%);
}

.loaded .name-mask > span {
  animation: rise 0.9s var(--ease-out) forwards;
  animation-delay: var(--d, 0s);
}

@keyframes rise {
  to { transform: translateY(0); }
}

.hero-status {
  margin-top: clamp(18px, 3vh, 30px);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  letter-spacing: var(--track);
  color: rgba(var(--bone-rgb), 0.85);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--volt);
  box-shadow: 0 0 0 0 rgba(var(--volt-rgb), 0.5);
  animation: ping 2.4s var(--ease-out) infinite;
}

@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(var(--volt-rgb), 0.45); }
  70%, 100% { box-shadow: 0 0 0 12px rgba(var(--volt-rgb), 0); }
}

/* ── portrait module ── */

.hero-photo {
  position: relative;
  justify-self: center;
  width: min(100%, 340px);
}

.hero-photo .fid-tl {
  inset-block-start: -22px;
  inset-inline-start: -18px;
}

.hero-photo .fid-br {
  inset-block-end: -22px;
  inset-inline-end: -18px;
}

.photo-frame {
  position: relative;
  border: 1px solid var(--hairline);
  border-radius: 2px;
  overflow: clip;
  background: var(--ink-2);
}

.photo-img {
  width: 100%;
  aspect-ratio: 863 / 922;
  object-fit: cover;
  object-position: 50% 22%;
  filter: grayscale(1) contrast(1.06) brightness(0.92);
  transform: translateZ(0);
  transition: filter 0.5s var(--ease-out);
  user-select: none;
  -webkit-user-drag: none;
}

/* power-on tint: volt wash fades in over the photo */
.photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--volt);
  mix-blend-mode: multiply;
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  .photo-frame:hover .photo-img {
    filter: grayscale(0.2) contrast(1.04) brightness(0.95);
  }

  .photo-frame:hover::after {
    opacity: 0.22;
  }
}

/* one-time scan sweep on load */
.photo-scan {
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 2px;
  background: rgba(var(--volt-rgb), 0.9);
  box-shadow: 0 0 18px rgba(var(--volt-rgb), 0.5);
  opacity: 0;
}

.loaded .photo-scan {
  animation: scan 1.6s 0.9s var(--ease-io) forwards;
}

@keyframes scan {
  0% { top: 0; opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { top: calc(100% - 2px); opacity: 0; }
}

.photo-tag {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: var(--track);
  color: rgba(var(--bone-rgb), 0.55);
}

/* ── hero foot ── */

.hero-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding-block: clamp(20px, 4vh, 44px);
}

.hero-blurb {
  max-width: 58ch;
  font-size: 15.5px;
  line-height: 1.66;
  color: rgba(var(--bone-rgb), 0.82);
}

.hero-scroll {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: var(--track);
  color: rgba(var(--bone-rgb), 0.7);
  transition: color var(--t-fast) ease;
}

.hero-scroll:hover {
  color: var(--volt);
}

.scroll-tick {
  width: 1px;
  height: 34px;
  background: linear-gradient(to bottom, var(--volt), transparent);
  animation: drip 1.8s var(--ease-io) infinite;
}

@keyframes drip {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ── skills ticker ── */

.ticker {
  border-block: 1px solid var(--hairline);
  padding-block: 12px;
  margin-inline: calc(var(--pad-x) * -1);
  overflow: clip;
  /* fade the strip edges instead of hard clipping */
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.ticker-track {
  direction: ltr; /* seam math stays in one direction in both languages */
  display: flex;
  width: max-content;
  gap: 0;
}

.ticker-chunk {
  display: flex;
  flex: none;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding-inline: 18px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: var(--track);
  color: rgba(var(--bone-rgb), 0.6);
  white-space: nowrap;
}

.ticker-x {
  color: rgba(var(--volt-rgb), 0.85);
  font-family: var(--font-mono);
  font-size: 12px;
}

.loaded .ticker-track {
  animation: marquee 46s linear infinite;
}

.ticker:hover .ticker-track {
  animation-play-state: paused;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ═══════════════════════ sections, shared head ═══════════════════════ */

.sec {
  position: relative;
  padding: var(--sec-pad) var(--pad-x);
}

/* the tint band: separates alternating chapters without gradients */
.sec--tint {
  background: var(--ink-2);
  border-block: 1px solid var(--hairline);
}

.sec-inner {
  max-width: 1180px;
  margin-inline: auto;
}

.sec-head {
  display: flex;
  align-items: baseline;
  gap: clamp(14px, 2.5vw, 30px);
  border-top: 1px solid var(--hairline);
  padding-top: 22px;
  margin-bottom: clamp(36px, 6vw, 64px);
}

.sec-index {
  flex: none;
  min-width: 44px;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: var(--track);
  color: rgba(var(--volt-rgb), 0.9);
}

.sec-title {
  flex: 1;
  font-weight: 640;
  font-stretch: 120%;
  font-size: clamp(32px, 4.6vw, 60px);
  line-height: 1.02;
  letter-spacing: var(--track-neg);
}

html[lang="fa"] .sec-title {
  font-stretch: 100%;
  font-weight: 750;
  line-height: 1.2;
}

.sec-meta {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: var(--track);
  color: rgba(var(--bone-rgb), 0.55);
  text-align: end;
}

.mini-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: var(--track);
  color: rgba(var(--bone-rgb), 0.55);
  margin-bottom: 18px;
}

/* ═══════════════════════ 01 · selected work ═══════════════════════ */

.projects {
  display: grid;
  gap: clamp(18px, 2.5vw, 28px);
}

.project {
  border: 1px solid var(--hairline);
  border-radius: 2px;
  background: transparent;
  transition:
    border-color var(--t-med) ease,
    background-color var(--t-med) ease;
}

.project.open {
  border-color: rgba(var(--volt-rgb), 0.55);
  background: var(--ink-2);
}

.project-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 20px;
  width: 100%;
  padding: clamp(20px, 3vw, 32px);
  text-align: start;
}

.project-domain {
  font-weight: 640;
  font-stretch: 118%;
  font-size: clamp(24px, 3.6vw, 44px);
  line-height: 1.05;
  letter-spacing: var(--track-neg);
  position: relative;
  width: fit-content;
}

html[lang="fa"] .project-domain {
  font-stretch: 100%;
}

/* power underline: draws in from the inline-start on hover */
.project-domain::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-end: -6px;
  width: 100%;
  height: 3px;
  background: var(--volt);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.35s var(--ease-out);
}

html[dir="rtl"] .project-domain::after {
  transform-origin: 100% 50%;
}

.project-head:hover .project-domain::after {
  transform: scaleX(1);
}

.project-tagline {
  grid-column: 1;
  font-size: 15px;
  color: rgba(var(--bone-rgb), 0.68);
}

.project-head-right {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: flex;
  align-items: center;
  gap: 18px;
}

.project-live {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: var(--track);
  color: rgba(var(--bone-rgb), 0.6);
  white-space: nowrap;
}

.project-live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--volt);
}

/* coming soon: hollow dot, not the powered one */
.project-live--soon::before {
  background: transparent;
  border: 1px solid rgba(var(--bone-rgb), 0.5);
}

.project-toggle {
  position: relative;
  width: 44px;
  height: 44px;
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  flex: none;
  transition:
    background-color var(--t-fast) ease,
    border-color var(--t-fast) ease,
    transform 0.35s var(--ease-out);
}

.project-toggle::before,
.project-toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--bone);
  translate: -50% -50%;
  transition: background-color var(--t-fast) ease;
}

.project-toggle::before {
  width: 14px;
  height: 1.5px;
}

.project-toggle::after {
  width: 1.5px;
  height: 14px;
}

.project.open .project-toggle {
  background: var(--volt);
  border-color: var(--volt);
  transform: rotate(45deg);
}

.project.open .project-toggle::before,
.project.open .project-toggle::after {
  background: var(--volt-ink);
}

.project-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease-io);
}

.project.open .project-body {
  grid-template-rows: 1fr;
}

.project-body-clip {
  overflow: hidden;
  min-height: 0;
}

.project-body-inner {
  padding: 6px clamp(20px, 3vw, 32px) clamp(24px, 3vw, 36px);
  display: grid;
  gap: 24px;
}

.project-desc {
  max-width: 72ch;
  font-size: 15.5px;
  line-height: 1.7;
  color: rgba(var(--bone-rgb), 0.85);
}

.project-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
}

.project-features {
  list-style: none;
  display: grid;
  gap: 0;
}

.project-features li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-block: 11px;
  border-bottom: 1px solid var(--hairline);
  font-size: 14.5px;
  color: rgba(var(--bone-rgb), 0.8);
}

.project-features li::before {
  content: "+";
  font-family: var(--font-mono);
  color: rgba(var(--volt-rgb), 0.9);
  flex: none;
}

.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.stack-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: var(--track);
  color: rgba(var(--bone-rgb), 0.5);
  margin-inline-end: 6px;
}

.stack-chip {
  border: 1px solid var(--hairline);
  border-radius: 2px;
  padding: 5px 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: var(--track);
  color: rgba(var(--bone-rgb), 0.75);
  white-space: nowrap;
}

.project-shot {
  position: relative;
  border: 1px solid var(--hairline);
  border-radius: 2px;
  overflow: clip;
  background: var(--ink-3);
}

.project-shot img {
  width: 100%;
  transition: transform 0.6s var(--ease-out);
}

.project-shot:hover img {
  transform: scale(1.02);
}

.shot-note {
  position: absolute;
  inset-block-end: 10px;
  inset-inline-end: 10px;
  padding: 4px 10px;
  background: rgba(13, 15, 11, 0.82);
  border: 1px solid var(--hairline);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: var(--track);
  color: rgba(var(--bone-rgb), 0.75);
}

/* ═══════════════════════ 02 · code & datasets ═══════════════════════ */

.hf {
  display: grid;
  gap: 20px;
  border: 1px solid var(--hairline);
  border-radius: 2px;
  padding: clamp(22px, 3.4vw, 40px);
  background: var(--ink);
}

.hf-top {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hf-badge {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: var(--track);
  border: 1px solid rgba(var(--volt-rgb), 0.5);
  color: var(--volt);
  padding: 4px 10px;
  white-space: nowrap;
}

.hf-name {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(17px, 2.2vw, 24px);
  letter-spacing: var(--track);
  overflow-wrap: anywhere;
}

.hf-name:hover {
  color: var(--volt);
}

.hf-desc {
  max-width: 74ch;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(var(--bone-rgb), 0.82);
}

.hf-stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 4vw, 56px);
}

.hf-stat {
  display: grid;
  gap: 4px;
}

.hf-num {
  font-weight: 640;
  font-stretch: 120%;
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 1;
  letter-spacing: var(--track-neg);
  font-variant-numeric: tabular-nums;
  color: var(--volt);
}

html[lang="fa"] .hf-num {
  font-stretch: 100%;
}

.hf-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: var(--track);
  color: rgba(var(--bone-rgb), 0.55);
}

.hf-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hf-license {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: var(--track);
  color: rgba(var(--bone-rgb), 0.5);
  margin-inline-start: auto;
}

.hf-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: var(--track);
  color: var(--volt);
}

.hf-cta .cta-arrow {
  transition: transform var(--t-fast) var(--ease-out);
}

.hf-cta:hover .cta-arrow {
  transform: translate(3px, -3px);
}

html[dir="rtl"] .hf-cta:hover .cta-arrow {
  transform: translate(-3px, -3px) scaleX(-1);
}

/* ── language bar ── */

.langs {
  margin-top: clamp(28px, 4vw, 44px);
}

.langs-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.langs-label {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: var(--track);
  color: rgba(var(--bone-rgb), 0.55);
}

.langs-note {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: var(--track);
  color: rgba(var(--bone-rgb), 0.45);
}

.langbar {
  display: flex;
  height: 14px;
  border-radius: 2px;
  overflow: clip;
  background: rgba(var(--bone-rgb), 0.07);
}

.langbar-seg {
  height: 100%;
  width: 0;
  transition: width 0.9s var(--ease-out);
}

.langlegend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 14px;
}

.langlegend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: var(--track);
  color: rgba(var(--bone-rgb), 0.7);
  font-variant-numeric: tabular-nums;
}

.langlegend-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  flex: none;
}

/* ── repos table ── */

.repos {
  margin-top: clamp(32px, 5vw, 52px);
  border-top: 1px solid var(--hairline);
}

.repos-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-block: 16px 6px;
}

.repos-label {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: var(--track);
  color: rgba(var(--bone-rgb), 0.55);
}

.repos-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: var(--track);
  color: rgba(var(--bone-rgb), 0.5);
  font-variant-numeric: tabular-nums;
}

.repo-row {
  display: grid;
  grid-template-columns: minmax(140px, 220px) minmax(0, 1fr) auto auto auto;
  gap: 6px 24px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--hairline);
  transition: background-color var(--t-fast) ease;
}

.repo-row:hover {
  background: rgba(var(--bone-rgb), 0.03);
}

.repo-name {
  font-family: var(--font-mono);
  font-size: 14.5px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color var(--t-fast) ease;
}

.repo-row:hover .repo-name {
  color: var(--volt);
}

.repo-desc {
  font-size: 14px;
  color: rgba(var(--bone-rgb), 0.66);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.repo-lang,
.repo-stars {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: rgba(var(--bone-rgb), 0.55);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.repo-arrow {
  font-size: 13px;
  color: rgba(var(--bone-rgb), 0.45);
  transition: color var(--t-fast) ease, transform var(--t-fast) var(--ease-out);
}

.repo-row:hover .repo-arrow {
  color: var(--volt);
  transform: translate(2px, -2px);
}

.repo-more {
  padding: 18px 0;
}

.repo-more a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: var(--track);
  color: rgba(var(--bone-rgb), 0.8);
  transition: color var(--t-fast) ease;
}

.repo-more a:hover {
  color: var(--volt);
}

.repos-state {
  padding: 26px 0;
  font-size: 14.5px;
  color: rgba(var(--bone-rgb), 0.75);
}

.repos-state a {
  color: var(--volt);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

/* skeleton rows: same shape as the real ones */
.bar {
  display: inline-block;
  height: 12px;
  border-radius: 2px;
  background: rgba(var(--bone-rgb), 0.09);
  animation: pulse 1.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

/* ═══════════════════════ 03 · who i am ═══════════════════════ */

.leads {
  display: grid;
  gap: clamp(20px, 3vw, 30px);
  max-width: 980px;
}

.lead {
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.7;
  color: rgba(var(--bone-rgb), 0.86);
}

.lead--big {
  font-size: clamp(20px, 2.6vw, 27px);
  line-height: 1.6;
  color: var(--bone);
}

.shortlist {
  margin-top: clamp(48px, 7vw, 84px);
}

.shortlist-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 44px) clamp(28px, 5vw, 64px);
}

.short {
  border-top: 1px solid var(--hairline);
  padding-top: 16px;
  display: grid;
  gap: 8px;
}

.short:nth-child(even) {
  margin-block-start: clamp(16px, 3vw, 40px); /* staggered, not a uniform card grid */
}

.short-idx {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: var(--track);
  color: rgba(var(--volt-rgb), 0.85);
}

.short-title {
  font-weight: 640;
  font-stretch: 114%;
  font-size: 19px;
  letter-spacing: var(--track);
}

html[lang="fa"] .short-title {
  font-stretch: 100%;
  font-weight: 750;
}

.short-desc {
  font-size: 14.5px;
  line-height: 1.65;
  color: rgba(var(--bone-rgb), 0.7);
}

.toolbox {
  margin-top: clamp(48px, 7vw, 84px);
}

.toolbox-list {
  border-top: 1px solid var(--hairline);
}

.toolbox-row {
  display: grid;
  grid-template-columns: minmax(120px, 220px) minmax(0, 1fr);
  gap: 8px 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--hairline);
}

.toolbox-ref {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(var(--volt-rgb), 0.85);
  padding-block-start: 4px;
}

.toolbox-cat {
  font-size: 14px;
  letter-spacing: var(--track);
  color: rgba(var(--bone-rgb), 0.6);
  padding-block-start: 2px;
}

.toolbox-items {
  font-size: 16.5px;
  line-height: 1.8;
  color: rgba(var(--bone-rgb), 0.88);
}

/* ═══════════════════════ 04 · my journey ═══════════════════════ */

.trace-list {
  list-style: none;
  position: relative;
}

.trace-item {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(120px, 190px) minmax(0, 1fr);
  gap: 8px clamp(16px, 3vw, 40px);
  padding-block: clamp(18px, 3vw, 30px);
}

/* the trace: one vertical line through all nodes */
.trace-item::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 21px;
  width: 1px;
  background: rgba(var(--bone-rgb), 0.1);
}

.trace-item:first-child::before {
  inset-block-start: 0;
}

.trace-item:last-child::before {
  inset-block-end: calc(100% - 34px);
}

/* energized segment above each node, revealed on scroll */
.trace-item::after {
  content: "";
  position: absolute;
  inset-block: 0 50%;
  inset-inline-start: 21px;
  width: 1px;
  background: var(--volt);
  transform: scaleY(0);
  transform-origin: 50% 0;
  transition: transform 0.7s var(--ease-out);
}

.trace-item.in::after {
  transform: scaleY(1);
}

.trace-node {
  position: relative;
  z-index: 1;
  justify-self: start;
  align-self: start;
  margin-block-start: 6px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1px solid rgba(var(--bone-rgb), 0.45);
  background: var(--ink-2);
  transition:
    background-color 0.4s ease 0.25s,
    border-color 0.4s ease 0.25s,
    box-shadow 0.4s ease 0.25s;
}

.trace-item.in .trace-node {
  background: var(--volt);
  border-color: var(--volt);
}

.trace-date {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: var(--track);
  color: rgba(var(--bone-rgb), 0.55);
  padding-block-start: 4px;
  white-space: nowrap;
}

.trace-content {
  display: grid;
  gap: 6px;
}

.trace-title {
  font-weight: 640;
  font-stretch: 114%;
  font-size: clamp(19px, 2.2vw, 24px);
  letter-spacing: var(--track);
}

html[lang="fa"] .trace-title {
  font-stretch: 100%;
  font-weight: 750;
}

.trace-sub {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: var(--track);
  color: var(--volt);
}

.trace-desc {
  max-width: 68ch;
  font-size: 15px;
  line-height: 1.68;
  color: rgba(var(--bone-rgb), 0.78);
  margin-top: 6px;
}

/* ═══════════════════════ 05 · what drives me ═══════════════════════ */

.drives {
  border-top: 1px solid var(--hairline);
}

.drive {
  border-bottom: 1px solid var(--hairline);
}

.drive-head {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 68px;
  padding-block: 10px;
  text-align: start;
  transition: background-color var(--t-fast) ease;
}

.drive-head:hover {
  background: rgba(var(--bone-rgb), 0.03);
}

.drive-idx {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: var(--track);
  color: rgba(var(--bone-rgb), 0.4);
  font-variant-numeric: tabular-nums;
}

.drive-title {
  font-weight: 640;
  font-stretch: 118%;
  font-size: clamp(21px, 2.8vw, 34px);
  letter-spacing: var(--track-neg);
  transition: color var(--t-fast) ease, transform 0.3s var(--ease-out);
}

html[lang="fa"] .drive-title {
  font-stretch: 100%;
  font-weight: 750;
  letter-spacing: 0;
}

.drive-head:hover .drive-title {
  color: var(--volt);
  transform: translateX(6px);
}

html[dir="rtl"] .drive-head:hover .drive-title {
  transform: translateX(-6px);
}

.drive-x {
  position: relative;
  width: 44px;
  height: 44px;
  justify-self: end;
  flex: none;
}

.drive-x::before,
.drive-x::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--bone);
  translate: -50% -50%;
  transition: transform 0.35s var(--ease-out);
}

.drive-x::before {
  width: 15px;
  height: 1.5px;
}

.drive-x::after {
  width: 1.5px;
  height: 15px;
}

.drive.open .drive-x::after {
  transform: rotate(90deg);
}

.drive-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease-io);
}

.drive.open .drive-body {
  grid-template-rows: 1fr;
}

.drive-body-clip {
  overflow: hidden;
  min-height: 0;
}

.drive-desc {
  padding: 2px 0 26px calc(56px + 12px);
  max-width: 64ch;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(var(--bone-rgb), 0.75);
}

/* ═══════════════════════ 06 · contact ═══════════════════════ */

.sec--contact {
  padding-block-end: clamp(56px, 8vw, 96px);
}

.contact-lead {
  margin-bottom: clamp(36px, 5vw, 56px);
}

.contact-note {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: var(--track);
  color: rgba(var(--bone-rgb), 0.6);
  margin-bottom: 18px;
}

.email-row {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
  flex-wrap: wrap;
}

.email-link {
  font-weight: 640;
  font-stretch: 120%;
  font-size: clamp(30px, 6.2vw, 84px);
  line-height: 1.05;
  letter-spacing: var(--track-neg);
  position: relative;
  overflow-wrap: anywhere;
  transition: color var(--t-fast) ease;
}

html[lang="fa"] .email-link {
  font-stretch: 100%;
}

.email-link::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-end: 0.04em;
  width: 100%;
  height: 0.045em;
  background: var(--volt);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.45s var(--ease-out);
}

html[dir="rtl"] .email-link::after {
  transform-origin: 100% 50%;
}

.email-link:hover {
  color: var(--volt);
}

.email-link:hover::after {
  transform: scaleX(1);
}

.copy-btn {
  position: relative;
  min-height: 44px;
  padding: 10px 22px;
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: var(--track);
  overflow: clip;
  transition:
    background-color var(--t-fast) ease,
    color var(--t-fast) ease,
    border-color var(--t-fast) ease;
}

.copy-btn:hover {
  border-color: var(--volt);
  color: var(--volt);
}

.copy-done {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--volt);
  color: var(--volt-ink);
  transform: translateY(101%);
  transition: transform 0.3s var(--ease-out);
}

.copy-btn.copied {
  border-color: var(--volt);
}

.copy-btn.copied .copy-done {
  transform: translateY(0);
}

.contact-rows {
  border-top: 1px solid var(--hairline);
}

.contact-row {
  display: grid;
  grid-template-columns: minmax(120px, 220px) minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 6px 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--hairline);
  transition: background-color var(--t-fast) ease;
}

.contact-row:hover {
  background: rgba(var(--bone-rgb), 0.03);
}

.contact-label {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: var(--track);
  color: rgba(var(--bone-rgb), 0.55);
}

.contact-value {
  font-weight: 640;
  font-stretch: 114%;
  font-size: clamp(19px, 2.4vw, 26px);
  letter-spacing: var(--track-neg);
  overflow-wrap: anywhere;
  transition: color var(--t-fast) ease;
}

html[lang="fa"] .contact-value {
  font-stretch: 100%;
}

.contact-row:hover .contact-value {
  color: var(--volt);
}

.contact-arrow {
  font-family: var(--font-mono);
  font-size: 15px;
  color: rgba(var(--bone-rgb), 0.45);
  transition: color var(--t-fast) ease, transform var(--t-fast) var(--ease-out);
}

html[dir="rtl"] .contact-arrow {
  display: inline-block;
  transform: scaleX(-1);
}

.contact-row:hover .contact-arrow {
  color: var(--volt);
  transform: translate(3px, -3px);
}

html[dir="rtl"] .contact-row:hover .contact-arrow {
  transform: scaleX(-1) translate(3px, -3px);
}

/* ═══════════════════════ footer ═══════════════════════ */

.footer {
  display: flex;
  align-items: center;
  gap: 14px 28px;
  flex-wrap: wrap;
  padding: 26px var(--pad-x) 34px;
  border-top: 1px solid var(--hairline);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: var(--track);
  color: rgba(var(--bone-rgb), 0.6);
}

.footer-end {
  color: rgba(var(--volt-rgb), 0.75);
}

.footer-end::before {
  content: "● ";
  font-size: 9px;
  vertical-align: 2px;
}

.footer-year {
  margin-inline-start: auto;
}

.top-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: rgba(var(--bone-rgb), 0.8);
  transition: color var(--t-fast) ease;
}

.top-btn:hover {
  color: var(--volt);
}

.top-arrow {
  transition: transform var(--t-fast) var(--ease-out);
}

.top-btn:hover .top-arrow {
  transform: translateY(-3px);
}

/* ═══════════════════════ custom cursor halo ═══════════════════════ */

.cursor {
  position: fixed;
  inset-block-start: 0;
  inset-inline-start: 0;
  z-index: 70;
  pointer-events: none;
  display: none;
}

/* fine pointers, and never for reduced-motion visitors */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .cursor {
    display: block;
  }
}

.cursor-ring {
  position: absolute;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(var(--bone-rgb), 0.35);
  border-radius: 50%;
  translate: -50% -50%;
  transition:
    width var(--t-fast) var(--ease-out),
    height var(--t-fast) var(--ease-out),
    border-color var(--t-fast) ease;
}

.cursor.hot .cursor-ring {
  width: 52px;
  height: 52px;
  border-color: rgba(var(--volt-rgb), 0.9);
}

/* ═══════════════════════ tablet: 761..1099 ═══════════════════════ */

@media (min-width: 761px) and (max-width: 1099px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(200px, 0.6fr);
  }

  /* tall tablet canvas: the display type grows to hold the space */
  .hero-name {
    font-size: clamp(52px, 11vw, 124px);
  }

  .shortlist-grid {
    gap: 24px 36px;
  }

  .short:nth-child(even) {
    margin-block-start: 0;
  }

  .trace-item {
    grid-template-columns: 44px minmax(110px, 150px) minmax(0, 1fr);
  }
}

/* ═══════════════════════ mobile: ≤760 ═══════════════════════ */

@media (max-width: 760px) {
  :root {
    --topbar-h: 58px;
    --sec-pad: 64px;
  }

  .hero {
    padding-top: calc(var(--topbar-h) + 20px);
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    align-content: start;
  }

  .hero-photo {
    order: 2;
    width: min(78vw, 300px);
    justify-self: start;
    margin-block-start: 8px;
  }

  .hero-foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding-block: 28px;
  }

  .topbar-status {
    display: none;
  }

  .sec-head {
    flex-wrap: wrap;
    gap: 8px 16px;
  }

  .sec-meta {
    width: 100%;
    text-align: start;
    order: 3;
  }

  .project-head {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 20px 18px;
  }

  .project-head-right {
    grid-column: 2;
    grid-row: 1;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
  }

  .project-live {
    display: none;
  }

  .project-body-inner {
    padding: 4px 18px 26px;
  }

  .project-cols {
    grid-template-columns: 1fr;
  }

  .shortlist-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .short:nth-child(even) {
    margin-block-start: 0;
  }

  .toolbox-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .toolbox-ref {
    grid-row: 1 / span 2;
  }

  .toolbox-cat {
    grid-column: 2;
  }

  .toolbox-items {
    grid-column: 2;
    font-size: 15.5px;
  }

  .trace-item {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .trace-item::before,
  .trace-item::after {
    inset-inline-start: 15px;
  }

  .trace-node {
    width: 9px;
    height: 9px;
  }

  .trace-date {
    grid-column: 2;
    padding-block-start: 0;
  }

  .trace-content {
    grid-column: 2;
  }

  .drive-head {
    grid-template-columns: 40px minmax(0, 1fr) 44px;
    min-height: 64px;
  }

  .drive-desc {
    padding-inline-start: 52px;
  }

  .email-row {
    gap: 14px;
  }

  .copy-btn {
    width: 100%;
    justify-content: center;
  }

  .contact-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .contact-label {
    grid-column: 1 / -1;
  }

  .footer {
    padding-block: 22px 28px;
  }

  .footer-year {
    margin-inline-start: 0;
    width: 100%;
    order: 4;
  }
}

/* ═══════════════════════ desktop rail: ≥1100 ═══════════════════════ */

@media (min-width: 1100px) {
  main {
    padding-inline-start: var(--rail-w);
  }

  .rail {
    display: flex;
  }

  .sec-inner {
    max-width: 1080px;
  }
}

/* short landscape viewports: let the hero grow instead of clipping */
@media (max-height: 560px) and (orientation: landscape) {
  .hero {
    min-height: 0;
  }

  .hero-grid {
    padding-block: 12px;
  }
}

/* ═══════════════════════ reduced motion ═══════════════════════ */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  html.js .rv {
    opacity: 1;
    transform: none;
    transition: opacity 0.2s ease;
  }

  html.js .name-mask > span {
    transform: none;
    animation: none;
  }

  .loaded .photo-scan {
    animation: none;
  }

  .loaded .ticker-track {
    animation: none;
  }

  .wordmark-dot,
  .status-dot {
    animation: none;
    box-shadow: none;
  }

  .scroll-tick {
    animation: none;
    transform: none;
  }

  .bar {
    animation: none;
  }

  .trace-item::after {
    transition: none;
  }

  .trace-node {
    transition: none;
  }

  .langbar-seg {
    transition: none;
  }

  .cursor {
    display: none !important;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ═══════════════════════ reduced transparency ═══════════════════════ */

@media (prefers-reduced-transparency: reduce) {
  .topbar.scrolled {
    background: var(--ink);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .ticker {
    mask-image: none;
    -webkit-mask-image: none;
  }

  .shot-note {
    background: var(--ink);
  }
}
