@import url("https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@400;600;700;900&family=Noto+Sans+TC:wght@400;500;700;900&display=swap");

:root {
  color-scheme: dark;
  --bg: #07070a;
  --bg-soft: #111118;
  --bg-elevated: #171721;
  --line: rgba(255, 255, 255, 0.16);
  --line-strong: rgba(255, 255, 255, 0.32);
  --text: #f8f5ff;
  --muted: #b7b3c3;
  --dim: #7f7a8f;
  --violet: #9b7cff;
  --rose: #f43f6a;
  --blue: #39a7ff;
  --amber: #f6b44b;
  --green: #35d39c;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
  --radius: 8px;
  --container: 1180px;
  --header-height: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 84px 84px,
    linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px) 0 0 / 84px 84px,
    radial-gradient(circle at 85% 10%, rgba(155, 124, 255, 0.16), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
  font-optical-sizing: auto;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

body.lightbox-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: 0;
  color: inherit;
  font: inherit;
}

svg {
  width: 1.1em;
  height: 1.1em;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

::selection {
  background: rgba(244, 63, 106, 0.38);
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--amber);
  color: #17100a;
  font-weight: 900;
  transform: translateY(-140%);
  transition: transform 180ms ease;
}

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

.section-shell {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  width: min(var(--container), calc(100% - 40px));
  min-height: 58px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(10, 10, 14, 0.82);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
  animation: header-enter 600ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 550ms;
}

.brand-mark {
  display: grid;
  place-items: center;
  min-width: 48px;
  min-height: 44px;
  border-radius: 6px;
  background: var(--text);
  color: #07070a;
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.site-nav a,
.nav-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  transition:
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

.site-nav a:hover,
.nav-contact:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.nav-contact {
  gap: 8px;
  border: 1px solid rgba(57, 167, 255, 0.42);
  color: #dff2ff;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  align-items: center;
  gap: clamp(28px, 5vw, 76px);
  min-height: 100svh;
  padding-block: calc(var(--header-height) + 62px) 78px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 12% auto auto 48%;
  z-index: -1;
  width: 42vw;
  height: 62vh;
  border: 1px solid rgba(155, 124, 255, 0.24);
  transform: skewX(-12deg);
}

.eyebrow {
  margin: 0 0 14px;
  color: #cbbcff;
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.section-title h2,
.work-head h2,
.contact h2 {
  margin: 0;
  font-family: "Hanken Grotesk", "Noto Sans TC", sans-serif;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.94;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(4.4rem, 13vw, 9.4rem);
  letter-spacing: -0.02em;
}

.hero h1 span {
  display: block;
  color: transparent;
  font-size: clamp(2rem, 4.8vw, 4.9rem);
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.92);
}

.hero-lead {
  max-width: 650px;
  margin: 24px 0 0;
  color: #e4dfed;
  font-size: clamp(1.1rem, 2vw, 1.42rem);
  font-weight: 700;
}

.hero-tags,
.case-tags,
.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags {
  margin-top: 28px;
}

.hero-tags span,
.case-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.052);
  color: var(--text);
  font-weight: 800;
}

.hero-tags span:nth-child(1) {
  border-color: rgba(244, 63, 106, 0.44);
}

.hero-tags span:nth-child(2) {
  border-color: rgba(57, 167, 255, 0.48);
}

.hero-tags span:nth-child(3) {
  border-color: rgba(246, 180, 75, 0.48);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 6px;
  font-weight: 900;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--rose);
  color: #fff8fb;
}

.button-primary:hover {
  background: #ff5b81;
}

.button-secondary {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.button-secondary:hover {
  border-color: rgba(255, 255, 255, 0.58);
}

.hero-gallery {
  display: grid;
  grid-template-columns: 0.84fr 1.12fr 0.76fr;
  grid-auto-rows: 150px;
  gap: 12px;
  min-width: 0;
}

.hero-tile {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  box-shadow: var(--shadow);
}

.hero-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.hero-tile img,
.case-media img,
.work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tile-large {
  grid-column: span 2;
  grid-row: span 2;
}

.tile-tall {
  grid-row: span 2;
}

.profile-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding-block: 24px 72px;
}

