/* =========================================================
   SUMITAVA ATELIER
   Brand identity studio — one-page site
   Dark-mode, gallery restraint, mobile-first
   ========================================================= */

:root {
  --bg:        #0A0A0A;   /* gallery-wall near-black */
  --ink:       #F2F0EB;   /* warm paper white */
  --accent:    #C8102E;   /* deep blood red — one brushstroke per view */
  --grey:      #8A8782;   /* warm grey — captions, metadata */
  --rule:      rgba(138, 135, 130, 0.22);

  --cream:     #ECE6DA;   /* paper — the single light "gallery wall" section */
  --brass:     #B98A3C;   /* quiet warm secondary — structural detail only */
  --ink-on-cream: #161310; /* near-black text for the light section */
  --rule-cream: rgba(22, 19, 16, 0.18);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --bengali: "Galada", "Noto Serif Bengali", var(--serif);

  --pad: clamp(1.5rem, 6vw, 8rem);     /* horizontal frame */
  --gap-section: clamp(7rem, 18vh, 16rem); /* breathing room between sections */

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.7;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

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

/* ---------- shared type devices ---------- */
.section-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: clamp(2.5rem, 6vh, 5rem);
}
.section-label__n { color: var(--brass); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--bg);
  padding: 0.75rem 1.25rem;
  z-index: 1000;
  font-size: 0.85rem;
}
.skip-link:focus { left: 1rem; top: 1rem; }

:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 6px;
}

/* =========================================================
   SECTION 1 — HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  padding: clamp(1.5rem, 6vw, 8rem) var(--pad) calc(var(--pad) * 0.6);
  display: flex;
  flex-direction: column;
}

.hero__nav {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.logo { color: var(--ink); display: inline-flex; }
.logo__mark { width: 60px; height: 60px; display: block; }

@media (min-width: 760px) {
  .logo__mark { width: 76px; height: 76px; }
}
@media (min-width: 1100px) {
  .logo__mark { width: 96px; height: 96px; }
}

.hero__email {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--grey);
  transition: color 0.3s var(--ease);
  padding-top: 0.4rem;
}
.hero__email:hover { color: var(--accent); }

.hero__inner {
  margin-top: auto;
  margin-bottom: auto;
  padding: clamp(3rem, 10vh, 8rem) 0;
}

.hero__headline {
  font-family: var(--serif);
  font-weight: 340;
  font-size: clamp(3.4rem, 16vw, 17rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
  font-optical-sizing: auto;
}
.hero__headline .line { display: block; }
.hero__headline .accent { color: var(--accent); font-style: italic; }

.hero__sub {
  margin-top: clamp(1.75rem, 4vh, 3rem);
  max-width: 46ch;
  color: var(--grey);
  font-size: clamp(0.95rem, 0.9rem + 0.3vw, 1.15rem);
  letter-spacing: 0.02em;
}

.scroll-cue {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
  color: var(--grey);
}
.scroll-cue__label {
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brass);
}
.scroll-cue__line {
  width: 1px;
  height: clamp(40px, 7vh, 64px);
  background: var(--grey);
  animation: pulse 2.6s var(--ease) infinite;
  transform-origin: top;
}
@keyframes pulse {
  0%, 100% { opacity: 0.25; }
  50%      { opacity: 1; }
}

/* =========================================================
   SECTION 2 — MANIFESTO
   ========================================================= */
.manifesto {
  position: relative;
  padding: var(--gap-section) var(--pad);
  overflow: hidden;
}

.ghost {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--bengali);
  font-size: clamp(7rem, 38vw, 32rem);
  line-height: 1;
  color: var(--ink);
  opacity: 0.05;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.manifesto__body {
  position: relative;
  z-index: 1;
  max-width: 46rem;            /* measure relative to page, not the tiny inherited ch */
}
.manifesto__body p {
  font-family: var(--serif);
  font-weight: 340;
  font-size: clamp(1.6rem, 1rem + 3vw, 3.4rem);
  line-height: 1.14;
  letter-spacing: -0.015em;
  margin-bottom: clamp(1.5rem, 4vh, 2.75rem);
}
.manifesto__body p:last-child { margin-bottom: 0; }

/* =========================================================
   SECTION 3 — SELECTED WORK
   ========================================================= */
.work { padding: var(--gap-section) var(--pad); }

.project {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 4vh, 2.5rem);
  margin-bottom: var(--gap-section);
}

.project__media { width: 100%; }

