/* evghenifloca.com — personal site.
   Black, with the card, button and cursor language of the Singularborn
   studio site (rounded cards, outline buttons) and one muted green accent
   used in small doses: status markers, underlines and hover states. */

:root {
  /* Near-black, a touch lighter than pure black, so the grain shows */
  --black: #0b0b0c;
  --surface: #121213;
  --surface-2: #1b1b1c;
  --border: #29292b;
  --border-strong: #3d3d3d;
  --white: #fff;
  --soft: #c9c9cc;
  --muted: #8f8f94;
  --accent: #2f5a39;
  /* The same green lifted, for small text and hover states on near-black */
  --accent-text: #6aa67a;
  --font-logo: "Lexend", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;
  --nav-h: 68px;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}

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

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

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

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

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

@keyframes grain {
  0% { transform: translate3d(0, 0, 0); }
  10% { transform: translate3d(-38px, -71px, 0); }
  20% { transform: translate3d(-109px, 32px, 0); }
  30% { transform: translate3d(54px, -125px, 0); }
  40% { transform: translate3d(-23px, 117px, 0); }
  50% { transform: translate3d(-101px, 62px, 0); }
  60% { transform: translate3d(101px, 0, 0); }
  70% { transform: translate3d(0, 86px, 0); }
  80% { transform: translate3d(23px, 148px, 0); }
  90% { transform: translate3d(-70px, 47px, 0); }
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 400;
  padding: 10px 16px;
  background: var(--accent);
  border-radius: var(--radius-sm);
  color: var(--black);
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
}
.skip-link:focus { top: 12px; }

/* Small uppercase mono labels: section kickers, project status, footer heads */
.kicker {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- navigation ---------- */

.site-nav {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  background: rgba(11, 11, 12, .84);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1280px;
  height: var(--nav-h);
  margin-inline: auto;
  padding-inline: 24px;
}

/* The wordmark: Lexend, wide and calm */
.logo {
  font-family: var(--font-logo);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.02em;
  transition: opacity .25s ease;
}
.logo:hover { opacity: .7; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-links a {
  position: relative;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .25s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  right: 100%;
  bottom: -6px;
  left: 0;
  height: 2px;
  background: var(--accent);
  transition: right .35s var(--ease);
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--white); }
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { right: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 11px;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 15px 28px;
  background: rgba(0, 0, 0, .3);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--white);
  cursor: pointer;
  transition: border-color .25s ease, background .25s ease, color .25s ease, transform .3s var(--ease), box-shadow .3s ease;
}
.btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
  box-shadow: 0 14px 34px rgba(47, 90, 57, .35);
  transform: translateY(-3px);
}
/* → for links within the site, ↗ for links that leave it */
.arrow,
.arrow-out { display: inline-block; transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn:hover .arrow-out { transform: translate(3px, -3px); }
.btn:hover .arrow--back { transform: translateX(-4px); }

/* A quieter secondary button: no frame until hovered */
.btn--quiet { background: transparent; border-color: transparent; color: var(--soft); }
.btn--quiet:hover { background: transparent; border-color: var(--border-strong); color: var(--white); box-shadow: none; }

/* Inline "Label →" links inside cards and lists */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--white);
  transition: color .25s ease;
}
a.link-arrow:hover,
a:hover > .link-arrow,
a:hover .link-arrow { color: var(--accent-text); }
a:hover .link-arrow .arrow,
a.link-arrow:hover .arrow { transform: translateX(4px); }

/* ---------- starfield ---------- */

.starfield {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* ---------- home ---------- */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--nav-h) + 40px) 24px 60px;
  overflow: hidden;
  text-align: center;
}
.hero .starfield { opacity: .6; }
/* Soft film grain, in the hero and the footer */
.hero::before,
.site-footer::before {
  content: "";
  position: absolute;
  inset: -50%;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.2 -.35'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .06;
  animation: grain 2.4s steps(1) infinite;
}
/* A soft vignette so the stars fade towards the edges */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(5, 5, 6, .6) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 980px;
}
.hero-content > * { animation: rise 1s var(--ease) both; }
.hero-content > *:nth-child(2) { animation-delay: .12s; }
.hero-content > *:nth-child(3) { animation-delay: .24s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
}