.profile-item {
  min-width: 0;
  min-height: 94px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
}

.profile-wide {
  grid-column: span 2;
}

.profile-item span,
.contact-grid span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.profile-item strong,
.contact-grid strong {
  display: block;
  color: var(--text);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.35;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(28px, 6vw, 86px);
  padding-block: 90px;
  border-top: 1px solid var(--line);
}

.section-heading {
  position: sticky;
  top: 114px;
  align-self: start;
}

.section-heading h2,
.section-title h2,
.work-head h2,
.contact h2 {
  font-size: clamp(2.4rem, 6vw, 5.4rem);
  letter-spacing: -0.01em;
}

.about-body > p {
  max-width: 65ch;
  margin: 0;
  color: #dad5e4;
  font-size: clamp(1.02rem, 1.4vw, 1.2rem);
  font-weight: 600;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.capability-grid div,
.case-card,
.timeline-item,
.contact-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.052);
}

.capability-grid div {
  min-width: 0;
  padding: 20px;
}

.capability-grid span,
.case-index,
.timeline-date {
  color: var(--amber);
  font-family: "Hanken Grotesk", sans-serif;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
}

.capability-grid strong {
  display: block;
  margin: 10px 0 8px;
  font-size: 1.18rem;
}

.capability-grid p,
.case-content p,
.timeline-item li,
.timeline-item .meta {
  color: var(--muted);
}

.capability-grid p {
  margin: 0;
}

.featured,
.work,
.contact {
  padding-block: 94px;
  border-top: 1px solid var(--line);
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
}

.featured-grid {
  display: grid;
  gap: 18px;
}

.case-card {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(300px, 0.94fr);
  overflow: hidden;
}

.case-card-dark {
  background: #0d0d13;
}

.case-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  min-height: 360px;
  background: var(--line);
}

.case-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 4vw, 48px);
}

.case-content h3 {
  margin: 6px 0 16px;
  font-size: clamp(1.8rem, 4vw, 3.8rem);
  letter-spacing: -0.01em;
  line-height: 1.05;
}

.case-content p {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 600;
}

.case-tags {
  margin-top: 24px;
}

.case-tags span {
  min-height: 34px;
  color: #f5f1ff;
  font-size: 0.88rem;
}

.work-head {
  display: grid;
  grid-template-columns: minmax(220px, 0.58fr) minmax(0, 1.42fr);
  align-items: end;
  gap: 28px;
  margin-bottom: 34px;
}

.filter-group {
  justify-content: end;
}

