:root {
  --bg: #f7f5f2;
  --bg-rgb: 247, 245, 242;
  --text: #101010;
  --muted: #5f5f5f;
  --edge-gap: 8px;
  --nav-pad-x: 1.25rem;
  --nav-pad-y: 1rem;
  --panel-hidden-offset: 120px;
  --dock-bottom-gap: 15px;
  --ease: cubic-bezier(0.87, 0, 0.13, 1);
  --text-reveal-cover: #223246;
  --text-reveal-speed: 940ms;
  --splash-accent: #14161b;
  --splash-progress-duration: 2200ms;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  min-height: 100dvh;
  overflow-x: hidden;
  overscroll-behavior-y: none;
}

body.menu-open,
body.lightbox-open {
  overflow: hidden;
}

body.lightbox-open {
  overscroll-behavior: none;
}

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

.reveal-text {
  contain: layout style;
}

.reveal-word {
  position: relative;
  display: inline-block;
  overflow: hidden;
  vertical-align: baseline;
  line-height: inherit;
}

.reveal-word-text {
  display: inline-block;
  color: inherit;
  opacity: 0;
}

.reveal-word-mask {
  position: absolute;
  inset: -0.09em -0.06em;
  background: var(--text-reveal-cover);
  transform: translate3d(-105%, 0, 0);
  pointer-events: none;
}

body.text-reveal-ready .reveal-text.is-revealed .reveal-word-text {
  animation: text-ink var(--text-reveal-speed) linear forwards;
  animation-delay: var(--tr-word-delay, 0s);
}

body.text-reveal-ready .reveal-text.is-revealed .reveal-word-mask {
  animation: text-wipe var(--text-reveal-speed) cubic-bezier(0.72, 0, 0.2, 1) forwards;
  animation-delay: var(--tr-word-delay, 0s);
}

.reveal-text.reveal-splash.is-revealed .reveal-word-text {
  animation: text-ink var(--text-reveal-speed) linear forwards;
  animation-delay: var(--tr-word-delay, 0s);
}

.reveal-text.reveal-splash.is-revealed .reveal-word-mask {
  animation: text-wipe var(--text-reveal-speed) cubic-bezier(0.72, 0, 0.2, 1) forwards;
  animation-delay: var(--tr-word-delay, 0s);
}

@keyframes text-ink {
  0%,
  44% {
    opacity: 0;
  }

  45%,
  100% {
    opacity: 1;
  }
}

@keyframes text-wipe {
  0% {
    transform: translate3d(-105%, 0, 0);
  }

  46% {
    transform: translate3d(0, 0, 0);
  }

  100% {
    transform: translate3d(105%, 0, 0);
  }
}

body.splash-active {
  overflow: hidden;
}

.splash {
  position: fixed;
  inset: 0;
  z-index: 520;
  background: #111318;
  color: #fff;
  display: block;
  opacity: 1;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  transition: clip-path 0.9s var(--ease), opacity 0.4s ease;
}

.splash.is-exit {
  clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
  opacity: 0.95;
  pointer-events: none;
}

.splash-stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: var(--splash-accent);
  transition: background-color 0.22s linear;
  overflow: hidden;
}

.splash-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 52% 14%, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 56%),
    linear-gradient(165deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.06));
  pointer-events: none;
  z-index: 0;
}

.splash-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
  z-index: 5;
}

.splash-progress-bar {
  height: 100%;
  width: 100%;
  transform-origin: left;
  transform: scaleX(0);
  background: rgba(255, 255, 255, 0.94);
  transition: transform var(--splash-progress-duration) linear;
}

.splash.is-running .splash-progress-bar {
  transform: scaleX(1);
}

.splash-counter {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: "Arial Black", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(6rem, 25vw, 22rem);
  line-height: 0.82;
  letter-spacing: -0.045em;
  font-weight: 900;
  color: #fff;
  opacity: 0.62;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 6;
  user-select: none;
}

.splash-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='1'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  mix-blend-mode: overlay;
}

.splash-grain::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background-image: inherit;
  background-size: inherit;
  animation: splash-grain-drift 0.52s steps(3) infinite;
  opacity: 1;
}

.splash-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.78rem;
  z-index: 2;
}

