/* ==========================================================================
   TSAREV — portfolio
   Design tokens mirrored from the original build
   ========================================================================== */

:root {
  --bg: #0f0f0f;
  --fg: #fff;
  --muted: #a6a6a6;
  --muted-strong: #999;
  --surface: #1a1a1a;
  --track: #2a2a2a;
  --link: #09f;

  --pad: 20px;
  /* wider gutter used by the project screen */
  --pad-lg: 40px;
  --nav-h: 58px;

  /* spring(damping 40, stiffness 180, mass 1) — overdamped, no overshoot */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  /* spring(bounce .25, duration .45) — slight overshoot */
  --ease-bounce: cubic-bezier(.34, 1.36, .64, 1);
}

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

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

body {
  margin: 0;
  /* Sticky footer: short pages still push the footer to the viewport bottom */
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font-family: Inter, "Inter Placeholder", -apple-system, BlinkMacSystemFont, sans-serif;
  font-feature-settings: "ss07" on;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, p, figure { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
img { display: block; max-width: 100%; }

a {
  color: inherit;
  text-decoration: none;
  transition: color .2s cubic-bezier(0, 0, 1, 1);
}

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

::selection { background: var(--fg); color: var(--bg); }

/* --------------------------------------------------------------------------
   Type presets
   -------------------------------------------------------------------------- */

.t-hero,
.t-xl,
.t-lg,
.t-card {
  font-weight: 500;
  letter-spacing: -.08em;
  line-height: 1em;
  text-transform: uppercase;
}

.t-hero { font-size: 128px; text-align: center; }
.t-xl   { font-size: 64px; }
.t-lg   { font-size: 40px; }
.t-card { font-size: 15px; }

.t-sm {
  font-size: 15px;
  font-weight: 400;
  letter-spacing: -.04em;
  line-height: 1.2em;
  text-transform: uppercase;
}

.t-body {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -.04em;
  line-height: 1.2em;
}

.t-muted { color: var(--muted); }

.link-underline {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.link-underline:hover { color: var(--muted-strong); }

.nav-link:hover { color: var(--muted-strong); }

/* Tag / pill link — backdrop-blurred, hairline underline on active */
.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 0;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border-bottom: .5px solid transparent;
  transition: border-color .4s var(--ease-out), color .2s linear;
  white-space: pre;
}
.tag { color: var(--muted); }
.tag:hover { border-bottom-color: var(--muted-strong); color: var(--muted-strong); }
.tag[aria-current="true"],
.tag.is-active { border-bottom-color: var(--fg); color: var(--fg); }

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.main {
  position: relative;
  z-index: 2;
  flex: 1 0 auto;
  background: var(--bg);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding-inline: var(--pad);
  background: var(--bg);
}

.site-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
}

.logo { font-weight: 600; }

.site-nav {
  display: flex;
  gap: 22px;
  justify-content: center;
}
/* Current page stays white, the rest sit back */
.site-nav .nav-link { color: var(--muted); }
.site-nav .nav-link[aria-current="page"] { color: var(--fg); }

.clock {
  justify-self: end;
  font-variant-numeric: tabular-nums;
}

.menu-toggle,
.mobile-menu { display: none; }

/* --------------------------------------------------------------------------
   Hero — pinned behind the page, blurs and shrinks away on scroll
   -------------------------------------------------------------------------- */

.hero {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100svh;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding-inline: var(--pad);
  will-change: filter, transform;
}

.hero-spacer { height: 100svh; }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.section-head > :first-child { flex: 1 0 0; min-width: 0; }

.section-works {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 40px var(--pad) 80px;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(50px, 1fr));
  gap: 32px 12px;
  padding-bottom: 60px;
}
.works-grid--all { grid-template-columns: repeat(3, minmax(50px, 1fr)); }

.card { display: block; }
.card[hidden] { display: none; }

.card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform .45s var(--ease-bounce),
    opacity .45s var(--ease-bounce);
}
.card:hover .card__media img {
  transform: scale(1.1);
  opacity: .9;
}

