/* =========================================================
   Kamil Tutak · TutakStudio.pl — style.css
   Spis treści:
   1. Zmienne (kolory, czcionki, odstępy)
   2. Baza
   3. Przyciski i linki
   4. Nagłówek i menu
   5. Hero
   6. Oferta
   7. Realizacje
   8. Kontakt i formularz
   9. Stopka
   10. Szybki podgląd projektu
   11. Animacje
   ========================================================= */

/* ---------- 1. Zmienne ---------- */
:root {
  --bg: #0c0c0a;
  --bg-raised: #131310;
  --surface: #1b1b17;
  --surface-hover: #24241f;
  --field: #0f0f0d;
  --field-border: #33332c;
  --ink: #f4f2ea;
  --ink-soft: #b3b1a7;
  --accent: #ffc21a;          /* żółty z logo TutakStudio */
  --accent-strong: #ffd34f;
  --on-accent: #0c0c0a;
  --danger: #ff8f7d;

  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --container: 1360px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-space: clamp(96px, 12vw, 176px);
  --header-h: 72px;

  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- 2. Baza ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
}

html.is-locked { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3 {
  margin: 0;
  font-weight: 800;
  font-stretch: 84%;
  line-height: 1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

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

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

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-space); }

.section-head {
  display: grid;
  gap: 20px;
}

.section-head h2 { font-size: clamp(38px, 5.2vw, 76px); }

.section-head p {
  max-width: 34em;
  font-size: clamp(17px, 1.3vw, 19px);
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  border-radius: 999px;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

@media (min-width: 900px) {
  .section-head {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: 48px;
    align-items: end;
  }
}

/* ---------- 3. Przyciski i linki ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 54px;
  padding: 0 1.6em;
  border: 2px solid transparent;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease-out);
}
.btn:active { transform: scale(.97); }
.btn .icon { transition: transform .3s var(--ease-out); }

.btn--primary { background: var(--accent); color: var(--on-accent); }

.btn--ghost {
  background: var(--surface);
  color: var(--ink);
}

.btn--small { min-height: 44px; padding: 0 1.25em; font-size: 15px; }

.link {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  transition: color .2s;
}

@media (hover: hover) {
  .btn--primary:hover { background: var(--accent-strong); }
  .btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
  .btn:hover .icon--down { transform: translateY(3px); }
  .btn:hover .icon--out { transform: translate(2px, -2px); }
  .link:hover { color: var(--accent); }
}

/* ---------- 4. Nagłówek i menu ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  transition: background-color .3s;
}
.site-header.is-scrolled { background: var(--bg-raised); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand__logo {
  width: 46px;
  height: 46px;
  flex: none;
  overflow: hidden;
  border-radius: 50%;
  background: var(--accent);
  transition: transform .3s var(--ease-out);
}
.brand__logo img { width: 100%; height: 100%; object-fit: cover; }

.brand__name {
  display: flex;
  flex-direction: column;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.brand__studio {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink-soft);
}

@media (hover: hover) {
  .brand:hover .brand__logo { transform: rotate(-8deg) scale(1.06); }
}

/* przycisk menu (telefon) */
.nav__toggle {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--surface);
  cursor: pointer;
}
.nav__toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .3s var(--ease-out);
}
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* panel menu (telefon) */
.nav__menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
  padding: 32px var(--gutter);
  background: var(--bg-raised);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity .3s, transform .3s var(--ease-out), visibility 0s .3s;
}
.nav__menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .3s, transform .3s var(--ease-out);
}
.nav__menu ul { display: flex; flex-direction: column; gap: 4px; }
.nav__menu ul a {
  display: block;
  padding: 6px 0;
  font-size: 44px;
  font-weight: 800;
  font-stretch: 84%;
  letter-spacing: -0.03em;
  text-decoration: none;
}
.nav__menu ul a[aria-current="true"] { color: var(--accent); }

