/* Nina Taplick: local Titillium Web, aligned cards and scroll fade */
@font-face {
  font-family: "Titillium Web";
  font-style: normal;
  font-weight: 200;
  font-display: swap;
  src: url("/assets/fonts/titillium-web-latin-200-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Titillium Web";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("/assets/fonts/titillium-web-latin-300-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Titillium Web";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/titillium-web-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Titillium Web";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/titillium-web-latin-600-normal.woff2") format("woff2");
}

body {
  font-family: "Titillium Web", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400;
}
.hero-copy h1 { font-weight: 200; letter-spacing: -.035em; }
.work-intro h2, .card-caption h3, .plain-heading h1 { font-weight: 300; }
.main-nav a { font-weight: 600; }

/* Remove the deliberate 65px/30px vertical stagger in the original CSS. */
.portfolio-grid .portfolio-card.stagger { margin-top: 0; }
.portfolio-grid { align-items: start; }

/* No flicker: the reveal-supported class is applied in <head>, before CSS. */
.reveal-supported .reveal {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition: opacity 1050ms cubic-bezier(.2,.72,.2,1),
              transform 1050ms cubic-bezier(.2,.72,.2,1);
}
.reveal-supported .reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
/* A very small temporal offset, not a vertical displacement. */
.reveal-supported .portfolio-grid > .portfolio-card:nth-child(even) {
  transition-delay: 100ms;
}

@media (prefers-reduced-motion: reduce) {
  .reveal-supported .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