.card__details {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 20px;
}

.works-footer { display: flex; justify-content: center; }

/* Filter bar (all works) */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

/* About */

.section-about { padding: 80px var(--pad); }

.about-row {
  display: flex;
  align-items: flex-start;
  gap: 40px;
}

.about-col {
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.about-item {
  display: flex;
  align-items: flex-start;
  gap: 4px;
}
.about-item__label { flex: none; width: 265px; }
.about-item__value { flex: 1 0 0; min-width: 0; }

.career {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.about-photo {
  flex: none;
  width: 400px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }

/* CTA */

.section-cta {
  padding: 200px var(--pad);
  display: flex;
  justify-content: center;
}

.cta-link {
  display: inline-flex;
  transition:
    transform .45s var(--ease-bounce),
    opacity .45s var(--ease-bounce);
  transform-origin: center;
}
a.cta-link:hover { transform: scale(1.2); }

/* Contact page */

.section-contact {
  padding: 160px var(--pad) 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  column-gap: 40px;
}

.contact-left {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  column-gap: 40px;
  row-gap: 16px;
}

.contact-heading { grid-column: 1 / -1; }
.contact-lead { grid-column: 1; max-width: 380px; }

.contact-details {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.contact-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-value {
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 1.35em;
  overflow-wrap: break-word;
}
.contact-value a { transition: color .2s linear; }
.contact-value a:hover { color: var(--muted-strong); }

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-photo {
  width: 380px;
  max-width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.contact-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
}

@media (max-width: 900px) {
  .section-contact {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 32px;
  }
  .section-contact .contact-photo { order: -1; }
  .contact-left { grid-template-columns: minmax(0, 1fr); row-gap: 32px; }
  .contact-lead, .contact-details { grid-column: 1; }
  .contact-photo { width: 100%; max-width: 320px; }
  .contact-lead { max-width: none; }
}

/* Calculator page */

.section-calculator {
  padding: 160px var(--pad) 120px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.section-calculator .project-lead { max-width: 640px; }

.calc-step {
  display: none;
  flex-direction: column;
  gap: 32px;
  max-width: 640px;
  margin-top: 24px;
}
.calc-step.is-active { display: flex; }

.calc-entry {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.calc-entry__option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 28px 24px;
  border: 1px solid var(--track);
  border-radius: 6px;
  text-align: left;
  transition: border-color .3s var(--ease-out), background .3s var(--ease-out);
}
.calc-entry__option:hover { border-color: var(--muted-strong); background: var(--surface); }

.calc-toolbar { display: flex; align-items: center; gap: 16px; }
.calc-toolbar .calc-progress { flex: 1; }

.calc-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  flex: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--track);
  border-radius: 50%;
  color: var(--muted);
  transition: border-color .3s var(--ease-out), color .3s var(--ease-out);
}
.calc-back:hover { border-color: var(--muted-strong); color: var(--muted-strong); }

.calc-progress { display: flex; flex-direction: column; gap: 8px; }
.calc-progress__bar {
  height: 3px;
  border-radius: 2px;
  background: var(--track);
  overflow: hidden;
}
.calc-progress__fill {
  height: 100%;
  width: 25%;
  background: var(--fg);
  border-radius: 2px;
  transition: width .45s var(--ease-out);
}
.calc-progress__label { letter-spacing: -.01em; }

.calc-question { display: flex; flex-direction: column; gap: 12px; }
.calc-question[hidden] { display: none; }

.calc-question.is-revealed, .calc-submit.is-revealed, .calc-result.is-revealed {
  animation: calc-rise .55s var(--ease-out) both;
}
.calc-question.is-leaving, .calc-submit.is-leaving {
  animation: calc-dismiss .38s var(--ease-out) both;
}

@keyframes calc-rise {
  from { opacity: 0; transform: translateY(18px); filter: blur(8px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}
@keyframes calc-dismiss {
  from { opacity: 1; transform: translateY(0); filter: blur(0); }
  to { opacity: 0; transform: translateY(-18px); filter: blur(8px); }
}

.calc-options { display: flex; flex-wrap: wrap; gap: 10px; }
.calc-options[hidden] { display: none; }

.calc-option {
  padding: 10px 18px;
  border: 1px solid var(--track);
  border-radius: 6px;
  font-size: 15px;
  letter-spacing: -.01em;
  transition: border-color .3s var(--ease-out), background .3s var(--ease-out), color .3s var(--ease-out);
}
.calc-option:hover { border-color: var(--muted-strong); }
.calc-option.is-active { border-color: var(--fg); background: var(--fg); color: var(--bg); }

.calc-submit {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 6px;
  border: 1px solid var(--fg);
  background: var(--fg);
  color: var(--bg);
  transition: opacity .3s var(--ease-out);
}
.calc-submit[hidden] { display: none; }
.calc-submit.is-revealed { animation: calc-rise .6s var(--ease-out) both; }
.calc-submit:disabled { opacity: .35; pointer-events: none; }
.calc-submit:not(:disabled):hover { opacity: .85; }

.calc-textarea {
  width: 100%;
  min-height: 140px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--track);
  border-radius: 4px;
  color: var(--fg);
  font: inherit;
  font-size: 15px;
  letter-spacing: -.01em;
  line-height: 1.4em;
  resize: vertical;
}
.calc-textarea:focus { outline: none; border-color: var(--muted-strong); }
.calc-textarea::placeholder { color: var(--muted-strong); }

.calc-loading { display: flex; align-items: center; gap: 12px; }
.calc-loading[hidden] { display: none; }
.calc-loading__spinner {
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--track);
  border-top-color: var(--fg);
  animation: calc-spin .7s linear infinite;
}
@keyframes calc-spin { to { transform: rotate(360deg); } }

.calc-calculating { display: flex; align-items: center; gap: 10px; padding: 24px 0; }
.calc-calculating[hidden] { display: none; }
.calc-calculating.is-revealed { animation: calc-rise .5s var(--ease-out) both; }
.calc-calculating.is-leaving { animation: calc-dismiss .32s var(--ease-out) both; }
.calc-calculating__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--fg);
  animation: calc-dot-pulse 1s ease-in-out infinite;
}
.calc-calculating__dot:nth-child(2) { animation-delay: .15s; }
.calc-calculating__dot:nth-child(3) { animation-delay: .3s; }
@keyframes calc-dot-pulse {
  0%, 80%, 100% { opacity: .25; transform: scale(.7); }
  40% { opacity: 1; transform: scale(1); }
}

