/* REL AI — Real Experience Life */

:root {
  --bg: #06080c;
  --bg-elevated: #0c1017;
  --text: #f4f6f8;
  --text-muted: #8a93a0;
  --text-soft: #b6bec8;
  --accent: #6ef3c5;
  --accent-soft: rgba(110, 243, 197, 0.14);
  --line: rgba(244, 246, 248, 0.08);
  --line-strong: rgba(244, 246, 248, 0.16);
  --glow: rgba(110, 243, 197, 0.2);
  --font-display: "Syne", "Segoe UI", sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", sans-serif;
  --max: 1120px;
  --nav-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 55% at 15% -10%, rgba(110, 243, 197, 0.09), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(80, 140, 255, 0.06), transparent 50%),
    linear-gradient(180deg, #06080c 0%, #080b11 45%, #06080c 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

.wrap {
  width: min(100% - 48px, var(--max));
  margin-inline: auto;
}

.site {
  position: relative;
  z-index: 1;
}

/* Nav */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(16px);
  background: rgba(6, 8, 12, 0.55);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.nav.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(6, 8, 12, 0.82);
}

.nav__inner {
  width: min(100% - 48px, var(--max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav__brand {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: 0.04em;
}

.nav__brand span {
  color: var(--accent);
  font-weight: 600;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__links a {
  color: var(--text-soft);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.nav__links a:hover {
  color: var(--text);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.nav__cta:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.nav__toggle {
  display: none;
  width: 40px;
  height: 40px;
  place-items: center;
}

.nav__toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text);
  position: relative;
}

.nav__toggle span::before,
.nav__toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 1.5px;
  background: var(--text);
}

.nav__toggle span::before { top: -6px; }
.nav__toggle span::after { top: 6px; }

/* Hero */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: center;
  padding: var(--nav-h) 0 0;
  overflow: hidden;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(6, 8, 12, 0.92) 0%, rgba(6, 8, 12, 0.72) 42%, rgba(6, 8, 12, 0.35) 100%),
    linear-gradient(180deg, rgba(6, 8, 12, 0.2) 0%, rgba(6, 8, 12, 0.55) 70%, rgba(6, 8, 12, 0.95) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(100% - 48px, var(--max));
  margin-inline: auto;
  max-width: 760px;
}

/* 首页文案整体上移，落在视口视觉中心 */
.hero:not(.hero--project) .hero__content {
  margin-top: -12vh;
}

.hero__brand {
  margin: 0 0 22px;
  font-family: var(--font-display);
  font-weight: 800;
  /* 在上一版基础上再缩小约 25% */
  font-size: clamp(4.1rem, 11.6vw, 8rem);
  line-height: 0.84;
  letter-spacing: -0.045em;
  transform: translateY(28px) scaleY(1.08);
  transform-origin: left center;
  opacity: 0;
  animation: rise-brand 1s var(--ease) 0.1s forwards;
}

.hero__brand em {
  font-style: normal;
  color: var(--accent);
}

.hero__headline {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 3.2vw, 2.25rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  opacity: 0;
  transform: translateY(24px);
  animation: rise 1s var(--ease) 0.28s forwards;
}

.hero__desc {
  margin: 0 0 36px;
  max-width: 34ch;
  color: var(--text-soft);
  font-size: 1.05rem;
  opacity: 0;
  transform: translateY(24px);
  animation: rise 1s var(--ease) 0.42s forwards;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  opacity: 0;
  transform: translateY(24px);
  animation: rise 1s var(--ease) 0.56s forwards;
}

@keyframes rise-brand {
  to {
    opacity: 1;
    transform: translateY(0) scaleY(1.08);
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: transform 0.2s var(--ease), background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--accent);
  color: #06110c;
  font-weight: 600;
}

.btn--primary:hover {
  background: #8ff8d3;
}

.btn--ghost {
  border: 1px solid var(--line-strong);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--text-soft);
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Meaning */

.meaning {
  padding: 120px 0 40px;
}

.meaning__label {
  margin: 0 0 20px;
  color: var(--accent);
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.meaning__title {
  margin: 0 0 56px;
  max-width: 16ch;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.meaning__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}

.meaning__item {
  padding: 36px 28px 36px 0;
  border-bottom: 1px solid var(--line);
}

.meaning__item + .meaning__item {
  padding-left: 28px;
  border-left: 1px solid var(--line);
}

.meaning__letter {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--accent);
}

.meaning__word {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.meaning__text {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 28ch;
}

/* Works */

.works {
  padding: 100px 0 80px;
}

.works__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
}

.works__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.works__sub {
  margin: 0;
  max-width: 28ch;
  color: var(--text-muted);
  font-size: 0.95rem;
  text-align: right;
}

.works__list {
  border-top: 1px solid var(--line);
}

.work {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 20px;
  align-items: start;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

.work__index {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  padding-top: 10px;
}

.work__main {
  min-width: 0;
  overflow: visible;
}

.work__name {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.01em;
  overflow: visible;
  transition: color 0.2s ease;
}

.title-en {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0 0.04em;
  line-height: 1.45;
  /* 避免 Syne 网页字体加载后把 Agent 末字母裁切 */
  transform: none;
}

.work:hover .work__name {
  color: var(--accent);
}

.work__desc {
  margin: 0 0 16px;
  max-width: 54ch;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.work__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.work__tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border: 1px solid var(--line-strong);
  color: var(--text-soft);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  background: rgba(244, 246, 248, 0.02);
}

.work__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: gap 0.25s var(--ease), color 0.2s ease;
}

.work__cta::after {
  content: "→";
  transition: transform 0.25s var(--ease);
}

.work__cta:hover {
  color: #8ff8d3;
  gap: 12px;
}

.work__cta:hover::after {
  transform: translateX(2px);
}

.work__line {
  grid-column: 1 / -1;
  height: 1px;
  width: 0;
  background: linear-gradient(90deg, var(--accent), transparent);
  transition: width 0.45s var(--ease);
  margin-top: -1px;
}

.work:hover .work__line {
  width: 100%;
}

/* Project detail */

.page-project .hero--project {
  min-height: auto;
  align-items: center;
  padding: calc(var(--nav-h) + 48px) 0 48px;
  overflow: visible;
}

.page-project .hero__content {
  max-width: none;
  width: min(100% - 48px, var(--max));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
  gap: 36px 40px;
  align-items: center;
  overflow: visible;
}

.hero__copy {
  max-width: 520px;
  padding-bottom: 8px;
  overflow: visible;
  /* 不要用 min-width:0，否则 Grid 会在 Syne 加载后裁切英文末字母 */
  min-width: min(100%, 18rem);
}

.page-project .hero__content:not(:has(.hero__shot)) {
  grid-template-columns: 1fr;
  width: min(100% - 48px, 760px);
}

.page-project.page-learning .hero__content {
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
}

.page-project.page-profit .hero__content {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.75fr);
  align-items: center;
}

.page-project.page-profit .hero__copy {
  padding-bottom: 28px;
  align-self: center;
}

.page-project.page-learning .hero__copy {
  max-width: 380px;
}

.page-project.page-learning .project-title {
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
}

.page-project.page-learning .project-lead {
  font-size: 0.98rem;
}

.hero__shot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(28px);
  animation: rise 1s var(--ease) 0.4s forwards;
}

