:root {
  --bg: #000;
  --fg: #fff;
  --paper: #fff;
  --ink: #111;
  --muted: #8c8c8c;
  --line: #ececec;
  --font-sans: "PingFang SC", "PingFang TC", "Hiragino Sans GB", -apple-system, BlinkMacSystemFont,
    "Microsoft YaHei", sans-serif;
  --font-display: "PingFang SC", "PingFang TC", "Hiragino Sans GB", -apple-system, BlinkMacSystemFont,
    sans-serif;
  --font-mono: "PingFang SC", "PingFang TC", -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body,
#root {
  min-height: 100%;
}

html {
  background: var(--bg);
  scroll-behavior: auto;
}

body {
  font-family: var(--font-sans);
  color: var(--fg);
  background: var(--bg);
  cursor: none;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.is-lightbox {
  overflow: hidden;
}

body.is-lightbox .nav {
  opacity: 0;
  pointer-events: none;
}

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

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

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

ul {
  list-style: none;
}

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  pointer-events: none;
}

.cursor-dot {
  z-index: 82;
  width: 6px;
  height: 6px;
  background: #00fb96;
}

.cursor-ring {
  z-index: 81;
  width: 36px;
  height: 36px;
  border: 1.5px solid #fff;
  mix-blend-mode: difference;
  transition: width 0.28s ease, height 0.28s ease, background 0.28s ease;
}

.cursor-ring.is-hover {
  width: 54px;
  height: 54px;
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  background: #000;
  pointer-events: none;
}

.loader-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-sizing: border-box;
  height: 22px;
  min-width: 148px;
  padding: 0 10px;
  background: #fff;
  color: #111;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.loader-pct {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.loader.is-out {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  height: 64px;
  padding: 0 28px;
  overflow: hidden;
  color: #fff;
  pointer-events: none;
}

.nav > * {
  pointer-events: auto;
}

.nav.is-solid {
  color: #111;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 1px 0 #eee;
  backdrop-filter: blur(12px);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
}

.nav-blob {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
}

.nav-blob img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nav-wordmark,
.nav-links {
  mix-blend-mode: difference;
}

.nav.is-solid .nav-wordmark,
.nav.is-solid .nav-links {
  mix-blend-mode: normal;
}

.nav-links {
  justify-self: end;
  display: flex;
  gap: 36px;
  margin-right: 4px;
  text-align: right;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 500;
  color: inherit;
}

.nav-links a {
  display: block;
}

.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: #0a0a0a;
  color: #fff;
  padding: 108px 6vw 72px;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 96px);
  align-items: center;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
}

.polaroid {
  position: relative;
  width: min(100%, 292px);
  aspect-ratio: 819 / 1024;
  margin: 0;
  --polaroid-rest: rotate(-2.5deg);
  transform: var(--polaroid-rest);
  transform-origin: 50% 72%;
}

.polaroid-window {
  position: absolute;
  left: 10.7%;
  top: 12.7%;
  width: 78.6%;
  height: 63.6%;
  overflow: hidden;
  background: #c8c8c8;
}

.polaroid-shot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 18%;
  filter: blur(18px) brightness(1.32) contrast(0.68) saturate(0.25);
  transform: scale(1.14);
  transform-origin: 50% 40%;
  transition: filter 1.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.polaroid:hover .polaroid-shot,
.polaroid.is-develop .polaroid-shot {
  filter: none;
}

.polaroid-frame,
.polaroid-sign {
  position: absolute;
  pointer-events: none;
}

.polaroid-frame {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  z-index: 2;
}

.polaroid-sign {
  right: 12%;
  bottom: 10.5%;
  width: 42%;
  height: auto;
  z-index: 3;
}

.polaroid.is-nudge {
  animation: polaroid-nudge 0.72s cubic-bezier(0.22, 0.8, 0.36, 1);
}

