/* ==========================================================================
   Ondřej Tejkl — Product Designer
   Breakpoints: phone <=767 | tablet 768-1099 | desktop 1100-1919 | large >=1920
   ========================================================================== */

/* --------------------------------------------------------------- fonts */
/* Manrope 500 — latin */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/manrope/v20/xn7gYHE41ni1AdIRggexSg.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;
}
/* Manrope 500 — latin-ext (Czech diacritics) */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/manrope/v20/xn7gYHE41ni1AdIRggmxSuXd.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;
}

/* --------------------------------------------------------------- tokens */
:root {
  --black: #000;
  --white: #fff;
  --grey: #666;
  --grey-meta: #969696;
  --surface: #f0f0f0;
  --hairline: #d9d9d9;

  --font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* type scale (desktop / large) */
  --fs-display: 64px;   /* hero + contact headline */
  --fs-title: 40px;     /* section headlines, e-mail */
  --fs-item: 24px;      /* accordion sub-items */
  --fs-lead: 18px;      /* nav links, card titles */
  --fs-body: 16px;      /* body copy, labels */
  --fs-meta: 14px;      /* card meta */

  /* rhythm */
  --pad-x: 80px;
  --gap-section: 200px;

  /* motion — matches the original tween exactly */
  --ease-reveal: cubic-bezier(0.35, 0, 0, 1);
  --dur-reveal: 1.5s;
  --dur-reveal-fast: 1s;
  --delay-reveal: 0.2s;
  --dur-nav: 0.6s;
  /* component springs (stiffness 500 / damping 60) approximated as a tween */
  --ease-spring: cubic-bezier(0.33, 1, 0.68, 1);
  --dur-spring: 0.4s;
  /* text link roll */
  --ease-link: cubic-bezier(0.12, 0.23, 0.5, 1);
  --dur-link: 0.2s;
}

@media (min-width: 768px) and (max-width: 1099.98px) {
  :root {
    --fs-display: 52px;
    --fs-title: 32px;
    --fs-item: 22px;
    --pad-x: 64px;
    --gap-section: 120px;
  }
}
@media (max-width: 767.98px) {
  :root {
    --fs-display: 32px;
    --fs-title: 26px;
    --fs-item: 20px;
    --pad-x: 16px;
    --gap-section: 80px;
  }
}

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

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

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--font);
  font-weight: 500;
  font-size: var(--fs-body);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, p { margin: 0; font-size: inherit; font-weight: inherit; }
img, svg { display: block; max-width: 100%; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

a { color: inherit; }

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

/* Custom cursor replaces the pointer on precise-pointer devices */
body.has-cursor,
body.has-cursor * { cursor: none !important; }

/* Page root: clips the decorative square that bleeds past the right edge, so it
   never widens the layout viewport on phones. The fixed nav and cursor sit
   outside this wrapper. */
.page { position: relative; overflow: clip; }

/* --------------------------------------------------------------- helpers */
.label {
  flex: none;
  width: 100%;
  font-size: var(--fs-body);
  line-height: 1.4;
  scroll-margin-top: 80px;
}
.label--inv { color: var(--white); }
.muted { color: var(--grey); }

/* =============================================================== cursor */
/* A 32px ring with a 4px dot in the middle. Pressing squashes it into a bar;
   over the black square it becomes a thin white line instead. */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 13;
  width: 32px;
  height: 32px;
  border: 2px solid var(--black);
  border-radius: 40px;
  background: rgba(255, 255, 255, 0);
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s linear,
              height var(--dur-spring) var(--ease-spring),
              border-color var(--dur-spring) var(--ease-spring);
}
.cursor__dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 4px;
  background: var(--black);
  transform: translate(-50%, -50%);
}
.cursor.is-visible { opacity: 1; }

/* pressed: the ring collapses onto its own centre line */
.cursor.is-down { height: 4px; }
.cursor.is-down .cursor__dot { display: none; }