.calc-result {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 8px 0 0;
}
.calc-result[hidden] { display: none; }
.calc-result > * { position: relative; z-index: 1; }

.calc-result__decor {
  position: absolute;
  z-index: 0;
  inset: -40px -20px auto -20px;
  height: 220px;
  pointer-events: none;
}
.calc-result__orb {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .28), rgba(255, 255, 255, 0) 70%);
  filter: blur(40px);
  animation: calc-orb-float 9s ease-in-out infinite;
}
.calc-result__orb--1 { width: 240px; height: 240px; top: -60px; right: 10%; }
.calc-result__orb--2 { width: 160px; height: 160px; top: 20px; left: 5%; animation-delay: -4.5s; }
@keyframes calc-orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-18px, 14px) scale(1.1); }
}

.calc-result__badge {
  align-self: flex-start;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 3px 10px;
  border-radius: 100px;
  color: var(--muted);
  background: var(--track);
}
.calc-result__range {
  font-size: 64px;
  font-weight: 500;
  letter-spacing: -.03em;
  line-height: 1.05;
}
.calc-breakdown {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--track);
}

.calc-result__actions { display: flex; gap: 12px; flex-wrap: wrap; padding-top: 8px; }
.calc-result__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 6px;
  border: 1px solid var(--fg);
  background: var(--fg);
  color: var(--bg);
  font-size: 15px;
  transition: opacity .3s var(--ease-out);
}
.calc-result__cta:hover { opacity: .85; }
.calc-result__secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 6px;
  border: 1px solid var(--track);
  background: transparent;
  color: var(--fg);
  font-size: 15px;
  transition: border-color .3s var(--ease-out), background .3s var(--ease-out);
}
.calc-result__secondary:hover { border-color: var(--muted-strong); background: rgba(255, 255, 255, .04); }
.calc-result__reset { align-self: flex-start; color: var(--muted); }
.calc-result__reset:hover { color: var(--muted-strong); }