.placeholder {
  position: relative;
  width: 100%;
  aspect-ratio: var(--ar, 4 / 5);
  background:
    radial-gradient(120% 100% at 30% 20%, rgba(200,16,46,0.10), transparent 55%),
    repeating-linear-gradient(
      135deg,
      rgba(242, 240, 235, 0.022) 0,
      rgba(242, 240, 235, 0.022) 1px,
      transparent 1px,
      transparent 12px
    ),
    linear-gradient(155deg, #221318 0%, #15101a 42%, #0d0c10 100%);
  border: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(130% 120% at 50% 45%, transparent 55%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}
.placeholder__meta {
  position: relative;
  z-index: 1;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey);
}

.project__name {
  font-family: var(--serif);
  font-weight: 360;
  font-size: clamp(2rem, 1.2rem + 3vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
}
.project__context {
  margin-top: 0.9rem;
  max-width: 42ch;
  color: var(--ink);
  font-size: clamp(0.95rem, 0.9rem + 0.3vw, 1.1rem);
}
.project__metadata {
  margin-top: 1.1rem;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey);
}

.work .project:last-of-type { margin-bottom: clamp(3rem, 8vh, 5rem); }
.work__archive { margin-top: clamp(0rem, 2vh, 2rem); }

.archive-link {
  position: relative;
  display: inline-block;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.25rem, 1rem + 1.4vw, 2rem);
  letter-spacing: -0.01em;
  color: var(--ink);
  transition: color 0.3s var(--ease);
}
.archive-link:hover { color: var(--accent); }

.archive-link__label { position: relative; z-index: 1; }

.archive-link__brush-wrap {
  position: absolute;
  left: -10px;
  right: -10px;
  bottom: -0.2em;
  height: 1.05em;
  z-index: 0;
  pointer-events: none;
}
.archive-link .archive-link__brush {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: fill;
  opacity: 0.5;
  transition: opacity 0.35s var(--ease);
}
.archive-link:hover .archive-link__brush { opacity: 0.9; }

.work__social {
  margin-top: clamp(0.9rem, 2.5vh, 1.5rem);
}
.work__social a {
  font-family: var(--sans);
  font-size: clamp(0.85rem, 0.8rem + 0.2vw, 0.95rem);
  letter-spacing: 0.03em;
  color: var(--grey);
  transition: color 0.3s var(--ease);
}
.work__social a:hover { color: var(--accent); }

/* =========================================================
   SECTION 4 — SERVICES
   ========================================================= */
.services { padding: var(--gap-section) var(--pad); }

.services__list { list-style: none; }

.services__item { border-top: 1px solid var(--rule); }
.services__list .services__item:last-child { border-bottom: 1px solid var(--rule); }

.services__row {
  width: 100%;
  background: none;
  border: 0;
  text-align: left;
  display: flex;
  align-items: baseline;
  gap: clamp(1rem, 4vw, 3.5rem);
  padding: clamp(1.4rem, 3.5vh, 2.4rem) 0;
  font-family: var(--serif);
  font-weight: 340;
  color: var(--ink);
  transition: color 0.3s var(--ease);
  cursor: pointer;
}
.services__row:hover,
.services__item.open > .services__row { color: var(--accent); }

.services__num {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--grey);
  transition: color 0.3s var(--ease);
  flex: 0 0 auto;
}
.services__row:hover .services__num,
.services__item.open > .services__row .services__num { color: var(--accent); }

.services__name {
  font-size: clamp(1.8rem, 1rem + 4vw, 4rem);
  line-height: 1;
  letter-spacing: -0.015em;
  flex: 1 1 auto;
}

/* +/− mark */
.services__mark {
  position: relative;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  align-self: center;
}
.services__mark::before,
.services__mark::after {
  content: "";
  position: absolute;
  background: currentColor;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.services__mark::before { top: 50%; left: 0; width: 100%; height: 1px; transform: translateY(-50%); }
.services__mark::after  { left: 50%; top: 0; width: 1px; height: 100%; transform: translateX(-50%); }
.services__item.open .services__mark::after { opacity: 0; transform: translateX(-50%) rotate(90deg); }

/* expanding panel (grid-rows trick — smooth, no fixed height) */
.services__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s var(--ease);
}
.services__item.open .services__panel { grid-template-rows: 1fr; }
.services__panel-inner { overflow: hidden; }
.services__panel-inner p {
  max-width: 56ch;
  padding: 0 0 clamp(1.6rem, 4vh, 2.6rem) 0;
  color: var(--grey);
  font-size: clamp(0.95rem, 0.9rem + 0.3vw, 1.1rem);
}

.services__note {
  margin-top: clamp(2.5rem, 6vh, 4.5rem);
  max-width: 52ch;
  color: var(--grey);
}

/* =========================================================
   SECTION 5 — WHO WE WORK WITH
   ========================================================= */
.who { padding: var(--gap-section) var(--pad); }