/* over the black square: a white line that opens into a ring while pressed */
.cursor.is-inv {
  height: 2px;
  border-color: var(--white);
}
.cursor.is-inv .cursor__dot { display: none; }
.cursor.is-inv.is-down { height: 32px; }
.cursor.is-inv.is-down .cursor__dot { display: block; background: var(--white); }

@media (hover: none), (pointer: coarse) {
  .cursor { display: none; }
}

/* =============================================================== nav */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 24px 80px;
  background: transparent;
  transform: perspective(1200px) translateY(0);
  transition: transform var(--dur-nav) var(--ease-reveal),
              background-color var(--dur-spring) var(--ease-spring),
              border-radius var(--dur-spring) var(--ease-spring);
}
.nav.is-hidden { transform: perspective(1200px) translateY(-86px); }

.nav__inner {
  display: flex;
  flex: 1;
  justify-content: space-between;
  align-items: center;
  max-width: 2200px;
}

/* logo + hamburger share one row so the burger can sit opposite the logo */
.nav__logo {
  display: flex;
  flex: none;
  justify-content: center;
  align-items: center;
  height: 38px;
}
.nav__logo img {
  width: 70px;
  height: 40px;
  object-fit: contain;
}
/* hovering swaps the filled mark for the outlined one */
.nav__logo-img--hover { display: none; }
@media (hover: hover) {
  .nav__logo:hover .nav__logo-img { display: none; }
  .nav__logo:hover .nav__logo-img--hover { display: block; }
}

.nav__links {
  display: flex;
  flex: 1;
  justify-content: center;
  align-items: center;
  gap: 40px;
  overflow: hidden;
}

.navlink {
  display: flex;
  flex: none;
  justify-content: center;
  align-items: center;
  font-size: var(--fs-lead);
  line-height: 1.4;
  text-decoration: none;
}
/* two stacked copies inside a clipped box roll up on hover */
.navlink__roll {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 22px;
  overflow: hidden;
  transform: translateY(0);
  transition: transform var(--dur-link) var(--ease-link);
}
.navlink__roll > span {
  flex: none;
  white-space: nowrap;
}
.navlink__roll > span:last-child { opacity: 0.6; }
.navlink:hover .navlink__roll,
.navlink:focus-visible .navlink__roll { transform: translateY(calc(22px - 100%)); }

/* black by default, inverts to white with a 2px ring on hover */
.pill {
  display: flex;
  flex: none;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 64px;
  background: var(--black);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0);
  color: var(--white);
  font-size: var(--fs-lead);
  line-height: 1.4;
  text-decoration: none;
  transition: background-color var(--dur-spring) var(--ease-spring),
              box-shadow var(--dur-spring) var(--ease-spring),
              color var(--dur-spring) var(--ease-spring);
}
.pill:hover,
.pill:focus-visible {
  background: var(--white);
  box-shadow: inset 0 0 0 2px var(--black);
  color: var(--black);
}

.burger { display: none; }