@keyframes polaroid-nudge {
  0%,
  100% {
    transform: var(--polaroid-rest);
  }
  32% {
    transform: rotate(-0.6deg) translate3d(5px, -7px, 0);
  }
  64% {
    transform: rotate(-3.4deg) translate3d(-3px, 3px, 0);
  }
}

.hero-copy h1 {
  max-width: 22em;
  margin: 0 0 28px;
  font-size: clamp(28px, 3.5vw, 50px);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.04em;
}

.hero-copy p {
  max-width: 20em;
  font-size: clamp(20px, 2.5vw, 36px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.03em;
  color: #8d8d8d;
}

.hero-copy em,
.hero-copy .hero-mark {
  font-style: normal;
  color: inherit;
  -webkit-text-fill-color: currentColor;
  white-space: nowrap;
  border-bottom: 1px solid rgba(141, 141, 141, 0.55);
  transition:
    color 0.32s ease,
    border-color 0.32s ease,
    -webkit-text-fill-color 0.32s ease;
}

.hero-copy .hero-mark.is-flashbuy {
  background-image: linear-gradient(90deg, #ff5300, #ff9f31);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-copy .hero-mark.is-flashbuy:hover,
.hero-copy .hero-mark.is-flashbuy:focus-visible {
  color: transparent;
  -webkit-text-fill-color: transparent;
  border-bottom-color: #ff7a18;
}

.hero-copy .hero-mark.is-weixin:hover,
.hero-copy .hero-mark.is-weixin:focus-visible {
  color: #07c160;
  -webkit-text-fill-color: #07c160;
  border-bottom-color: #07c160;
}

.hero-copy em.is-osmu:hover,
.hero-copy em.is-osmu:focus-visible {
  color: #fff;
  -webkit-text-fill-color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.42);
}

@media (prefers-reduced-motion: reduce) {
  .to-top,
  .to-top.is-on,
  .to-top.is-on:hover,
  .to-top.is-on:focus-visible {
    transition: none;
    transform: none;
  }

  .polaroid,
  .polaroid.is-nudge {
    animation: none;
  }

  .polaroid-shot {
    filter: none;
  }

  .case-media-grow {
    transform: none;
  }

  .nav-blob img {
    animation: none;
  }
}

.talk {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000;
  color: #fff;
}

.talk-core {
  position: relative;
  z-index: 2;
  text-align: center;
  will-change: transform;
}

.talk-kicker {
  position: relative;
  z-index: 2;
  margin-bottom: 18px;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.03em;
  text-align: center;
}

.talk-word {
  --slot-h: 1.5em;
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: var(--slot-h);
  font-family: var(--font-display);
  font-size: min(10vw, 108px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
}

.talk-slot {
  display: inline-block;
  overflow: hidden;
  width: 0.7em;
  height: var(--slot-h);
  text-align: center;
  vertical-align: middle;
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.talk-slot.is-gap {
  width: 0.34em;
}

.talk-slot.is-empty {
  width: 0;
}

.talk-reel {
  display: flex;
  flex-direction: column;
  will-change: transform;
}

.talk-reel i {
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--slot-h);
  font-style: normal;
  line-height: var(--slot-h);
  color: #fff;
}

.talk-reel i.is-dim {
  color: #8a8a8a;
}

.talk-arcs {
  position: absolute;
  top: 50%;
  width: min(16vw, 200px);
  height: min(26vw, 320px);
  transform: translateY(-50%);
  pointer-events: none;
}

.talk-arcs path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.72);
  stroke-width: 1.7;
  stroke-linecap: round;
  opacity: 0;
  transform-origin: center;
  transition:
    opacity 0.45s ease,
    stroke-width 0.45s ease;
}

.talk-arcs path:nth-child(3) {
  opacity: 0.92;
}

.talk-arcs--left {
  left: 4vw;
}

.talk-arcs--right {
  right: 4vw;
  transform: translateY(-50%) scaleX(-1);
}

.talk.is-arc-left .talk-arcs--left path,
.talk.is-arc-right .talk-arcs--right path {
  opacity: 0.78;
}

.talk.is-arc-left .talk-arcs--left path:nth-child(3),
.talk.is-arc-right .talk-arcs--right path:nth-child(3) {
  opacity: 1;
  stroke-width: 2;
}

.talk-start {
  position: absolute;
  top: 62%;
  left: 76%;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px 11px 20px;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  will-change: transform;
}

.talk-start i {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid #111;
  border-radius: 50%;
  font-style: normal;
  font-size: 15px;
  line-height: 1;
}

.toc,
.cases,
.about,
.footer {
  scroll-margin-top: 72px;
}

.toc {
  position: relative;
  background: #fff;
  color: #111;
  padding: 88px 0 72px;
}

.toc .section-kicker {
  max-width: 820px;
  margin: 0 auto 28px;
  padding: 0 24px;
}

.section-kicker {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 48px;
}

.toc-stage {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
}

.toc-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  height: 118px;
  border-top: 1px solid #111;
}