.filter-button {
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  cursor: pointer;
  font-weight: 900;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.filter-button:hover,
.filter-button.is-active {
  border-color: rgba(244, 63, 106, 0.72);
  background: rgba(244, 63, 106, 0.18);
  color: var(--text);
}

.masonry-grid {
  column-count: 3;
  column-gap: 16px;
}

.work-card {
  display: inline-block;
  width: 100%;
  margin: 0 0 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  break-inside: avoid;
  transition: border-color 180ms ease;
}

.work-card.is-hidden {
  display: none;
}

.work-card:hover {
  border-color: rgba(57, 167, 255, 0.72);
}

.work-button {
  position: relative;
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.work-button img {
  height: auto;
  min-height: 190px;
  background: #15151d;
}

.work-button span {
  position: absolute;
  right: 10px;
  bottom: 10px;
  left: 10px;
  display: block;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  background: rgba(7, 7, 10, 0.78);
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
  backdrop-filter: blur(12px);
}

.work-button:hover span,
.work-button:focus-visible span {
  opacity: 1;
  transform: translateY(0);
}

.work-button strong,
.work-button small {
  display: block;
}

.work-button strong {
  color: var(--text);
  font-weight: 900;
  line-height: 1.35;
}

.work-button small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.84rem;
}

.timeline {
  position: relative;
  display: grid;
  gap: 18px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 16px;
  width: 1px;
  background: linear-gradient(var(--violet), var(--blue), var(--amber));
  transform-origin: top;
  transform: scaleY(0);
  transition: transform 1200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline.line-active::before {
  transform: scaleY(1);
}

.timeline-item {
  position: relative;
  margin-left: 34px;
  padding: clamp(22px, 4vw, 34px);
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 36px;
  left: -26px;
  width: 15px;
  height: 15px;
  border: 3px solid var(--bg);
  border-radius: 999px;
  background: var(--rose);
  box-shadow: 0 0 0 1px rgba(244, 63, 106, 0.55);
}

.timeline-item h3 {
  margin: 10px 0 2px;
  font-size: clamp(1.9rem, 4vw, 3.8rem);
  letter-spacing: -0.01em;
  line-height: 1.05;
}

.company {
  margin: 0;
  color: #e8e4ef;
  font-size: 1.25rem;
  font-weight: 900;
}

.timeline-item .meta {
  margin: 4px 0 20px;
  font-weight: 700;
}

.timeline-item ul {
  margin: 0;
  padding-left: 1.1rem;
}

.timeline-item li + li {
  margin-top: 10px;
}

.contact-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 6vw, 66px);
  background:
    linear-gradient(135deg, rgba(244, 63, 106, 0.22), transparent 34%),
    linear-gradient(315deg, rgba(57, 167, 255, 0.18), transparent 32%),
    rgba(255, 255, 255, 0.055);
}

.contact-panel::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 8px;
  background: linear-gradient(90deg, var(--rose), var(--blue), var(--amber), var(--green));
}

.contact h2 {
  max-width: 870px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
}

.contact-grid > * {
  min-width: 0;
  min-height: 108px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(7, 7, 10, 0.48);
}

.contact-grid a {
  transition:
    border-color 180ms ease,
    background 180ms ease;
}

.contact-grid a:hover {
  border-color: rgba(246, 180, 75, 0.68);
  background: rgba(246, 180, 75, 0.12);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-block: 30px 44px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-family: "Hanken Grotesk", "Noto Sans TC", sans-serif;
  font-weight: 800;
}

.site-footer a {
  min-height: 44px;
  color: var(--muted);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(0, 0, 0, 0.86);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-frame {
  display: grid;
  gap: 12px;
  width: min(1120px, 100%);
  max-height: calc(100svh - 72px);
}

.lightbox-frame img {
  width: 100%;
  max-height: calc(100svh - 160px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  object-fit: contain;
  background: #101018;
  box-shadow: var(--shadow);
}

.lightbox-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--text);
  font-weight: 900;
}

.lightbox-caption span {
  color: var(--muted);
  font-size: 0.95rem;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition:
    background 180ms ease,
    border-color 180ms ease;
}

.lightbox-close:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.15);
}

/* ── Keyframes ─────────────────────────────────────────── */

@keyframes fade-up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}

@keyframes tile-enter {
  from { opacity: 0; transform: scale(0.95) translateY(16px); }
  to   { opacity: 1; transform: none; }
}

@keyframes header-enter {
  from { opacity: 0; transform: translateX(-50%) translateY(-20px); }
  to   { opacity: 1; transform: translateX(-50%); }
}

@keyframes card-exit {
  to { opacity: 0; transform: scale(0.92); }
}

@keyframes card-enter {
  from { opacity: 0; transform: scale(0.92); }
}

/* ── Hero entrance ─────────────────────────────────────── */