/* --- phone: white bar + hamburger ----------------------------------- */
@media (max-width: 767.98px) {
  .nav {
    flex-direction: column;
    justify-content: flex-start;
    gap: 24px;
    padding: 16px;
    background: var(--white);
  }
  .nav.is-open {
    gap: 48px;
    padding: 16px 16px 80px;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
  }

  .nav__inner {
    flex: none;
    flex-wrap: wrap;
    width: 100%;
    max-width: none;
  }
  /* three rows: logo opposite the hamburger, then the links, then the pill */
  .nav__logo { order: 0; }
  /* the 40px tap target overhangs the 38px row by 1px, as in the original */
  .burger { order: 1; margin-block: -1px; }
  .nav__links { order: 2; }
  .pill { order: 3; margin: 0 auto; }

  .burger {
    display: block;
    position: relative;
    flex: none;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 64px;
    background: rgba(255, 255, 255, 0.9);
    overflow: hidden;
  }
  .burger > span {
    position: absolute;
    left: calc(50% - 9.5px);
    width: 19px;
    height: 2px;
    border-radius: 2px;
    background: var(--black);
    transition: top var(--dur-spring) var(--ease-spring),
                bottom var(--dur-spring) var(--ease-spring),
                width var(--dur-spring) var(--ease-spring),
                left var(--dur-spring) var(--ease-spring),
                transform var(--dur-spring) var(--ease-spring);
  }
  .burger > span:nth-child(1) { top: 14px; }
  .burger > span:nth-child(2) { top: calc(50% - 1px); }
  .burger > span:nth-child(3) { bottom: 14px; }
  /* the outer lines meet in the middle and cross, the middle one collapses */
  .nav.is-open .burger > span:nth-child(1) {
    top: calc(50% - 1px);
    transform: rotate(45deg);
  }
  .nav.is-open .burger > span:nth-child(2) {
    left: calc(50% - 0.5px);
    width: 1px;
  }
  .nav.is-open .burger > span:nth-child(3) {
    top: calc(50% - 1px);
    bottom: auto;
    transform: rotate(-45deg);
  }

  .nav__links {
    flex-direction: column;
    flex: none;
    gap: 24px;
    width: 100%;
    padding: 24px 0 40px;
  }
  /* collapsed by default, revealed by the hamburger */
  .nav:not(.is-open) .nav__links,
  .nav:not(.is-open) .pill { display: none; }
}

/* =============================================================== layout */
.main {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 200px var(--pad-x) 240px;
  background: var(--white);
}
@media (min-width: 768px) and (max-width: 1099.98px) {
  .main { padding: 200px var(--pad-x) 160px; }
}
@media (max-width: 767.98px) {
  .main { padding: 120px var(--pad-x) 160px; }
}

.shell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--gap-section);
  width: 100%;
  max-width: 1920px;
}
@media (min-width: 1920px) {
  .shell { max-width: 2200px; }
}

/* =============================================================== hero */
.hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 80px;
  width: 100%;
  max-width: 1200px;
}
@media (max-width: 767.98px) {
  .hero { gap: 48px; }
}

.hero > * { flex: none; width: 100%; }

.hero__title {
  font-size: var(--fs-display);
  line-height: 1.2;
}

/* =============================================================== work */
.work {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 80px;
  width: 100%;
}

.work__square {
  position: absolute;
  top: -80px;
  right: -211px;
  z-index: -1;
  width: 485px;
  height: 485px;
  aspect-ratio: 1;
  background: var(--black);
}
@media (min-width: 768px) and (max-width: 1099.98px) {
  .work__square { top: 0; right: -198px; }
}
@media (max-width: 767.98px) {
  .work__square { top: 40px; right: -281px; }
}

/* --- project card --------------------------------------------------- */
.card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
  width: 100%;
  padding: 40px 40px 80px;
  background: var(--surface);
}
.card--lead {
  gap: 60px;
  padding: 60px 60px 80px;
}
@media (max-width: 767.98px) {
  .card,
  .card--lead { gap: 20px; padding: 40px 16px; }
}
/* side-by-side only on the largest breakpoint */
@media (min-width: 1920px) {
  .card { flex-direction: row; gap: 60px; }
  .card--lead { flex-direction: row; }
}

/* the gallery sits above the text on every stacked layout, so the markup keeps
   the heading first for reading order and flexbox reorders it visually */
.card__text {
  display: flex;
  flex: none;
  justify-content: center;
  align-items: flex-start;
  order: 1;
  gap: 40px;
  width: 100%;
  overflow: hidden;
}
@media (min-width: 1920px) {
  .card__text {
    flex: 1 0 0;
    flex-direction: column;
    justify-content: flex-start;
    order: 0;
    width: 1px;
    max-width: 640px;
  }
}
@media (min-width: 768px) and (max-width: 1099.98px) {
  .card--lead .card__text { flex-direction: column; }
}
@media (max-width: 767.98px) {
  .card__text { flex-direction: column; gap: 20px; }
}

