/* ============================================================
   WOUTER BOOM — portfolio
   A day in Heerhugowaard, Stad van de Zon: sunrise → midnight.
   ============================================================ */

:root {
  --ink: #f4f1ea;
  --muted: rgba(244, 241, 234, 0.62);
  --faint: rgba(244, 241, 234, 0.34);
  --accent: #ffb347;            /* driven by JS through the day */
  --bg: #07070f;
  --glass: rgba(10, 10, 20, 0.22);
  --stroke: rgba(255, 255, 255, 0.13);
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "Space Grotesk", system-ui, sans-serif;
  --font-mono: "Space Mono", ui-monospace, monospace;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: auto; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: #0a0a12; }

body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: none; }

/* ---------- sky canvas ---------- */
#sky {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
}

/* atmospheric scrim — keeps text legible over the bright phases */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(6, 6, 15, 0.40) 0%,
    rgba(6, 6, 15, 0.14) 26%,
    rgba(6, 6, 15, 0.14) 62%,
    rgba(6, 6, 15, 0.46) 100%
  );
}

/* ---------- preloader ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #060610;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  transition: transform 1s var(--ease-out), visibility 0s 1s;
}
body.loaded .loader { transform: translateY(-101%); visibility: hidden; }

.loader-name {
  display: flex;
  gap: 0.06em;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 7vw, 4.5rem);
  letter-spacing: 0.04em;
  overflow: hidden;
}
.loader-name span {
  display: inline-block;
  animation: loader-rise 1.1s var(--ease-out) both;
}
.loader-name span:nth-child(2) { animation-delay: 0.05s; }
.loader-name span:nth-child(3) { animation-delay: 0.1s; }
.loader-name span:nth-child(4) { animation-delay: 0.15s; }
.loader-name span:nth-child(5) { animation-delay: 0.2s; }
.loader-name span:nth-child(6) { animation-delay: 0.25s; }
@keyframes loader-rise {
  from { transform: translateY(110%); }
  to { transform: translateY(0); }
}

.loader-count {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--accent);
  letter-spacing: 0.1em;
}
.loader-hint {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ---------- fixed nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem clamp(1.2rem, 4vw, 3rem);
  mix-blend-mode: difference;
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 0.9s ease 0.9s, transform 0.9s var(--ease-out) 0.9s;
}
body.loaded .nav { opacity: 1; transform: translateY(0); }

.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.02em;
}
.nav-logo-dot { color: #fff; opacity: 0.55; }

.nav-links { display: flex; gap: clamp(1rem, 3vw, 2.4rem); }
.nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 400;
  position: relative;
  padding: 0.2rem 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-clock {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #fff;
  letter-spacing: 0.12em;
}

/* ---------- sun & moon ---------- */
.celestial {
  position: fixed;
  z-index: 1;
  width: clamp(56px, 8vw, 110px);
  height: clamp(56px, 8vw, 110px);
  border-radius: 50%;
  pointer-events: none;
  will-change: transform, opacity;
  transform: translate(-50%, -50%);
}
.sun {
  background: radial-gradient(circle at 38% 35%, #fff7d6 0%, #ffd27d 38%, #ff9a3c 72%, rgba(255, 122, 40, 0) 100%);
  box-shadow: 0 0 90px 32px rgba(255, 166, 77, 0.38), 0 0 220px 90px rgba(255, 140, 60, 0.16);
}
.moon {
  background: radial-gradient(circle at 40% 38%, #ffffff 0%, #dfe7ff 45%, #aab7e8 78%, rgba(150, 165, 230, 0) 100%);
  box-shadow: 0 0 70px 24px rgba(190, 205, 255, 0.3), 0 0 190px 70px rgba(160, 175, 255, 0.12);
  opacity: 0;
}
.moon i {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 62% 30%, rgba(120, 135, 190, 0.55) 0 7%, transparent 8%),
    radial-gradient(circle at 40% 60%, rgba(120, 135, 190, 0.45) 0 10%, transparent 11%),
    radial-gradient(circle at 70% 68%, rgba(120, 135, 190, 0.4) 0 5%, transparent 6%);
}

/* ---------- day progress ---------- */
.progress {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  z-index: 41;
  background: rgba(255, 255, 255, 0.06);
}
.progress-bar {
  height: 100%;
  width: 100%;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(0);
  transition: background 0.4s linear;
}

/* ---------- custom cursor ---------- */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 90;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
}
body.has-cursor .cursor-dot, body.has-cursor .cursor-ring { opacity: 1; }
.cursor-dot {
  width: 6px;
  height: 6px;
  background: #fff;
  mix-blend-mode: difference;
}
.cursor-ring {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  mix-blend-mode: difference;
  transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out);
}
body.cursor-hot .cursor-ring { width: 62px; height: 62px; }