.splash-media {
  width: min(41vw, 360px);
  aspect-ratio: 2 / 3;
  position: relative;
  overflow: visible;
  border: 0;
}

.splash-chaos-image {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms linear, transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.36)) saturate(1.08) contrast(1.08);
  will-change: transform, opacity;
}

.splash-chaos-image.is-active {
  opacity: 1;
}

.splash-item {
  position: absolute;
  inset: 0;
  opacity: 1;
  clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%);
  transition: clip-path 0.62s var(--ease);
}

.splash-item.is-visible {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.splash-item img,
.splash-item video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1.22) rotate(var(--splash-item-rotate, 0deg));
  transition: transform 0.85s var(--ease);
  filter: saturate(1.08) contrast(1.08);
}

.splash-item.is-visible img,
.splash-item.is-visible video {
  transform: scale(1) rotate(var(--splash-item-rotate, 0deg));
}

.splash-copy {
  position: absolute;
  bottom: 0.95rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(60vw, 520px);
}

.splash-copy p {
  margin: 0;
  text-align: center;
  text-transform: uppercase;
  font-size: 0.48rem;
  letter-spacing: 0.03em;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  opacity: 0.92;
}

.splash-name {
  position: relative;
  margin: 0;
  white-space: nowrap;
  font-size: clamp(2rem, 5.2vw, 4.6rem);
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-family: "Helvetica Neue", "Arial Narrow", Arial, sans-serif;
  color: #ffffff;
  z-index: 3;
  text-shadow: 0 6px 34px rgba(0, 0, 0, 0.35);
}

.splash-role {
  margin: -0.18rem 0 0;
  font-size: clamp(0.68rem, 1.4vw, 0.88rem);
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
  text-align: center;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

@keyframes splash-grain-drift {
  0% {
    transform: translate(0, 0);
  }

  33% {
    transform: translate(-10px, -10px);
  }

  66% {
    transform: translate(10px, 10px);
  }

  100% {
    transform: translate(0, 0);
  }
}

.site-nav {
  position: fixed;
  inset: 0 0 auto;
  padding: calc(var(--nav-pad-y) + env(safe-area-inset-top, 0px)) var(--nav-pad-x) var(--nav-pad-y);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  color: #fff;
  mix-blend-mode: difference;
  z-index: 210;
  pointer-events: none;
  isolation: isolate;
}

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

.nav-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.24rem;
  line-height: 1.06;
}

.reveal-nav .reveal-word {
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}

.nav-wordmark-emphasis {
  font-size: 1.04rem;
  font-weight: 700;
  letter-spacing: 0.005em;
  text-transform: none;
}

.nav-wordmark-by {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
}

.nav-wordmark-name {
  font-size: 1.04rem;
  font-weight: 700;
  letter-spacing: 0.005em;
  text-transform: none;
}

.menu-label {
  font-size: 0.76rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-weight: 600;
  line-height: 1;
}

.menu-toggle {
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.28rem 0.2rem;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.menu-lines {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
}

.menu-lines i {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  transition: transform 0.35s ease;
}

body.menu-open .menu-lines i:nth-child(1) {
  transform: translateY(3px) rotate(45deg);
}

body.menu-open .menu-lines i:nth-child(2) {
  transform: translateY(-3px) rotate(-45deg);
}

.content-wrap {
  transform: none;
  transition: none;
  will-change: auto;
}

.feed-main {
  padding-top: 2.35rem;
  padding-bottom: 4.8rem;
}

.feed-stream {
  display: flex;
  flex-direction: column;
  gap: 120px;
  overflow: visible;
}

.feed-stream > .feed-item:first-child {
  margin-top: 50vh;
}

.feed-item {
  --mask-ratio: 4 / 5;
  display: flex;
  justify-content: center;
  width: 100%;
  position: relative;
  overflow: visible;
}

.feed-button {
  border: 0;
  background: transparent;
  padding: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  text-align: center;
  cursor: pointer;
}

.feed-mask {
  position: relative;
  width: calc(100vw - var(--edge-gap) * 2);
  aspect-ratio: var(--mask-ratio);
  overflow: hidden;
  background: #ece8e3;
}

.feed-mask::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0) 10%,
    rgba(255, 255, 255, 0.42) 45%,
    rgba(255, 255, 255, 0) 80%
  );
  transform: translateX(-130%);
  opacity: 0;
  pointer-events: none;
  z-index: 2;
}