.page-project.page-profit .hero__shot {
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding-top: 0;
}

.shot-frame {
  position: relative;
  display: block;
  margin: 0;
  width: min(100%, 520px);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(110, 243, 197, 0.2);
  background: rgba(10, 14, 20, 0.65);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 16px 40px rgba(0, 0, 0, 0.4),
    0 0 32px rgba(110, 243, 197, 0.1);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s var(--ease);
}

.shot-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  z-index: 1;
}

.shot-frame img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

a.shot-frame:hover {
  border-color: rgba(110, 243, 197, 0.38);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 20px 48px rgba(0, 0, 0, 0.48),
    0 0 44px rgba(110, 243, 197, 0.16);
  transform: translateY(-2px);
}

.shot-frame--hero {
  border-radius: 16px;
  width: min(100%, 480px);
}

.page-project.page-learning .shot-frame--hero {
  width: min(100%, 620px);
}

.page-project.page-city .shot-frame--hero,
.page-project.page-agent .shot-frame--hero {
  width: min(100%, 460px);
}

.page-project.page-realtime .shot-frame--hero {
  width: min(100%, 260px);
}

.shot-frame--phone {
  width: min(100%, 200px);
  border-radius: 22px;
}

.page-project.page-profit .shot-frame--hero.shot-frame--phone {
  width: min(100%, 158px);
  flex-shrink: 0;
}