/* ---------- toast ---------- */
.toast {
  position: fixed;
  bottom: 2.2rem;
  left: 50%;
  transform: translate(-50%, 160%);
  z-index: 95;
  background: rgba(14, 14, 24, 0.92);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.8rem 1.4rem;
  border-radius: 99px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  transition: transform 0.5s var(--ease-out);
  white-space: nowrap;
}
.toast.show { transform: translate(-50%, 0); }

/* ---------- smooth scroll shell ---------- */
.scroll-wrap { position: relative; z-index: 2; }
body.smooth .scroll-wrap {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  will-change: transform;
}

main {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

/* ---------- hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 14vh 0 8vh;
  position: relative;
}

.hero-kicker {
  font-family: var(--font-mono);
  font-size: clamp(0.62rem, 1.4vw, 0.8rem);
  letter-spacing: 0.28em;
  color: var(--muted);
  margin-bottom: 2.2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5dff9d;
  box-shadow: 0 0 12px #5dff9d;
  display: inline-block;
  animation: pulse 2.2s ease-in-out infinite;
  flex: none;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.8); }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 12vw, 12.5rem);
  line-height: 0.94;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  white-space: nowrap;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.hero-title .ltr {
  display: inline-block;
  transform: translateY(115%) rotate(6deg);
  transform-origin: 0 100%;
  transition: transform 1.1s var(--ease-out);
  will-change: transform;
}
body.loaded .hero-title .ltr { transform: translateY(0) rotate(0); }
.hero-title .accent .ltr { color: var(--accent); transition: transform 1.1s var(--ease-out), color 0.4s linear; }
.hero-title .thin .ltr { color: var(--faint); }

.hero-footnote {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--faint);
  margin-top: 1.4rem;
  letter-spacing: 0.04em;
}

.hero-sub { margin-top: 3rem; }
.hero-role {
  font-family: var(--font-mono);
  font-size: clamp(0.72rem, 1.6vw, 0.88rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  transition: color 0.4s linear;
}
.hero-tag {
  margin-top: 1rem;
  font-size: clamp(1.05rem, 2.4vw, 1.5rem);
  font-weight: 300;
  color: var(--muted);
  max-width: 34em;
}

.hero-scroll {
  position: absolute;
  bottom: 4.5rem;
  left: 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--faint);
}
.hero-scroll-line {
  width: 52px;
  height: 1px;
  background: var(--faint);
  position: relative;
  overflow: hidden;
}
.hero-scroll-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  animation: scan 2.4s var(--ease-out) infinite;
}
@keyframes scan {
  0% { transform: translateX(-100%); }
  55%, 100% { transform: translateX(100%); }
}

/* ---------- sections ---------- */
.section { padding: 22vh 0; position: relative; }
.section-wide { padding-bottom: 26vh; }

.stamp {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.6rem;
  display: flex;
  align-items: baseline;
  gap: 1rem;
}
.stamp::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--stroke), transparent);
  align-self: center;
}
.stamp-center { justify-content: center; }
.stamp-center::after { display: none; }
.stamp-time {
  color: var(--accent);
  font-weight: 700;
  transition: color 0.4s linear;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 6.5vw, 5rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin-bottom: 2.6rem;
  max-width: 16em;
  text-shadow: 0 2px 44px rgba(0, 0, 0, 0.45);
}