.toc-row:last-child {
  border-bottom: 1px solid #111;
}

.toc-bar {
  position: absolute;
  left: calc(50% - 50vw + 22px);
  width: calc(100vw - 44px);
  top: 50%;
  height: 86px;
  border-radius: 16px;
  background: #111;
  transform: translateY(-50%) scaleX(0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.toc-row:hover .toc-bar,
.toc-row.is-on .toc-bar {
  opacity: 1;
  transform: translateY(-50%) scaleX(1);
}

.toc-row:hover .toc-word,
.toc-row.is-on .toc-word {
  opacity: 1;
}

.toc-row:hover h2,
.toc-row:hover .toc-no,
.toc-row.is-on h2,
.toc-row.is-on .toc-no {
  color: #fff;
}

.toc-word,
.toc-no,
.toc-row h2 {
  position: relative;
  z-index: 2;
}

.toc-word {
  position: absolute;
  left: calc(50% - 50vw + 56px);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0;
  transition: opacity 0.22s ease;
}

.toc-no {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: #888;
  transition: color 0.2s ease;
}

.toc-row h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.2vw, 64px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  transition: color 0.2s ease;
}

.toc-preview {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 46;
  width: min(38vw, 430px);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.toc-preview.is-on {
  opacity: 1;
  visibility: visible;
}

.toc-preview img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: #111;
  border-radius: 4px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.cases {
  background: #f4f4f2;
  color: #111;
  padding: 100px 4vw 80px;
}

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

.cases-head h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.6vw, 56px);
  font-weight: 600;
  letter-spacing: -0.04em;
}

.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filters button {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid #111;
  border-radius: 999px;
  padding: 8px 12px;
}

.filters .is-on {
  background: #111;
  color: #fff;
}

.case-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 18px;
}

.case-card.is-feature {
  --feature-size: min(42vw, 600px);
  grid-column: 1 / -1;
  position: relative;
  display: block;
  min-height: calc(var(--feature-size) + 32px);
  padding-bottom: 32px;
  overflow: hidden;
}

.case-card.is-feature .case-copy {
  position: relative;
  z-index: 3;
  width: min(46%, 540px);
  min-height: var(--feature-size);
  padding: 0 28px 28px clamp(32px, 3.8vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: color 0.45s ease;
}

.case-card.is-feature .case-copy h3,
.case-card.is-feature .case-copy h3 em,
.case-card.is-feature .case-copy p,
.case-card.is-feature .tags li {
  transition: color 0.45s ease, border-color 0.45s ease, text-shadow 0.45s ease;
}

.case-card.is-feature .case-media {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
  width: var(--feature-size);
  height: var(--feature-size);
  aspect-ratio: auto;
  transition:
    width 0.72s cubic-bezier(0.22, 1, 0.36, 1),
    height 0.72s cubic-bezier(0.22, 1, 0.36, 1);
}

.case-card.is-feature .case-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0.08) 52%, transparent 72%);
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.case-card.is-feature .case-media-grow {
  height: 100%;
  transform: translateX(calc((1 - var(--case-scale, 1)) * 80px));
  transform-origin: 100% 50%;
}

