:root {
  color-scheme: dark;
  --page-bg: #090909;
  --page-ink: #f4f1ee;
  --page-muted: #c8c4c1;
  --control-bg: #f4f1ee;
  --control-ink: #111111;
  --hairline: rgba(244, 241, 238, 0.2);
  --logo-filter: invert(1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --tile-bg: #131313;
  --tile-glow: rgba(255, 255, 255, 0.11);
  --tile-cover-bg: #1d1d1d;
  --chip-bg: #232323;
  --chip-ink: #c4c0bd;
}

:root[data-theme="light"] {
  color-scheme: light;
  --page-bg: #ffffff;
  --page-ink: #111111;
  --page-muted: #4c4a48;
  --control-bg: #f1f1f1;
  --control-ink: #111111;
  --hairline: rgba(17, 17, 17, 0.18);
  --logo-filter: none;
  --tile-bg: #f1f1f1;
  --tile-glow: rgba(0, 0, 0, 0.08);
  --tile-cover-bg: #e4e4e4;
  --chip-bg: #dedede;
  --chip-ink: #3f3d3b;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
  background: var(--page-bg);
  view-transition-name: root;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--page-bg);
  color: var(--page-ink);
  font-family: "Manrope", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 450ms ease, color 450ms ease;
}

button,
a {
  color: inherit;
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

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

.skip-link {
  position: absolute;
  z-index: 20;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  transform: translateY(-160%);
  background: var(--page-ink);
  color: var(--page-bg);
  font-size: 12px;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  width: 100%;
  padding: 17px 24px 0;
  background: var(--page-bg);
}

.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(16px, 2.35vw, 30px);
  min-height: 20px;
}

.nav-link {
  position: relative;
  padding: 2px 0 4px;
  color: var(--page-ink);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.035em;
  line-height: 1.4;
  text-decoration: none;
  transition: opacity 250ms ease;
}

.nav-link::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  transform: scaleX(0);
  transform-origin: left;
  background: currentColor;
  content: "";
  transition: transform 300ms var(--ease-out);
}

.nav-link:hover,
.nav-link:focus-visible {
  opacity: 0.72;
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-link--future {
  opacity: 0.95;
}

.hero {
  min-height: calc(100svh - 64px);
  padding: 0 24px 42px;
  overflow-x: clip;
  text-align: center;
}

.hero-copy {
  width: min(100%, 560px);
  margin: clamp(28px, 4.8vh, 43px) auto 0;
}

.hero-wordmark {
  width: min(100%, 480px);
  margin: 0 auto;
  line-height: 0;
}

.hero-wordmark img {
  display: block;
  width: 100%;
  height: auto;
  filter: var(--logo-filter);
  transition: filter 450ms ease;
}

.hero-role {
  margin: 5px 0 0;
  color: var(--page-muted);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.35;
}

.hero-location {
  margin: 8px 0 0;
  color: var(--page-ink);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.17em;
  line-height: 1.4;
}

.theme-toggle {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  margin: 46px auto 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--control-bg);
  color: var(--control-ink);
  cursor: pointer;
  transition: background-color 450ms ease, color 450ms ease, transform 250ms ease;
}

.theme-toggle:hover {
  transform: rotate(-8deg) scale(1.08);
}

.theme-toggle:focus-visible,
.read-more:focus-visible,
.nav-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
}

.theme-icon,
.theme-icon svg {
  display: block;
  width: 15px;
  height: 15px;
}

.hero-photo {
  position: relative;
  left: 50%;
  width: min(32vw, 380px);
  aspect-ratio: 0.94;
  margin: 48px 0 0;
  overflow: hidden;
  background: #252525;
  clip-path: inset(0 0 0 10%);
  transform: translateX(-55%);
}

.hero-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 100%;
  transform: scale(1.17);
}

.js [data-scroll-motion] {
  translate: 0 var(--scroll-motion-y, 0px);
  will-change: translate;
}

.about {
  padding: 0 24px clamp(60px, 8vh, 90px);
  text-align: center;
}

.about-copy {
  width: min(100%, 370px);
  margin: 0 auto;
}

