/* plamiasty: personal site. No build step: plain CSS, self-hosted fonts. */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../assets/fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../assets/fonts/inter-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Silkscreen';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/silkscreen-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Silkscreen';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/silkscreen-latin-ext-400-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #050a18;
  --bg-2: #081430;
  --surface: rgba(148, 197, 255, 0.05);
  --surface-hi: rgba(148, 197, 255, 0.09);
  --border: rgba(148, 197, 255, 0.12);
  --border-hi: rgba(148, 197, 255, 0.26);
  --text: #f1f6ff;
  --muted: #a9bad8;
  --subtle: #7486a8;
  --cyan: #67e8f9;
  --sky: #7dd3fc;
  --blue: #60a5fa;
  --violet: #a5b4fc;
  --pink: #f9a8d4;
  --amber: #fcd34d;
  --green: #86efac;
  --grad: linear-gradient(100deg, #67e8f9 0%, #3b9bff 50%, #6d7dff 100%);
  --radius: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img,
svg,
canvas {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
}
code {
  font-family: 'Silkscreen', ui-monospace, monospace;
  font-size: 0.82em;
  padding: 0.1em 0.45em;
  border-radius: 6px;
  background: rgba(125, 211, 252, 0.12);
  color: var(--sky);
}
::selection {
  background: rgba(59, 155, 255, 0.45);
}
:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 3px;
  border-radius: 8px;
}

.container {
  width: min(1160px, 100% - 40px);
  margin-inline: auto;
}
.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--text);
  color: var(--bg);
  font-weight: 700;
  text-decoration: none;
}
.skip:focus {
  top: 16px;
}

/* ---------- night sky ----------
   Performance: the glows are plain radial gradients (no CSS filter), so the browser rasterises each
   layer once and only moves it on the compositor. Stars are drawn once; a few CSS sparkles twinkle. */
.sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(56, 189, 248, 0.14), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(59, 130, 246, 0.14), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 60%, var(--bg) 100%);
}
.blob {
  position: absolute;
  width: 70vmax;
  height: 70vmax;
  border-radius: 50%;
  will-change: transform;
  contain: strict;
}
.blob--a {
  background: radial-gradient(closest-side, rgba(56, 189, 248, 0.34), rgba(56, 189, 248, 0.1) 55%, transparent);
  top: -32vmax;
  right: -26vmax;
  animation: drift-a 30s ease-in-out infinite alternate;
}
.blob--b {
  background: radial-gradient(closest-side, rgba(37, 99, 235, 0.38), rgba(37, 99, 235, 0.1) 55%, transparent);
  bottom: -34vmax;
  left: -28vmax;
  animation: drift-b 36s ease-in-out infinite alternate;
}
.blob--c {
  background: radial-gradient(closest-side, rgba(99, 102, 241, 0.22), transparent 70%);
  width: 50vmax;
  height: 50vmax;
  top: 30%;
  left: 45%;
  animation: drift-c 42s ease-in-out infinite alternate;
}
@keyframes drift-a {
  to {
    transform: translate(-8vmax, 10vmax) scale(1.08);
  }
}
@keyframes drift-b {
  to {
    transform: translate(10vmax, -8vmax) scale(1.12);
  }
}
@keyframes drift-c {
  to {
    transform: translate(-16vmax, -10vmax) scale(0.9);
  }
}
.stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.sparkle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: #e0f2fe;
  box-shadow: 0 0 6px #7dd3fc;
  opacity: 0.15;
  will-change: opacity;
  animation: twinkle var(--t, 3s) ease-in-out var(--delay, 0s) infinite alternate;
}
@keyframes twinkle {
  to {
    opacity: 1;
  }
}

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 14px 0;
  transition:
    background 0.3s,
    border-color 0.3s,
    padding 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  padding: 10px 0;
  background: rgba(5, 10, 24, 0.78);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Silkscreen', sans-serif;
  font-size: 19px;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.nav__face {
  width: 30px;
  height: 30px;
  image-rendering: pixelated;
  border-radius: 6px;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.12),
    0 6px 18px rgba(56, 189, 248, 0.35);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav__links a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition:
    color 0.2s,
    background 0.2s;
}
.nav__links a:hover {
  color: var(--text);
  background: var(--surface-hi);
}
.nav__links .nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--bg);
  background: var(--grad);
  background-size: 160% 100%;
  transition: background-position 0.4s var(--ease);
}
.nav__links .nav__cta:hover {
  color: var(--bg);
  background: var(--grad);
  background-size: 160% 100%;
  background-position: 100% 0;
}
.nav svg,
.btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 32px;
  min-height: calc(100vh - 70px);
  padding: 40px 0 70px;
}
.eyebrow {
  margin: 0 0 14px;
  font-family: 'Silkscreen', sans-serif;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sky);
}
.hero__title {
  margin: 0;
  font-size: clamp(42px, 7vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 850;
}
.gradient-text {
  display: inline-block;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lead {
  max-width: 540px;
  margin: 22px 0 30px;
  color: var(--muted);
  font-size: clamp(17px, 1.6vw, 19px);
}
.hero__lead strong {
  color: var(--sky);
  font-weight: 700;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid var(--border-hi);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    background 0.25s,
    border-color 0.25s;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(0) scale(0.98);
}
.btn--primary {
  border-color: transparent;
  color: #0b0a14;
  background: var(--grad);
  background-size: 160% 100%;
  box-shadow: 0 10px 30px -8px rgba(59, 155, 255, 0.7);
}
.btn--primary:hover {
  background-position: 100% 0;
  box-shadow: 0 16px 40px -8px rgba(103, 232, 249, 0.75);
}
.btn--ghost {
  background: rgba(8, 20, 48, 0.7);
}
.btn--ghost:hover {
  border-color: rgba(125, 211, 252, 0.6);
  box-shadow: 0 0 0 4px rgba(125, 211, 252, 0.12);
}
.btn--small {
  padding: 10px 16px;
  font-size: 14px;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}
.stats li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.stats strong {
  font-family: 'Silkscreen', sans-serif;
  font-size: 22px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.stats span {
  color: var(--muted);
  font-size: 14px;
}

/* 3D skin */
.hero__skin {
  position: relative;
  margin: 0;
  height: min(620px, 78vh);
  display: grid;
  place-items: center;
}
.skin-canvas {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: pan-y;
}
.skin-canvas:active {
  cursor: grabbing;
}
.pedestal {
  position: absolute;
  z-index: 1;
  bottom: 9%;
  left: 50%;
  width: 62%;
  aspect-ratio: 3 / 1;
  translate: -50% 0;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(125, 211, 252, 0.55), rgba(59, 130, 246, 0.25) 55%, transparent);
  will-change: opacity;
  animation: breathe 5s ease-in-out infinite;
}
.pedestal::after {
  content: '';
  position: absolute;
  inset: 18% 10%;
  border-radius: 50%;
  border: 2px solid rgba(125, 211, 252, 0.55);
  box-shadow:
    0 0 24px rgba(125, 211, 252, 0.6),
    inset 0 0 24px rgba(59, 130, 246, 0.45);
}
@keyframes breathe {
  50% {
    opacity: 0.65;
  }
}
.orbit {
  position: absolute;
  inset: 8% 6%;
  z-index: 1;
  pointer-events: none;
}
.cube {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 3px;
  box-shadow:
    inset -4px -4px 0 rgba(0, 0, 0, 0.25),
    inset 4px 4px 0 rgba(255, 255, 255, 0.25),
    0 0 18px currentColor;
  animation: bob 6s ease-in-out infinite;
}
.cube--1 {
  top: 14%;
  left: 12%;
  color: #67e8f9;
  background: #67e8f9;
}
.cube--2 {
  top: 26%;
  right: 8%;
  width: 14px;
  height: 14px;
  color: #60a5fa;
  background: #60a5fa;
  animation-delay: -2s;
}
.cube--3 {
  bottom: 30%;
  left: 4%;
  width: 12px;
  height: 12px;
  color: #a5b4fc;
  background: #a5b4fc;
  animation-delay: -4s;
}
@keyframes bob {
  50% {
    transform: translateY(-16px) rotate(12deg);
  }
}
.pixel-hint {
  position: absolute;
  z-index: 3;
  bottom: 2%;
  left: 50%;
  translate: -50% 0;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(5, 10, 24, 0.7);
  font-family: 'Silkscreen', sans-serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

/* ---------- sections ---------- */
.section {
  padding: 90px 0;
}
.section__head {
  max-width: 720px;
  margin-bottom: 40px;
}
.section h2 {
  margin: 0;
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
}
.section__lead {
  margin: 16px 0 0;
  color: var(--muted);
}

/* projects */
.projects {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 22px;
}
.card {
  --mx: 50%;
  --my: 50%;
  position: relative;
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(148, 197, 255, 0.07), rgba(148, 197, 255, 0.02));
  overflow: hidden;
  transition:
    transform 0.35s var(--ease),
    border-color 0.35s,
    box-shadow 0.35s var(--ease);
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(125, 211, 252, 0.16), transparent 45%);
  opacity: 0;
  transition: opacity 0.35s;
}
.card:hover {
  border-color: var(--border-hi);
  box-shadow:
    0 30px 60px -30px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(125, 211, 252, 0.12);
}
.card:hover::before {
  opacity: 1;
}
.card--featured {
  grid-column: span 6;
  flex-direction: row;
}
.card--featured .card__media {
  flex: 1.25;
  aspect-ratio: auto;
  min-height: 340px;
}
.card--featured .card__body {
  flex: 1;
  justify-content: center;
  padding: 36px;
}
.card--featured h3 {
  font-size: 34px;
}
.card--featured .card__foot {
  margin-top: 26px;
}
.card--reverse {
  flex-direction: row-reverse;
}
.card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0f0d1a;
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.card:hover .card__media img {
  transform: scale(1.04);
}
.card__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(11, 10, 20, 0.55));
  pointer-events: none;
}
a.card__media {
  display: block;
}
.card__title-link {
  text-decoration: none;
  transition: color 0.2s;
}
.card__title-link:hover {
  color: var(--sky);
}
.card__media--blossom {
  background: #1a1220;
}
.card__media .card__media-inset {
  position: absolute;
  right: 4%;
  bottom: 6%;
  z-index: 1;
  width: 46%;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.7);
}
.card:hover .card__media .card__media-inset {
  transform: translateY(-6px) scale(1.02);
}
.card__media--art {
  display: grid;
  place-items: center;
}
.card__media--art svg {
  width: 88%;
  height: 88%;
}
.card__media--sight {
  background: radial-gradient(120% 90% at 50% 0%, #1e3a5f, #0c1324 70%);
}
.card__media--fungus {
  background: radial-gradient(120% 100% at 50% 100%, #3b0a1a, #170812 70%);
}
.float {
  animation: bob 5s ease-in-out infinite;
  transform-box: fill-box;
}
.pulse circle {
  transform-origin: 221px 28px;
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% {
    opacity: 0.9;
    scale: 0.5;
  }
  100% {
    opacity: 0;
    scale: 1.3;
  }
}
.card__body {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px 24px 22px;
}
.card h3 {
  margin: 12px 0 8px;
  font-size: 24px;
  letter-spacing: -0.02em;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
}
.card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-family: 'Silkscreen', sans-serif;
  font-size: 11px;
  letter-spacing: 0.06em;
  /* Silkscreen draws lowercase as small caps; uppercase keeps Polish letters (Ę, Ą) consistent. */
  text-transform: uppercase;
  color: var(--muted);
}
.tag--pink {
  color: var(--pink);
  border-color: rgba(249, 168, 212, 0.35);
  background: rgba(249, 168, 212, 0.08);
}
.tag--violet {
  color: var(--blue);
  border-color: rgba(96, 165, 250, 0.4);
  background: rgba(96, 165, 250, 0.1);
}
.tag--cyan {
  color: var(--cyan);
  border-color: rgba(103, 232, 249, 0.35);
  background: rgba(103, 232, 249, 0.08);
}
.tag--amber {
  color: var(--amber);
  border-color: rgba(252, 211, 77, 0.35);
  background: rgba(252, 211, 77, 0.08);
}
.tag--green {
  color: var(--green);
  border-color: rgba(134, 239, 172, 0.35);
  background: rgba(134, 239, 172, 0.08);
}
.card__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--subtle);
}
.status::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--amber);
  box-shadow: 0 0 10px rgba(252, 211, 77, 0.8);
  animation: blink 2s steps(2, jump-none) infinite;
}
@keyframes blink {
  50% {
    opacity: 0.35;
  }
}