.case-card.is-feature .case-year {
  position: absolute;
  right: 24px;
  bottom: 18px;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #777;
  transition: color 0.45s ease;
}

.case-card.is-feature:hover .case-media {
  width: 100%;
  height: 100%;
}

.case-card.is-feature:hover .case-media::after {
  opacity: 1;
}

.case-card.is-feature:hover .case-copy,
.case-card.is-feature:hover .case-copy h3 {
  color: #fff;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}

.case-card.is-feature:hover .case-copy h3 em,
.case-card.is-feature:hover .case-copy p,
.case-card.is-feature:hover .case-year {
  color: rgba(255, 255, 255, 0.88);
}

.case-card.is-feature:hover .tags li {
  color: #fff;
  border-color: #fff;
}

.case-media {
  position: relative;
  overflow: hidden;
  background: transparent;
  aspect-ratio: 16 / 9;
}

.case-media-grow {
  position: relative;
  width: 100%;
  height: 100%;
  transform: scale(var(--case-scale, 0.38));
  transform-origin: 50% 0;
  will-change: transform;
}

.case-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #111;
  transition: transform 1.1s ease, filter 0.45s ease;
}

.case-card:hover .case-media img {
  transform: scale(1.06);
}

.case-card.is-locked .case-media img {
  filter: blur(12px) brightness(0.84) saturate(0.92);
  transform: scale(1.06);
}

.case-card.is-locked:hover .case-media img {
  transform: scale(1.1);
}

.case-card.is-feature:hover .case-media img {
  transform: none;
}

.case-card.is-feature.is-locked:hover .case-media img {
  transform: scale(1.04);
}

.case-lock {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: rgba(0, 0, 0, 0.16);
  color: #fff;
  font-size: clamp(28px, 3.6vw, 56px);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.case-lock span {
  font-size: 0.92em;
  line-height: 1;
}

.case-copy {
  padding: 16px 2px 8px;
}

.case-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #777;
  margin-bottom: 8px;
}

.case-copy h3 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.case-copy h3 em,
.project-hero-copy em,
.next-case em {
  display: block;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #777;
  margin-top: 4px;
}

.case-copy p {
  margin: 10px 0 12px;
  color: #555;
  max-width: 52ch;
  line-height: 1.6;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tags li {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid #111;
  border-radius: 999px;
  padding: 5px 8px;
}

.about {
  background: #fff;
  color: #111;
  padding: 120px 8vw;
}

.about-title h2 {
  display: flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 104px);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.045em;
  white-space: nowrap;
}

.cv-letter {
  display: inline-flex;
  justify-content: center;
}

.cv-letter.is-light {
  font-weight: 300;
}

.cv-letter.is-code {
  min-width: 0.58em;
  font-weight: 500;
  opacity: 0.72;
}

.cv-gap {
  width: 0.28em;
  flex: 0 0 0.28em;
}

.cv-loader {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.72em;
  height: 0.72em;
  margin: 0 0.02em 0.08em;
  flex: 0 0 0.72em;
}

.cv-loader::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 0.07em solid currentColor;
  border-radius: 50%;
}

.cv-loader i {
  width: 0.34em;
  height: 0.34em;
  border-radius: 50%;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.cv-loader.is-spin::before {
  border-color: currentColor transparent currentColor transparent;
  animation: cv-spin 0.38s linear infinite;
}

.cv-loader.is-spin i {
  transform: scale(0.42);
  opacity: 0.28;
}

@keyframes cv-spin {
  to {
    transform: rotate(360deg);
  }
}

.about-lead {
  max-width: 24em;
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.035em;
  margin: 40px 0 32px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 48px;
  color: #444;
  line-height: 1.7;
  margin-bottom: 72px;
}

.about-grid > div {
  display: grid;
  gap: 14px;
  align-content: start;
}

.about-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  border-top: 1px solid #111;
  padding-top: 32px;
}