.about-copy h2 {
  margin: 0 0 15px;
  color: var(--page-ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1;
}

.about-summary {
  margin: 0;
  color: var(--page-muted);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.3;
}

.read-more {
  display: inline-block;
  margin: 22px 0 0;
  padding: 3px 0;
  border: 0;
  background: transparent;
  color: var(--page-ink);
  cursor: pointer;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.025em;
  line-height: 1.5;
  text-decoration: none;
  transition: opacity 250ms ease;
}

.read-more:hover {
  opacity: 0.62;
}

/* ---------- MUSIC ---------- */
.about,
.music {
  scroll-margin-top: clamp(32px, 8vh, 64px);
}

/* ---------- ABOUT page ---------- */
.about-page {
  width: min(100%, 1160px);
  margin: 0 auto;
  padding: clamp(42px, 7vh, 76px) 24px clamp(72px, 10vh, 112px);
  text-align: center;
}

.about-page-photo {
  overflow: hidden;
  margin: 0 auto;
  background: #202020;
}

.about-page-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
}

.about-page-photo--top {
  width: min(100%, 360px);
  aspect-ratio: 2 / 3;
}

.about-page-copy {
  width: min(100%, 660px);
  margin: clamp(36px, 6vh, 58px) auto 0;
}

.about-page-copy h1 {
  margin: 0;
  color: var(--page-ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(34px, 5vw, 48px);
  font-weight: 500;
  letter-spacing: 0.025em;
  line-height: 1;
}

.about-page-copy p {
  width: min(100%, 570px);
  margin: 22px auto 0;
  color: var(--page-muted);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.7;
}

.about-page-photo--bottom {
  width: min(100%, 940px);
  aspect-ratio: 3 / 2;
  margin: clamp(54px, 8vw, 92px) auto clamp(44px, 7vw, 72px);
}

.about-booking {
  width: min(100%, 560px);
  margin: 0 auto;
}

.about-availability {
  width: min(100%, 430px);
  margin: 0 auto;
  color: var(--page-muted);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.55;
}

.about-link-group h2 {
  margin: 34px 0 14px;
  color: var(--page-ink);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.4;
}

.about-link-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.profile-link {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 50%;
  background: var(--chip-bg);
  color: var(--chip-ink);
  text-decoration: none;
  transition: background-color 250ms ease, color 250ms ease, transform 250ms ease;
}

.profile-link svg {
  display: block;
  width: 17px;
  height: 17px;
  overflow: visible;
}

.profile-link:hover,
.profile-link:focus-visible {
  transform: translateY(-1px);
  background: var(--page-ink);
  color: var(--page-bg);
}

.profile-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.profile-link[aria-disabled="true"] {
  cursor: default;
  opacity: 0.72;
}

.profile-link[aria-disabled="true"]:hover {
  transform: none;
  background: var(--chip-bg);
  color: var(--chip-ink);
}

.music {
  padding: 0 24px clamp(60px, 8vh, 90px);
  text-align: center;
}

.music-copy {
  width: min(100%, 640px);
  margin: 0 auto;
}

.music-copy h2 {
  margin: 0 0 28px;
  color: var(--page-ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1;
}

.track-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.track {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--tile-bg);
}

.track-grid[hidden],
.load-more[hidden] {
  display: none !important;
}

.track-grid--extra {
  margin-top: 42px;
}

.track::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 58%, var(--tile-glow));
  content: "";
  opacity: 0;
  pointer-events: none;
  transition: opacity 450ms ease;
}

.track-main {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  margin: 0;
  padding: 4px 4px 0;
  border: 0;
  background: transparent;
  color: var(--page-ink);
  cursor: pointer;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
}

.track-main:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: -2px;
}

.track-cover {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--tile-cover-bg);
}

.track-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: filter 550ms ease;
}

