/* =========================================================
   Steven N. Santoso — Portfolio
   "Two-Tone Print": background flips light/dark per section,
   single accent color used consistently across both.
   ========================================================= */

:root{
  --accent: #d7ff3f;
  --accent-ink: #14120f;

  /* dark-tone defaults — anything outside an explicit .tone-* wrapper
     (fixed header, cursor, preloader, grain) inherits these */
  --bg: #14120f;
  --ink: #f5f1e6;
  --muted: #9a958a;
  --line: rgba(245,241,230,.16);
  --panel: #1d1b17;

  --font-display: "Fraunces", "Iowan Old Style", ui-serif, Georgia, serif;
  --font-body: "Space Grotesk", "Segoe UI", ui-sans-serif, system-ui, sans-serif;

  --container: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --ease: cubic-bezier(.16,.84,.24,1);
}

.tone-light{
  --bg: #f5f1e6;
  --ink: #14120f;
  --muted: #6b6558;
  --line: rgba(20,18,15,.14);
  --panel: #ece5d4;
}
.tone-dark{
  --bg: #14120f;
  --ink: #f5f1e6;
  --muted: #9a958a;
  --line: rgba(245,241,230,.16);
  --panel: #1d1b17;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ background: var(--bg); scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ list-style: none; margin: 0; padding: 0; }
h1,h2,h3,h4,p{ margin: 0; }
button{ font: inherit; background: none; border: none; }

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

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

/* ---------- skip link ---------- */
.skip-link{
  position: fixed;
  top: -100%;
  left: 1rem;
  z-index: 1000;
  background: var(--accent);
  color: var(--accent-ink);
  padding: .75rem 1.25rem;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 500;
  transition: top .2s var(--ease);
}
.skip-link:focus{ top: 1rem; }
/* tabindex="-1" makes #main a valid focus target for the skip link above;
   it's not itself interactive, so it doesn't need a ring drawn around
   the entire page content. */
main:focus{ outline: none; }

/* ---------- grain overlay ---------- */
.grain{
  position: fixed;
  inset: 0;
  z-index: 500;
  pointer-events: none;
  opacity: .05;
  mix-blend-mode: overlay;
}

/* ---------- preloader ---------- */
.preloader{
  position: fixed;
  inset: 0;
  z-index: 900;
  background: #14120f;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: var(--gutter);
  font-family: var(--font-body);
}
.preloader__mark{
  font-size: .85rem;
  letter-spacing: .12em;
  color: #9a958a;
  text-transform: uppercase;
}
.preloader__count{
  font-family: var(--font-display);
  font-size: clamp(3rem, 12vw, 8rem);
  font-weight: 500;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.preloader.is-done{
  transition: transform .9s var(--ease);
  transform: translateY(-100%);
}

/* ---------- custom cursor ---------- */
.cursor{
  position: fixed;
  top: 0; left: 0;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  pointer-events: none;
  z-index: 800;
  transform: translate(-50%,-50%);
  mix-blend-mode: difference;
  display: none;
}
.cursor-ring{
  position: fixed;
  top: 0; left: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.55);
  pointer-events: none;
  z-index: 799;
  mix-blend-mode: difference;
  transform: translate(-50%,-50%);
  transition: width .25s var(--ease), height .25s var(--ease), border-color .25s var(--ease);
  display: none;
}
.cursor-ring.is-active{ width: 60px; height: 60px; border-color: var(--accent); }
@media (hover:hover) and (pointer:fine){
  .cursor, .cursor-ring{ display: block; }
}

/* ---------- header ---------- */
.site-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem var(--gutter);
  color: #fff;
  transition: top .4s var(--ease);
}
.site-header .logo{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: .02em;
  mix-blend-mode: difference;
}
.site-nav ul{
  display: flex;
  gap: clamp(.85rem, 2.5vw, 2.2rem);
}
.site-nav a{
  position: relative;
  font-size: .82rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding-bottom: 2px;
  mix-blend-mode: difference;
}
.site-nav a::after{
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 1px;
  width: 100%;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s var(--ease);
}
.site-nav a:hover::after{ transform: scaleX(1); transform-origin: left; }