.about-cols h3 {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.about-cols article {
  display: grid;
  gap: 4px;
  margin-bottom: 22px;
}

.about-cols em {
  font-style: normal;
  color: #888;
  font-family: var(--font-mono);
  font-size: 12px;
}

.footer {
  background: #000;
  color: #fff;
  padding: 80px 4vw 24px;
  overflow: hidden;
}

.footer-kicker {
  font-size: 18px;
  margin-bottom: 12px;
}

.footer-mail {
  display: block;
  width: fit-content;
  font-size: clamp(28px, 4vw, 52px);
  letter-spacing: -0.04em;
  margin-bottom: 48px;
  overflow: hidden;
}

.footer-mail .footer-line-inner {
  display: inline-block;
  border-bottom: 1px solid #fff;
}

.footer-line {
  display: block;
  overflow: hidden;
}

.footer-line-inner {
  display: block;
  transform: translateY(115%);
  opacity: 0;
  filter: blur(8px);
  will-change: transform, opacity, filter;
}

.footer.is-in .footer-line-inner {
  transform: translateY(0);
  opacity: 1;
  filter: blur(0);
  transition:
    transform 0.95s cubic-bezier(0.16, 1, 0.3, 1) var(--d, 0ms),
    opacity 0.7s ease var(--d, 0ms),
    filter 0.7s ease var(--d, 0ms);
}

.footer-giant {
  overflow: hidden;
}

.footer-giant .footer-line-inner {
  transform: translateY(42%);
}

.footer-row .footer-line + .footer-line {
  margin-top: 0;
}

.footer-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr;
  gap: 24px;
  font-size: 14px;
  line-height: 1.8;
  color: #cfcfcf;
}

.footer-row a {
  display: block;
}

.footer-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-actions > a {
  display: inline;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-icon {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid #fff;
  color: #fff;
  flex: 0 0 28px;
  transition: background 0.2s ease, color 0.2s ease;
}

.footer-icon svg {
  width: 15px;
  height: 15px;
  display: block;
}

.footer-icon:hover {
  background: #fff;
  color: #000;
}

.footer-giant {
  font-family: var(--font-display);
  font-size: clamp(48px, 11vw, 160px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.05em;
  margin: 48px -4vw -12px;
  white-space: nowrap;
}

.project-page {
  background: #fff;
  color: #111;
}

.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;
}

.project-gate {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 120px 24px 80px;
  background: #000;
  color: #fff;
}

.gate-form {
  width: min(760px, 100%);
}

.gate-kicker {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: #8d8d8d;
  margin-bottom: 18px;
}

.gate-form h1 {
  font-size: clamp(26px, 3.4vw, 44px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.25;
  text-wrap: balance;
}

.gate-form h1 em {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8d8d8d;
}

.gate-note {
  margin: 22px 0 32px;
  color: #8d8d8d;
  font-size: 16px;
}

.gate-field input {
  display: block;
  width: 100%;
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 20px;
  letter-spacing: 0.28em;
  outline: none;
  cursor: text;
}

.gate-field input::placeholder {
  color: #6a6a6a;
  letter-spacing: 0.04em;
}

.gate-field input:focus {
  border-bottom-color: #fff;
}

.gate-form button {
  margin-top: 28px;
  padding: 12px 22px;
  border: 1px solid #fff;
  background: #fff;
  color: #111;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.gate-form button:hover {
  background: transparent;
  color: #fff;
}

.gate-error {
  margin-top: 16px;
  color: #ff6b4a;
  font-size: 14px;
}

.gate-form.is-wrong {
  animation: gate-shake 0.42s ease;
}

@keyframes gate-shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-8px);
  }
  75% {
    transform: translateX(8px);
  }
}

.project-hero {
  position: relative;
  height: 88svh;
  overflow: hidden;
  background: #000;
}

.project-hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(0, 0, 0, 0.04) 38%,
    rgba(0, 0, 0, 0.78) 100%
  );
  pointer-events: none;
}