.hero-copy > * {
  animation: fade-up 700ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-copy h1           { animation-delay: 80ms; }
.hero-copy .hero-lead   { animation-delay: 240ms; }
.hero-copy .hero-tags   { animation-delay: 380ms; }
.hero-copy .hero-actions { animation-delay: 490ms; }

.hero-tile {
  animation: tile-enter 800ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-tile:nth-child(1) { animation-delay: 180ms; }
.hero-tile:nth-child(2) { animation-delay: 280ms; }
.hero-tile:nth-child(3) { animation-delay: 360ms; }
.hero-tile:nth-child(4) { animation-delay: 440ms; }
.hero-tile:nth-child(5) { animation-delay: 520ms; }

/* ── Stagger reveals ───────────────────────────────────── */

.profile-item:nth-child(2) { transition-delay: 70ms; }
.profile-item:nth-child(3) { transition-delay: 140ms; }
.profile-item:nth-child(4) { transition-delay: 210ms; }

.capability-grid > div:nth-child(2) { transition-delay: 100ms; }
.capability-grid > div:nth-child(3) { transition-delay: 200ms; }

/* ── Work card filter animation ────────────────────────── */

.work-card.is-leaving {
  animation: card-exit 180ms ease forwards;
  pointer-events: none;
}

.work-card.is-entering {
  animation: card-enter 320ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ── Case card image parallax hover ────────────────────── */

.case-media img {
  transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

.case-card:hover .case-media img:first-child {
  transform: scale(1.04) translateX(-6px);
}

.case-card:hover .case-media img:last-child {
  transform: scale(1.04) translateX(6px);
}

/* ── Scroll reveal ─────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 500ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 500ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-gallery {
    grid-auto-rows: 132px;
  }

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

  .section-grid,
  .case-card,
  .work-head {
    grid-template-columns: 1fr;
  }

  .section-heading {
    position: static;
  }

  .filter-group {
    justify-content: start;
  }

  .masonry-grid {
    column-count: 2;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 112px;
  }

  body {
    background:
      linear-gradient(90deg, rgba(255, 255, 255, 0.032) 1px, transparent 1px) 0 0 / 56px 56px,
      linear-gradient(rgba(255, 255, 255, 0.024) 1px, transparent 1px) 0 0 / 56px 56px,
      var(--bg);
  }

  .section-shell,
  .site-header {
    width: min(100% - 28px, var(--container));
  }

  .site-header {
    grid-template-columns: auto 1fr;
    gap: 8px;
  }

  .site-nav {
    grid-column: 1 / -1;
    order: 3;
    justify-content: start;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .site-nav a {
    flex: 0 0 auto;
  }

  .nav-contact {
    justify-self: end;
  }

  .hero {
    padding-block: calc(var(--header-height) + 48px) 56px;
  }

  .hero-gallery {
    grid-template-columns: 1fr 1fr;
  }

  .hero::before {
    display: none;
  }

  .profile-strip,
  .capability-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .profile-wide {
    grid-column: auto;
  }

  .section-grid,
  .featured,
  .work,
  .contact {
    padding-block: 70px;
  }

  .case-media {
    min-height: 260px;
  }

  .timeline::before {
    left: 10px;
  }

  .timeline-item {
    margin-left: 24px;
  }

  .timeline-item::before {
    left: -22px;
  }
}

@media (max-width: 520px) {
  .hero h1 {
    font-size: clamp(3.3rem, 18vw, 4.7rem);
  }

  .hero h1 span {
    font-size: clamp(1.45rem, 8vw, 2.05rem);
  }

  .hero-gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .hero-tile,
  .tile-large,
  .tile-tall {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 4 / 3;
  }

  .case-media {
    grid-template-columns: 1fr;
  }

  .masonry-grid {
    column-count: 1;
  }

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

  .filter-button {
    width: 100%;
  }

  .lightbox {
    padding: 16px;
  }

  .lightbox-close {
    top: 12px;
    right: 12px;
  }

  .site-footer {
    flex-direction: column;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero-copy > *,
  .hero-tile {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .site-header {
    animation: none;
    transform: translateX(-50%);
  }

  .timeline::before {
    transform: scaleY(1);
    transition: none;
  }
}