.hero__qr {
  margin-top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  flex-shrink: 0;
}

.hero__qr-frame {
  width: 96px;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid rgba(110, 243, 197, 0.18);
  background: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.hero__qr-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.hero__qr-caption {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.gallery {
  padding: 8px 0 28px;
}

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

.gallery__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.gallery__hint {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.gallery__item {
  margin: 0;
}

.gallery__item .shot-frame {
  width: 100%;
  height: 100%;
}

.gallery__item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
}

.gallery__item--phone {
  display: flex;
  justify-content: center;
}

.gallery__item--phone .shot-frame {
  width: min(100%, 150px);
}

.gallery__item--phone img {
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

.gallery__grid--phones {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.gallery__item--tall img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(4, 6, 10, 0.9);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

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

.lightbox__stage {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: calc(100vw - 56px);
  max-height: calc(100vh - 56px);
  width: auto;
  height: auto;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(110, 243, 197, 0.25);
  box-shadow: 0 0 60px rgba(110, 243, 197, 0.12), 0 30px 80px rgba(0, 0, 0, 0.55);
  background: rgba(8, 10, 14, 0.92);
}

.lightbox__img {
  display: block;
  width: auto;
  height: auto;
  max-width: calc(100vw - 72px);
  max-height: calc(100vh - 72px);
  object-fit: contain;
}

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-size: 1.25rem;
  line-height: 1;
  background: rgba(6, 8, 12, 0.7);
}

.lightbox__close:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.project-kicker {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(20px);
  animation: rise 0.9s var(--ease) 0.08s forwards;
}

.project-title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.2vw, 2.85rem);
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -0.01em;
  padding: 0.1em 0.15em 0.15em 0;
  overflow: visible;
  opacity: 0;
  transform: translateY(24px);
  animation: rise 0.9s var(--ease) 0.2s forwards;
}

.project-title .title-en {
  font-size: 0.92em;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.project-lead {
  margin: 0 0 20px;
  max-width: 42ch;
  color: var(--text-soft);
  font-size: 1rem;
  opacity: 0;
  transform: translateY(24px);
  animation: rise 0.9s var(--ease) 0.34s forwards;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  opacity: 0;
  transform: translateY(24px);
  animation: rise 0.9s var(--ease) 0.46s forwards;
}

.project-actions {
  opacity: 0;
  transform: translateY(24px);
  animation: rise 0.9s var(--ease) 0.58s forwards;
}

.detail {
  padding: 24px 0 80px;
}

.detail__grid {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.detail-block {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}

.detail-block__label {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.detail-block__body {
  min-width: 0;
}

.detail-block__body p {
  margin: 0 0 14px;
  color: var(--text-soft);
  font-size: 1.02rem;
  max-width: 62ch;
}

.detail-block__body p:last-child {
  margin-bottom: 0;
}

.detail-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-list li {
  position: relative;
  padding: 0 0 12px 18px;
  color: var(--text-soft);
  font-size: 1.02rem;
  max-width: 62ch;
}

.detail-list li:last-child {
  padding-bottom: 0;
}

.detail-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 1px;
  background: var(--accent);
}

.project-nav {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 40px 0 0;
  border-top: 1px solid var(--line);
  margin-top: 24px;
}

.project-nav__link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 42%;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.project-nav__link:hover {
  color: var(--accent);
}

.project-nav__link--next {
  text-align: right;
  margin-left: auto;
}

.project-nav__dir {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project-nav__name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

/* Studio */

.studio {
  padding: 80px 0 120px;
}

.studio__panel {
  position: relative;
  padding: 56px 0 0;
  border-top: 1px solid var(--line);
}

.studio__title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  max-width: 16ch;
}

.studio__text {
  margin: 0 0 32px;
  max-width: 42ch;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Footer */

.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__brand {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.footer__brand span {
  color: var(--accent);
}

.footer__note {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Reveal */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

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

/* Responsive */

@media (max-width: 860px) {
  .meaning__grid {
    grid-template-columns: 1fr;
  }

  .meaning__item,
  .meaning__item + .meaning__item {
    padding: 28px 0;
    border-left: 0;
  }

  .works__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .works__sub {
    text-align: left;
  }

  .work {
    grid-template-columns: 48px 1fr;
  }

  .page-project .hero__content,
  .page-project.page-learning .hero__content,
  .page-project.page-profit .hero__content {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero__copy,
  .page-project.page-learning .hero__copy {
    max-width: none;
  }

  .page-project.page-profit .hero__copy,
  .page-project.page-profit .hero__shot {
    padding-top: 0;
    padding-bottom: 0;
  }

  .page-project.page-profit .hero__shot {
    flex-direction: row;
    gap: 20px;
  }

  .shot-frame--hero,
  .page-project.page-learning .shot-frame--hero,
  .page-project.page-city .shot-frame--hero,
  .page-project.page-agent .shot-frame--hero {
    width: min(100%, 420px);
    margin-inline: auto;
  }

  .page-project.page-realtime .shot-frame--hero {
    width: min(100%, 240px);
    margin-inline: auto;
  }

  .gallery__grid,
  .gallery__grid--phones {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-block {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 32px 0;
  }

  .project-nav {
    flex-direction: column;
  }

  .project-nav__link,
  .project-nav__link--next {
    max-width: 100%;
    text-align: left;
    margin-left: 0;
  }
}

@media (max-width: 720px) {
  .nav__links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 24px 20px;
    background: rgba(6, 8, 12, 0.96);
    border-bottom: 1px solid var(--line);
  }

  .nav.is-open .nav__links {
    display: flex;
  }

  .nav__links li {
    border-bottom: 1px solid var(--line);
  }

  .nav__links a,
  .nav__cta {
    display: block;
    padding: 14px 0;
  }

  .nav__cta {
    border: 0;
    padding-left: 0;
  }

  .nav__toggle {
    display: grid;
  }

  .hero {
    align-items: center;
    padding-bottom: 0;
  }

  .hero:not(.hero--project) .hero__content {
    margin-top: -8vh;
  }

  .hero__veil {
    background:
      linear-gradient(180deg, rgba(6, 8, 12, 0.55) 0%, rgba(6, 8, 12, 0.78) 45%, rgba(6, 8, 12, 0.96) 100%);
  }

  .wrap,
  .nav__inner,
  .hero__content,
  .page-project .hero__content {
    width: min(100% - 32px, var(--max));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__brand,
  .hero__headline,
  .hero__desc,
  .hero__actions,
  .hero__shot,
  .project-kicker,
  .project-title,
  .project-lead,
  .project-tags,
  .project-actions,
  .work,
  .reveal {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }

  .hero__brand {
    transform: scaleY(1.08);
  }
}
