/* ==========================================================================
   Jakub Parka — portfolio
   Styles mirror the Figma file "Jakub Parka - 2026" 1:1 (type: Instrument Sans).
   Breakpoints: < 768 = mobile frames (375), >= 768 = desktop frames (1440).
   ========================================================================== */

/* Instrument Sans (OFL), self-hosted. Latin + Latin Extended (e.g. Polish), loaded only when used. */
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/InstrumentSans-Regular.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: "Instrument Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/InstrumentSans-Regular-ext.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; }
@font-face { font-family: "Instrument Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/InstrumentSans-Italic.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: "Instrument Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/InstrumentSans-Italic-ext.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; }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/InstrumentSans-Medium.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: "Instrument Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/InstrumentSans-Medium-ext.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; }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/InstrumentSans-SemiBold.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: "Instrument Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/InstrumentSans-SemiBold-ext.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; }
/* Instrument Sans has no arrows: "→" comes from Inter, exactly as in the Figma file */
@font-face { font-family: "Inter Arrows"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/Inter-Arrows.woff2") format("woff2"); unicode-range: U+2190-21FF; }

/* ---------- Tokens (from Figma) ---------- */
:root {
  color-scheme: dark;
  --bg: #121319;
  --line: #34363e;
  --fg: #ffffff;
  --fg-75: rgba(255, 255, 255, 0.75);
  --fg-65: rgba(255, 255, 255, 0.65);
  --surface: rgba(255, 255, 255, 0.05);

  --gutter: 20.5px;      /* 375 frame -> 334 column */
  --stack: 50px;         /* gap between page blocks */
  --pad-top: 24px;
  --pad-bottom: 24px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  /* Figma rounds every line height to whole pixels — mirrored below in px */
}

@media (min-width: 768px) {
  :root {
    --gutter: 40px;
    --stack: 104px;
    --pad-bottom: 40px;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
  /* Always reserve the scrollbar's space, so the layout doesn't shift sideways
     between short pages (Contact) and long ones, or when the menu locks scroll. */
  scrollbar-gutter: stable;
}

/* The artifact preview pads :root with safe-area insets on the home page only.
   Neutralise it; .page and .menu handle insets the same way on every page. */
:root { padding: 0; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family: "Instrument Sans", "Inter Arrows", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

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

:focus-visible {
  outline: 1px solid var(--fg);
  outline-offset: 4px;
  border-radius: 2px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: var(--gutter); top: 8px; z-index: 100;
  padding: 8px 12px; border-radius: 8px;
  background: var(--fg); color: var(--bg);
  font-weight: 500; font-size: 14px;
  transform: translateY(-200%);
  transition: transform 0.2s var(--ease-out);
}
.skip:focus-visible { transform: none; outline-offset: 2px; }

/* Line breaks that exist only in one of the two Figma frames */
.br-m { display: inline; }
.br-d { display: none; }
@media (min-width: 768px) {
  .br-m { display: none; }
  .br-d { display: inline; }
}

/* Divider: Figma uses a 0-height vector with a 1px #34363e stroke */
.rule {
  display: block;
  width: 100%;
  height: 1px;
  margin: 0 0 -1px;
  border: 0;
  background: var(--line);
}

/* ---------- Typography (Figma text roles) ---------- */
.t-h1 {
  font-weight: 500;
  font-size: 18px;
  line-height: 22px;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.t-h2 {
  font-weight: 500;
  font-size: 16px;
  line-height: 19px;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.t-body {
  font-weight: 400;
  font-size: 15px;
  line-height: 23px;
  color: var(--fg-65);
}
.t-body p + p { margin-top: 23px; } /* Figma: one empty line between paragraphs */
.t-body .em { color: var(--fg); }
.t-label {
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: var(--fg-75);
}
.t-caption {
  font-weight: 400;
  font-size: 13px;
  line-height: 16px;
  color: var(--fg-65);
}

@media (min-width: 768px) {
  .t-h1 { font-size: 24px; line-height: 29px; }
  .t-h2 { font-size: 20px; line-height: 24px; }
  .t-body { font-size: 18px; line-height: 28px; }
  .t-body p + p { margin-top: 28px; }
  .t-caption { font-size: 14px; line-height: 17px; }
}

/* Avoid a single orphaned word on the last line of headings and short texts */
.t-h1, .t-h2, .card__title, .card__desc, .t-caption, .stat__label,
.home-hero .t-body, .quote { text-wrap: pretty; }

/* Arrow link: "Read more →", "Contact me →" … */
.arrow-link {
  display: inline-block;
  align-self: flex-start;
  white-space: nowrap;
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  color: var(--fg);
}
.arrow {
  display: inline-block;
  transition: transform 0.25s var(--ease-out);
}
@media (hover: hover) {
  .arrow-link:hover .arrow { transform: translateX(4px); }
}
@media (min-width: 768px) {
  .arrow-link { font-size: 18px; line-height: 27px; }
}

/* Underlined inline link (email, footer) */
.u-link {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-thickness: from-font;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
@media (hover: hover) {
  .u-link:hover { color: var(--fg-65); }
}

/* ---------- Page frame ---------- */
.page {
  width: 100%;
  max-width: calc(1128px + 2 * var(--gutter));
  margin-inline: auto;
  padding-top: calc(var(--pad-top) + env(safe-area-inset-top, 0px));
  padding-bottom: calc(var(--pad-bottom) + env(safe-area-inset-bottom, 0px));
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
  display: flex;
  flex-direction: column;
  gap: var(--stack);
  min-height: 100vh;
  min-height: 100svh;
}
/* On short pages (Contact, 404) the footer sits at the bottom of the screen */
.page > .footer { margin-top: auto; }

.main {
  display: flex;
  flex-direction: column;
  gap: var(--stack);
}

/* Contact page uses an 80px rhythm on desktop */
@media (min-width: 768px) {
  .page--contact { --stack: 80px; }
}

/* ---------- Navigation ---------- */
/* The page nav and the bar inside the open mobile menu share one ruleset,
   so "Jakub Parka" and "Menu"/"Close" sit on exactly the same pixels. */
.nav,
.menu__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 19px;
  font-weight: 500;
  font-size: 16px;
  line-height: 19px;
}
.nav__logo { white-space: nowrap; }
.nav__links { display: none; }
.nav a { transition: color 0.2s ease; }
@media (hover: hover) {
  .nav a:hover { color: var(--fg-65); }
}
/* Cross-page fade leaves the nav untouched */
.nav { view-transition-name: site-nav; }

.nav__toggle,
.menu__close {
  display: inline-flex;
  align-items: center;
  height: 19px;
  font-weight: 500;
  font-size: 16px;
  line-height: 19px;
  -webkit-tap-highlight-color: transparent;
}
.nav__toggle { gap: 8px; }
.menu__close { gap: 2px; }
.nav__toggle svg { width: 12px; height: 11px; flex: none; }
.menu__close svg { width: 20px; height: 20px; flex: none; margin-block: -0.5px; }

@media (min-width: 768px) {
  .nav { height: 22px; font-size: 18px; line-height: 22px; }
  .nav__links { display: flex; gap: 30px; }
  .nav__toggle { display: none; }
}

/* Without JavaScript the burger can't open: show the plain links instead */
html:not(.js) .nav__toggle { display: none; }
html:not(.js) .nav__links { display: flex; gap: 24px; }

/* Bigger touch targets for small text links, without moving anything */
.nav a,
.nav__toggle,
.menu__bar a,
.menu__close,
.footer__links a { position: relative; }
.nav a::before,
.nav__toggle::before,
.menu__bar a::before,
.menu__close::before,
.footer__links a::before {
  content: "";
  position: absolute;
  inset: -12px -8px;
}

/* Mobile menu (Figma: "Home - 375 / menu open").
   The panel appears instantly — no cross-fade, so the bar never ghosts over
   the page nav; only the links ease in. */
.menu {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: var(--bg);
  overflow-y: auto;
  overscroll-behavior: contain;
  visibility: hidden;
}
.menu.is-open { visibility: visible; }
.menu__inner {
  padding-top: calc(var(--pad-top) + env(safe-area-inset-top, 0px));
  padding-bottom: 24px;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  /* --menu-extra: width the fixed panel covers beyond the page (e.g. a scrollbar gutter) */
  padding-right: calc(max(var(--gutter), env(safe-area-inset-right, 0px)) + var(--menu-extra, 0px));
  display: flex;
  flex-direction: column;
  gap: 56px;
}
.menu__list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.menu__list a,
.menu__list .rule {
  opacity: 0;
  transform: translateY(8px);
}
.menu.is-open .menu__list a,
.menu.is-open .menu__list .rule {
  opacity: 1;
  transform: none;
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 40ms + 40ms);
}
.menu__list a {
  align-self: flex-start;
  font-weight: 500;
  font-size: 20px;
  line-height: 24px;
  letter-spacing: -0.02em;
}
.menu__list .rule { margin: 0; }
html.menu-open { overflow: hidden; }
@media (min-width: 768px) {
  .menu { display: none; }
}

/* ---------- Generic blocks ---------- */
.intro {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.intro .t-h1 { max-width: 542.4px; }
.intro .t-body { max-width: 624px; }

/* Section: [divider, heading] then body */
.block {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.block__head {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.block__head .t-h2 { max-width: 744px; }
.block__body {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.block__body .t-body { max-width: 624px; }
@media (min-width: 768px) {
  .block__head { gap: 36px; }
  .block__body { gap: 16px; }
  .block__body--loose { gap: 24px; }   /* home teaser */
  .block__body--cta { gap: 40px; }     /* about "Now" */
}

/* ---------- Home ---------- */
/* Figma: nav -> hero 80px, hero -> works 98px (desktop); 50px everywhere on mobile */
.home-group {
  display: flex;
  flex-direction: column;
  gap: var(--stack);
}
.home-hero .t-h1 { max-width: 744px; }
.home-hero .t-body { font-size: 16px; line-height: 25px; }
@media (min-width: 768px) {
  .page--home .nav { margin-bottom: calc(80px - var(--stack)); }
  .home-group { gap: 98px; }
  .home-hero .t-body { font-size: 18px; line-height: 28px; }
}

/* Selected works */
.works {
  display: flex;
  flex-direction: column;
  gap: 16px;
  scroll-margin-top: 24px;
}
.label-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.works__grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 9px 8px;
  margin-inline: calc(var(--gutter) * -1);  /* mobile: full bleed */
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
}
@media (min-width: 768px) {
  .works__grid { margin-inline: 0; }
}
@media (min-width: 1024px) {
  .works__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 31px;
  padding-bottom: 31px;
  border-radius: 8px;
  background: var(--bg);
  overflow: hidden;
  isolation: isolate;
}
.card__media {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 365.3 / 265.3;
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 0.9s var(--ease-out), opacity 0.6s ease;
}
.card__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-inline: 28px;
}
.card__title {
  font-weight: 500;
  font-size: 18px;
  line-height: 22px;
  letter-spacing: -0.02em;
}
.card__desc {
  font-size: 16px;
  line-height: 22px;
  color: var(--fg-75);
}
.card__link::after {          /* whole card is clickable */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 8px;
}
.card__link:focus-visible { outline: none; }
.card__link:focus-visible::after { outline: 1px solid var(--fg); outline-offset: -1px; }
@media (hover: hover) {
  .card:hover .card__media img { transform: scale(1.03); }
  .card:hover .arrow { transform: translateX(4px); }
}
@media (min-width: 768px) {
  .card { gap: 32px; padding-bottom: 32px; }
  .card__body { padding-inline: 27px; }
  .card__title { font-size: 20px; line-height: 24px; }
  .card__desc { font-size: 18px; line-height: 25px; }
}
@media (max-width: 767.98px) {
  .card { min-height: 452px; }      /* Figma mobile card height */
  .card__media { margin-inline: 1.3px; }  /* Figma: image inset in mobile card */
}
@media (min-width: 1200px) {
  .card { min-height: 493px; }   /* Figma desktop card height */
}

/* Logos */
.logos {
  display: flex;
  flex-direction: column;
  gap: 34px;
}
.logos__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 36px;
}
.logos__row img { width: var(--w-m); height: auto; }
.logos__row .logo--omega { display: none; }
.logos__row .logo--disney { order: 1; }
.logos__row .logo--wb { order: 2; }
.logos__row .logo--sirius { order: 3; }
@media (min-width: 768px) {
  .logos { gap: 24px; }
  .logos__row { min-height: 60px; gap: 32px; }
  .logos__row img { width: var(--w); }
  .logos__row .logo--omega { display: block; }
  .logos__row li { order: 0 !important; }
}

/* Testimonial */
.quote-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.quote-block__row {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.quote-block__body {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.quote {
  font-style: italic;
  font-size: 15px;
  line-height: 23px;
  color: var(--fg-65);
}
.person {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.person img {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 8px;
  object-fit: cover;
}
.person__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.person__name { font-size: 15px; line-height: 21px; color: var(--fg); }
.person__role { font-size: 12px; line-height: 17px; color: var(--fg-65); }
@media (min-width: 768px) {
  .quote-block { gap: 36px; }
  .quote { font-size: 18px; line-height: 28px; }
  .person { align-items: center; }
  .person__name { font-size: 18px; line-height: 25px; }
  .person__role { font-size: 16px; line-height: 22px; }
}
@media (min-width: 1024px) {
  .quote-block__row {
    display: grid;
    grid-template-columns: minmax(0, 565.7fr) minmax(0, 538.3fr);
    gap: 24px;
    align-items: start;
  }
}

/* Home closing CTA */
.cta {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.cta__head {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cta__text { max-width: 298px; }
@media (min-width: 768px) {
  .cta { gap: 48px; }
  .cta__head { gap: 36px; }
  .cta__text { max-width: 556px; }
}

/* ---------- Footer ---------- */
.footer {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 14px;
  line-height: 20px;
}
.footer__note { color: var(--fg-65); }
.footer__links { display: flex; gap: 32px; }
@media (min-width: 768px) {
  .footer { gap: 32px; }
}

/* ---------- About ---------- */
.about-intro { position: relative; }
.portrait {
  margin-top: calc(var(--stack) - 16px);
}
.portrait img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  border-radius: 8px;
}
@media (min-width: 1024px) {
  .portrait {
    position: absolute;
    top: -8px;
    right: 0;
    margin: 0;
    width: 276px;
  }
  .portrait img { aspect-ratio: 1 / 1; }
}

/* ---------- Case studies ---------- */
.media img {
  width: 100%;
  height: auto;
  aspect-ratio: var(--ar-m, auto);
  object-fit: cover;
  border-radius: var(--r-m, 8px);
}
@media (min-width: 768px) {
  .media img {
    aspect-ratio: var(--ar, auto);
    border-radius: var(--r, 8px);
  }
}

.fig {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.fig__pair {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
@media (min-width: 768px) {
  .fig { gap: 16px; }
  .fig__pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
}

/* TwojeMeble flow stage keeps the orange backdrop while the image loads */
.media--orange img { background: #ff4d00; }

.stats {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.stats__rule { height: 1px; background: var(--line); }
.stats__row {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat__num {
  font-weight: 500;
  font-size: 34px;
  line-height: 41px;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}
.stat__label {
  font-size: 14px;
  line-height: 20px;
  color: var(--fg-65);
}
@media (min-width: 768px) {
  .stats { gap: 36px; }
  .stats__row { flex-direction: row; flex-wrap: wrap; gap: 24px 120px; }
  .stat { gap: 8px; }
  .stat__num { font-size: 48px; line-height: 58px; }
  .stat__label { font-size: 16px; line-height: 22px; }
}

/* ---------- Contact ---------- */
.contact-intro .t-body { max-width: 665.1px; }

/* ---------- Motion ---------- */
/* Light fade-up as blocks enter the viewport (progressive: only with JS) */
.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 10px, 0);
  transition:
    opacity 0.8s var(--ease-out) var(--d, 0ms),
    transform 0.8s var(--ease-out) var(--d, 0ms);
}
.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* Images fade in once decoded instead of popping */
.js img.is-loading { opacity: 0; }
img { transition: opacity 0.6s ease; }

/* Soft cross-fade between pages where supported */
@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) { animation-duration: 0.25s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
    animation-duration: 0.01ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  @view-transition { navigation: none; }
}