.who__statement {
  max-width: 24ch;
  font-family: var(--serif);
  font-weight: 340;
  font-size: clamp(1.7rem, 1rem + 3.4vw, 3.8rem);
  line-height: 1.16;
  letter-spacing: -0.015em;
}
.who__statement p { margin-bottom: clamp(1.2rem, 3vh, 2.2rem); }
.who__statement p:last-child { margin-bottom: 0; }
.who__filter { color: var(--grey); }

/* =========================================================
   SECTION 6 — CONTACT / FOOTER
   ========================================================= */
.contact {
  min-height: 100svh;
  padding: var(--gap-section) var(--pad) clamp(2rem, 5vh, 3.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact__inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact__headline {
  font-family: var(--serif);
  font-weight: 340;
  font-size: clamp(2.6rem, 1rem + 8vw, 9rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  max-width: 14ch;
}

.contact__email {
  display: inline-block;
  margin-top: clamp(2rem, 5vh, 3.5rem);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.4rem, 1rem + 3vw, 3.2rem);
  letter-spacing: -0.01em;
  transition: color 0.3s var(--ease);
  width: fit-content;
}
.contact__email:hover { color: var(--accent); }

.contact__whatsapp {
  display: inline-block;
  margin-top: clamp(0.6rem, 1.5vh, 1rem);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.3rem);
  letter-spacing: 0.01em;
  color: var(--grey);
  border-bottom: 1px solid transparent;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
  width: fit-content;
}
.contact__whatsapp:hover { color: var(--accent); border-color: var(--accent); }

.footer-bar {
  margin-top: clamp(4rem, 12vh, 9rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.footer-bar__left { font-size: clamp(0.85rem, 0.8rem + 0.2vw, 0.95rem); color: var(--grey); letter-spacing: 0.02em; }
.footer-bar__right { display: flex; flex-wrap: wrap; gap: clamp(1.25rem, 4vw, 2.5rem); }
.footer-bar__right a {
  font-family: var(--sans);
  font-size: clamp(0.95rem, 0.85rem + 0.4vw, 1.15rem);
  letter-spacing: 0.03em;
  color: var(--ink);
  transition: color 0.3s var(--ease);
}
.footer-bar__right a:hover { color: var(--accent); }
.footer-bar__fine {
  margin-top: 1.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--grey);
  opacity: 0.7;
}

/* =========================================================
   MOTION — scroll reveals
   ========================================================= */
.reveal {
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   CUSTOM CURSOR (desktop, fine pointer only)
   ========================================================= */
.cursor { display: none; }

@media (hover: hover) and (pointer: fine) {
  .cursor {
    display: block;
    position: fixed;
    top: 0; left: 0;
    width: 9px; height: 9px;
    margin: -4.5px 0 0 -4.5px;
    background: var(--ink);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: width 0.28s var(--ease), height 0.28s var(--ease),
                margin 0.28s var(--ease), background 0.28s var(--ease), opacity 0.3s;
    mix-blend-mode: difference;
  }
  .cursor.is-hover {
    width: 46px; height: 46px;
    margin: -23px 0 0 -23px;
    background: var(--ink);
  }
  body.cursor-ready { cursor: none; }
  body.cursor-ready a,
  body.cursor-ready .services__row { cursor: none; }
}

/* =========================================================
   RESPONSIVE — tablet / desktop
   ========================================================= */
@media (min-width: 760px) {
  .project {
    flex-direction: row;
    align-items: center;
    gap: clamp(3rem, 7vw, 8rem);
  }
  .project__media { flex: 0 0 54%; }
  .project__info  { flex: 1; }
  .project[data-align="right"] { flex-direction: row-reverse; }

  .footer-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .footer-bar__fine { text-align: left; }
}

@media (min-width: 1100px) {
  .project__media { flex-basis: 52%; }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue__line { animation: none; opacity: 0.6; }
  .cursor { display: none !important; }
  body.cursor-ready { cursor: auto; }
  * { transition-duration: 0.01ms !important; }
}

/* =========================================================
   REFINEMENT LAYER
   grain · light section · interstitial image · brushstroke
   ========================================================= */

/* ---- filmic grain (depth without colour) ---- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

/* ---- the single light "gallery wall" — manifesto inverts to paper ---- */
.manifesto--invert {
  background: var(--cream);
  color: var(--ink-on-cream);
}
.manifesto--invert .section-label { color: rgba(22,19,16,0.55); }
.manifesto--invert .section-label__n { color: var(--brass); }
.manifesto--invert .ghost { color: var(--ink-on-cream); opacity: 0.055; }
.manifesto--invert .manifesto__body p { color: var(--ink-on-cream); }
.manifesto--invert .manifesto__accent-line { color: var(--accent); }

/* a single red brushstroke — the literal "one brushstroke per view" */
.brush {
  display: block;
  width: clamp(180px, 34vw, 440px);
  height: auto;
  margin-top: clamp(2.5rem, 6vh, 4.5rem);
  opacity: 0.92;
}
.brush--contact {
  margin: clamp(2rem, 5vh, 3.5rem) 0 0;
  width: clamp(220px, 40vw, 560px);
}

/* ---- interstitial editorial image band (treated, not stock) ---- */
.interstitial {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0 var(--pad);
}
.interstitial__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  border: 1px solid var(--rule);
  background:
    radial-gradient(80% 120% at 78% 30%, rgba(200,16,46,0.12), transparent 60%),
    repeating-linear-gradient(
      135deg,
      rgba(242,240,235,0.02) 0, rgba(242,240,235,0.02) 1px,
      transparent 1px, transparent 13px),
    linear-gradient(120deg, #1c1216 0%, #121017 55%, #0c0b0f 100%);
  display: flex;
  align-items: flex-end;
}
.interstitial__media::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(130% 130% at 50% 40%, transparent 50%, rgba(0,0,0,0.6) 100%);
  pointer-events: none;
}
.interstitial__cap {
  position: relative;
  z-index: 1;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey);
  max-width: 60ch;
}
.interstitial__cap b { color: var(--brass); font-weight: 400; }

/* ---- quiet studio signature (the honest human element) ---- */
.studio-note {
  max-width: 50ch;
  margin-top: clamp(2.5rem, 6vh, 4rem);
  color: var(--grey);
  font-size: clamp(0.95rem, 0.9rem + 0.3vw, 1.1rem);
}

@media (min-width: 760px) {
  .brush { width: clamp(260px, 26vw, 460px); }
}

/* ---- real images fill their slots once dropped in ---- */
.placeholder__img,
.interstitial__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 4;            /* above the treated placeholder + vignette */
  opacity: 0;            /* invisible until it actually loads */
  transition: opacity 0.6s var(--ease);
}
.placeholder__img.is-loaded,
.interstitial__img.is-loaded { opacity: 1; }

