@font-face {
  font-family: 'Apfel Grotezk';
  src: url('fonts/ApfelGrotezk-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

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

:root {
  /*
   * ── 颜色 · 背景（改页面底色在这里）──
   * --color-bg-page      整页主背景（米灰）
   * --color-bg-dark      遮罩层、视频框等深色区域
   */
  --color-bg-page: #dadada;
  --color-bg-dark: #0a0a0a;

  /*
   * --color-bg-surface   不透明版页面底色，给覆盖层（项目详情抽屉等）用，
   *                      避免底下的内容透出来。改 --color-bg-page 时这里也要同步。
   */
  --color-bg-surface: #dadada;

  /*
   * ── 颜色 · 文字 / 线条 / 强调色（改强调色在这里）──
   * --color-text-primary   主文字、导航、分隔线、链接
   * --color-accent         强调色（导航滑块、hover 等）
   * --color-text-inverse   强调色底上的反色文字
   */
  --color-text-primary: #0a0a0a;
  --color-accent: var(--color-text-primary);
  --color-text-inverse: var(--color-bg-page);

  /* 兼容旧变量名（下方样式仍可使用，无需全改） */
  --hero-bg: var(--color-bg-page);
  --text: var(--color-text-primary);
  --black: var(--color-bg-dark);

  /* Header / nav tokens */
  --nav-indicator-bg: var(--color-accent);
  --nav-item-muted: color-mix(in srgb, var(--color-accent) 38%, transparent);
  --nav-item-color: var(--color-accent);
  --nav-item-on-indicator: var(--color-text-inverse);
  --nav-item-on-indicator-muted: color-mix(in srgb, var(--color-text-inverse) 58%, transparent);
  --nav-indicator-shadow: color-mix(in srgb, var(--color-accent) 34%, transparent);
  --nav-border-gradient-top: radial-gradient(20.7% 50% at 50% 0%, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0) 100%);
  --nav-border-gradient-left: radial-gradient(16.6% 43.1% at 0% 50%, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0) 100%);
  --nav-border-gradient-bottom: radial-gradient(20.7% 50% at 50% 100%, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0) 100%);
  --nav-border-gradient-right: radial-gradient(16.2% 41.2% at 100% 50%, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0) 100%);
  --nav-border-gradient-highlight: radial-gradient(75% 181% at 50% 50%, var(--color-accent) 0%, rgba(255, 255, 255, 0) 100%);
  --nav-border-gradient-current: var(--nav-border-gradient-bottom);

  --gutter: clamp(16px, 3vw, 40px);
  --project-title-size: clamp(1.75rem, 14cqw, 8rem);
  --project-title-line-height: 0.88;
  --project-title-letter-spacing: -0.035em;
  --hero-title-line-height: 1.12;
  --header-height: 3.75rem;
  --nav-link-size: 24px;
  --nav-text-inset: calc(var(--gutter) + var(--nav-link-size) * 0.45);
  --video-width: clamp(240px, 54vw, 720px);
  --bottom-dock-gap: 0.75rem;
  --video-radius: clamp(14px, 1.75vw, 24px);
  --split-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --split-duration: 1.1s;
  --clock-reserve: clamp(5.5rem, 14vh, 8rem);
  --clock-width: 15rem;
  --clock-height: 2.25rem;
  --dock-caption-size: clamp(0.8rem, 1.2vw, 0.95rem);
  --dock-text-lift: calc((var(--clock-height) - var(--dock-caption-size)) / 2);
  --hero-scroll-progress: 0;
  --view-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --view-duration: 0.52s;
  --index-h-duration: 0.44s;
  --index-h-stagger: 0.11s;
  --index-v-duration: 0.4s;
  --index-v-stagger: 0.06s;
  --index-text-duration: 0.75s;
  --index-text-stagger: 0.09s;
  --index-v-delay-base: 0s;
  --index-h-delay-base: calc(var(--index-v-duration) + var(--index-v-stagger) * 3 + 0.05s);
  --index-text-delay-base: calc(var(--index-h-delay-base) + var(--index-h-duration) + var(--index-h-stagger) * 3 + 0.05s);
  --index-line-color: var(--color-text-primary);
  --index-preview-z: 4;
  --index-text-z: 2;
  --index-text-hover-z: 7;
  --index-line-z: 8;
  --index-right-shift: 50px;
  --index-viewport-block: calc(100dvh - var(--header-height) - var(--gutter) * 0.35 - var(--gutter) - var(--clock-height) - var(--bottom-dock-gap));
}