@media (min-width: 900px) {
  .nav__toggle { display: none; }

  .nav__menu {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 40px;
    padding: 0;
    background: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }
  .nav__menu ul { flex-direction: row; gap: 32px; }
  .nav__menu ul a {
    position: relative;
    padding: 8px 0;
    font-size: 16px;
    font-weight: 600;
    font-stretch: 100%;
    letter-spacing: 0;
    transition: color .2s;
  }
  .nav__menu ul a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2px;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s var(--ease-out);
  }
  .nav__menu ul a:hover,
  .nav__menu ul a[aria-current="true"] { color: var(--accent); }
  .nav__menu ul a:hover::after,
  .nav__menu ul a[aria-current="true"]::after { transform: scaleX(1); }
}

/* ---------- 5. Hero ---------- */
.hero { padding-block: clamp(24px, 5vw, 72px) clamp(16px, 3vw, 40px); }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.hero__title { font-size: clamp(38px, 5.9vw, 100px); }

/* żółte podkreślenie słowa kluczowego */
.hl {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}
.hl::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.02em;
  height: 0.13em;
  background: var(--accent);
  transform-origin: left;
  transition: transform 1s var(--ease-out) .55s;
}
.js .hl::after { transform: scaleX(0); }
.js.is-loaded .hl::after { transform: scaleX(1); }

.hero__lead {
  max-width: 33em;
  margin-top: 28px;
  font-size: clamp(17px, 1.35vw, 20px);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.hero__work { margin-top: clamp(44px, 5vw, 64px); }

.hero__work-label {
  margin-bottom: 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-soft);
}

.hero__thumbs {
  display: flex;
  gap: 12px;
  margin-inline: calc(var(--gutter) * -1);
  padding: 0 var(--gutter) 4px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.hero__thumbs::-webkit-scrollbar { display: none; }
.hero__thumbs li { flex: 0 0 138px; scroll-snap-align: start; }

.thumb {
  display: grid;
  gap: 8px;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
}
.thumb img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
  border: 2px solid transparent;
  transition: border-color .2s, transform .3s var(--ease-out);
}
.thumb span {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink-soft);
  transition: color .2s;
}
.thumb:active img { transform: scale(.97); }

@media (hover: hover) {
  .thumb:hover img { border-color: var(--accent); transform: translateY(-3px); }
  .thumb:hover span { color: var(--ink); }
}

.hero__portrait {
  order: -1;
  width: min(62vw, 280px);
  margin: 0;
}

/* zdjęcie na żółtym kole, przycięte płasko u dołu */
.portrait {
  position: relative;
  aspect-ratio: 768 / 685;
  overflow: hidden;
}
.portrait::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--accent);
}
.portrait img { position: relative; width: 100%; }

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(32px, 5vw, 80px);
  }
  .hero__portrait { order: 0; width: 100%; }

  .hero__thumbs {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    margin-inline: 0;
    padding: 0;
    overflow: visible;
  }
}

/* ---------- 6. Oferta ---------- */
.services { margin-top: clamp(48px, 6vw, 88px); }

.service {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 28px 0;
}
.service h3 {
  font-size: clamp(27px, 2.7vw, 40px);
  transition: color .25s;
}
.service p { max-width: 36em; }
.service__example {
  justify-self: start;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-soft);
}

@media (min-width: 900px) {
  .service {
    grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr);
    gap: 48px;
    align-items: baseline;
    padding: 36px 0;
  }
  .service::before {
    content: "";
    position: absolute;
    inset: 0 calc(var(--gutter) * -0.5);
    z-index: -1;
    background: var(--surface);
    opacity: 0;
    transition: opacity .25s;
  }
  .service__example { justify-self: end; text-align: right; }
}

@media (hover: hover) and (min-width: 900px) {
  .service:hover::before { opacity: 1; }
  .service:hover h3 { color: var(--accent); }
}