@media (prefers-reduced-motion: reduce) {
  .calc-loading__spinner, .calc-calculating__dot { animation: none; }
  .calc-question.is-revealed, .calc-submit.is-revealed, .calc-result.is-revealed, .calc-calculating.is-revealed,
  .calc-question.is-leaving, .calc-submit.is-leaving, .calc-calculating.is-leaving { animation: none; }
  .calc-result__orb { animation: none; }
}

/* Project page */

.section-project {
  padding: 140px var(--pad-lg) 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.project-lead {
  font-size: 20px;
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 1.3em;
  color: var(--muted);
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  padding-top: 16px;
}
.project-meta__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 180px;
}

/* Horizontal gallery — one continuous strip. Every image sits at its
   natural aspect ratio scaled to the strip's height, side by side, and
   the whole thing free-scrolls as a single canvas (no per-image paging). */
.gallery { padding: 20px 0 40px var(--pad-lg); }

.gallery__strip {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 620px;
  padding-bottom: 16px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.gallery__strip::-webkit-scrollbar { display: none; }
.gallery__strip:focus-visible { outline: 1px solid var(--muted-strong); outline-offset: 4px; }

.gallery__slide {
  flex: 0 0 auto;
  height: 100%;
}

.gallery__slide img {
  height: 100%;
  width: auto;
  display: block;
  border-radius: 2px;
  user-select: none;
  -webkit-user-drag: none;
}
.js .gallery__strip { cursor: grab; }
.js .gallery__strip.is-dragging { cursor: grabbing; }

/* Scroll position indicator, standing in for the scrollbar */
.gallery__progress { padding: 16px var(--pad-lg) 0; }

.gallery__track {
  position: relative;
  height: 20px;           /* generous hit area around the 2px line */
  display: flex;
  align-items: center;
  cursor: pointer;
  touch-action: none;
}
.gallery__line {
  position: relative;
  height: 2px;
  width: 100%;
  background: var(--track);
}
.gallery__fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 2px;
  width: 0;
  background: var(--fg);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  position: relative;
  z-index: 2;
  flex: none;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: var(--pad);
}

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

/* Project screen: hairline rule above, wider gutter */
.site-footer--project {
  border-top: 1px solid var(--surface);
  margin-top: 20px;
  padding: 24px var(--pad-lg);
}

.socials {
  display: flex;
  gap: 24px;
}

/* --------------------------------------------------------------------------
   Animations
   -------------------------------------------------------------------------- */

/* Scroll reveal — text: rises from below, unblurring as it settles */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  filter: blur(14px);
}
.js .reveal {
  transition:
    opacity .85s var(--ease-out),
    transform .85s var(--ease-out),
    filter .85s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

/* Scroll reveal — images: a plain fade, no motion or blur */
.reveal-fade {
  opacity: 0;
}
.js .reveal-fade {
  transition: opacity .85s var(--ease-out);
}
.reveal-fade.is-visible {
  opacity: 1;
}

/* Per-character heading reveal */
.split-word { display: inline-block; white-space: nowrap; }

.split-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(.4em);
  transition:
    opacity .7s var(--ease-out),
    transform .7s var(--ease-out);
}
.is-visible .split-char {
  opacity: 1;
  transform: none;
}