html {
  font-size: 16px;
  background: var(--color-bg-page);
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

body {
  font-family: 'Apfel Grotezk', sans-serif;
  background: var(--hero-bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.view-about {
  overflow-y: auto;
  overscroll-behavior: none;
}

body:not(.view-about) {
  overscroll-behavior: none;
  background: var(--hero-bg);
  transition: background-color 0.65s var(--split-ease);
}

body.is-footer-inverted:not(.view-about),
body.is-footer-inverted:not(.view-about).is-index-scroll,
body.is-footer-inverted:not(.view-about) .home-flow {
  background: var(--color-text-primary);
}

body:not(.view-about) .home-flow {
  position: relative;
  isolation: isolate;
}

body:not(.view-about).is-index-scroll:not(.is-footer-inverted) {
  background: var(--hero-bg);
}

body:not(.view-about) .hero,
body:not(.view-about) .index-page,
body:not(.view-about) .home-footer {
  position: relative;
}

main {
  transition:
    opacity var(--view-duration) var(--view-ease),
    transform var(--view-duration) var(--view-ease);
}

main.is-view-leaving {
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
}

main.is-view-entering {
  animation: view-enter var(--view-duration) var(--view-ease) forwards;
}

@keyframes view-enter {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }

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

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

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 200;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 0.75rem var(--gutter) 0;
  pointer-events: none;
}

.site-nav {
  pointer-events: auto;
  width: 100%;
  display: flex;
  justify-content: center;
}

.site-nav__shell {
  position: relative;
  display: inline-flex;
  max-width: min(100%, 42rem);
  padding: 1px;
  border-radius: 9999px;
  overflow: visible;
  box-shadow:
    0 1px 2px rgba(10, 10, 10, 0.04),
    0 10px 28px color-mix(in srgb, var(--color-accent) 8%, rgba(10, 10, 10, 0.07));
  transition: box-shadow 0.45s ease;
}

.site-nav__shell:is(:hover, :focus-within) {
  box-shadow:
    0 1px 2px rgba(10, 10, 10, 0.05),
    0 12px 32px color-mix(in srgb, var(--color-accent) 16%, rgba(10, 10, 10, 0.08));
}

.site-nav__border-glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  filter: blur(2px);
  background: var(--nav-border-gradient-current, var(--nav-border-gradient-bottom));
  transition: background 1s linear;
}

.site-nav__shell.is-border-highlight .site-nav__border-glow {
  background: var(--nav-border-gradient-highlight);
}

.site-nav__bar {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  width: 100%;
  margin: 1px;
  padding: 0.3rem 0.4rem;
  border-radius: 9999px;
  border: none;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  isolation: isolate;
  transition: background-color 0.45s ease;
}

.site-nav__shell:is(:hover, :focus-within) .site-nav__bar {
  background: rgba(255, 255, 255, 0.92);
}

.site-nav__indicator {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  border-radius: 9999px;
  background: var(--nav-indicator-bg);
  box-shadow: 0 6px 20px var(--nav-indicator-shadow);
  pointer-events: none;
  opacity: 0;
  transform: translate3d(0, 0, 0);
  transition:
    transform 0.55s cubic-bezier(0.34, 1.35, 0.64, 1),
    width 0.55s cubic-bezier(0.34, 1.35, 0.64, 1),
    height 0.55s cubic-bezier(0.34, 1.35, 0.64, 1),
    opacity 0.2s ease,
    background-color 0.28s ease,
    box-shadow 0.28s ease;
  will-change: transform, width;
}

.site-nav__item {
  position: relative;
  z-index: 1;
  flex: 0 1 auto;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  font-size: var(--nav-link-size);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  border-radius: 9999px;
  padding: 0.45em 0.8em;
  white-space: nowrap;
}

.site-nav__label {
  display: block;
  overflow: hidden;
  height: 1.2em;
}

.site-nav__label-stack {
  display: flex;
  flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.site-nav__item:hover .site-nav__label-stack,
.site-nav__item:focus-visible .site-nav__label-stack,
.site-nav__item.is-highlighted .site-nav__label-stack {
  transform: translateY(-50%);
}

.site-nav__label-line {
  display: block;
  height: 1.2em;
  line-height: 1.2em;
  color: var(--nav-item-muted);
  transition: color 0.28s ease;
}

.site-nav__label-line+.site-nav__label-line {
  color: var(--nav-item-color);
}

.site-nav__item.is-highlighted .site-nav__label-line {
  color: var(--nav-item-on-indicator-muted);
}

.site-nav__item.is-highlighted .site-nav__label-line+.site-nav__label-line {
  color: var(--nav-item-on-indicator);
}

.site-nav__label-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {

  .site-nav__indicator,
  .site-nav__label-stack {
    transition: none;
  }

  .site-nav__border-glow {
    transition: none;
    background: var(--nav-border-gradient-highlight);
  }
}

/* Home footer */
body:not(.view-about) .home-footer {
  position: relative;
  min-height: 100dvh;
  background: var(--hero-bg);
  transition:
    background-color 0.65s var(--split-ease),
    color 0.65s var(--split-ease);
}

body:not(.view-about) .home-footer.is-inverted {
  background: var(--color-text-primary);
  color: var(--color-text-inverse);
}

.home-footer__layout {
  position: sticky;
  top: 0;
  min-height: 100dvh;
  box-sizing: border-box;
  padding:
    calc(var(--header-height) + var(--gutter)) var(--gutter) calc(var(--gutter) + var(--clock-height));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.home-footer__wordmark {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.35em;
  width: 100%;
  max-width: calc(100vw - var(--gutter) * 2);
  margin: 0;
  container-type: inline-size;
  font-size: var(--project-title-size);
  font-weight: 700;
  line-height: var(--project-title-line-height);
  letter-spacing: var(--project-title-letter-spacing);
  color: var(--text);
  transition: color 0.65s var(--split-ease);
}

.home-footer.is-inverted .home-footer__wordmark {
  color: var(--color-text-inverse);
}

.home-footer.is-revealed .home-footer__wordmark {
  gap: clamp(1rem, 5vw, 4rem);
}

.home-footer [data-footer-token] {
  opacity: 0;
}

.home-footer.is-swap-started [data-footer-token] {
  opacity: 1;
}

.home-footer__word {
  flex: 0 0 auto;
  white-space: nowrap;
  will-change: transform, opacity;
  transition: color 0.65s var(--split-ease);
}

.home-footer__amp {
  flex: 0 0 auto;
  white-space: nowrap;
  will-change: transform;
  transition: color 0.65s var(--split-ease);
}

.home-footer.is-inverted .home-footer__word,
.home-footer.is-inverted .home-footer__amp {
  color: var(--color-text-inverse);
}

.home-footer__bar {
  position: absolute;
  left: var(--nav-text-inset);
  right: var(--gutter);
  bottom: var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: var(--clock-height);
  pointer-events: none;
}

.home-footer__social {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  pointer-events: auto;
}

.home-footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  text-decoration: none;
  transition:
    opacity 0.2s ease,
    color 0.65s var(--split-ease);
}

.home-footer.is-inverted .home-footer__social-link {
  color: var(--color-text-inverse);
}

.home-footer__social-link:hover,
.home-footer__social-link:focus-visible {
  opacity: 0.65;
}

.home-footer__social-link:focus-visible {
  outline: 1px solid var(--text);
  outline-offset: 3px;
}

.home-footer.is-inverted .home-footer__social-link:focus-visible {
  outline-color: var(--color-text-inverse);
}

.home-footer__icon {
  display: block;
}

.home-footer__copyright {
  grid-column: 2;
  margin: 0;
  font-size: var(--dock-caption-size);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--text);
  text-align: center;
  white-space: nowrap;
  transition: color 0.65s var(--split-ease);
}

.home-footer.is-inverted .home-footer__copyright {
  color: var(--color-text-inverse);
}

body.is-footer-inverted .berlin-clock {
  background: var(--color-bg-page);
  color: var(--color-text-primary);
  transition:
    background-color 0.65s var(--split-ease),
    color 0.65s var(--split-ease);
}

body.is-footer-inverted .berlin-clock__dot {
  background: var(--color-text-primary);
}

/* Index pages (3–5) */
.index-page {
  display: none;
  position: relative;
  isolation: isolate;
}

body:not(.view-about) .index-page {
  display: flex;
  flex-direction: column;
  min-height: auto;
  background: var(--hero-bg);
  overflow-x: visible;
  padding:
    calc(var(--header-height) + var(--gutter) * 0.35) var(--gutter) calc(var(--gutter) + var(--clock-height) + var(--bottom-dock-gap));
  padding-left: var(--nav-text-inset);
  box-sizing: border-box;
}

.index-page::before {
  content: '';
  position: absolute;
  top: calc(var(--header-height) + var(--gutter) * 0.35);
  left: var(--gutter);
  right: var(--gutter);
  height: 1px;
  background-color: var(--index-line-color);
  transform: scaleX(0);
  transform-origin: left center;
  z-index: var(--index-line-z);
  pointer-events: none;
}

.index-page.is-revealed::before {
  animation: index-draw-h-ltr var(--index-h-duration) cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--index-h-delay-base);
}