.track-title {
  display: block;
  padding: 10px 6px 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.track-credit {
  display: block;
  padding: 0 6px 9px;
  color: var(--page-muted);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.35;
}

.track-item {
  min-width: 0;
}

.track-category {
  display: block;
  margin: 0 0 8px;
  color: var(--page-ink);
  font: inherit;
  text-align: center;
}

.load-more {
  display: inline-block;
  margin-top: 24px;
  padding: 10px 20px;
  border: 1px solid var(--hairline);
  background: transparent;
  color: var(--page-ink);
  cursor: pointer;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  transition: background-color 250ms ease, color 250ms ease, border-color 250ms ease;
}

.load-more:hover,
.load-more:focus-visible {
  border-color: var(--page-ink);
  background: var(--page-ink);
  color: var(--page-bg);
}

.load-more:focus-visible {
  outline: 2px solid var(--page-ink);
  outline-offset: 3px;
}

.track-links {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 0 0 13px;
}

.stream-link {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: var(--chip-bg);
  color: var(--chip-ink);
  text-decoration: none;
  transition: background-color 250ms ease, color 250ms ease, transform 250ms ease;
}

.stream-link::before {
  width: 14px;
  height: 14px;
  background: currentColor;
  content: "";
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.stream-link[data-platform="spotify"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M7 9.6c3.6-1 7.2-.7 10.2 1.1M7.7 12.9c2.9-.8 5.6-.5 8.1 1M8.4 15.9c2.1-.6 4.2-.4 6.1.7'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M7 9.6c3.6-1 7.2-.7 10.2 1.1M7.7 12.9c2.9-.8 5.6-.5 8.1 1M8.4 15.9c2.1-.6 4.2-.4 6.1.7'/%3E%3C/svg%3E");
}

.stream-link[data-platform="apple-music"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath fill='none' d='M9.2 17.4V6.6l9-1.9v10.8'/%3E%3Ccircle cx='7.2' cy='17.6' r='2.2'/%3E%3Ccircle cx='16.2' cy='15.6' r='2.2'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath fill='none' d='M9.2 17.4V6.6l9-1.9v10.8'/%3E%3Ccircle cx='7.2' cy='17.6' r='2.2'/%3E%3Ccircle cx='16.2' cy='15.6' r='2.2'/%3E%3C/svg%3E");
}

.stream-link[data-platform="tidal"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M4.6 5.7L7.8999999999999995 9L4.6 12.3L1.2999999999999998 9ZM12 5.7L15.3 9L12 12.3L8.7 9ZM19.4 5.7L22.7 9L19.4 12.3L16.099999999999998 9ZM12 13.099999999999998L15.3 16.4L12 19.7L8.7 16.4Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M4.6 5.7L7.8999999999999995 9L4.6 12.3L1.2999999999999998 9ZM12 5.7L15.3 9L12 12.3L8.7 9ZM19.4 5.7L22.7 9L19.4 12.3L16.099999999999998 9ZM12 13.099999999999998L15.3 16.4L12 19.7L8.7 16.4Z'/%3E%3C/svg%3E");
}

.stream-link[data-platform="youtube-music"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath fill='black' stroke='none' d='M10 8.4v7.2l6-3.6z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath fill='black' stroke='none' d='M10 8.4v7.2l6-3.6z'/%3E%3C/svg%3E");
}

.stream-link:hover,
.stream-link:focus-visible {
  background: var(--page-ink);
  color: var(--page-bg);
  transform: translateY(-1px);
}

.stream-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

/* Linki jeszcze bez adresu (href="#"): przygaszone i nieaktywne. */
.stream-link[href="#"] {
  opacity: 0.45;
  cursor: default;
}

.stream-link[href="#"]:hover {
  background: var(--chip-bg);
  color: var(--chip-ink);
  transform: none;
}

/* Gramofon: plyta + ramie */
.vinyl {
  position: absolute;
  right: 3%;
  bottom: 4%;
  width: 40%;
  aspect-ratio: 1;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.5));
  pointer-events: none;
}

.vinyl svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.vinyl-disc {
  transform-box: view-box;
  transform-origin: 28px 36px;
  animation: vinyl-spin 2.4s linear infinite;
  animation-play-state: paused;
}

.vinyl-arm {
  transform-box: view-box;
  transform-origin: 58px 12px;
  transition: transform 700ms var(--ease-out);
}

.track.is-playing .vinyl-disc {
  animation-play-state: running;
}

.track.is-playing .vinyl-arm {
  transform: rotate(24deg);
}

@keyframes vinyl-spin {
  to { transform: rotate(360deg); }
}

@media (hover: hover) {
  .track:hover::after {
    opacity: 1;
  }

  .track:hover .track-cover img,
  .track.is-playing .track-cover img {
    filter: grayscale(0);
  }
}

/* Dotyk nie ma hovera: gra = kolor. */
@media (hover: none) {
  .track.is-playing .track-cover img {
    filter: grayscale(0);
  }
}

.track:has(:focus-visible) .track-cover img {
  filter: grayscale(0);
}