/* =========================================================
   PREMIUM MOTION LAYER  (GSAP + ScrollTrigger + Lenis)
   ========================================================= */

/* Lenis smooth-scroll housekeeping */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }

/* masked line reveals — initial hidden state only while JS owns motion */
.mask { display: block; overflow: hidden; }
.mask .line { display: block; will-change: transform; }
.js .mask .line { transform: translateY(112%); }
html.no-gsap .mask .line { transform: none; transition: transform 0.9s var(--ease); }

/* when GSAP is driving, the old CSS reveal transitions must not fight it */
.gsap-on .reveal { transition: none !important; }
.gsap-on .project__media { transition: none; }

/* work media gets a clip-reveal frame */
.project__media { will-change: transform; }
.gsap-on .project__media .placeholder { will-change: clip-path, transform; }

/* ---- marquee — slow manifesto ticker ---- */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: clamp(1.1rem, 2.6vh, 1.8rem) 0;
  margin: var(--gap-section) 0 0;
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 46s linear infinite;
}
.marquee__seq {
  font-family: var(--serif);
  font-weight: 340;
  font-size: clamp(1.5rem, 1rem + 2.6vw, 3rem);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--grey);
  white-space: nowrap;
  padding-right: 0.5em;
}
.marquee__bn { font-family: var(--bengali); color: var(--ink); }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---- footer email: underline draws in ---- */
.contact__email {
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 96%;
  background-size: 0% 1px;
  transition: color 0.3s var(--ease), background-size 0.6s var(--ease);
  padding-bottom: 0.06em;
}
.contact__email:hover { background-size: 100% 1px; }

/* ---- magnetic targets (desktop) ---- */
.magnetic { display: inline-block; will-change: transform; }

/* ---- back-to-top ---- */
.back-to-top {
  position: fixed;
  right: clamp(1.1rem, 4vw, 2rem);
  bottom: clamp(1.1rem, 4vw, 2rem);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--grey);
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1;
  text-decoration: none;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease),
    color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.back-to-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { color: var(--accent); border-color: var(--accent); }
.back-to-top span { transform: translateY(-1px); }

/* leave room for the floating back-to-top button above the footer links */
@media (max-width: 759px) {
  .contact { padding-bottom: calc(50px + clamp(1.1rem, 4vw, 2rem) + 1rem); }
}

@media (prefers-reduced-motion: reduce) {
  .js .mask .line { transform: none; }
  .marquee__track { animation: none; }
}