.card__head,
.card__body {
  display: flex;
  flex: 1 0 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: 1px;
  padding-right: 40px;
}
@media (max-width: 767.98px) {
  .card__head,
  .card__body { flex: none; width: 100%; }
}
@media (min-width: 1920px) {
  .card__head,
  .card__body { flex: none; width: 100%; }
}
@media (min-width: 768px) and (max-width: 1099.98px) {
  .card--lead .card__head,
  .card--lead .card__body { flex: none; width: 100%; }
}

.card__title {
  font-size: var(--fs-lead);
  line-height: 1.4;
}
.card__title a {
  text-decoration: underline;
  transition: color 0.3s cubic-bezier(0.44, 0, 0.56, 1);
}
.card__title a:hover { color: var(--grey); }

.card__meta {
  color: var(--grey-meta);
  font-size: var(--fs-meta);
  line-height: 1.4;
  /* the original keeps this line unwrapped, even when it overruns its column */
  white-space: pre;
}

.card__media { order: 0; width: 100%; }
@media (min-width: 1920px) {
  .card__media { flex: 1 0 0; order: 1; width: 1px; }
}

/* =============================================================== carousel */
.carousel {
  position: relative;
  display: flex;
  width: 100%;
  overflow: hidden;
}

.carousel__track {
  display: flex;
  flex: 1 1 100%;
  align-items: center;
  gap: 40px;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior-x: contain;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track.is-dragging { scroll-snap-type: none; cursor: grabbing; }

.carousel__slide {
  flex: none;
  width: 100%;
  scroll-snap-align: center;
}

@media (max-width: 767.98px) {
  .carousel__track { gap: 20px; }
  .carousel { padding-bottom: 24px; }
}

.frame {
  position: relative;
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
}
.frame--3x2 { aspect-ratio: 1.5 / 1; }
.frame--8x5 { aspect-ratio: 1.6 / 1; }

/* From the desktop breakpoint up the slides keep a fixed 600px height and take
   their width from the aspect ratio, so a wide slide can exceed the viewport. */
@media (min-width: 1100px) {
  .carousel { height: 600px; }
  .carousel__slide { width: auto; height: 100%; }
  .frame { width: auto; height: 100%; }
}
/* the media carries the same radius as its frame: clipping alone leaves a
   hairline seam, and Safari does not clip iframes at all */
.frame > img {
  width: 100%;
  height: 100%;
  border-radius: 24px;
  object-fit: cover;
}
.frame__video,
.frame__video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 24px;
}

/* --- arrows --------------------------------------------------------- */
.carousel__arrows {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  pointer-events: none;
}
.carousel__arrow {
  display: flex;
  flex: none;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: var(--black);
  pointer-events: auto;
  opacity: 1;
  transition: opacity var(--dur-spring) var(--ease-spring);
}
.carousel__arrow[disabled] {
  opacity: 0;
  pointer-events: none;
}
.carousel__arrow img { width: 40px; height: 40px; }

@media (max-width: 767.98px) {
  .carousel__arrows { display: none; }
}

/* --- dots ----------------------------------------------------------- */
.carousel__dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--black);
  transform: translateX(-50%);
  overflow: hidden;
}
.carousel__dot {
  display: flex;
  flex: none;
  justify-content: center;
  align-items: center;
  width: 20px;
  height: 30px;
  padding: 10px 5px;
  border: 0;
  background: transparent;
}
.carousel__dot:first-child { width: 25px; padding-left: 10px; }
.carousel__dot:last-child { width: 25px; padding-right: 10px; }
.carousel__dot::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--white);
  opacity: 0.5;
  transition: opacity var(--dur-spring) var(--ease-spring);
}
.carousel__dot[aria-current='true']::before { opacity: 1; }