.hero h1 {
  margin-bottom: 26px;
  font-family: var(--font-logo);
  font-size: clamp(2.6rem, 7.4vw, 6.4rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -.035em;
  text-wrap: balance;
}
/* Green words in the headline and the lead */
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-lead em { font-style: normal; color: var(--accent-text); }
.hero-lead {
  max-width: 600px;
  margin: 0 auto 38px;
  font-size: clamp(16px, 1.5vw, 19px);
  font-weight: 300;
  color: var(--soft);
}

/* Scroll hint at the bottom of the hero, as on the studio site */
.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  transform: translateX(-50%);
  color: var(--muted);
  opacity: .72;
  transition: opacity .25s ease, color .25s ease;
}
.hero-scroll:hover { opacity: 1; color: var(--white); }
.hero-scroll-text {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
}
.hero-scroll-line {
  width: 1px;
  height: 34px;
  background: linear-gradient(to bottom, #fff, transparent);
  transform-origin: top;
  animation: scrollPulse 1.9s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: .28; transform: scaleY(.72); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ---------- home sections ---------- */

.home-section {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding: 110px 24px 0;
}
.home-section:last-child { padding-bottom: 120px; }

.section-head { margin-bottom: 44px; }
.section-head h2 {
  font-family: var(--font-logo);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -.03em;
}

.home-features {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 28px;
}
.feature {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color .35s ease, box-shadow .4s ease, transform .5s var(--ease);
}
.feature:hover {
  border-color: var(--border-strong);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .6);
  transform: translateY(-3px);
}
.feature-media { aspect-ratio: 16 / 9; overflow: hidden; }
.feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.feature:hover .feature-media img { transform: scale(1.03); }
.feature-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 14px;
  padding: clamp(24px, 3vw, 40px);
}
.feature-body .kicker { margin: 0; }
.feature-body h3 {
  font-family: var(--font-logo);
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.03em;
}
.feature-body p:not(.kicker) {
  flex: 1;
  font-weight: 300;
  line-height: 1.7;
  color: var(--soft);
}
/* The story card has no picture: a large quote mark stands in for one */
.feature--story { justify-content: flex-end; position: relative; }
.feature--story::before {
  content: "\201C";
  position: absolute;
  top: 6px;
  right: 28px;
  font-family: var(--font-logo);
  font-size: 180px;
  line-height: 1;
  color: var(--surface-2);
  transition: color .35s ease;
}
.feature--story:hover::before { color: var(--accent-text); }
.feature--story .feature-body { flex: 0; position: relative; padding-top: 120px; }

/* ---------- inner pages ---------- */

.page {
  flex: 1;
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding: calc(var(--nav-h) + 72px) 24px 110px;
}

.page-head { margin-bottom: 56px; }
.page-head h1 {
  font-family: var(--font-logo);
  font-size: clamp(2.4rem, 5.4vw, 4.4rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -.035em;
}
.page-head p {
  max-width: 560px;
  margin-top: 18px;
  font-size: 17px;
  font-weight: 300;
  color: var(--soft);
}

.reveal { animation: rise .9s var(--ease) both; }

/* ---------- projects ---------- */

.projects { display: flex; flex-direction: column; gap: 28px; }

.group-label {
  margin: 56px 0 2px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.project {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color .35s ease, box-shadow .4s ease, transform .5s var(--ease);
}
.project:hover {
  border-color: var(--border-strong);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .6);
  transform: translateY(-3px);
}

.project-media {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--surface-2);
}
.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease), filter .4s ease, opacity .4s ease;
}
.project:hover .project-media img { transform: scale(1.03); }

.project-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: clamp(26px, 4vw, 56px);
}

.project-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}
/* A small square marker in front of the status: green for work in
   progress, white for released, grey for discontinued */
.project-status::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: none;
  background: var(--white);
  border-radius: 2px;
}
.project--dev .project-status::before,
.feature--project .project-status::before { background: var(--accent); }