@media (max-width: 560px) {
  .music {
    padding: 0 18px 64px;
  }

  .music-copy h2 {
    font-size: 24px;
  }

.track-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.live-section,
.press-section,
.site-footer {
  scroll-margin-top: 64px;
}

.live-section {
  padding: 0 24px clamp(90px, 12vh, 130px);
  text-align: center;
}

.press-section {
  padding: 0 24px clamp(56px, 7vh, 76px);
  text-align: center;
}

.section-panel {
  width: min(100%, 580px);
  margin: 0 auto;
}

.section-title {
  margin: 0;
  color: var(--page-ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1;
}

.event-list {
  margin-top: 54px;
}

.live-event {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(112px, 0.9fr) minmax(88px, 0.65fr);
  gap: 18px;
  align-items: center;
  padding: 21px 18px;
  border-bottom: 1px solid var(--hairline);
  text-align: left;
}

.event-description h3 {
  margin: 0;
  color: var(--page-ink);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.35;
}

.event-description p {
  margin: 3px 0 0;
  color: var(--page-muted);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.4;
}

.event-schedule {
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: var(--page-ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.event-schedule span {
  color: var(--page-muted);
  font-weight: 400;
}

.event-more {
  justify-self: center;
  color: var(--page-ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: opacity 250ms ease;
}

.event-more:hover,
.event-more:focus-visible {
  opacity: 0.62;
}

.press-intro {
  width: min(100%, 390px);
  margin: 20px auto 0;
  color: var(--page-muted);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.45;
}

.press-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 49px auto 0;
}

.press-action {
  display: flex;
  min-height: 43px;
  justify-content: center;
  align-items: center;
  padding: 10px 14px;
  background: var(--tile-bg);
  color: var(--page-ink);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.015em;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: background-color 250ms ease, color 250ms ease;
}

.press-action[aria-disabled="true"] {
  cursor: default;
}

.press-action:not([aria-disabled="true"]):hover,
.press-action:not([aria-disabled="true"]):focus-visible {
  background: var(--page-ink);
  color: var(--page-bg);
}

.press-photo {
  width: min(100%, 220px);
  margin: 36px auto 0;
}

.press-photo img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: grayscale(1);
}

.site-footer {
  padding: 0 24px 96px;
  text-align: center;
}

.site-footer > h2 {
  margin: 18px 0 0;
  color: var(--page-ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 34px;
  font-weight: 500;
  letter-spacing: 0.015em;
  line-height: 1;
}

.footer-intro {
  width: min(100%, 370px);
  margin: 16px auto 0;
  color: var(--page-muted);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.5;
}

.footer-link-group h3 {
  margin: 34px 0 14px;
  color: var(--page-muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.4;
}

.footer-social-group h3 {
  margin-top: 28px;
}

.footer-link-group .about-link-row {
  gap: 12px;
}

.footer-copyright {
  margin: 48px 0 0;
  color: var(--page-muted);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.4;
  opacity: 0.58;
}

@media (max-width: 700px) {
  .live-section {
    padding-right: 18px;
    padding-left: 18px;
  }

  .press-section {
    padding-right: 18px;
    padding-left: 18px;
  }

  .live-event {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 14px;
    padding: 18px 4px;
  }

  .event-description h3 {
    font-size: 12px;
  }

  .event-description p,
  .event-schedule {
    font-size: 11px;
  }

  .event-more {
    grid-column: 1 / -1;
    justify-self: end;
  }

  .press-actions {
    gap: 8px;
    margin-top: 38px;
  }

  .press-action {
    min-height: 42px;
    padding: 9px 8px;
    font-size: 9px;
  }

  .site-footer {
    padding-right: 18px;
    padding-bottom: 76px;
    padding-left: 18px;
  }
}

.announcement {
  position: fixed;
  z-index: 10;
  right: 18px;
  bottom: 18px;
  max-width: calc(100vw - 36px);
  padding: 12px 16px;
  border: 1px solid var(--hairline);
  background: var(--page-bg);
  color: var(--page-ink);
  font-size: 12px;
  letter-spacing: 0.015em;
  box-shadow: 0 8px 36px rgba(0, 0, 0, 0.15);
}

html.theme-changing *,
html.theme-changing *::before,
html.theme-changing *::after {
  transition: none !important;
}

::view-transition-old(root) {
  animation: none;
  z-index: 1;
}

::view-transition-new(root) {
  animation: theme-circle-reveal 850ms var(--ease-out) both;
  z-index: 2;
}

@keyframes theme-circle-reveal {
  from {
    clip-path: circle(0 at var(--theme-reveal-x, 50vw) var(--theme-reveal-y, 50vh));
  }
  to {
    clip-path: circle(var(--theme-reveal-radius, 150vmax) at var(--theme-reveal-x, 50vw) var(--theme-reveal-y, 50vh));
  }
}

html.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 900ms ease, transform 1100ms var(--ease-out);
}

html.js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.js .hero-wordmark {
  animation: enter-from-above 1250ms 80ms var(--ease-out) both;
}

.js .hero-role {
  animation: text-rise 1100ms 260ms var(--ease-out) both;
}

.js .hero-location {
  animation: text-rise 1100ms 380ms var(--ease-out) both;
}

.js .theme-toggle {
  animation: enter-from-below 1100ms 390ms var(--ease-out) both;
}

.js .hero-photo {
  animation: portrait-settle 1700ms 140ms var(--ease-out) both;
  animation-play-state: paused;
  transform-origin: center center;
}

.js .hero-photo.is-ready {
  animation-play-state: running;
}

.js .main-nav > * {
  animation: nav-enter 900ms var(--ease-out) backwards;
  animation-delay: calc(60ms + var(--nav-i, 0) * 80ms);
}

.js .main-nav > :nth-child(1) { --nav-i: 0; }
.js .main-nav > :nth-child(2) { --nav-i: 1; }
.js .main-nav > :nth-child(3) { --nav-i: 2; }
.js .main-nav > :nth-child(4) { --nav-i: 3; }
.js .main-nav > :nth-child(5) { --nav-i: 4; }
.js .main-nav > :nth-child(6) { --nav-i: 5; }
.js .main-nav > :nth-child(7) { --nav-i: 6; }
.js .main-nav > :nth-child(8) { --nav-i: 7; }
.js .main-nav > :nth-child(9) { --nav-i: 8; }
.js .main-nav > :nth-child(10) { --nav-i: 9; }
.js .main-nav > :nth-child(11) { --nav-i: 10; }
.js .main-nav > :nth-child(12) { --nav-i: 11; }

@keyframes enter-from-above {
  from { opacity: 0; transform: translate3d(0, -14px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes text-rise {
  from { opacity: 0; transform: translate3d(0, 20px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

/* Tylko "from": koncowy stan to zwykle style linku (hover, opacity), bez skoku. */
@keyframes nav-enter {
  from { opacity: 0; transform: translate3d(0, -14px, 0); }
}

@keyframes enter-from-below {
  from { opacity: 0; transform: translate3d(0, 8px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes portrait-settle {
  from { opacity: 0; transform: translateX(-55%) scale(1.2); }
  to { opacity: 1; transform: translateX(-55%) scale(1); }
}

@media (max-width: 700px) {
  .site-header {
    padding: 18px 14px 0;
  }

  .main-nav {
    gap: 12px 16px;
  }

  .nav-link {
    font-size: 9px;
    letter-spacing: 0.025em;
  }

  .hero {
    min-height: calc(100svh - 52px);
    padding: 0 18px 40px;
  }

  .hero-copy {
    margin-top: 36px;
  }

  .hero-wordmark {
    width: min(88vw, 410px);
  }

  .hero-role {
    margin-top: 4px;
    font-size: 14px;
  }

  .hero-location {
    margin-top: 7px;
    font-size: 9px;
  }

  .theme-toggle {
    margin-top: 37px;
  }

  .hero-photo {
    width: min(83vw, 380px);
    margin-top: 39px;
  }

  .about {
    padding: 0 20px 68px;
  }

  .about-copy {
    width: min(100%, 360px);
    margin-top: 0;
  }

  .about-copy h2 {
    font-size: 24px;
  }

  .about-summary {
    font-size: 13px;
  }

  .about-page {
    padding: 38px 18px 70px;
  }

  .about-page-photo--top {
    width: min(82vw, 340px);
  }

  .about-page-copy {
    margin-top: 36px;
  }

  .about-page-copy p {
    font-size: 14px;
  }

  .about-page-photo--bottom {
    width: 100%;
    aspect-ratio: 4 / 3;
    margin: 52px auto 42px;
  }

  .about-link-group h2 {
    margin-top: 30px;
  }

  .about-link-row {
    gap: 10px;
  }
}

@media (max-width: 360px) {
  .main-nav {
    gap: 10px 12px;
  }

  .nav-link {
    font-size: 8px;
  }

  .hero-photo {
    width: min(85vw, 340px);
  }
}

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

  html.js [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .js [data-scroll-motion] {
    translate: none !important;
    will-change: auto;
  }

  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none !important;
  }
}