/* żółte pole: co jest w projektach */
.features {
  display: grid;
  gap: 28px;
  margin-top: clamp(56px, 7vw, 104px);
  padding: clamp(28px, 4.5vw, 64px);
  background: var(--accent);
  color: var(--on-accent);
}
.features h3 { font-size: clamp(28px, 3vw, 44px); }
.features ul { display: grid; gap: 16px 40px; }
.features li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.45;
}
.features .icon { width: 24px; height: 24px; stroke-width: 2.6; }

@media (min-width: 640px) {
  .features ul { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1000px) {
  .features { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; }
}

/* ---------- 7. Realizacje ---------- */
.work { background: var(--bg-raised); }

.projects {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px 32px;
  margin-top: clamp(48px, 6vw, 80px);
}

@media (min-width: 800px) {
  .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project--featured { grid-column: 1 / -1; }
}

/* wyróżniony kafelek: zdjęcie obok opisu */
@media (min-width: 1000px) {
  .project.project--featured { flex-direction: row; }
  .project--featured .project__media { flex: 0 0 56%; }
  .project--featured .project__body { justify-content: center; }
  .project--featured .project__title { font-size: clamp(36px, 3.4vw, 52px); }
  .project--featured .project__actions { margin-top: 8px; }
}

.project {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 2px solid transparent;
  transition: border-color .25s, transform .4s var(--ease-out);
}
.project:focus-within { border-color: var(--accent); }

.project__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #000;
  cursor: zoom-in;
}
.project__media:focus-visible { outline-offset: -3px; }

.project__shot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform .7s var(--ease-out);
}

/* zrzut z telefonu nałożony na zrzut z komputera */
.project__phone {
  position: absolute;
  right: 6%;
  bottom: 0;
  width: 21%;
  aspect-ratio: 390 / 700;
  object-fit: cover;
  object-position: top;
  border: 5px solid var(--bg);
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
  transform: translateY(12%);
  transition: transform .6s var(--ease-out);
}

.project__hint {
  position: absolute;
  left: 16px;
  top: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 14px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .25s, transform .3s var(--ease-out);
}
.project__media:focus-visible .project__hint { opacity: 1; transform: none; }

@media (hover: hover) {
  .project:hover { border-color: var(--accent); transform: translateY(-4px); }
  .project:hover .project__shot { transform: scale(1.03); }
  .project:hover .project__phone { transform: translateY(2%); }
  .project:hover .project__hint { opacity: 1; transform: none; }
}

.project__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 14px;
  padding: clamp(24px, 3vw, 40px);
}

.project__title { font-size: clamp(30px, 2.8vw, 42px); }

.project__meta {
  margin-top: -4px;
  font-size: 15px;
  color: var(--ink-soft);
}

.project__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  font-size: 14px;
  font-weight: 600;
}
.project__tags li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.project__tags li::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--accent);
}

.project__actions .btn--ghost { background: var(--surface-hover); }

.project__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
}

@media (max-width: 420px) {
  .project__actions .btn { flex: 1 1 100%; }
}

/* ---------- 8. Kontakt i formularz ---------- */
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
}

.contact__intro h2 { font-size: clamp(38px, 5.2vw, 76px); }
.contact__intro > p {
  max-width: 30em;
  margin-top: 24px;
  font-size: clamp(17px, 1.3vw, 19px);
}

.contact__block { margin-top: 40px; }
.contact__block + .contact__block { margin-top: 28px; }

.contact__label {
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-soft);
}

.contact__email {
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 700;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
  transition: color .2s;
}

.socials { display: flex; flex-wrap: wrap; gap: 10px; }

@media (hover: hover) {
  .contact__email:hover { color: var(--accent); }
}

@media (min-width: 900px) {
  .contact__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: clamp(48px, 6vw, 104px);
    align-items: start;
  }
}

.form {
  display: grid;
  gap: 20px;
  padding: clamp(24px, 4vw, 48px);
  background: var(--surface);
}

.form__row { display: grid; gap: 20px; }
@media (min-width: 640px) {
  .form__row { grid-template-columns: 1fr 1fr; }
}

.field { display: grid; gap: 8px; }
.field label { font-size: 15px; font-weight: 600; }
.field__optional { font-weight: 400; color: var(--ink-soft); }