.project-title {
  font-family: var(--font-logo);
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -.03em;
}
.project-sub {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--muted);
}
.project-desc {
  font-size: 15.5px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--soft);
}
.project-tags {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--muted);
}
.project-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  padding-top: 6px;
}

/* Discontinued work: kept on the page, but greyed out and quiet */
.project--retired { background: transparent; }
.project--retired .project-status::before { background: var(--border-strong); }
.project--retired .project-media img { filter: grayscale(1) brightness(.6); opacity: .8; }
.project--retired:hover .project-media img { filter: grayscale(.5) brightness(.8); opacity: 1; }
.project--retired .project-title { color: var(--soft); }

/* ---------- writing ---------- */

/* English / Russian tabs; without JS both lists show, one after the other */
.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .25s ease, border-color .25s ease, background .25s ease;
}
.tab span { color: var(--muted); }
.tab:hover { color: var(--white); border-color: var(--white); }
.tab[aria-selected="true"] { color: var(--white); background: var(--accent); border-color: var(--accent); }
.tab[aria-selected="true"] span { color: #b9dcc1; }
.js-tabs .entries-panel[hidden] { display: none; }
.entries-panel + .entries-panel { margin-top: 40px; }
.js-tabs .entries-panel + .entries-panel { margin-top: 0; }

.entries { display: flex; flex-direction: column; }
.entries li + li { border-top: 1px solid var(--border); }
.entry {
  display: grid;
  gap: 8px;
  padding: 22px 0;
}
.entries li:first-child .entry { padding-top: 0; }
.entry-title {
  font-family: var(--font-logo);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.02em;
  transition: color .25s ease;
}
.entry:hover .entry-title { color: var(--accent-text); }
.entry-excerpt { font-weight: 300; line-height: 1.65; color: var(--soft); }
.entry-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--muted);
}

/* A story page: a narrow reading column */
.story { max-width: 780px; }
.story-head { margin-bottom: 52px; }
.story-head h1 {
  font-family: var(--font-logo);
  font-size: clamp(2.3rem, 5.4vw, 4rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.story-lead {
  margin-top: 18px;
  font-size: 19px;
  font-weight: 300;
  font-style: italic;
  color: var(--muted);
}

.prose {
  max-width: 680px;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.85;
  color: var(--soft);
}
.prose p { margin: 0 0 1.25em; }
.prose h2 {
  margin: 2.2em 0 .9em;
  font-family: var(--font-logo);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -.01em;
  color: var(--white);
}
.prose strong { font-weight: 500; color: var(--white); }
.prose em { font-style: italic; }
.prose a { color: var(--white); border-bottom: 1px solid var(--accent); }
.prose blockquote {
  margin: 1.8em 0;
  padding-left: 1.2em;
  border-left: 2px solid var(--accent);
  color: var(--white);
}
/* Scene breaks: a small green square */
.prose hr {
  height: auto;
  margin: 2.6em 0;
  border: 0;
}
.prose hr::before {
  content: "";
  display: block;
  width: 7px;
  height: 7px;
  margin: 0 auto;
  background: var(--accent);
  border-radius: 2px;
}

.story-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 72px 0 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.story-nav-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--font-logo);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -.01em;
  transition: color .25s ease;
}
.story-nav-link .kicker { margin: 0; }
.story-nav-link:hover { color: var(--accent-text); }
.story-nav-link--next { grid-column: 2; text-align: right; }
.story-back { padding-inline: 0; }

/* ---------- about ---------- */

.about { max-width: 760px; }
.about-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--soft);
}
.about-text strong { font-weight: 500; color: var(--white); }
.about-text a { color: var(--white); border-bottom: 1px solid var(--accent); transition: color .2s ease; }
.about-text a:hover { color: var(--accent-text); }