/* Mobile menu panel */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 25;
  background: var(--bg);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  opacity: 0;
  visibility: hidden;
  /* visibility flips instantly on open, and only after the fade on close */
  transition: opacity .35s var(--ease-out), visibility 0s linear .35s;
}
.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity .35s var(--ease-out), visibility 0s;
}

body.menu-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal,
  .js .reveal-fade,
  .split-char,
  .card__media img,
  .cta-link,
  .hero {
    transition: none !important;
  }
  .reveal, .reveal-fade, .split-char { opacity: 1; transform: none; filter: none; }
  .hero { filter: none !important; transform: none !important; }
}

/* --------------------------------------------------------------------------
   Breakpoints — 810px / 1200px, as in the original
   -------------------------------------------------------------------------- */

@media (min-width: 810px) and (max-width: 1199.98px) {
  .t-hero { font-size: 110px; }
  .t-xl { font-size: 56px; }
  .works-grid--all { grid-template-columns: repeat(2, minmax(50px, 1fr)); }
  .about-photo { width: 320px; }
  .about-item__label { width: 200px; }
  .gallery__strip { height: 520px; }
}

@media (max-width: 809.98px) {
  .t-hero { font-size: 56px; }
  .t-xl { font-size: 40px; }
  .t-lg { font-size: 32px; }

  .site-nav,
  .clock { display: none; }

  .site-header__inner { grid-template-columns: 1fr auto; }

  .menu-toggle { display: block; justify-self: end; }
  .mobile-menu { display: flex; }

  .works-grid,
  .works-grid--all { grid-template-columns: repeat(1, minmax(50px, 1fr)); }

  .about-row { flex-direction: column; }
  .about-col { width: 100%; }
  .about-item { flex-direction: column; }
  .about-item__label { width: 50%; }
  .about-photo { width: 100%; }

  .section-cta { padding-block: 120px; }

  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
  }
  .socials { flex-direction: column; gap: 12px; }

  .section-project { padding: 120px var(--pad) 24px; }
  .project-lead { font-size: 17px; }
  .project-meta { flex-direction: column; gap: 20px; }

  .section-calculator { padding: 120px var(--pad) 60px; }
  .calc-entry { grid-template-columns: 1fr; }
  .calc-result__range { font-size: 40px; }
  .calc-result__actions { flex-direction: column; align-items: stretch; }

  .gallery { padding: 20px 0 24px var(--pad); }
  .gallery__strip { height: 420px; }
  .gallery__progress { padding-inline: var(--pad); }

  .site-footer--project { padding: 24px var(--pad); }
  .site-footer--project .site-footer__bottom {
    flex-direction: row;
    align-items: flex-end;
    gap: 24px;
  }
  .site-footer--project .socials { flex-direction: row; gap: 16px; }
}

/* ==========================================================================
   Custom cursor — a small dot that lags the pointer with spring easing,
   inverts the pixels beneath it (mix-blend-mode), and swaps for a ring with
   an arrow icon over links/buttons. The system cursor stays visible;
   this rides alongside it. Desktop pointer only; off entirely for touch and
   reduced-motion.
   ========================================================================== */

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  width: 0;
  height: 0;
  pointer-events: none;
  mix-blend-mode: difference;
  transform: translate3d(-50%, -50%, 0);
  will-change: transform;
}

.cursor__dot {
  display: block;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--fg);
  transition: opacity .25s var(--ease-out), transform .25s var(--ease-out);
}

.cursor__ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 128px;
  height: 128px;
  margin: -64px 0 0 -64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 9px solid var(--fg);
  border-radius: 50%;
  opacity: 0;
  transform: scale(.4);
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out);
}

.cursor__arrow {
  width: 88px;
  height: 88px;
  color: var(--fg);
}

.cursor.is-active .cursor__dot {
  opacity: 0;
  transform: scale(0);
}

.cursor.is-active .cursor__ring {
  opacity: 1;
  transform: scale(1);
}

@media (hover: none), (pointer: coarse) {
  .cursor { display: none; }
}
}