.project-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.88;
}

.zoom-shot {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #111;
}

.zoom-shot.is-hero {
  position: absolute;
  inset: 0;
}

.project-pages .zoom-shot:hover img,
.zoom-shot.is-hero:hover img {
  filter: brightness(1.04);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 88;
  display: grid;
  place-items: center;
  background: #000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.lightbox.is-on {
  opacity: 1;
  visibility: visible;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-stage {
  display: grid;
  place-items: center;
  width: min(94vw, 1680px);
  height: 86vh;
}

.lightbox-stage img {
  max-width: 100%;
  max-height: 86vh;
  width: auto;
  height: auto;
  object-fit: contain;
  transform: scale(0.98);
  transition: transform 0.28s ease;
}

.lightbox.is-on .lightbox-stage img {
  transform: scale(1);
}

.lightbox-close,
.lightbox-count,
.lightbox-prev,
.lightbox-next {
  position: fixed;
  z-index: 1;
  color: #fff;
}

.lightbox-close {
  top: 22px;
  right: 28px;
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  background: rgba(0, 0, 0, 0.45);
}

.lightbox-count {
  left: 28px;
  bottom: 22px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  pointer-events: none;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

.lightbox-prev,
.lightbox-next {
  top: 0;
  bottom: 0;
  width: 18vw;
  max-width: 220px;
}

.lightbox-prev {
  left: 0;
}

.lightbox-next {
  right: 0;
}

.lightbox.is-single .lightbox-prev,
.lightbox.is-single .lightbox-next {
  display: none;
}

.to-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 60;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #111;
  color: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.28), 0 12px 32px rgba(0, 0, 0, 0.28);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.28s ease, visibility 0.28s ease, transform 0.28s ease, background 0.28s ease,
    color 0.28s ease;
}

.to-top.is-on {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}

.to-top.is-on:hover,
.to-top.is-on:focus-visible {
  background: #fff;
  color: #111;
  transform: translateY(-2px);
}