.feed-item.is-loading .feed-mask::before {
  opacity: 1;
  animation: media-shimmer 1.4s linear infinite;
}

.feed-item.is-loaded .feed-mask::before,
.feed-item.is-error .feed-mask::before {
  opacity: 0;
  animation: none;
}

.feed-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  --parallax-x: 0px;
  --parallax-y: 0px;
  --media-scale: 1.3;
  transform: translate3d(var(--parallax-x), var(--parallax-y), 0) scale(var(--media-scale));
  will-change: transform;
  backface-visibility: hidden;
  transition: opacity 0.2s ease;
  position: relative;
  z-index: 1;
}

.feed-item.landscape .feed-mask {
  width: calc(100vw - var(--edge-gap) * 2);
}

.feed-item.portrait .feed-mask {
  width: min(72vw, 540px);
}

.feed-item.square .feed-mask {
  width: min(86vw, 780px);
}

.feed-item.flow-shift-left.portrait .feed-mask,
.feed-item.flow-shift-left.square .feed-mask {
  transform: translateX(-4vw);
}

.feed-item.flow-shift-right.portrait .feed-mask,
.feed-item.flow-shift-right.square .feed-mask {
  transform: translateX(4vw);
}

.feed-button:hover .feed-media {
  opacity: 0.92;
}

@keyframes media-shimmer {
  to {
    transform: translateX(130%);
  }
}

.feed-empty {
  margin: 0;
  padding: 4rem 1rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
}

.about-section {
  padding: 2rem var(--edge-gap) 0;
  position: relative;
  z-index: 150;
  background: var(--bg);
}

.about-section p {
  margin: 0 auto;
  text-align: center;
  max-width: 78ch;
  font-size: 0.72rem;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  color: #252525;
}

.menu-overlay {
  position: fixed;
  inset: 0 0 calc(60px + env(safe-area-inset-bottom, 0px)) 0;
  z-index: 190;
  background: rgba(var(--bg-rgb), 0.96);
  -webkit-backdrop-filter: blur(4px) saturate(0.95);
  backdrop-filter: blur(4px) saturate(0.95);
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  transform: translateY(calc(-100% - var(--panel-hidden-offset)));
  opacity: 0;
  transition: transform 0.72s var(--ease), opacity 0.36s ease;
  pointer-events: none;
  overflow: hidden;
}

body.menu-open .menu-overlay {
  transform: translateY(0);
  opacity: 1;
  box-shadow:
    0 24px 54px rgba(12, 12, 12, 0.34),
    0 8px 18px rgba(12, 12, 12, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.38);
  pointer-events: auto;
}

.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 185;
  opacity: 0;
  pointer-events: none;
  background: rgba(var(--bg-rgb), 0.9);
  -webkit-backdrop-filter: blur(12px) saturate(0.86);
  backdrop-filter: blur(12px) saturate(0.86);
  transition: opacity 0.55s var(--ease);
}