.index-row {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1px clamp(9rem, 18vw, 15.5rem);
  position: relative;
  min-height: calc(var(--index-viewport-block) / 4);
  height: calc(var(--index-viewport-block) / 4);
  color: inherit;
  text-decoration: none;
  overflow: visible;
  background: transparent;
  z-index: 1;
}

.index-row>* {
  pointer-events: none;
}

.index-row::after {
  content: '';
  position: absolute;
  left: calc(var(--gutter) - var(--nav-text-inset));
  right: 0;
  bottom: 0;
  height: 1px;
  background-color: var(--index-line-color);
  transform: scaleX(0);
  z-index: var(--index-line-z);
  pointer-events: none;
}

.index-row.is-revealed:nth-child(odd)::after {
  transform-origin: left center;
  animation: index-draw-h-ltr var(--index-h-duration) cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.index-row.is-revealed:nth-child(even)::after {
  transform-origin: right center;
  animation: index-draw-h-rtl var(--index-h-duration) cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.index-row.is-revealed:nth-child(4n + 1)::after {
  animation-delay: var(--index-h-delay-base);
}

.index-row.is-revealed:nth-child(4n + 2)::after {
  animation-delay: calc(var(--index-h-delay-base) + var(--index-h-stagger));
}

.index-row.is-revealed:nth-child(4n + 3)::after {
  animation-delay: calc(var(--index-h-delay-base) + var(--index-h-stagger) * 2);
}

.index-row.is-revealed:nth-child(4n)::after {
  animation-delay: calc(var(--index-h-delay-base) + var(--index-h-stagger) * 3);
}

.index-row__preview {
  position: fixed;
  top: calc(var(--header-height) + var(--gutter) * 0.5);
  left: 50%;
  bottom: calc(var(--gutter) + var(--clock-height) + var(--bottom-dock-gap));
  width: min(56rem, calc(100vw - var(--gutter) * 2));
  transform: translateX(-50%);
  z-index: var(--index-preview-z);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.index-row.is-row-ready:has(.index-row__marquee-text:hover) .index-row__preview,
.index-row.is-row-ready:has(.index-row__marquee-text:focus-visible) .index-row__preview {
  opacity: 1;
  visibility: visible;
}

.index-row__image {
  display: block;
  width: 100%;
  max-width: min(100%, 56rem);
  border-radius: 50%;
}

span.index-row__image {
  width: min(100%, 56rem);
  height: min(100%, calc(100dvh - var(--header-height) - var(--clock-height) - var(--gutter) * 3));
  aspect-ratio: 5 / 4;
  background-size: cover;
  background-position: center;
}

img.index-row__image,
video.index-row__image {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(100%, calc(100dvh - var(--header-height) - var(--clock-height) - var(--gutter) * 3));
  margin-inline: auto;
  aspect-ratio: auto;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
}

.index-row__marquee {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 0;
  z-index: var(--index-text-z);
  padding-right: clamp(0.75rem, 2vw, 1.25rem);
  transition: z-index 0s;
  container-type: inline-size;
}

.index-row__marquee-track {
  display: flex;
  width: max-content;
  max-width: 100%;
  transform: translate3d(115%, 0, 0);
  opacity: 0;
  will-change: transform, opacity;
}

.index-row:not(.is-revealed) .index-row__marquee-track,
.index-row:not(.is-revealed) .index-row__meta {
  opacity: 0;
}

.index-row:not(.is-revealed)::after {
  transform: scaleX(0);
}

.index-row:not(.is-revealed) .index-row__divider::before {
  transform: scaleY(0);
}

.index-row.is-revealed:nth-child(4n + 1) .index-row__marquee-track {
  animation: index-marquee-enter var(--index-text-duration) cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--index-text-delay-base);
}

.index-row.is-revealed:nth-child(4n + 2) .index-row__marquee-track {
  animation: index-marquee-enter var(--index-text-duration) cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--index-text-delay-base) + var(--index-text-stagger));
}

.index-row.is-revealed:nth-child(4n + 3) .index-row__marquee-track {
  animation: index-marquee-enter var(--index-text-duration) cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--index-text-delay-base) + var(--index-text-stagger) * 2);
}

.index-row.is-revealed:nth-child(4n) .index-row__marquee-track {
  animation: index-marquee-enter var(--index-text-duration) cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--index-text-delay-base) + var(--index-text-stagger) * 3);
}

.index-row__marquee-text {
  flex: 0 1 auto;
  max-width: 100%;
  padding-right: 0.35em;
  font-weight: 700;
  font-size: var(--project-title-size);
  line-height: var(--project-title-line-height);
  letter-spacing: var(--project-title-letter-spacing);
  white-space: nowrap;
  color: var(--text);
  pointer-events: auto;
  position: relative;
  z-index: 1;
}

.index-row__divider {
  position: relative;
  width: 1px;
  background: transparent;
  align-self: stretch;
  justify-self: center;
  z-index: var(--index-line-z);
  transform: translateX(var(--index-right-shift));
}

.index-row__divider::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: var(--index-line-color);
  transform: scaleY(0);
  transform-origin: top center;
}