@media (max-width: 767.98px) {
  .carousel__dots {
    bottom: 0;
    background: transparent;
  }
  .carousel__dot {
    width: 12px;
    height: 18px;
    padding: 6px 3px;
  }
  .carousel__dot:first-child { width: 15px; padding-left: 6px; }
  .carousel__dot:last-child { width: 15px; padding-right: 6px; }
  .carousel__dot::before {
    width: 6px;
    height: 6px;
    background: var(--black);
  }
}

/* =============================================================== services */
.services {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  width: 100%;
}
@media (max-width: 767.98px) {
  .services { gap: 16px; }
}

.acc { width: 100%; }

.acc__row {
  display: flex;
  align-items: start;
  gap: 24px;
  width: 100%;
  height: 96px;
  padding: 24px 0;
  box-shadow: 0 1px 0 0 var(--hairline);
  overflow: hidden;
  cursor: pointer;
  transition: height var(--dur-spring) var(--ease-spring);
}

.acc__main {
  display: flex;
  flex: 1 0 0;
  flex-direction: column;
  align-items: start;
  gap: 10px;
  width: 1px;
}

.acc__title {
  display: flex;
  flex: none;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  height: 48px;
  font-size: var(--fs-title);
  line-height: 1.4;
}

.acc__list {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: start;
  gap: 16px;
  width: 100%;
  padding: 16px 0;
}

.acc__item {
  display: block;
  flex: none;
  width: 100%;
  font-size: var(--fs-item);
  line-height: 1.4;
  opacity: 0;
  transition: opacity var(--dur-spring) var(--ease-spring);
}
.acc__row.is-open .acc__item { opacity: 1; }

.acc__icon {
  flex: none;
  width: 48px;
  height: 48px;
  background: url('../svg/ui/toggle.svg') center / 24px 24px no-repeat;
  transition: transform var(--dur-spring) var(--ease-spring);
}
.acc__row.is-open .acc__icon { transform: rotate(180deg); }

/* =============================================================== about */
.about {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
}
@media (max-width: 767.98px) {
  .about { flex-direction: column; }
}

.about > .label {
  flex: none;
  width: 20%;
  scroll-margin-top: 80px;
}
@media (max-width: 767.98px) {
  .about > .label { width: 100%; }
}

.about__cols {
  display: flex;
  flex: 1 0 0;
  align-items: flex-start;
  gap: 48px;
  width: 1px;
}
@media (max-width: 1099.98px) {
  .about__cols { flex-direction: column; }
}
@media (max-width: 767.98px) {
  .about__cols { flex: none; width: 100%; }
}

.about__body {
  display: flex;
  flex: 1 0 0;
  flex-direction: column;
  width: 1px;
}
@media (max-width: 1099.98px) {
  .about__body { flex: none; width: 100%; }
}

.about__lead {
  font-size: var(--fs-title);
  line-height: 1.4;
}
.about__lead + .about__lead { margin-top: 40px; }

/* =============================================================== clients */
.clients {
  display: grid;
  grid-template-columns: repeat(4, minmax(50px, 1fr));
  justify-content: center;
  width: 100%;
  overflow: hidden;
}
@media (max-width: 767.98px) {
  .clients { grid-template-columns: repeat(2, minmax(50px, 1fr)); }
}

.clients__cell {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
  overflow: hidden;
}
.clients__cell img { flex: none; }
@media (min-width: 768px) and (max-width: 1099.98px) {
  .clients__cell { height: 140px; }
}
@media (max-width: 767.98px) {
  .clients__cell { height: 120px; }
}

/* =============================================================== contact */
.contact {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 40px;
  height: 90vh;
  max-height: 1000px;
  padding: 80px;
  background: var(--black);
  color: var(--white);
  overflow: hidden;
}
@media (min-width: 768px) and (max-width: 1099.98px) {
  .contact { height: auto; max-height: none; padding: 64px; }
}
@media (max-width: 767.98px) {
  .contact { height: auto; max-height: none; padding: 48px 24px; }
}