.to-top svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.is-lightbox .to-top {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.project-hero-copy {
  position: absolute;
  left: 4vw;
  bottom: 8vh;
  z-index: 2;
  color: #fff;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.project-hero-copy p {
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 12px;
}

.project-hero-copy h1 {
  font-size: clamp(36px, 5.4vw, 72px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.project-hero-copy em {
  color: #ddd;
}

.project-intro {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  padding: 72px 6vw 56px;
  align-items: start;
}

.project-intro p {
  font-size: 22px;
  line-height: 1.55;
  letter-spacing: -0.02em;
  max-width: 28em;
}

.project-pages {
  display: grid;
  gap: 12px;
  padding: 0 2vw 80px;
}

.project-pages img {
  width: 100%;
  background: #111;
}

.proto {
  display: grid;
  justify-items: center;
  gap: 36px;
  padding: 8px 6vw 96px;
  background: #fff;
  color: #111;
}

.proto-head {
  text-align: center;
}

.proto-head p {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.proto-head h2 {
  margin-top: 10px;
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 600;
  letter-spacing: -0.04em;
}

.proto-head span {
  display: block;
  margin-top: 10px;
  font-size: 15px;
  color: var(--muted);
}

.phone-stage {
  width: min(100%, 420px);
  display: grid;
  justify-items: center;
}

.phone {
  position: relative;
  width: 332px;
  height: 688px;
}

.phone-bezel {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 16px 12px 18px;
  border-radius: 48px;
  background:
    linear-gradient(165deg, #f4f4f4 0%, #d5d5d5 42%, #9e9e9e 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    inset 0 0 0 1px rgba(0, 0, 0, 0.18),
    0 28px 70px rgba(0, 0, 0, 0.28),
    0 4px 10px rgba(0, 0, 0, 0.18);
}

.phone-screen {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 36px;
  background: #1a1a2e;
  cursor: auto;
  pointer-events: auto;
}

.phone-island,
.phone-home,
.phone-btn {
  pointer-events: none;
}

.phone-island {
  position: absolute;
  top: 10px;
  left: 50%;
  z-index: 2;
  width: 92px;
  height: 10px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #111;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.phone-home {
  position: absolute;
  bottom: 7px;
  left: 50%;
  z-index: 2;
  width: 108px;
  height: 4px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.42);
}

.phone-btn {
  position: absolute;
  width: 4px;
  background: linear-gradient(180deg, #cfcfcf, #8f8f8f);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.phone-btn-silent {
  top: 118px;
  left: -3px;
  height: 26px;
  border-radius: 2px 0 0 2px;
}

.phone-btn-vol-up {
  top: 164px;
  left: -3px;
  height: 48px;
  border-radius: 2px 0 0 2px;
}

.phone-btn-vol-down {
  top: 220px;
  left: -3px;
  height: 48px;
  border-radius: 2px 0 0 2px;
}

.phone-btn-power {
  top: 188px;
  right: -3px;
  height: 78px;
  border-radius: 0 2px 2px 0;
}

.next-case {
  display: flex;
  justify-content: space-between;
  align-items: end;
  padding: 48px 6vw 72px;
  border-top: 1px solid #111;
  background: #fff;
}

.next-case span {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.next-case strong {
  font-size: 32px;
  font-weight: 600;
  text-align: right;
}

@media (max-width: 860px) {
  body {
    cursor: auto;
  }

  .cursor,
  .toc-preview {
    display: none;
  }

  .nav {
    grid-template-columns: 1fr auto;
    padding: 14px 16px 0;
  }

  .nav-links {
    font-size: 12px;
    gap: 16px;
  }

  .hero {
    padding: 88px 20px 56px;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 36px;
  }

  .polaroid {
    width: min(58vw, 240px);
    --polaroid-rest: rotate(-1.6deg);
  }

  .polaroid-shot {
    filter: none;
  }

  .talk-kicker {
    font-size: 28px;
  }

  .talk-start {
    left: 50%;
    top: auto;
    bottom: 48px;
    transform: translateX(-50%);
  }

  .talk-arcs {
    width: 92px;
    height: 150px;
  }

  .toc-row {
    height: 92px;
    padding: 0 16px;
  }

  .toc-word {
    display: none;
  }

  .toc-bar {
    left: 12px;
    width: calc(100vw - 24px);
    height: 72px;
  }

  .about-grid,
  .about-cols,
  .case-grid,
  .footer-row,
  .project-intro,
  .cases-head {
    grid-template-columns: 1fr;
  }

  .case-card.is-feature {
    grid-column: auto;
    min-height: 0;
    padding-bottom: 0;
    overflow: visible;
  }

  .case-card.is-feature .case-copy {
    width: 100%;
    min-height: 0;
    padding: 0 0 16px;
  }

  .case-card.is-feature .case-media {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .case-card.is-feature:hover .case-media {
    width: 100%;
    height: auto;
  }

  .case-card.is-feature .case-media-grow {
    transform: none;
  }

  .case-card.is-feature .case-year {
    position: static;
    display: block;
    margin-top: 10px;
    text-align: right;
  }

  .project-intro {
    padding: 32px 20px;
  }

  .to-top {
    right: 16px;
    bottom: 16px;
    width: 44px;
    height: 44px;
    cursor: pointer;
  }

  .zoom-shot,
  .lightbox-close,
  .lightbox-prev,
  .lightbox-next {
    cursor: zoom-in;
  }

  .lightbox-close {
    cursor: pointer;
    top: 16px;
    right: 16px;
  }

  .lightbox-count {
    left: 16px;
    bottom: 16px;
  }

  .lightbox-prev,
  .lightbox-next {
    width: 22vw;
  }

  .phone {
    transform: scale(0.86);
    transform-origin: top center;
    margin-bottom: -90px;
  }

  .next-case {
    flex-direction: column;
    align-items: start;
    gap: 12px;
  }

  .next-case strong {
    text-align: left;
  }
}