.index-row.is-revealed:nth-child(4n + 1) .index-row__divider::before {
  animation: index-draw-v var(--index-v-duration) cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--index-v-delay-base);
}

.index-row.is-revealed:nth-child(4n + 2) .index-row__divider::before {
  animation: index-draw-v var(--index-v-duration) cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--index-v-delay-base) + var(--index-v-stagger));
}

.index-row.is-revealed:nth-child(4n + 3) .index-row__divider::before {
  animation: index-draw-v var(--index-v-duration) cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--index-v-delay-base) + var(--index-v-stagger) * 2);
}

.index-row.is-revealed:nth-child(4n) .index-row__divider::before {
  animation: index-draw-v var(--index-v-duration) cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--index-v-delay-base) + var(--index-v-stagger) * 3);
}

.index-row__meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(0.55rem, 1.2vw, 0.85rem);
  padding: clamp(10px, 1.4vw, 18px) clamp(8px, 1vw, 12px) clamp(10px, 1.4vw, 18px) clamp(10px, 1.4vw, 18px);
  min-width: 0;
  opacity: 0;
  position: relative;
  z-index: var(--index-text-z);
  transition: z-index 0s;
  transform: translateX(var(--index-right-shift));
}

.index-page:has(.index-row.is-row-ready .index-row__marquee-text:hover) .index-row:not(:has(.index-row__marquee-text:hover)),
.index-page:has(.index-row.is-row-ready .index-row__marquee-text:focus-visible) .index-row:not(:has(.index-row__marquee-text:focus-visible)) {
  z-index: 1;
}

.index-page:has(.index-row.is-row-ready .index-row__marquee-text:hover) .index-row:not(:has(.index-row__marquee-text:hover)) .index-row__marquee,
.index-page:has(.index-row.is-row-ready .index-row__marquee-text:focus-visible) .index-row:not(:has(.index-row__marquee-text:focus-visible)) .index-row__marquee,
.index-page:has(.index-row.is-row-ready .index-row__marquee-text:hover) .index-row:not(:has(.index-row__marquee-text:hover)) .index-row__meta,
.index-page:has(.index-row.is-row-ready .index-row__marquee-text:focus-visible) .index-row:not(:has(.index-row__marquee-text:focus-visible)) .index-row__meta {
  z-index: var(--index-text-z);
}

.index-row.is-row-ready:has(.index-row__marquee-text:hover),
.index-row.is-row-ready:has(.index-row__marquee-text:focus-visible) {
  z-index: var(--index-text-hover-z);
}

.index-row.is-row-ready:has(.index-row__marquee-text:hover) .index-row__marquee,
.index-row.is-row-ready:has(.index-row__marquee-text:focus-visible) .index-row__marquee,
.index-row.is-row-ready:has(.index-row__marquee-text:hover) .index-row__meta,
.index-row.is-row-ready:has(.index-row__marquee-text:focus-visible) .index-row__meta {
  z-index: var(--index-text-hover-z);
}

.index-row.is-revealed:nth-child(4n + 1) .index-row__meta {
  animation: index-meta-in 0.36s ease forwards;
  animation-delay: var(--index-text-delay-base);
}

.index-row.is-revealed:nth-child(4n + 2) .index-row__meta {
  animation: index-meta-in 0.36s ease forwards;
  animation-delay: calc(var(--index-text-delay-base) + var(--index-text-stagger));
}

.index-row.is-revealed:nth-child(4n + 3) .index-row__meta {
  animation: index-meta-in 0.36s ease forwards;
  animation-delay: calc(var(--index-text-delay-base) + var(--index-text-stagger) * 2);
}

.index-row.is-revealed:nth-child(4n) .index-row__meta {
  animation: index-meta-in 0.36s ease forwards;
  animation-delay: calc(var(--index-text-delay-base) + var(--index-text-stagger) * 3);
}

.index-row__category,
.index-row__title {
  margin: 0;
  font-size: clamp(0.62rem, 0.95vw, 0.78rem);
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1.35;
  color: var(--text);
}

.index-row__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 0.42em 0.95em;
  border: 1px solid var(--text);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: clamp(0.58rem, 0.82vw, 0.72rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  pointer-events: auto;
  position: relative;
  z-index: calc(var(--index-text-hover-z) + 1);
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.index-row__cta:hover,
.index-row__cta:focus-visible {
  background: var(--color-text-primary);
  color: var(--color-text-inverse);
  outline: none;
}

.index-row__cta:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

.index-row:focus-visible,
.index-row__marquee-text:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: -2px;
}