body.menu-open .menu-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.menu-overlay-content {
  position: absolute;
  inset: 0;
  padding: calc(max(4.2rem, 9dvh) + env(safe-area-inset-top, 0px)) clamp(1.6rem, 3.4vw, 4.2rem) 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.about-panel {
  min-height: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  padding-bottom: 0.35rem;
}

.about-panel-top {
  position: relative;
  display: flex;
  gap: clamp(1.8rem, 3.8vw, 4.2rem);
  align-items: flex-start;
  max-width: min(1380px, 100%);
  margin: 0 auto;
}

.about-panel-copy {
  max-width: min(980px, 100%);
  flex: 1 1 700px;
  padding-top: 0;
}

.about-panel-contact {
  position: relative;
  flex: 0 0 clamp(180px, 20vw, 250px);
  width: clamp(180px, 20vw, 250px);
  min-height: 320px;
  padding-left: clamp(1rem, 2.1vw, 1.75rem);
  padding-top: var(--about-contact-offset, 0px);
}

.about-panel-contact::before {
  content: "";
  position: absolute;
  left: 0;
  top: var(--about-contact-offset, 0px);
  width: 1px;
  height: var(--about-contact-rule-height, 0px);
  background: color-mix(in srgb, #4e4a46 32%, transparent);
}

.about-contact-card {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.about-contact-portrait-wrap {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #d9d3cc;
  box-shadow:
    0 8px 22px rgba(12, 12, 12, 0.2),
    0 2px 8px rgba(12, 12, 12, 0.1);
}

.about-contact-portrait {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 34%;
}

.about-contact-action {
  align-self: flex-start;
  margin-top: 0.1rem;
}

.about-panel-kicker {
  margin: 0 0 0.6rem;
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #5d5a56;
}

.about-panel-title {
  margin: 0;
  font-size: clamp(1.55rem, 4vw, 2.8rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: #111;
}

.about-panel-role {
  margin: 0.55rem 0 0;
  font-size: clamp(0.72rem, 1.5vw, 0.92rem);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #4e4a46;
}

.about-lang-switch {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 4;
  margin-top: 0;
  display: inline-flex;
  border: 1px solid #d5cdc4;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.72);
  min-height: 32px;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.about-lang-btn {
  border: 0;
  background: transparent;
  color: #4a443d;
  padding: 0.38rem 0.56rem;
  min-width: 36px;
  min-height: 32px;
  font-size: 0.58rem;
  line-height: 1;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.about-lang-btn.is-active {
  background: #111;
  color: #fff;
}

.about-lang-content {
  display: none;
  margin-top: 1.15rem;
}

.about-lang-content.is-active {
  display: block;
}

.about-panel-text {
  margin: 0.95rem 0 0;
  max-width: 68ch;
  font-size: clamp(0.8rem, 1.6vw, 1rem);
  line-height: 1.55;
  color: #23211f;
  text-align: justify;
  text-justify: inter-word;
  text-align-last: left;
  hyphens: auto;
}

.about-carousel {
  width: 100%;
  margin-top: auto;
  padding-bottom: 0;
  position: relative;
}

.about-carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(630px, calc((100% - 0.7rem - 18px) * 1.125));
  gap: 0.7rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.35rem;
  padding-right: 0.2rem;
  -webkit-overflow-scrolling: touch;
}

.about-carousel-track.is-hinting {
  animation: about-carousel-track-nudge 1.9s cubic-bezier(0.65, 0, 0.35, 1) infinite;
  will-change: transform;
}

.about-swipe-hint {
  position: absolute;
  right: 0.55rem;
  bottom: 1.05rem;
  width: 60px;
  height: 8px;
  display: block;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.26s ease;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.62));
}

.about-swipe-hint.is-visible {
  opacity: 0.85;
}

.about-swipe-track {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.about-swipe-dot {
  position: absolute;
  top: 50%;
  left: 0;
  width: 16px;
  height: 4px;
  border-radius: 999px;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.98);
  box-shadow:
    0 0 9px rgba(255, 255, 255, 0.88),
    0 0 18px rgba(255, 255, 255, 0.4);
  animation: about-swipe-nightrider 1.35s ease-in-out infinite;
}

body.menu-open .site-nav {
  mix-blend-mode: normal;
  color: var(--text);
}

body.menu-open .site-nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(var(--bg-rgb), 1);
}

.about-carousel-track::-webkit-scrollbar {
  height: 6px;
}

.about-carousel-track::-webkit-scrollbar-thumb {
  background: #beb6ac;
  border-radius: 999px;
}

.about-card {
  margin: 0;
  aspect-ratio: 16 / 11;
  border-radius: 12px;
  overflow: hidden;
  scroll-snap-align: start;
  background: #ddd6ce;
  border: 1px solid #d0c8bf;
}

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

.about-card-placeholder {
  display: grid;
  place-items: center;
  color: #5a534b;
  font-size: 0.62rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

@keyframes about-swipe-nightrider {
  0% {
    left: 0;
    opacity: 0.72;
  }

  50% {
    left: calc(100% - 16px);
    opacity: 1;
  }

  100% {
    left: 0;
    opacity: 0.72;
  }
}

@keyframes about-carousel-track-nudge {
  0%,
  100% {
    transform: translateX(0);
  }

  45% {
    transform: translateX(-16px);
  }
}

.bottom-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: var(--dock-bottom-gap);
  z-index: 260;
  padding: 0.38rem var(--nav-pad-x) calc(0.45rem + env(safe-area-inset-bottom, 0px));
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  color: #fff;
  mix-blend-mode: difference;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  will-change: transform;
}

/* iPhone Safari browser UI can expand/collapse and shift fixed bottom bars.
   Keep dock safely above that toolbar zone in browser mode. */
body.ios-safari-browser {
  --dock-bottom-gap: calc(env(safe-area-inset-bottom, 0px) + 52px);
}

body.ios-safari-browser .bottom-dock {
  position: fixed !important;
  top: auto !important;
  padding-bottom: 0.35rem;
}

#progress-value {
  margin: 0;
  font-size: 1.04rem;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  font-weight: 700;
  line-height: 1;
  pointer-events: auto;
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition: transform 0.42s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.3s ease;
  will-change: transform, opacity;
}

.contact-wrap {
  position: relative;
  pointer-events: auto;
  z-index: 261;
  mix-blend-mode: normal;
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition: transform 0.42s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.3s ease;
  will-change: transform, opacity;
}

body.menu-open #progress-value {
  transform: translate3d(-145%, 0, 0);
  opacity: 0;
  pointer-events: none;
}