/* Developer card, as on the studio site */
.dev {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.dev-photo {
  flex: none;
  width: 72px;
  height: 72px;
  object-fit: cover;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
}
.dev-name {
  margin-bottom: 4px;
  font-family: var(--font-logo);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -.01em;
}
.dev-role {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- 404 ---------- */

.not-found {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.not-found h1 {
  font-family: var(--font-logo);
  font-size: clamp(5rem, 16vw, 10rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.05em;
}
.not-found h1 em { font-style: normal; color: var(--accent); }
.not-found p { margin: 14px 0 34px; font-size: 17px; font-weight: 300; color: var(--soft); }

/* ---------- footer ---------- */

.site-footer {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border);
}
.site-footer .starfield { opacity: .25; }

.footer-inner {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin-inline: auto;
  padding: 56px 24px 36px;
}
.footer-cols {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
}
.footer-cols ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
}
.footer-cols .connect { text-align: right; }
.footer-cols .connect ul { flex-direction: column; align-items: flex-end; gap: 10px; }
.footer-cols a {
  font-size: 15px;
  color: var(--soft);
  transition: color .2s ease;
}
.footer-cols a:hover { color: var(--accent-text); }
.footer-copy {
  margin-top: 48px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

/* ---------- cursor ----------
   A small rounded square trails the mouse around a faint dot. main.js adds
   .has-square-cursor only for a fine pointer, so touch screens and pages
   where the script fails keep the normal cursor. */

.has-square-cursor,
.has-square-cursor * { cursor: none !important; }

.cursor-ring,
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 0;
  height: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s ease;
}
.cursor-visible .cursor-ring,
.cursor-visible .cursor-dot { opacity: 1; }

.cursor-ring::before,
.cursor-dot::before {
  content: "";
  position: absolute;
}
.cursor-ring::before {
  top: -12px;
  left: -12px;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 7px;
  transition: transform .35s var(--ease);
}
.cursor-dot::before {
  top: -2px;
  left: -2px;
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, .4);
  border-radius: 1px;
  transition: background .25s ease;
}
/* Over links and buttons: the square grows a little, only the dot turns green */
.cursor-hover .cursor-ring::before { transform: scale(1.25); }
.cursor-hover .cursor-dot::before { background: var(--accent); }
.cursor-down .cursor-ring::before { transform: scale(.8); }
.cursor-hover.cursor-down .cursor-ring::before { transform: scale(1.05); }

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .home-features { grid-template-columns: 1fr; }
  .project { grid-template-columns: 1fr; }
  .project-media { aspect-ratio: 16 / 11; }
  .project-media img { object-position: center 30%; }
  /* Square covers carry their own titles: keep them whole */
  .project-media--square { aspect-ratio: 1; }
  .project-media--square img { object-position: center; }
}

@media (max-width: 720px) {
  :root { --nav-h: 62px; }

  .nav-inner { padding-inline: 16px; }
  .logo { font-size: 20px; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 20px 18px;
    background: rgba(11, 11, 12, .98);
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    visibility: hidden;
    transition: transform .38s var(--ease), visibility .38s;
  }
  .nav-links.is-open { transform: none; visibility: visible; }
  .nav-links a {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    color: var(--white);
  }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-links a::after { display: none; }
  .nav-links a[aria-current="page"] { color: var(--accent-text); }

  .page { padding: calc(var(--nav-h) + 48px) 16px 80px; }
  .page-head { margin-bottom: 40px; text-align: center; }
  .page-head p { margin-inline: auto; }
  .project-body { padding: 26px 22px; }
  .group-label { text-align: center; }

  .hero-scroll { bottom: 18px; }
  .home-section { padding: 80px 16px 0; }
  .home-section:last-child { padding-bottom: 80px; }
  .section-head { text-align: center; }
  .about .page-head { text-align: center; }
  .story .story-head { text-align: left; }
  .story-nav { grid-template-columns: 1fr; }
  .story-nav-link--next { grid-column: auto; text-align: left; }

  .footer-inner { padding: 44px 16px 30px; }
  .footer-cols { flex-direction: column; align-items: center; text-align: center; gap: 30px; }
  .footer-cols ul { justify-content: center; }
  .footer-cols .connect { text-align: center; }
  .footer-cols .connect ul { align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