@keyframes index-draw-h-ltr {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

@keyframes index-draw-h-rtl {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

@keyframes index-draw-v {
  from {
    transform: scaleY(0);
  }

  to {
    transform: scaleY(1);
  }
}

@keyframes index-marquee-enter {
  from {
    transform: translate3d(115%, 0, 0);
    opacity: 0;
  }

  to {
    transform: translate3d(0, 0, 0);
    opacity: 1;
  }
}

@keyframes index-meta-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {

  .index-page::before,
  .index-row::after,
  .index-row__divider::before {
    animation: none !important;
    transform: none;
  }

  .index-row__marquee-track {
    animation: none !important;
    transform: none;
    opacity: 1;
  }

  .index-row__meta {
    animation: none !important;
    opacity: 1;
  }

  .index-row__preview {
    transition: none;
  }
}

@media (max-width: 900px) {
  :root {
    --index-right-shift: 28px;
  }
}

@media (max-width: 768px) {
  :root {
    --project-title-size: clamp(1.5rem, 12cqw, 4rem);
  }

  .index-row {
    grid-template-columns: minmax(0, 1fr) 1px clamp(5.5rem, 22vw, 8rem);
  }
}

@media (max-width: 480px) {
  :root {
    --index-right-shift: 12px;
  }

  body:not(.view-about) .index-page {
    min-height: auto;
  }

  .index-row {
    min-height: clamp(120px, 24dvh, 180px);
  }
}

body:not(.view-about) .hero-copy {
  position: relative;
  z-index: 2;
  -webkit-mask-image: linear-gradient(to bottom,
      transparent 0%,
      transparent max(0%, calc(var(--hero-scroll-progress) * 100% - 18%)),
      #000 calc(var(--hero-scroll-progress) * 100%),
      #000 100%);
  mask-image: linear-gradient(to bottom,
      transparent 0%,
      transparent max(0%, calc(var(--hero-scroll-progress) * 100% - 18%)),
      #000 calc(var(--hero-scroll-progress) * 100%),
      #000 100%);
}

body:not(.view-about) .hero-title,
body:not(.view-about) .hero-line,
body:not(.view-about) .hero-sep,
body:not(.view-about) .hero-scramble:not(.is-revealed) {
  color: var(--text);
}

body:not(.view-about) .cursor-follow__line {
  background: var(--text);
}

body:not(.view-about) .cursor-coords {
  color: var(--text);
}

body.is-footer-inverted:not(.view-about) .cursor-follow__line {
  background: var(--color-text-inverse);
}

body.is-footer-inverted:not(.view-about) .cursor-coords {
  color: var(--color-text-inverse);
}

body.is-footer-inverted:not(.view-about) .cursor-follow__center-dot {
  background-color: var(--color-text-inverse);
}

body.is-footer-inverted:not(.view-about) .cursor-particle,
body.is-footer-inverted:not(.view-about) .cursor-particles.is-spread .cursor-particle {
  background-color: var(--color-text-inverse) !important;
}

/* Hero */
.hero {
  min-height: calc(100vh - var(--header-height));
  min-height: calc(100dvh - var(--header-height));
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 4vh, 48px) var(--gutter);
}

body:not(.view-about) .hero {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100svh;
  max-height: 100svh;
  min-height: 100svh;
  overflow: visible;
  padding: var(--gutter);
  box-sizing: border-box;
  background: var(--hero-bg);
}

body:not(.view-about) .hero-body {
  position: relative;
  z-index: 12;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  pointer-events: none;
  transform: translate3d(0, calc(var(--hero-scroll-progress) * -48px), 0);
}

body:not(.view-about) .hero-title,
body:not(.view-about) .hero-row {
  text-align: left;
}

body:not(.view-about) .hero-title {
  margin: 0;
  display: block;
  width: 100%;
  max-width: none;
  font-size: var(--project-title-size);
  font-weight: 400;
  line-height: var(--hero-title-line-height);
  letter-spacing: var(--project-title-letter-spacing);
}

body:not(.view-about) .hero-row {
  display: inline;
  line-height: inherit;
}

body:not(.view-about) .hero-scramble,
body:not(.view-about) .hero-video-trigger {
  pointer-events: auto;
}

body:not(.view-about) .hero-video-trigger {
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.14em;
  text-decoration-skip-ink: none;
}

body:not(.view-about) .hero-body,
body:not(.view-about) .hero-copy {
  height: auto;
}

body:not(.view-about) .hero-copy {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  container-type: inline-size;
}

body:not(.view-about) .hero-scramble {
  font-style: italic;
  padding: 0;
}

.hero-showreel {
  position: fixed;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.55s var(--split-ease),
    visibility 0.55s var(--split-ease);
}

.hero-showreel.is-visible {
  z-index: 20;
  opacity: 1;
  visibility: visible;
}

.hero-showreel__frame {
  position: fixed;
  left: var(--showreel-x, 50%);
  top: var(--showreel-y, 50%);
  width: var(--showreel-w, var(--video-width));
  height: var(--showreel-h, calc(var(--showreel-w, var(--video-width)) * 0.8));
  border-radius: 50%;
  overflow: hidden;
  background: var(--color-bg-dark);
  transform: translate(-50%, -50%) scale(0.92);
  transition: transform 0.6s var(--split-ease);
  pointer-events: none;
}

.hero-showreel.is-visible .hero-showreel__frame {
  transform: translate(-50%, -50%) scale(1);
}

.hero-showreel__player {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  pointer-events: none;
}

body:not(.view-about) .hero-line {
  min-height: 0;
}

.hero-body {
  width: 100%;
  flex: 1;
  display: flex;
  align-items: center;
}

.hero-copy {
  width: 100%;
}

.hero-title {
  font-size: 1.375rem;
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: 0;
  color: var(--text);
  text-align: left;
}

.view-about .home-flow {
  display: none;
}

.view-about .about-page {
  display: flex;
  flex-direction: column;
}

body.page-project {
  background: var(--hero-bg);
  color: var(--text);
}

/* Project drawer — full-page scroll layout */
.project-drawer {
  position: fixed;
  inset: 0;
  z-index: 250;
  pointer-events: none;
  visibility: hidden;
  --hero-scroll-progress: 0;
}

.project-drawer.is-open {
  pointer-events: auto;
  visibility: visible;
}

.project-drawer__shell {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background-color: var(--color-bg-surface);
  color: var(--color-text-primary);
  opacity: 0;
  transform: translate3d(0, 1.5%, 0);
  transition:
    opacity var(--view-duration) var(--view-ease),
    transform var(--view-duration) var(--view-ease);
}

.project-drawer.is-open .project-drawer__shell {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.project-drawer.has-custom-bg .project-drawer__shell,
.project-drawer.has-custom-bg .project-drawer__top,
.project-drawer.has-custom-bg .project-drawer__scroll,
.project-drawer.has-custom-bg .project-drawer__intro,
.project-drawer.has-custom-bg .project-drawer__body {
  background-color: var(--project-drawer-bg);
}

.project-drawer__top {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding:
    0.35rem clamp(1.25rem, 3vw, 2.5rem) 0.75rem;
  pointer-events: none;
}

.project-drawer__close {
  margin: 0;
  padding: 0.15em 0.35em;
  border: 0;
  background: transparent;
  color: var(--color-text-primary);
  font-family: inherit;
  font-size: clamp(0.82rem, 1.1vw, 0.95rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
}

.project-drawer__close:hover,
.project-drawer__close:focus-visible {
  opacity: 0.72;
  outline: none;
}

.project-drawer__scroll {
  flex: 1 1 auto;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.project-drawer__hero-stage {
  height: 200vh;
}

.project-drawer__hero-sticky {
  position: sticky;
  top: 0;
  height: 100dvh;
  overflow: hidden;
}

.project-drawer__hero-media {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: calc(50% + 50% * var(--hero-scroll-progress));
  height: 100%;
  background: var(--color-bg-dark);
  overflow: hidden;
}

.project-drawer__hero-media img,
.project-drawer__hero-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.project-drawer__hero-media.project-drawer__media--fit-width img,
.project-drawer__hero-media.project-drawer__media--fit-width video {
  object-fit: contain;
  background: var(--color-bg-dark);
}

.project-drawer__intro {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  width: 50%;
  height: 100%;
  background-color: var(--color-bg-surface);
  transform: translate3d(calc(var(--hero-scroll-progress) * 100%), 0, 0);
  will-change: transform;
}

.project-drawer__intro-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-height: 100%;
  width: 100%;
  container-type: inline-size;
  padding:
    clamp(1.5rem, 4vw, 2.5rem) clamp(1.5rem, 4vw, 3.5rem) clamp(2rem, 5vh, 3.5rem);
  box-sizing: border-box;
}

.project-drawer__title {
  margin: auto 0 0;
  width: 100%;
  font-size: var(--project-title-size);
  font-weight: 700;
  line-height: var(--project-title-line-height);
  letter-spacing: var(--project-title-letter-spacing);
  text-align: left;
  text-wrap: balance;
  text-transform: uppercase;
}

.project-drawer__intro-meta {
  width: 100%;
  margin: auto 0 0;
  padding-top: clamp(2.5rem, 6vh, 4rem);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 2rem);
  align-items: start;
}

.project-drawer__intro-meta .project-drawer__meta-item {
  min-width: 0;
}

.project-drawer__body {
  position: relative;
  z-index: 3;
  background-color: var(--color-bg-surface);
  --project-body-inline-pad: clamp(1.5rem, 4vw, 4rem);
  padding:
    clamp(2.5rem, 6vh, 4rem) var(--project-body-inline-pad) calc(var(--clock-height) + var(--gutter) + 1.5rem);
}

.project-drawer__section-label {
  margin: 0 0 clamp(0.85rem, 2vh, 1.15rem);
  font-size: clamp(1.17rem, 1.58vw, 1.32rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.6;
  text-transform: uppercase;
  color: var(--color-text-primary);
}

.project-drawer__gallery-wrap--full-bleed {
  width: calc(100% + 2 * var(--project-body-inline-pad));
  max-width: none;
  margin-left: calc(-1 * var(--project-body-inline-pad));
  margin-right: calc(-1 * var(--project-body-inline-pad));
}

.project-drawer__gallery {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.project-drawer__gallery-row {
  display: grid;
  gap: 0.5rem;
}

.project-drawer__gallery-row--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-drawer__gallery-row--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-drawer__gallery-row--1 {
  grid-template-columns: minmax(0, 1fr);
}

.project-drawer__gallery-row--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.project-drawer__gallery-item {
  overflow: hidden;
  background: transparent;
}

.project-drawer__gallery-wrap {
  margin-top: clamp(2rem, 5vh, 3.5rem);
}

.project-drawer__after-description {
  margin-top: clamp(1.25rem, 3vh, 2rem);
  font-size: clamp(1.08rem, 1.5vw, 1.23rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.55;
}

.project-drawer__after-description p {
  margin: 0;
}

.project-drawer__after-description--featured {
  text-align: center;
  font-size: clamp(2.16rem, 3vw, 2.46rem);
  line-height: 1.45;
}

.project-drawer__after-description--featured p {
  text-align: center;
}

.project-drawer__after-description+.project-drawer__gallery-wrap {
  margin-top: clamp(1.25rem, 3vh, 2rem);
}

.project-drawer__gallery-row--2 .project-drawer__gallery-item {
  aspect-ratio: 16 / 10;
}

.project-drawer__gallery-row--2-photo .project-drawer__gallery-item {
  aspect-ratio: 4 / 3;
}

.project-drawer__gallery-row--2-screen .project-drawer__gallery-item {
  aspect-ratio: 16 / 9;
}

.project-drawer__gallery-row--3 .project-drawer__gallery-item {
  aspect-ratio: 4 / 3;
}

.project-drawer__gallery-row--2-wide .project-drawer__gallery-item {
  aspect-ratio: 1040 / 392;
}

.project-drawer__gallery-row--2-wide .project-drawer__gallery-item img {
  object-fit: contain;
}

.project-drawer__gallery-row--1 .project-drawer__gallery-item {
  aspect-ratio: 16 / 9;
}

.project-drawer__gallery-row--1 .project-drawer__gallery-item img {
  object-fit: contain;
}

.project-drawer__gallery-row--1-fit-width .project-drawer__gallery-item {
  aspect-ratio: auto;
  height: auto;
}

.project-drawer__gallery-row--1-fit-width .project-drawer__gallery-item img,
.project-drawer__gallery-row--1-fit-width .project-drawer__gallery-item video {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.project-drawer__gallery-row--1-center {
  display: flex;
  justify-content: center;
}

.project-drawer__gallery-row--1-center .project-drawer__gallery-item {
  aspect-ratio: auto;
  height: auto;
  width: auto;
  flex: 0 0 auto;
}

.project-drawer__gallery-row--1-center .project-drawer__gallery-item img,
.project-drawer__gallery-row--1-center .project-drawer__gallery-item video {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(70vh, 40rem);
  margin: 0 auto;
  object-fit: contain;
}

.project-drawer__gallery-row--2-split-media {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  align-items: stretch;
}

.project-drawer__gallery-row--2-split-media .project-drawer__gallery-item {
  aspect-ratio: auto;
  flex: none;
  overflow: hidden;
}

.project-drawer__gallery-row--2-split-media .project-drawer__gallery-item img,
.project-drawer__gallery-row--2-split-media .project-drawer__gallery-item video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Fallback sizing until the JS proportional layout has measured the media */
.project-drawer__gallery-row--2-split-media:not(.is-proportional) .project-drawer__gallery-item:first-child {
  flex: 1 1 auto;
  min-width: 0;
}

.project-drawer__gallery-row--2-split-media:not(.is-proportional) .project-drawer__gallery-item:last-child video {
  width: auto;
  max-height: min(58vh, 30rem);
}

.project-drawer__gallery-row--4 .project-drawer__gallery-item {
  aspect-ratio: 3 / 4;
}

.project-drawer__gallery-row--4-contain {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  align-items: stretch;
  width: 100%;
}

.project-drawer__gallery-row--4-contain .project-drawer__gallery-item {
  flex: none;
  overflow: hidden;
}

.project-drawer__gallery-row--4-contain .project-drawer__gallery-item img,
.project-drawer__gallery-row--4-contain .project-drawer__gallery-item video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.project-drawer__gallery-item img,
.project-drawer__gallery-item video {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  margin: 0;
  object-fit: cover;
  background: transparent;
}

.project-drawer.is-gallery-only .project-drawer__hero-stage {
  display: none;
}

.project-drawer.is-gallery-only .project-drawer__body {
  padding-top: clamp(1.5rem, 4vh, 2rem);
}

.project-drawer.is-gallery-only .project-drawer__section-label,
.project-drawer.is-gallery-only .project-drawer__description {
  display: none;
}

.project-drawer.is-gallery-only .project-drawer__gallery-wrap {
  margin-top: 0;
}

.project-drawer__meta {
  margin: 0;
  display: grid;
  gap: clamp(0.85rem, 2vh, 1.15rem);
}

.project-drawer__meta-item {
  margin: 0;
}

.project-drawer__intro-meta dt {
  margin: 0 0 0.35rem;
  font-size: clamp(0.72rem, 1vw, 0.82rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--color-text-primary);
}

.project-drawer__intro-meta dd {
  margin: 0;
  font-size: clamp(0.72rem, 1vw, 0.82rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.45;
  color: var(--color-text-primary);
}

.project-drawer__description {
  font-size: clamp(1.17rem, 1.58vw, 1.32rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.6;
}

.project-drawer__description p {
  margin: 0;
}

.project-drawer__description p+p {
  margin-top: 0.85rem;
}

.project-drawer__reveal {
  opacity: 0;
  transform: translate3d(0, 32px, 0);
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--project-drawer-reveal-delay, 0s);
  will-change: opacity, transform;
}

.project-drawer.is-open .project-drawer__reveal.is-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

body.is-project-drawer-open {
  overflow: hidden;
}

body.is-project-drawer-open .site-header {
  z-index: 270;
}

body.is-project-drawer-open .berlin-clock {
  z-index: 260;
}

@media (max-width: 900px) {
  .project-drawer__intro-meta {
    grid-template-columns: 1fr;
    gap: clamp(0.85rem, 2vh, 1.15rem);
  }
}

@media (max-width: 640px) {
  .project-drawer__hero-stage {
    height: 180vh;
  }

  .project-drawer__intro-inner {
    padding:
      clamp(1rem, 3vw, 1.5rem) clamp(1rem, 4vw, 1.5rem) clamp(1.5rem, 4vh, 2rem);
  }

  .project-drawer__body {
    --project-body-inline-pad: clamp(1rem, 4vw, 1.5rem);
    padding:
      clamp(2rem, 5vh, 2.5rem) var(--project-body-inline-pad) calc(var(--clock-height) + var(--gutter) + 1rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .project-drawer__shell {
    transition: none;
  }

  .project-drawer__intro {
    transform: none;
  }

  .project-drawer__hero-media {
    width: 100%;
  }

  .project-drawer__reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.project-page {
  min-height: 100dvh;
  padding:
    calc(var(--header-height) + clamp(24px, 4vh, 48px)) var(--gutter) var(--clock-reserve);
  padding-left: var(--nav-text-inset);
  box-sizing: border-box;
}

.project-page__category {
  margin: 0 0 clamp(0.75rem, 2vh, 1rem);
  font-size: clamp(0.72rem, 1vw, 0.82rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.35;
  color: var(--text);
}

.project-page__title {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
  max-width: 20ch;
  text-transform: uppercase;
}

.about-page {
  display: none;
  min-height: 100dvh;
  box-sizing: border-box;
  --about-text-size: clamp(1.9rem, 2.6vw, 2.1rem);
  --about-title-size: 3.5rem;
  padding:
    calc(var(--header-height) + clamp(24px, 4vh, 48px)) var(--gutter) var(--gutter);
}

.about-page__layout {
  width: 100%;
  flex: 1 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: clamp(3.5rem, 7vh, 5.5rem);
}

.about-page__bar.home-footer__bar {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  width: auto;
  flex: 0 0 auto;
  margin-top: auto;
  margin-left: calc(var(--nav-text-inset) - var(--gutter));
  padding-top: clamp(2rem, 5vh, 4rem);
  min-height: auto;
  align-items: flex-end;
  padding-bottom: var(--dock-text-lift);
  box-sizing: border-box;
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition:
    opacity 0.55s var(--split-ease),
    transform 0.55s var(--split-ease);
}

.about-page__bar.home-footer__bar .home-footer__social {
  align-items: flex-end;
}

.about-page__bar.home-footer__bar.is-revealed {
  opacity: 1;
  transform: none;
}

.about-page__intro {
  display: grid;
  gap: clamp(0.85rem, 2vh, 1.15rem);
}

.about-page__text {
  font-size: var(--about-text-size);
  line-height: 1.55;
}

.about-page__col-title {
  font-size: var(--about-title-size);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: clamp(0.85rem, 2vh, 1.15rem);
}

.about-page__entries {
  display: grid;
  gap: clamp(1rem, 2.5vh, 1.35rem);
}

.about-page__entry-title {
  font-size: var(--about-text-size);
  font-weight: 400;
  line-height: 1.35;
  margin-bottom: 0.2rem;
}

.about-page__entry-detail {
  font-size: var(--about-text-size);
  line-height: 1.45;
  opacity: 0.92;
}

.about-page__entry-detail+.about-page__entry-detail {
  margin-top: 0.15rem;
}

.hero-row {
  display: block;
  text-align: left;
}

.hero-line {
  display: inline;
  min-height: 1.22em;
}

.hero-sep {
  display: inline;
}

.hero-scramble {
  display: inline;
  white-space: nowrap;
  font-family: inherit;
  font-style: italic;
  color: var(--text);
  cursor: none;
  border-radius: 9999px;
  padding: 0.06em 0.32em;
  background: transparent;
  transition:
    opacity 0.25s ease,
    background-color 0.2s ease,
    color 0.2s ease;
  outline: none;
  opacity: 0.72;
}

.hero-scramble.is-revealed {
  opacity: 1;
  background: transparent;
  color: var(--text);
}

.hero-scramble:focus-visible {
  opacity: 1;
  background: transparent;
  color: var(--text);
  outline: 1px solid var(--text);
  outline-offset: 2px;
}

@media (max-width: 768px) {
  :root {
    --clock-width: 12rem;
    --nav-link-size: clamp(14px, 3.6vw, 20px);
  }

  .site-nav__shell {
    max-width: calc(100vw - var(--gutter) * 2);
  }

  .site-nav__bar {
    gap: 0.05rem;
    padding: 0.22rem 0.28rem;
  }

  .site-nav__item {
    padding: 0.42em 0.55em;
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: clamp(14px, 4vw, 24px);
    --clock-reserve: clamp(6.5rem, 16vh, 8.5rem);
    --video-width: clamp(210px, 78vw, 420px);
    --project-title-size: clamp(1.35rem, 11vw, 2.75rem);
  }

  .home-footer__wordmark {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 0.15em;
    column-gap: 0.3em;
  }

  .home-footer.is-revealed .home-footer__wordmark {
    gap: clamp(0.75rem, 6vw, 2.5rem);
  }

  body:not(.view-about) .hero-title {
    width: 100%;
  }

  .hero-title {
    font-size: 1.375rem;
    line-height: 1.22;
  }

  .home-footer__copyright {
    white-space: normal;
    text-wrap: balance;
  }

  .berlin-clock {
    font-size: clamp(0.68rem, 3.1vw, 0.82rem);
    gap: 0.35rem;
    padding: 0 0.72rem 0 0.62rem;
  }
}

@media (max-width: 480px) {
  :root {
    --bottom-dock-gap: 0.35rem;
    --clock-reserve: clamp(7.5rem, 18vh, 9.5rem);
    --nav-link-size: clamp(12px, 3.2vw, 16px);
  }

  .berlin-clock__temp {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-footer [data-footer-token] {
    opacity: 1;
  }

  .home-footer__word {
    opacity: 1;
  }

  body:not(.view-about) .hero-copy {
    transform: none;
    -webkit-mask-image: none;
    mask-image: none;
  }

  body:not(.view-about) .hero-body {
    position: relative;
    transform: none;
  }
}

/* Cursor crosshair */
body.has-custom-cursor,
body.has-custom-cursor * {
  cursor: none !important;
}

.has-custom-cursor,
.has-custom-cursor a,
.has-custom-cursor button,
.has-custom-cursor .hero-scramble,
.has-custom-cursor .hero-video-trigger,
.has-custom-cursor .index-row__cta,
.has-custom-cursor .project-drawer__close {
  cursor: none !important;
}

.cursor-follow {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.cursor-follow.is-visible {
  opacity: 1;
}

.cursor-follow__center-dot {
  position: fixed;
  top: 0;
  left: 0;
  display: block;
  width: 8px;
  height: 8px;
  border: 0;
  padding: 0;
  margin: 0;
  border-radius: 50%;
  background-color: var(--color-text-primary);
  box-shadow: none;
  transform: translate(-50%, -50%);
  will-change: left, top, width, height;
  pointer-events: none;
  z-index: 10000;
  opacity: 0;
  transition:
    opacity 0.2s ease,
    background-color 0.65s var(--split-ease);
}

.cursor-follow__center-dot.is-visible {
  opacity: 1;
}

.cursor-follow--spread .cursor-follow__line {
  opacity: 0.35;
}

.cursor-follow__line {
  position: fixed;
  background: var(--text);
  transition:
    opacity 0.25s ease,
    background-color 0.65s var(--split-ease);
  z-index: 1;
}

.cursor-follow__line--top {
  top: 0;
  width: 1px;
  transform: translateX(-50%);
}

.cursor-follow__line--right {
  height: 1px;
}

.cursor-follow__line--bottom {
  width: 1px;
  transform: translateX(-50%);
}

.cursor-follow__line--left {
  left: 0;
  height: 1px;
}

.cursor-particles {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.cursor-particles.is-visible {
  opacity: 1;
}

.cursor-particle {
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  background-color: var(--color-text-primary) !important;
  transition: background-color 0.65s var(--split-ease);
  will-change: transform, opacity;
}

.cursor-particles.is-spread .cursor-particle {
  background-color: var(--color-text-primary) !important;
}

.cursor-coords {
  position: fixed;
  z-index: 9998;
  pointer-events: none;
  opacity: 0;
  color: var(--text);
  font-size: clamp(0.65rem, 0.95vw, 0.78rem);
  letter-spacing: 0.03em;
  line-height: 1;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  transition:
    opacity 0.2s ease,
    color 0.65s var(--split-ease);
}

.cursor-coords.is-visible {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {

  .cursor-follow,
  .cursor-follow__center-dot {
    display: none;
  }

  .cursor-particles,
  .cursor-coords {
    display: none;
  }

  .has-custom-cursor,
  .has-custom-cursor a,
  .has-custom-cursor button {
    cursor: auto;
  }
}

@media (pointer: coarse) {

  .cursor-follow,
  .cursor-follow__center-dot {
    display: none;
  }

  .cursor-particles,
  .cursor-coords {
    display: none;
  }

  .has-custom-cursor,
  .has-custom-cursor a,
  .has-custom-cursor button {
    cursor: auto;
  }
}

/* Media protection */
img,
video,
picture,
.project-drawer__hero-media,
.project-drawer__gallery,
.project-drawer__gallery-item,
.index-row__preview,
.hero-showreel__frame {
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
}

/* Berlin clock */
.berlin-clock {
  position: fixed;
  right: var(--gutter);
  bottom: var(--gutter);
  z-index: 91;
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  height: var(--clock-height);
  gap: 0.5rem;
  padding: 0 1rem 0 0.85rem;
  border-radius: 999px;
  background: var(--color-text-primary);
  border: none;
  color: var(--color-text-inverse);
  font-size: var(--dock-caption-size);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
}

.berlin-clock__label {
  font-weight: 400;
}

.berlin-clock__time {
  font-variant-numeric: tabular-nums;
}

.berlin-clock__temp:empty {
  display: none;
}

.berlin-clock__temp:not(:empty)::before {
  content: '·';
  margin-right: 0.5rem;
}

.berlin-clock__dot {
  flex: 0 0 0.45rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--hero-bg);
  opacity: 1;
  transform: scale(1);
}