/* about */
.about__card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 36px;
  align-items: center;
  padding: 44px;
  border-radius: 28px;
  border: 1px solid var(--border);
  background:
    radial-gradient(600px 300px at 0% 0%, rgba(103, 232, 249, 0.14), transparent 60%),
    radial-gradient(600px 300px at 100% 100%, rgba(59, 130, 246, 0.16), transparent 60%),
    var(--surface);
  overflow: hidden;
}
.about__card p {
  max-width: 640px;
  margin: 16px 0 26px;
  color: var(--muted);
}
.about__face {
  width: 160px;
  height: 160px;
  image-rendering: pixelated;
  border-radius: 20px;
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.1),
    0 24px 60px -12px rgba(56, 189, 248, 0.6);
  animation: tilt 7s ease-in-out infinite;
}
@keyframes tilt {
  /* individual properties, so the reveal (transform) can run at the same time */
  50% {
    rotate: -4deg;
    translate: 0 -6px;
  }
}

/* footer */
.footer {
  padding: 40px 0 50px;
  border-top: 1px solid var(--border);
  color: var(--subtle);
  font-size: 14px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 24px;
}
.footer p {
  margin: 0;
}
.footer__small {
  grid-column: 1;
  font-size: 13px;
}
.footer__top {
  grid-row: 1 / span 2;
  grid-column: 2;
  align-self: center;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}