.field input,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--field-border);
  border-radius: 14px;
  background: var(--field);
  font-size: 16px; /* 16px = brak automatycznego powiększania na iPhonie */
  line-height: 1.5;
  transition: border-color .2s, background-color .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: #807e75; }

.field input:hover,
.field textarea:hover { border-color: #4a4a40; }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #121210;
}

.field [aria-invalid="true"] { border-color: var(--danger); }

.field__error {
  font-size: 14px;
  color: var(--danger);
}
.field__error:empty { display: none; }

.form__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 4px;
}
.form__note { max-width: 22em; font-size: 14px; color: var(--ink-soft); }

.form__status { font-weight: 600; }
.form__status:empty { display: none; }
.form__status.is-success { color: var(--accent); }
.form__status.is-error { color: var(--danger); }

.form button[disabled] { opacity: .6; cursor: progress; }

.hp { position: absolute; left: -9999px; }

/* ---------- 9. Stopka ---------- */
.footer {
  padding-block: clamp(48px, 7vw, 96px) 32px;
  background: var(--bg-raised);
  overflow: hidden;
}

.footer__wordmark {
  font-size: min(20.4vw, 286px); /* napis wypełnia całą szerokość strony */
  font-weight: 900;
  font-stretch: 72%;
  line-height: .8;
  letter-spacing: -0.045em;
  color: var(--accent);
  white-space: nowrap;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  margin-top: clamp(28px, 4vw, 48px);
  font-size: 15px;
  color: var(--ink-soft);
}
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* ---------- 10. Szybki podgląd projektu ---------- */
.preview {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--bg);
  color: var(--ink);
}
.preview[open] {
  display: flex;
  flex-direction: column;
  animation: preview-in .35s var(--ease-out);
}
.preview::backdrop { background: rgba(0, 0, 0, .7); }

.preview__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  padding: 12px var(--gutter);
  background: var(--bg-raised);
}

.preview__title {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  font-size: 20px;
  font-stretch: 100%;
  letter-spacing: -0.01em;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.seg {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: var(--surface);
}
.seg button {
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }

.preview__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--surface);
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.preview__close .icon { width: 22px; height: 22px; }

@media (hover: hover) {
  .seg button[aria-pressed="false"]:hover { color: var(--ink); }
  .preview__close:hover { background: var(--accent); color: var(--on-accent); }
}

@media (max-width: 560px) {
  .preview__title { flex-basis: calc(100% - 56px); order: -2; }
  .preview__close { order: -1; }
  .preview__live span { display: none; }
  .preview__live { padding: 0 14px; }
}

.preview__stage {
  display: flex;
  flex: 1;
  justify-content: center;
  align-items: flex-start;
  min-height: 0;
  padding: 16px var(--gutter) var(--gutter);
  overflow: hidden;
}

.preview__frame {
  position: relative;
  overflow: hidden;
  background: #fff;
  border-radius: 12px;
  transition: width .45s var(--ease-out);
}
.preview__frame iframe {
  position: relative;
  display: block;
  border: 0;
  transform-origin: 0 0;
  background: #fff;
}

.preview__loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--surface);
  color: var(--ink-soft);
  font-weight: 600;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.preview.is-loading .preview__loading { opacity: 1; }

/* ---------- 11. Animacje ---------- */
@keyframes rise {
  from { opacity: 0; translate: 0 28px; }
  to { opacity: 1; translate: 0 0; }
}

@keyframes portrait-in {
  from { opacity: 0; scale: .92; }
  to { opacity: 1; scale: 1; }
}

@keyframes preview-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

/* elementy pojawiają się płynnie przy przewijaniu (klasa dodawana w script.js) */
.js .reveal { opacity: 0; }
.js .reveal.is-visible { animation: rise .8s var(--ease-out) var(--delay, 0ms) both; }
.js .hero__portrait.reveal.is-visible { animation-name: portrait-in; animation-duration: 1s; }

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