.nav-toggle{
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -11px; /* offsets the larger hit target so the icon stays visually aligned with the edge */
  color: #fff;
  cursor: pointer;
  touch-action: manipulation;
}

@media (max-width: 760px){
  .site-nav{
    position: fixed;
    top: 0; left: 0; right: 0;
    background: #14120f;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6.5rem 0 2.5rem;
    box-shadow: 0 24px 48px rgba(0,0,0,.35);
    transform: translateY(-100%);
    transition: transform .4s var(--ease);
    z-index: 250;
  }
  .site-nav.is-open{ transform: translateY(0); }
  .site-nav ul{ flex-direction: column; text-align: center; gap: 1.25rem; }
  .site-nav a{ font-size: 1.25rem; font-family: var(--font-display); color: #f5f1e6; mix-blend-mode: normal; }
  .nav-toggle{ display: flex; z-index: 260; }
}

/* ---------- section shell ---------- */
section{
  position: relative;
  z-index: 0; /* gives the section its own stacking context, so the
                 ::before gradient's z-index:-1 below is contained
                 locally instead of sinking behind the section's own
                 background paint */
  padding: clamp(5rem, 12vw, 9rem) 0;
  background: var(--bg);
  color: var(--ink);
}
/* Softens the hard dark/light cut at each section boundary into a short
   gradient instead — sections alternate tone strictly, so a light
   section's incoming edge is always from dark and vice versa. */
section:not(.hero)::before{
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 140px;
  z-index: -1;
  pointer-events: none;
}
.tone-light:not(.hero)::before{ background: linear-gradient(to bottom, #14120f, transparent); }
.tone-dark:not(.hero)::before{ background: linear-gradient(to bottom, #f5f1e6, transparent); }
.section-head{
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
.section-head .num{
  font-family: var(--font-display);
  font-style: italic;
  color: var(--muted);
  font-size: 1rem;
}
.section-head h2{
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 3.4rem);
  letter-spacing: -.01em;
}
.section-head .rule{
  flex: 1;
  height: 1px;
  background: var(--line);
}

@media (max-width: 760px){
  section{ padding: 3rem 0; }
  .section-head{ margin-bottom: 2rem; }
  section:not(.hero)::before{ height: 70px; }
}

.reveal{
  opacity: 0;
  transform: translateY(40px);
}

/* ---------- buttons ---------- */
.btn-accent{
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--accent);
  color: var(--accent-ink);
  cursor: pointer;
  padding: .85rem 1.5rem;
  font-weight: 500;
  font-size: .9rem;
  letter-spacing: .02em;
  border-radius: 999px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.btn-accent:hover{ transform: translateY(-2px); box-shadow: 0 10px 28px rgba(215,255,63,.28); }

/* ---------- hero ---------- */
.hero{
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 6rem;
  padding-bottom: 4rem;
}
.hero__glow{
  position: absolute;
  width: 60vw;
  height: 60vw;
  max-width: 900px;
  max-height: 900px;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  background: radial-gradient(circle, rgba(215,255,63,.14), transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.hero__eyebrow{
  position: relative;
  z-index: 1;
  font-size: .85rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1.25rem;
}
.hero__eyebrow::before{
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  border: 1px solid rgba(20,18,15,.5);
  box-shadow: 0 0 0 3px rgba(215,255,63,.16);
}
.hero h1{
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.6rem, 9vw, 7rem);
  line-height: .98;
  letter-spacing: -.01em;
}
.hero h1 .line{ overflow: hidden; display: block; }
.hero h1 .line span{ display: inline-block; will-change: transform; }
.hero h1 em{ font-style: italic; color: var(--accent); }
.hero__sub{
  position: relative;
  z-index: 1;
  max-width: 40ch;
  margin-top: 1.75rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.15rem);
}
.hero__scroll{
  position: absolute;
  bottom: 2.25rem;
  left: var(--gutter);
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero__scroll-line{ width: 1px; height: 40px; background: var(--line); position: relative; overflow: hidden; }
.hero__scroll-line::after{
  content: "";
  position: absolute;
  top: -100%; left: 0;
  width: 100%; height: 100%;
  background: var(--accent);
  animation: scrollline 2.2s var(--ease) infinite;
}
@keyframes scrollline{
  0%{ top: -100%; }
  60%{ top: 100%; }
  100%{ top: 100%; }
}

/* ---------- marquee ---------- */
.marquee{
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 1.1rem 0;
}
.marquee__track{
  display: flex;
  width: max-content;
  gap: 3rem;
  animation: marquee 28s linear infinite;
}
.marquee__track span{
  font-size: clamp(1rem, 2vw, 1.4rem);
  color: var(--muted);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 3rem;
}
.marquee__track span b{ color: var(--ink); font-weight: 500; }
.marquee__track span::after{ content: "\2726"; color: var(--accent); font-size: .8rem; margin-left: 3rem; }
@keyframes marquee{ from{ transform: translateX(0); } to{ transform: translateX(-50%); } }

/* ---------- intro ---------- */
.intro__grid{
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.intro__portrait{
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  border: 1px solid var(--line);
}
.intro__portrait img{
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  transform: scale(1.05);
  transition: filter .6s var(--ease), transform .6s var(--ease);
}
.intro__portrait:hover img{ filter: grayscale(0); transform: scale(1); }
.intro__text p{ color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.25rem); margin-bottom: 1.5rem; }
.intro__text p b{ color: var(--ink); font-weight: 500; }
.intro__tags{ display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2rem; }
.intro__tags span{
  border: 1px solid var(--line);
  padding: .4rem .9rem;
  font-size: .78rem;
  letter-spacing: .04em;
  color: var(--muted);
  border-radius: 999px;
}

/* ---------- work: 3D fan of project tiles ----------
   Tiles sit on an arc, each rotated by its --i slot (centred on 0, e.g.
   -2.5 .. 2.5 for six tiles) around a pivot --radius behind the plane.
   Keep --radius >= half the tile width / tan(--step / 2) so neighbours
   meet edge to edge instead of slicing through each other. The selected
   tile slides further out along its own ray; its details show in a flat
   panel underneath so the text is never skewed. */
.project-fan{ margin: 1rem 0; }
.project-fan__ring{
  --step: 20deg;
  --radius: 540px;
  --tile: 190px;
  position: relative;
  height: 17rem;
  perspective: 1500px;
  perspective-origin: 50% 40%;
  transform-style: preserve-3d;
  /* side tiles swing behind this element's plane; without this it
     would swallow pointer events on the parts of them behind it */
  pointer-events: none;
}
.project-fan__card{
  position: absolute;
  top: 1rem;
  left: 50%;
  width: var(--tile);
  margin-left: calc(var(--tile) / -2);
  padding: .75rem;
  background: var(--panel);
  border: 1px solid var(--line);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  pointer-events: auto;
  transform: translateZ(calc(var(--radius) * -1)) rotateY(calc(var(--i) * var(--step))) translateZ(var(--radius));
  transition: transform .55s var(--ease), filter .5s var(--ease), border-color .4s var(--ease);
  /* dimmed with brightness, not opacity: translucent tiles would show
     each other through where they overlap */
  filter: grayscale(.7) brightness(.45);
}
.project-fan__card:hover{ filter: grayscale(.4) brightness(.7); }
.project-fan__card.is-active{
  transform: translateZ(calc(var(--radius) * -1)) rotateY(calc(var(--i) * var(--step))) translateZ(calc(var(--radius) + 50px)) scale(1.05);
  filter: none;
  border-color: var(--accent);
}
.project-fan__card:focus-visible{ outline: 2px solid var(--accent); outline-offset: 4px; }
.project-fan__media{
  display: block;
  aspect-ratio: 16/10;
  overflow: hidden;
  border: 1px solid var(--line);
  margin-bottom: .75rem;
}
.project-fan__media img{
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) brightness(.85);
  transform: scale(1.08);
  transition: filter .7s var(--ease), transform .7s var(--ease);
}
.project-fan__card.is-active .project-fan__media img{ filter: none; transform: scale(1); }
.project-fan__index{ font-family: var(--font-display); font-style: italic; color: var(--muted); font-size: .85rem; display: block; margin-bottom: .3rem; transition: color .35s var(--ease); }
.project-fan__card.is-active .project-fan__index,
.project-fan__detail .project-fan__index{ color: var(--accent); }
.project-fan__title{ display: block; font-family: var(--font-display); font-weight: 500; font-size: 1rem; line-height: 1.25; letter-spacing: -.01em; }

.project-fan__details{ display: grid; max-width: 68rem; margin: 1rem auto 0; }
.project-fan__detail{
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.project-fan__detail.is-active{ opacity: 1; visibility: visible; transform: none; }
.project-fan__cover{ display: block; width: 100%; aspect-ratio: 16/10; object-fit: cover; border: 1px solid var(--line); }
.project-fan__detail-title{ font-family: var(--font-display); font-weight: 500; font-size: clamp(1.7rem, 3vw, 2.3rem); letter-spacing: -.01em; margin-bottom: .9rem; }

.project__desc{ color: var(--muted); font-size: clamp(1rem, 1.3vw, 1.1rem); max-width: 52ch; margin-bottom: 1.5rem; }
.project__tags{ display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.75rem; }
.project__tags span{
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: var(--accent);
  padding: .3rem .7rem;
}
.project__link{
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .95rem;
  letter-spacing: .02em;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
}
.project__links{ display: flex; flex-wrap: wrap; gap: .75rem 1.75rem; }
.project__link svg{ width: 14px; height: 14px; transition: transform .3s var(--ease); }
.project__link:hover svg{ transform: translate(3px,-3px); }

@media (max-width: 960px){
  .project-fan__ring{ --radius: 460px; --tile: 160px; }
}
@media (max-width: 800px){
  .project-fan__ring{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .6rem;
    height: auto;
    perspective: none;
    transform-style: flat;
  }
  .project-fan__card{
    position: static;
    width: auto; margin: 0;
    padding: .5rem;
    transform: none !important;
  }
  .project-fan__media{ margin-bottom: .5rem; }
  .project-fan__card .project-fan__index{ font-size: .75rem; margin-bottom: .15rem; }
  .project-fan__title{ font-size: .85rem; line-height: 1.25; }
  .project-fan__details{ margin-top: 1.75rem; }
  .project-fan__detail{ grid-template-columns: 1fr; gap: 1.25rem; }
  .intro__grid{ grid-template-columns: 1fr; }
}

/* ---------- activity (github stats + heatmap) ---------- */
.activity__grid{
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.activity__stats .stat{
  border-top: 2px solid var(--accent);
  padding-top: .9rem;
  margin-bottom: 1.75rem;
}
.activity__stats .stat strong{
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.activity__stats .stat span{ font-size: .8rem; color: var(--muted); letter-spacing: .04em; }
.activity__stats .project__link{ margin-top: .5rem; }

.activity__heatmap{ min-width: 0; }
.heatmap__loading{ color: var(--muted); font-size: .9rem; }
.heatmap{
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(7, 1fr);
  gap: 3px;
  overflow-x: auto;
  padding-bottom: .75rem;
}
.heatmap__day{
  width: 11px; height: 11px;
  background: var(--line);
}
.heatmap__day[data-level="1"]{ background: color-mix(in srgb, var(--accent) 30%, var(--bg)); }
.heatmap__day[data-level="2"]{ background: color-mix(in srgb, var(--accent) 55%, var(--bg)); }
.heatmap__day[data-level="3"]{ background: color-mix(in srgb, var(--accent) 78%, var(--bg)); }
.heatmap__day[data-level="4"]{ background: var(--accent); }
.heatmap--fallback{ display: block; }
.heatmap--fallback img{ width: 100%; height: auto; }
.heatmap__total{ display: block; margin-top: .75rem; font-size: .8rem; color: var(--muted); }

@media (max-width: 800px){ .activity__grid{ grid-template-columns: 1fr; } }

/* ---------- about ---------- */
.about__grid{ display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); }
.about__stats{ display: grid; grid-template-columns: repeat(2,1fr); gap: 1.5rem; margin-top: 2.5rem; }
.about__stats div{ border-top: 1px solid var(--line); padding-top: .9rem; }
.about__stats strong{ display: block; font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.4rem); color: var(--accent); }
.about__stats span{ font-size: .8rem; color: var(--muted); letter-spacing: .04em; }
.about p{ color: var(--muted); font-size: clamp(1.05rem, 1.5vw, 1.2rem); margin-bottom: 1.4rem; }
.about p b{ color: var(--ink); font-weight: 500; }
@media (max-width: 800px){ .about__grid{ grid-template-columns: 1fr; } }

/* ---------- contact ---------- */
.contact h2.big{
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.4rem, 8vw, 6rem);
  line-height: 1.05;
  letter-spacing: -.01em;
  max-width: 16ch;
  text-wrap: balance;
}
.contact h2.big a{
  color: var(--ink);
  font-style: italic;
  padding: 0 .15em;
  background-image: linear-gradient(transparent 62%, var(--accent) 62%);
  transition: background-image .3s var(--ease);
}
.contact h2.big a:hover{ background-image: linear-gradient(transparent 8%, var(--accent) 8%); }
.contact__meta{
  display: flex;
  flex-wrap: wrap;
  gap: clamp(2rem, 6vw, 4rem);
  margin-top: clamp(3rem, 7vw, 5rem);
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.contact__col span.label{
  display: block;
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .6rem;
}
.contact__col a, .contact__col p{ font-size: 1.05rem; }
.contact__socials{ display: flex; gap: 1rem; }
.contact__socials a{
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .3s, transform .3s var(--ease), color .3s, background .3s;
}
.contact__socials a:hover{
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  transform: translateY(-3px);
}
.contact__socials svg{ width: 18px; height: 18px; }

/* ---------- footer ---------- */
.site-footer{
  border-top: 1px solid var(--line);
  padding: 2rem var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .8rem;
  color: var(--muted);
  letter-spacing: .03em;
}
.live-clock{ display: flex; align-items: center; font-variant-numeric: tabular-nums; }
.live-dot{
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  margin-right: .5rem;
  animation: pulse 2s infinite;
}
@keyframes pulse{
  0%{ box-shadow: 0 0 0 0 rgba(215,255,63,.45); }
  70%{ box-shadow: 0 0 0 8px rgba(215,255,63,0); }
  100%{ box-shadow: 0 0 0 0 rgba(215,255,63,0); }
}
.back-to-top{
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .5rem 1rem;
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: border-color .3s, color .3s;
}
.back-to-top:hover{ border-color: var(--accent); color: var(--accent); }

@media (max-width: 520px){
  .site-footer{ flex-direction: column; text-align: center; }
}

/* ---------- magnetic elements ---------- */
[data-magnetic]{ display: inline-block; will-change: transform; }

/* ---------- touch feedback ----------
   Desktop gets hover states via the mouse; touch devices get none of
   that, so tap the same visual reveals on :active instead of leaving
   taps feeling inert. Scoped to (hover:none) so it never doubles up
   with the existing :hover rules on devices that have both. */
@media (hover: none){
  .btn-accent:active{ transform: scale(.95); }
  .project__link:active{ opacity: .6; }
  .contact__socials a:active{
    border-color: var(--accent);
    background: var(--accent);
    color: var(--accent-ink);
    transform: scale(.94);
  }
  .project:active .project__media img{
    filter: grayscale(0) brightness(1);
    transform: scale(1);
  }
  .intro__portrait:active img{
    filter: grayscale(0) contrast(1.05);
    transform: scale(1);
  }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .marquee__track{ animation: none; }
  .hero__scroll-line::after{ animation: none; }
  .live-dot{ animation: none; }
  .reveal{ opacity: 1; transform: none; }
  .preloader{ display: none; }
}