body.menu-open .contact-wrap {
  transform: translate3d(145%, 0, 0);
  opacity: 0;
  pointer-events: none;
}

.contact-toggle {
  border: 0;
  background: rgba(var(--bg-rgb), 0.94);
  border: 1px solid #d4cec6;
  color: var(--text);
  border-radius: 999px;
  padding: 0.38rem 0.72rem;
  font-size: 0.7rem;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  font-weight: 600;
}

body.desktop-horizontal {
  overflow: hidden;
}

body.desktop-horizontal .feed-main {
  height: 100dvh;
  padding-top: calc(3.25rem + env(safe-area-inset-top, 0px));
  padding-bottom: calc(4.8rem + env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: stretch;
}

body.desktop-horizontal .feed-stream {
  flex-direction: row;
  align-items: center;
  gap: min(9vw, 132px);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: none;
  overscroll-behavior-x: contain;
  overscroll-behavior-y: none;
  height: 100%;
  width: 100%;
  padding: 0 min(8vw, 128px);
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--bg) 76%, #000 24%) color-mix(in srgb, var(--bg) 94%, #000 6%);
}

body.desktop-horizontal .feed-stream::-webkit-scrollbar {
  height: 10px;
}

body.desktop-horizontal .feed-stream::-webkit-scrollbar-track {
  background: color-mix(in srgb, var(--bg) 94%, #000 6%);
  border-radius: 999px;
}

body.desktop-horizontal .feed-stream::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--bg) 76%, #000 24%);
  border-radius: 999px;
  border: 2px solid color-mix(in srgb, var(--bg) 94%, #000 6%);
}

body.desktop-horizontal .feed-stream > .feed-item:first-child {
  margin-top: 0;
}

body.desktop-horizontal .feed-item {
  --h-shift: 0px;
  width: auto;
  flex: 0 0 auto;
  scroll-snap-align: none;
  transform: translate3d(0, var(--h-shift), 0);
}

body.desktop-horizontal .feed-button {
  width: auto;
}

body.desktop-horizontal .feed-mask,
body.desktop-horizontal .feed-item.landscape .feed-mask,
body.desktop-horizontal .feed-item.portrait .feed-mask,
body.desktop-horizontal .feed-item.square .feed-mask {
  width: auto;
  height: min(50dvh, 560px);
}

body.desktop-horizontal .feed-item.is-video .feed-mask,
body.desktop-horizontal .feed-item.is-video.landscape .feed-mask,
body.desktop-horizontal .feed-item.is-video.portrait .feed-mask,
body.desktop-horizontal .feed-item.is-video.square .feed-mask {
  height: min(42dvh, 460px);
}

body.desktop-horizontal .feed-item.flow-shift-left.portrait .feed-mask,
body.desktop-horizontal .feed-item.flow-shift-left.square .feed-mask,
body.desktop-horizontal .feed-item.flow-shift-right.portrait .feed-mask,
body.desktop-horizontal .feed-item.flow-shift-right.square .feed-mask {
  transform: none;
}