.footer__top:hover {
  color: var(--text);
}

/* ---------- scroll effects ----------
   Everything here animates only transform/opacity. The reveal uses `transform`; the scroll-linked
   parallax (js/main.js) uses the separate `translate`/`scale` properties, so the two never clash. */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  height: 3px;
  background: var(--grad);
  box-shadow: 0 0 12px rgba(59, 155, 255, 0.8);
  transform-origin: 0 50%;
  transform: scaleX(0);
  will-change: transform;
  pointer-events: none;
}
.reveal {
  opacity: 0;
  transform: translateY(46px) scale(0.96);
  transition:
    opacity 0.8s var(--ease),
    transform 0.9s var(--ease);
  transition-delay: calc(var(--d, 0) * 110ms);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.card.reveal {
  transform: translateY(70px) rotateX(10deg) scale(0.94);
  transform-origin: 50% 0;
}
.card.reveal.is-visible {
  transform: none;
}
/* After the entrance, hover/tilt should react quickly again. */
.card.reveal.is-settled {
  transition:
    transform 0.35s var(--ease),
    border-color 0.35s,
    box-shadow 0.35s var(--ease);
  transition-delay: 0s;
}
.about__card.reveal .about__face {
  transform: rotate(-30deg) scale(0.4);
  transition: transform 1s cubic-bezier(0.34, 1.56, 0.64, 1) 0.25s;
}
.about__card.reveal.is-visible .about__face {
  transform: none;
}
.no-js .reveal,
.no-js .card.reveal,
.no-js .about__card.reveal .about__face {
  opacity: 1;
  transform: none;
}
.hero__skin {
  animation: rise 1s var(--ease) 0.2s backwards;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.92);
  }
}
.hero__text,
.hero__skin {
  will-change: translate, opacity;
}
/* Parallax images are taller than their frame so they can slide without showing an edge. */
.card__media img[data-parallax]:not(.card__media-inset) {
  height: calc(100% + 48px);
  margin-top: -24px;
}
[data-parallax] {
  will-change: translate;
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 20px;
    text-align: center;
  }
  .hero__skin {
    order: -1;
    height: 440px;
  }
  .hero__lead {
    margin-inline: auto;
  }
  .hero__actions,
  .stats {
    justify-content: center;
  }
  .projects {
    grid-template-columns: repeat(2, 1fr);
  }
  .card {
    grid-column: span 1;
  }
  .card--featured {
    grid-column: span 2;
    flex-direction: column;
  }
  .projects > .card:nth-child(4) {
    grid-column: span 2;
  }
  .card--featured .card__media {
    min-height: 260px;
  }
  .card--featured .card__body {
    padding: 26px;
  }
}
@media (max-width: 640px) {
  body {
    font-size: 16px;
  }
  .nav__links a:not(.nav__cta) {
    display: none;
  }
  .hero__skin {
    height: 380px;
  }
  .projects {
    grid-template-columns: 1fr;
  }
  .card,
  .card--featured,
  .projects > .card:nth-child(4) {
    grid-column: span 1;
  }
  .card--featured h3 {
    font-size: 28px;
  }
  .about__card {
    grid-template-columns: 1fr;
    padding: 30px 24px;
    text-align: center;
  }
  .about__face {
    width: 120px;
    height: 120px;
    margin-inline: auto;
  }
  .about__card p {
    margin-inline: auto;
  }
  .footer__inner {
    grid-template-columns: 1fr;
  }
  .footer__top {
    grid-row: auto;
    grid-column: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal,
  .card.reveal,
  .about__card.reveal .about__face {
    opacity: 1;
    transform: none;
  }
  .progress {
    display: none;
  }
}

/* ---------- record (big pink block at the top) ---------- */
.record {
  padding-top: 24px;
}
.record__card {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 24px;
  padding: clamp(28px, 5vw, 56px);
  border-radius: 34px;
  overflow: hidden;
  color: #2a0717;
  background:
    radial-gradient(500px 340px at 85% 30%, rgba(255, 255, 255, 0.45), transparent 70%),
    linear-gradient(120deg, #ec4899 0%, #f472b6 45%, #f9a8d4 100%);
  background-size: 100% 100%, 200% 100%;
  animation: record-shine 9s ease-in-out infinite alternate;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.35) inset,
    0 30px 80px -24px rgba(236, 72, 153, 0.85);
}
@keyframes record-shine {
  to {
    background-position: 0 0, 100% 0;
  }
}
.record__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #2a0717;
  color: #fbcfe8;
  font-family: 'Silkscreen', sans-serif;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.record__title {
  margin: 0;
  font-size: clamp(46px, 8vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 900;
  color: #fff;
  text-shadow:
    0 4px 0 #be185d,
    0 14px 40px rgba(131, 24, 67, 0.45);
}
.record__lead {
  margin: 22px 0 8px;
  max-width: 520px;
  font-size: clamp(19px, 2.2vw, 26px);
  line-height: 1.35;
  font-weight: 600;
}
.record__lead strong {
  font-weight: 900;
}
.record__odds {
  margin: 0 0 28px;
  font-size: clamp(16px, 1.6vw, 19px);
  font-weight: 600;
  color: #5b0f33;
}
.record__odds strong {
  color: #2a0717;
  font-weight: 850;
}
.record__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: 999px;
  background: #2a0717;
  color: #fdf2f8;
  font-weight: 800;
  font-size: 18px;
  text-decoration: none;
  box-shadow: 0 14px 30px -10px rgba(42, 7, 23, 0.8);
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    background 0.25s;
}
.record__btn:hover {
  transform: translateY(-3px);
  background: #4a0c28;
  box-shadow: 0 20px 40px -12px rgba(42, 7, 23, 0.9);
}
.record__btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s var(--ease);
}
.record__btn:hover svg {
  transform: translateX(4px);
}