.section-lede {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--muted);
  max-width: 44em;
  margin-bottom: 3rem;
}
.section-lede strong { color: var(--ink); font-weight: 500; }

.section-note {
  margin-top: 2.6rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--faint);
}

.link {
  color: var(--ink);
  text-decoration: none;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 100% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: color 0.3s ease;
}
.link:hover { color: var(--accent); }

/* about */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.about-text {
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
  color: var(--muted);
}
.about-text em { color: var(--ink); font-style: normal; font-weight: 400; }
.about-facts { list-style: none; display: grid; gap: 0.9rem; }
.about-facts li {
  border: 1px solid var(--stroke);
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 14px;
  padding: 1rem 1.2rem;
  font-size: 0.92rem;
  color: var(--muted);
}
.about-facts strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  margin-bottom: 0.15rem;
}

/* certs */
.certs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.8rem;
}
.cert {
  border: 1px solid var(--stroke);
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 0.95rem 1.1rem;
  font-size: 0.86rem;
  color: var(--muted);
  display: flex;
  gap: 0.85rem;
  align-items: baseline;
  transition: border-color 0.3s ease, transform 0.3s var(--ease-out);
}
.cert:hover { border-color: var(--accent); transform: translateY(-3px); }
.cert-year {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  flex: none;
  transition: color 0.4s linear;
}

/* marquee */
.marquee-zone { padding: 14vh 0; overflow: hidden; }
.marquee-zone .stamp { margin-bottom: 3rem; width: min(1200px, 92vw); margin-left: auto; margin-right: auto; }
.marquee {
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 4.5vw, 3.4rem);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(244, 241, 234, 0.5);
  padding: 0.6rem 0;
}
.marquee-track { display: inline-block; animation: marquee 36s linear infinite; }
.marquee-rev .marquee-track { animation-direction: reverse; }
.marquee-rev { -webkit-text-stroke: 0; color: var(--accent); opacity: 0.9; transition: color 0.4s linear; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee:hover .marquee-track { animation-play-state: paused; }

/* cards */
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
  perspective: 1200px;
}
.card {
  position: relative;
  border: 1px solid var(--stroke);
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 20px;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: border-color 0.35s ease;
  will-change: transform;
}
.card:hover { border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.card-glare {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(340px circle at var(--gx, 50%) var(--gy, 50%), color-mix(in srgb, var(--accent) 16%, transparent), transparent 65%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.card:hover .card-glare { opacity: 1; }
.card-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--faint);
  letter-spacing: 0.2em;
}
.card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  margin: 0.7rem 0 0.7rem;
}
.card p { color: var(--muted); font-size: 0.95rem; max-width: 36em; }
.card p strong { color: var(--ink); font-weight: 500; }
.tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.3rem;
}
.tags li {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--stroke);
  border-radius: 99px;
  padding: 0.32rem 0.75rem;
}