.contact__inner {
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: center;
  align-items: center;
  gap: 40px;
  width: 100%;
  max-width: 1920px;
}

.contact__top {
  display: flex;
  flex: 1 0 0;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  max-width: 1920px;
  overflow: hidden;
}
@media (max-width: 1099.98px) {
  .contact__top { flex-direction: column; flex: none; gap: 40px; }
}

.contact__col {
  display: flex;
  flex: 1 0 0;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 64px;
  width: 1px;
  max-width: 550px;
}
@media (max-width: 1099.98px) {
  .contact__col { flex: none; width: 100%; max-width: none; }
}
@media (max-width: 767.98px) {
  .contact__col { gap: 40px; }
}

.contact__stack {
  display: flex;
  flex: none;
  flex-direction: column;
  gap: 40px;
  width: 100%;
}
@media (max-width: 767.98px) {
  .contact__stack { gap: 12px; }
}

.contact__title {
  font-size: var(--fs-display);
  line-height: 1.2;
}

.contact__mail {
  font-size: var(--fs-title);
  line-height: 1.4;
}
.contact__mail a {
  color: var(--grey);
  text-decoration: none;
  transition: color 0.3s cubic-bezier(0.44, 0, 0.56, 1);
}
.contact__mail a:hover { color: var(--white); }

.contact__aside {
  display: flex;
  flex: 1 0 0;
  align-items: flex-start;
  gap: 24px;
  width: 1px;
  max-width: 440px;
  min-height: 108px;
  overflow: hidden;
}
@media (max-width: 1099.98px) {
  .contact__aside { flex: none; width: 100%; max-width: none; }
}
@media (max-width: 767.98px) {
  .contact__aside { flex-direction: column; }
}

.contact__bottom {
  display: flex;
  flex: none;
  justify-content: center;
  align-items: center;
  gap: 40px;
  width: 100%;
  max-width: 1800px;
  overflow: hidden;
}
@media (max-width: 767.98px) {
  .contact__bottom { flex-direction: column; align-items: flex-start; }
}

.contact__copy {
  flex: 1 0 0;
  opacity: 0.5;
}

/* =============================================================== reveals */
/* Every start state below is taken 1:1 from the original tween targets. */
.reveal {
  transition:
    opacity var(--dur-reveal) var(--ease-reveal) var(--delay-reveal),
    transform var(--dur-reveal) var(--ease-reveal) var(--delay-reveal);
}

.reveal--x20 {
  opacity: 0;
  transform: perspective(1200px) translateX(20px);
  transition-duration: var(--dur-reveal-fast);
}
.reveal--x30,
.reveal--x30d {
  opacity: 0;
  transform: perspective(1200px) translateX(30px);
}
.reveal--x30d { transform: translateX(30px); }

.reveal--square {
  opacity: 1;
  transform: translateX(30px) translateY(100px);
}

.reveal--card {
  opacity: 0;
  transform: translateY(30px) scale(0.7);
}
/* the first two cards start already visible, only scaled + pushed down */
.card--lead.reveal--card,
.card--lead.reveal--card + .reveal--card {
  opacity: 1;
  transform: translateY(100px) scale(0.7);
}

/* the two-class start states above outrank a plain .reveal.is-in, so the
   revealed state has to be spelled out for them as well */
.reveal.is-in,
.card--lead.reveal--card.is-in,
.card--lead.reveal--card + .reveal--card.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .nav { transition: none; }
  html { scroll-behavior: auto !important; }
}

/* footer parallax: sits behind .main and slides down into place */
/* the footer's own offset is scroll-linked, see initFooterParallax() */

/* =============================================================== 404 */
.notfound {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  min-height: 100vh;
  padding: 120px var(--pad-x);
}
.notfound__code {
  font-size: var(--fs-display);
  line-height: 1.2;
}