.record__art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 300px;
}
.record__art::before {
  content: '';
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0) 70%);
}
.record__tree {
  position: relative;
  width: auto;
  max-width: 100%;
  height: min(520px, 62vh);
  filter: drop-shadow(0 22px 26px rgba(131, 24, 67, 0.5));
  animation: record-float 4s ease-in-out infinite alternate;
}
@keyframes record-float {
  to {
    transform: translateY(-10px);
  }
}
.record__sticker {
  position: absolute;
  right: 4%;
  bottom: 10%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: #2a0717;
  color: #fff;
  transform: rotate(-12deg);
  box-shadow:
    0 0 0 5px #fff,
    0 16px 30px -8px rgba(42, 7, 23, 0.7);
  text-align: center;
  line-height: 1;
}
.record__sticker strong {
  font-size: 44px;
  font-weight: 900;
  color: #fb923c;
}
.record__sticker span {
  font-family: 'Silkscreen', sans-serif;
  font-size: 9px;
  letter-spacing: 0.02em;
}
.record__spark {
  position: absolute;
  width: 14px;
  height: 14px;
  background: #fff;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  animation: record-twinkle 2.2s ease-in-out infinite alternate;
}
.record__spark--1 {
  top: 8%;
  left: 12%;
}
.record__spark--2 {
  top: 18%;
  right: 8%;
  width: 20px;
  height: 20px;
  animation-delay: -0.8s;
}
.record__spark--3 {
  bottom: 22%;
  left: 6%;
  width: 10px;
  height: 10px;
  animation-delay: -1.4s;
}
.record__spark--4 {
  top: 52%;
  right: 30%;
  width: 9px;
  height: 9px;
  animation-delay: -0.4s;
}
@keyframes record-twinkle {
  from {
    opacity: 0.2;
    transform: scale(0.6) rotate(0deg);
  }
  to {
    opacity: 1;
    transform: scale(1.1) rotate(45deg);
  }
}
@media (max-width: 860px) {
  .record__card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .record__lead {
    margin-inline: auto;
  }
  .record__art {
    min-height: 260px;
  }
  .record__tree {
    height: min(420px, 56vh);
  }
  .record__sticker {
    width: 92px;
    height: 92px;
    right: 6%;
  }
  .record__sticker strong {
    font-size: 36px;
  }
  .record__sticker span {
    font-size: 7px;
  }
}