body.desktop-horizontal .feed-item:nth-child(5n + 1) {
  --h-shift: -1.8dvh;
}

body.desktop-horizontal .feed-item:nth-child(5n + 2) {
  --h-shift: 2.2dvh;
}

body.desktop-horizontal .feed-item:nth-child(5n + 3) {
  --h-shift: -1dvh;
}

body.desktop-horizontal .feed-item:nth-child(5n + 4) {
  --h-shift: 2.8dvh;
}

body.desktop-horizontal .feed-item:nth-child(5n + 5) {
  --h-shift: 0.6dvh;
}

body.desktop-horizontal .about-section {
  display: none;
}

.contact-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.55rem);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid #d5d5d5;
  background: rgba(var(--bg-rgb), 0.98);
  color: #101010;
  mix-blend-mode: normal;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.contact-menu.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.contact-menu a {
  font-size: 0.56rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.lightbox {
  --lightbox-color-primary: #3a4255;
  --lightbox-color-secondary: #5f4f45;
  --lightbox-color-shadow: #12151f;
  --lightbox-edge-left: #2e3f52;
  --lightbox-edge-right: #2e3f52;
  --lightbox-edge-top: #4f6c85;
  --lightbox-edge-bottom: #2d3f4f;
  --lightbox-image-source: url('');
  position: fixed;
  inset: 0;
  z-index: 240;
  background: rgba(10, 12, 18, 0.76);
  -webkit-backdrop-filter: blur(14px) saturate(0.88);
  backdrop-filter: blur(14px) saturate(0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.26s ease;
  overflow: hidden;
  overscroll-behavior: none;
}

.lightbox::before,
.lightbox::after {
  content: "";
  position: absolute;
  inset: -22%;
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.lightbox::before {
  background:
    var(--lightbox-image-source) center center / cover no-repeat,
    radial-gradient(56% 86% at 0% 50%, color-mix(in srgb, var(--lightbox-edge-left) 90%, #ffffff 10%), transparent 68%),
    radial-gradient(56% 86% at 100% 50%, color-mix(in srgb, var(--lightbox-edge-right) 90%, #ffffff 10%), transparent 68%),
    radial-gradient(74% 56% at 50% 0%, color-mix(in srgb, var(--lightbox-edge-top) 92%, #ffffff 8%), transparent 68%),
    radial-gradient(74% 56% at 50% 100%, color-mix(in srgb, var(--lightbox-edge-bottom) 92%, #ffffff 8%), transparent 68%),
    radial-gradient(80% 74% at 14% 18%, var(--lightbox-color-primary), transparent 72%),
    radial-gradient(75% 72% at 86% 78%, var(--lightbox-color-secondary), transparent 70%),
    linear-gradient(145deg, var(--lightbox-color-shadow), #0f1118);
  filter: blur(56px) saturate(1.18);
  opacity: 0.74;
  transform: scale(1.16);
  z-index: 0;
}

.lightbox.has-edge-ambient::before {
  opacity: 0.9;
  filter: blur(60px) saturate(1.24);
  transform: scale(1.2);
}

.lightbox.has-static-theme::before {
  opacity: 0.34;
  filter: blur(40px) saturate(0.92);
}

.lightbox::after {
  background:
    radial-gradient(100% 100% at 50% 50%, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.24)),
    linear-gradient(180deg, rgba(8, 9, 13, 0.02), rgba(8, 9, 13, 0.12));
  opacity: 0.3;
  z-index: 1;
}

.lightbox.has-edge-ambient::after {
  opacity: 0.2;
}

.lightbox > * {
  position: relative;
  z-index: 2;
}

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

@media (hover: hover) and (pointer: fine) {
  .lightbox.open:not(.media-video),
  .lightbox.open:not(.media-video) * {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cline x1='7' y1='7' x2='21' y2='21' stroke='%23000000' stroke-opacity='0.34' stroke-width='4' stroke-linecap='round'/%3E%3Cline x1='21' y1='7' x2='7' y2='21' stroke='%23000000' stroke-opacity='0.34' stroke-width='4' stroke-linecap='round'/%3E%3Cline x1='7' y1='7' x2='21' y2='21' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round'/%3E%3Cline x1='21' y1='7' x2='7' y2='21' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") 14 14, pointer;
  }
}

#lightbox-image {
  max-width: 94vw;
  max-height: 92dvh;
  width: auto;
  height: auto;
  box-shadow:
    0 26px 64px rgba(0, 0, 0, 0.42),
    0 10px 24px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  transform: translateZ(0);
}

#lightbox-video {
  max-width: 94vw;
  max-height: 92dvh;
  width: auto;
  height: auto;
  display: none;
  box-shadow:
    0 26px 64px rgba(0, 0, 0, 0.42),
    0 10px 24px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  transform: translateZ(0);
}

.lightbox.media-video #lightbox-image {
  display: none;
}

.lightbox.media-video #lightbox-video {
  display: block;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 0.6rem;
  right: var(--edge-gap);
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.94);
  padding: 0;
  font-size: 0.62rem;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  font-weight: 500;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

@media (min-width: 760px) {
  :root {
    --edge-gap: 24px;
    --nav-pad-x: 1.5rem;
    --nav-pad-y: 1.2rem;
  }

  .menu-label,
  .contact-toggle,
  .contact-menu a,
  .lightbox-close,
  .about-section p {
    font-size: 0.68rem;
  }

  .feed-main {
    padding-top: 3.1rem;
  }

  .feed-stream {
    gap: 250px;
  }

  .feed-stream > .feed-item:first-child {
    margin-top: 30vh;
  }

  .nav-wordmark-emphasis {
    font-size: 1.22rem;
  }

  #progress-value {
    font-size: 1.22rem;
  }

  .nav-wordmark-by {
    font-size: 0.92rem;
  }

  .nav-wordmark-name {
    font-size: 1.22rem;
  }

  .feed-item.landscape .feed-mask {
    width: min(96vw, 1360px);
  }

  .feed-item.portrait .feed-mask {
    width: min(44vw, 780px);
  }

  .feed-item.square .feed-mask {
    width: min(64vw, 980px);
  }

  .about-carousel-track {
    grid-auto-columns: min(520px, calc((100% - 0.8rem - 28px) * 0.75));
  }

  .about-card {
    aspect-ratio: 3 / 2;
  }
}

@media (max-width: 900px) {
  .menu-overlay-content {
    padding: calc(max(3.9rem, 8dvh) + env(safe-area-inset-top, 0px)) var(--nav-pad-x) 0;
  }

  .about-panel-top {
    display: block;
  }

  .about-panel-copy {
    position: relative;
    padding-top: 3.3rem;
    max-width: 100%;
  }

  .about-panel-contact {
    display: none;
  }

  .about-lang-switch {
    position: absolute;
    top: 0;
    right: 0;
    margin-top: 0;
    min-height: 34px;
    border-color: rgba(98, 91, 83, 0.28);
    background: rgba(255, 255, 255, 0.48);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
  }

  .about-lang-btn {
    min-width: 42px;
    min-height: 34px;
    padding: 0.44rem 0.58rem;
    font-size: 0.64rem;
    letter-spacing: 0.06em;
    font-weight: 600;
    color: #5a554f;
  }

  .about-lang-btn.is-active {
    background: rgba(17, 17, 17, 0.78);
    color: #fff;
  }

  .splash-media {
    width: min(61vw, 286px);
    aspect-ratio: 2 / 3;
  }

  .splash-counter {
    font-size: min(42vw, 12rem);
    opacity: 0.58;
  }

  .splash-name {
    font-size: clamp(1.3rem, 7.2vw, 2.35rem);
  }

  .splash-role {
    margin-top: -0.08rem;
    font-size: clamp(0.62rem, 2.3vw, 0.78rem);
    letter-spacing: 0.12em;
  }

  .splash-copy {
    width: min(86vw, 420px);
    bottom: 0.7rem;
  }

  .splash-copy p {
    font-size: 0.42rem;
  }

  .about-panel-text {
    margin-top: 0.92rem;
  }
}

@media (max-width: 900px) and (orientation: landscape) {
  .lightbox.media-video #lightbox-video {
    width: 100vw;
    max-width: 100vw;
    height: auto;
    max-height: 100dvh;
  }

  .lightbox-close {
    top: 0.45rem;
  }
}