/* terminal — the long tail of ~/dev */
.terminal {
  margin-top: 3.2rem;
  border: 1px solid var(--stroke);
  border-radius: 16px;
  background: rgba(8, 8, 16, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
  font-family: var(--font-mono);
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.75rem 1.1rem;
  border-bottom: 1px solid var(--stroke);
  color: var(--faint);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
}
.terminal-bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}
.terminal-bar i:nth-child(1) { background: #ff5f57; }
.terminal-bar i:nth-child(2) { background: #febc2e; }
.terminal-bar i:nth-child(3) { background: #28c840; }
.terminal-bar span { margin-left: 0.6rem; }
.terminal-body { padding: 1.2rem 1.3rem 1.4rem; font-size: 0.82rem; }
.term-cmd { color: var(--muted); margin: 0.2rem 0 0.8rem; }
.term-prompt { color: var(--accent); transition: color 0.4s linear; }
.term-note { color: var(--faint); font-style: italic; }
.term-cursor {
  display: inline-block;
  width: 0.55em;
  height: 1em;
  margin-left: 0.35em;
  vertical-align: text-bottom;
  background: var(--accent);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.term-list { list-style: none; margin: 0 0 1rem; }
.term-list li {
  display: grid;
  grid-template-columns: 13.5em 4.5em 1fr;
  gap: 1em;
  padding: 0.34rem 0.5rem;
  border-radius: 6px;
  color: var(--muted);
}
.term-list li:hover { background: rgba(255, 255, 255, 0.05); }
.t-name { color: var(--ink); }
.t-lang { color: var(--accent); transition: color 0.4s linear; }
.t-desc { color: var(--muted); }
@media (max-width: 700px) {
  .term-list li { grid-template-columns: 1fr; gap: 0.1em; padding: 0.5rem; }
  .t-lang { display: none; }
}

/* belief — the conviction section */
.belief-quote {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.25rem, 2.9vw, 2rem);
  line-height: 1.35;
  max-width: 30em;
  color: var(--ink);
  border-left: 3px solid var(--accent);
  padding-left: clamp(1.2rem, 3vw, 2.2rem);
  margin: 0 0 3rem;
  text-shadow: 0 2px 34px rgba(0, 0, 0, 0.4);
  transition: border-color 0.4s linear;
}
.belief-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}
.proof {
  border: 1px solid var(--stroke);
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: border-color 0.3s ease, transform 0.3s var(--ease-out);
}
.proof:hover { border-color: var(--accent); transform: translateY(-4px); }
.proof-big {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  color: var(--accent);
  transition: color 0.4s linear;
}
.proof-sub { font-size: 0.85rem; color: var(--muted); }
@media (max-width: 860px) {
  .belief-proof { grid-template-columns: 1fr; }
}

/* contact */
.contact { text-align: left; }
.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.6rem;
}
.btn {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--ink);
  background: var(--glass);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 99px;
  padding: 1.05rem 1.7rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: border-color 0.3s ease, background 0.3s ease, color 0.3s ease, transform 0.3s var(--ease-out);
  will-change: transform;
}
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn-solid {
  background: var(--ink);
  color: #0a0a12;
  border-color: var(--ink);
  font-weight: 700;
}
.btn-solid:hover { background: var(--accent); border-color: var(--accent); color: #0a0a12; }
.btn-arrow { transition: transform 0.3s var(--ease-out); }
.btn-solid:hover .btn-arrow { transform: translateX(5px); }

.contact-meta {
  margin-top: 3rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--faint);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* footer */
.footer {
  padding: 4rem 0 5rem;
  border-top: 1px solid var(--stroke);
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--faint);
}

/* ---------- reveals (JS-gated: no-JS visitors see everything) ---------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 1s ease, transform 1s var(--ease-out);
  transition-delay: var(--d, 0s);
}
html.js [data-reveal].in { opacity: 1; transform: translateY(0); }
html.js body:not(.loaded) [data-reveal].in { opacity: 0; transform: translateY(34px); }

/* graceful degradation without JS */
html:not(.js) .loader { display: none; }
html:not(.js) .nav { opacity: 1; transform: none; }
html:not(.js) #sky { background: radial-gradient(120% 90% at 20% 110%, #3b1a2e 0%, #10101f 55%, #05050c 100%); }

/* ---------- easter egg ---------- */
body.overdrive .hero-title .accent .ltr,
body.overdrive .stamp-time,
body.overdrive .marquee-rev { animation: rainbow 1.2s linear infinite; }
@keyframes rainbow { to { filter: hue-rotate(360deg); } }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .nav-clock { display: none; }
  .section { padding: 16vh 0; }
  .hero-scroll { bottom: 3rem; }
}
@media (max-width: 560px) {
  .br-desk { display: none; }
  .nav { padding: 1.1rem 1rem; }
  .nav-links { gap: 0.85rem; }
  .nav-links a { font-size: 0.64rem; letter-spacing: 0.06em; }
  .nav-links a:nth-child(1) { display: none; }
  .nav-logo { font-size: 1.05rem; }
  .footer { flex-direction: column; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.2s !important;
  }
  .marquee-track { animation: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .hero-title .ltr { transform: none; }
}
