:root {
  --bg: #f1f1f1;
  --tile: #ffffff;
  --ink: #000000;
  --ink-muted: rgba(0, 0, 0, 0.4);
  --project: #161616;
  --accent: #4555ff;
  --linkedin: #0a66c2;
  --radius: clamp(18px, 2vw, 28px);
  --gap: 26px;
  --pad: clamp(12px, 1.6vw, 22px);
  --tile-caption-inset: clamp(1.15rem, 1.8vw, 1.55rem);
  --shadow: 0 1.2px 4.82px rgba(0, 0, 0, 0.12);
  --font: "DM Sans", "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

/* —— Bento grid (viewport-locked) —— */
.bento {
  height: 100dvh;
  width: 100%;
  padding: var(--gap);
  display: grid;
  gap: var(--gap);
  grid-template-columns: 2.79fr 0.94fr 1.56fr 1.23fr 2.69fr;
  grid-template-rows: 1.24fr 1.74fr 2.13fr;
  grid-template-areas:
    "time    sketch  sketch  portrait social"
    "project project bio     bio      phone"
    "project project notif   notif    phone";
}

.tile {
  --rx: 0px;
  --ry: 0px;
  --scale: 1;
  background: var(--tile);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  min-width: 0;
  min-height: 0;
  opacity: 0;
  transform: translateY(10px) scale(0.985);
  animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--i, 0) * 55ms);
  will-change: transform;
}

/* Clears entrance animation so transform is free for hover expand */
.tile.is-interactive {
  animation: none !important;
  opacity: 1;
  transform: translate3d(var(--rx), var(--ry), 0) scale(var(--scale));
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.25s ease;
  z-index: 1;
}

.tile.is-interactive.is-expanded {
  z-index: 2;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tile {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* —— Scroll-triggered reveals —— */
.reveal {
  opacity: 0;
  transform: translate3d(0, 1.15rem, 0);
  filter: blur(4px);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--reveal-i, 0) * 70ms);
  will-change: opacity, transform, filter;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

.tile.reveal {
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}

.tile--time {
  grid-area: time;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  padding: clamp(0.9rem, 1.8vh, 1.5rem) clamp(1rem, 2vw, 1.8rem);
}

.time__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(0.35rem, 0.9vh, 0.8rem);
  min-width: 0;
  flex: 1 1 auto;
  padding-right: 0.25rem;
}

.time__date {
  margin: 0;
  font-size: clamp(0.8rem, 1.15vw, 1.0625rem);
  font-weight: 400;
  letter-spacing: -0.3px;
  line-height: 1.15;
  color: var(--ink-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.time__place {
  margin: 0;
  font-size: clamp(0.9rem, 1.35vw, 1.2rem);
  font-weight: 400;
  letter-spacing: -0.5px;
  line-height: 1.2;
  color: var(--ink);
  white-space: nowrap;
}

.time__clock {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: clamp(0.35rem, 0.85vw, 0.75rem);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  flex: 0 0 auto;
  margin-left: auto;
}

.time__digits,
.time__period {
  font-size: clamp(1.5rem, 3.4vw, 3.875rem);
  font-weight: 400;
  letter-spacing: -1.2px;
  line-height: 1.15;
  color: var(--ink);
}

.tile--sketch {
  grid-area: sketch;
  padding: 0;
}

.sketch__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.tile--portrait {
  grid-area: portrait;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(0.9rem, 1.8vh, 1.5rem) clamp(1rem, 2vw, 1.8rem);
}

.portrait__img {
  width: min(100%, 9.4rem);
  aspect-ratio: 1;
  height: auto;
  max-height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.social {
  grid-area: social;
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: var(--gap);
  min-height: 0;
  animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--i, 0) * 55ms);
  opacity: 0;
}

.tile--social {
  opacity: 1;
  transform: translate3d(var(--rx, 0px), var(--ry, 0px), 0) scale(var(--scale, 1));
  animation: none;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: clamp(0.75rem, 1.4vw, 1.25rem);
  padding: clamp(0.75rem, 1.6vh, 1.5rem) clamp(1rem, 2vw, 1.8rem);
}

.tile--social:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.tile--social:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.social__linkedin-wordmark {
  width: clamp(5.5rem, 9vw, 8.7rem);
  height: auto;
  object-fit: contain;
  object-position: left center;
  flex-shrink: 0;
}

.social__dribbble-wordmark {
  width: clamp(5rem, 8.2vw, 7.9rem);
  height: auto;
  object-fit: contain;
  object-position: left center;
  flex-shrink: 0;
}

.social__out {
  color: #b0b0b0;
  display: grid;
  place-items: center;
  width: clamp(1.5rem, 2.4vw, 2.25rem);
  height: clamp(1.5rem, 2.4vw, 2.25rem);
  flex-shrink: 0;
  transition: color 0.2s ease, transform 0.2s ease;
}

.social__out svg {
  width: 100%;
  height: 100%;
}

.tile--social:hover .social__out {
  color: var(--ink);
  transform: translate(1px, -1px);
}

.tile--project {
  grid-area: project;
  background: #161616;
  color: #fff;
  box-shadow: 0 3.65px 14.62px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(1.6rem, 3.2vh, 2.7rem) 0 0;
  gap: clamp(1.75rem, 4vh, 2.75rem);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.project__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: center;
  gap: clamp(1.5rem, 3.2vh, 2.75rem);
  text-align: center;
  z-index: 2;
  width: 100%;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.project__brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.project__mark {
  width: 24.33px;
  height: 30.02px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.project__name {
  font-family: var(--font);
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
  color: #fff;
}

.project__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1rem, 2.2vh, 1.75rem);
  width: 100%;
}

.project__title {
  margin: 0;
  font-size: clamp(1.35rem, 2.6vw, 2.375rem);
  font-weight: 400;
  letter-spacing: -0.8px;
  line-height: 1.105;
  font-family: var(--font);
  color: #efefef;
  text-align: center;
}

.project__cta {
  display: inline-block;
  font-size: clamp(0.8rem, 1.35vw, 1.25rem);
  font-weight: 700;
  letter-spacing: 1.5px;
  line-height: 1.05;
  text-transform: uppercase;
  font-family: var(--font);
  color: #4555ff;
  transition: opacity 0.2s ease;
}

.project__cta:hover {
  opacity: 0.75;
}

.project__visual {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  margin-left: 32px;
  align-self: stretch;
  z-index: 1;
}

.project__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
  border-radius: 12px 0 0 0;
  display: block;
}

.project__fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 45%;
  background: linear-gradient(180deg, rgba(22, 22, 22, 0), #161616);
  pointer-events: none;
  z-index: 2;
}

.tile--bio {
  grid-area: bio;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: clamp(0.9rem, 3.5%, 1.35rem);
  padding: var(--tile-caption-inset) 8%;
  box-sizing: border-box;
  position: relative;
  cursor: pointer;
}

.bio__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  align-self: stretch;
  width: 100%;
  margin: 0;
  z-index: 1;
  pointer-events: none;
  flex-shrink: 0;
}

.bio__hint {
  margin: 0;
  padding: 0;
  font-size: clamp(0.55rem, 0.85vw, 0.6875rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.35);
  text-align: right;
}

.bio__wave {
  width: calc(clamp(2.4rem, 16%, 4rem) + 4px);
  height: calc(clamp(2.4rem, 16%, 4rem) + 4px);
  flex-shrink: 0;
  transform: translateX(-8px);
  transform-origin: top left;
}

.bio__wave svg {
  display: block;
  width: 100%;
  height: 100%;
}

.bio__text {
  margin-top: auto;
  margin-bottom: auto;
  width: 100%;
  align-self: stretch;
  font-size: clamp(1.05rem, 4.6vw, 1.55rem);
  font-weight: 400;
  letter-spacing: -0.8px;
  line-height: 1.22;
  font-family: var(--font);
  color: #000;
  text-align: left;
}

.bio__greeting {
  display: block;
  margin-bottom: 0.7em;
}

.tile--notifications {
  grid-area: notif;
  padding: 32px 32px 0;
  cursor: pointer;
}

.notifications__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.tile--phone {
  grid-area: phone;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  place-items: center;
  padding: var(--tile-caption-inset) clamp(0.4rem, 0.8vw, 0.75rem) 0;
  background: #fff;
}

.phone__hint {
  margin: 0;
  padding: 0 0 0.35rem;
  font-size: clamp(0.55rem, 0.85vw, 0.6875rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.35);
  text-align: center;
  z-index: 1;
}

.tile--phone .phone__video,
.tile--phone img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  display: block;
  border: 0;
  min-height: 0;
}

/* —— Narrow / short viewports: keep one screen, compress —— */
@media (max-aspect-ratio: 4/3) {
  .bento {
    grid-template-columns: 1.4fr 1fr 0.7fr 1.1fr;
    grid-template-rows: 0.9fr 1.5fr 1.8fr;
    grid-template-areas:
      "time    sketch  portrait social"
      "project bio     bio      phone"
      "project notif   notif    phone";
  }

  .project__title {
    max-width: none;
  }
}

@media (max-width: 720px) {
  body {
    overflow: auto;
  }

  .bento {
    height: auto;
    min-height: 100dvh;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
    grid-auto-rows: minmax(88px, auto);
    grid-template-areas:
      "time time"
      "portrait social"
      "bio bio"
      "project project"
      "sketch notif"
      "phone phone";
  }

  .tile--phone {
    min-height: 55vh;
  }

  .tile--project {
    min-height: 42vh;
  }
}

/* —— Custom cursor chip (dousanmiao-style, 36px pill) —— */
@media (pointer: fine) {
  .has-cursor-chip [data-cursor-text],
  .has-cursor-chip [data-cursor-text] * {
    cursor: none !important;
  }
}

.cursor-chip {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  height: 36px;
  width: auto;
  max-width: none;
  pointer-events: none;
  opacity: 0;
  scale: 0.92;
  transform: translate3d(-100px, -100px, 0) translate(-50%, -50%);
  transition: opacity 0.2s ease, scale 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.cursor-chip[data-active="true"] {
  opacity: 1;
  scale: 1;
}

.cursor-chip__surface {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 36px;
  border-radius: 999px;
  overflow: hidden;
  background: linear-gradient(
    -75deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.38),
    rgba(255, 255, 255, 0.08)
  );
  box-shadow:
    inset 0 0.125em 0.125em rgba(0, 0, 0, 0.05),
    inset 0 -0.125em 0.125em rgba(255, 255, 255, 0.55),
    0 0.25em 0.35em -0.1em rgba(0, 0, 0, 0.18),
    0 0 0.1em 0.15em inset rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.cursor-chip__label {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  padding: 0 1rem;
  color: #111;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 36px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cursor-chip.is-on-project .cursor-chip__label {
  color: #fff;
}

.cursor-chip.is-note {
  height: auto;
}

.cursor-chip.is-note .cursor-chip__surface {
  height: auto;
  max-width: 260px;
  padding: 0.65rem 0;
  border-radius: 18px;
}

.cursor-chip.is-note .cursor-chip__label {
  padding: 0 1rem;
  line-height: 1.35;
  white-space: normal;
  text-align: left;
  overflow: visible;
  text-overflow: unset;
}

.cursor-chip__shadow {
  position: absolute;
  inset: -0.45em;
  z-index: -1;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.16), transparent 70%);
  filter: blur(6px);
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .cursor-chip {
    display: none;
  }
}

/* —— About / case panels (inset modal over a blur) —— */
.about {
  --modal-inset: clamp(0.75rem, 2.4vw, 1.75rem);
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: var(--modal-inset) var(--modal-inset) 0;
  background: rgba(18, 18, 18, 0.22);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.45s ease,
    visibility 0.45s ease;
}

.about.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.about[hidden] {
  display: flex !important;
}

body.about-open {
  overflow: hidden;
}

body.about-open .cursor-chip {
  opacity: 0 !important;
  pointer-events: none;
}

body.about-open .has-cursor-chip [data-cursor-text],
body.about-open .has-cursor-chip [data-cursor-text] * {
  cursor: auto !important;
}

.about__close {
  position: absolute;
  top: calc(var(--modal-inset) + 0.85rem);
  right: calc(var(--modal-inset) + 0.85rem);
  z-index: 210;
  height: 40px;
  width: auto;
  min-width: 40px;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 8px 11px;
  border: 1px solid #ececec;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 6px 8px rgba(73, 72, 72, 0.02);
  color: #131313;
  cursor: pointer;
  overflow: hidden;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.about__close:hover {
  background: #fafafa;
  border-color: #e0e0e0;
}

.about__close-icon {
  width: 20px;
  height: 20px;
  display: block;
}

.about__scroll {
  position: relative;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.18) transparent;
  background: #fff;
  border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
  transform: translate3d(0, 8%, 0);
  transition: transform 0.95s cubic-bezier(0.22, 1, 0.36, 1);
}

.about.is-open .about__scroll {
  transform: translate3d(0, 0, 0);
}

.shots .about__scroll {
  background: #fff;
}

.shots__inner {
  width: 100%;
  padding: 4.75rem 160px 5rem;
  box-sizing: border-box;
}

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

.shots__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
  margin: 0;
}

.shots__card {
  margin: 0;
  min-width: 0;
}

.shots__card img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 960px) {
  .shots__inner {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

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

.about__scroll.is-smooth-wheel {
  scroll-behavior: auto;
}

.about__inner {
  max-width: 48rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vh, 4rem) clamp(1.25rem, 4vw, 2.5rem)
    clamp(7rem, 22vh, 12rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2.5rem;
}

.about__avatar {
  width: clamp(6.5rem, 12vw, 9.4rem);
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
}

.about__stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2.5rem;
  width: 100%;
}

.about__block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  width: 100%;
}

.about__headline {
  margin: 0;
  max-width: 45rem;
  font-family: var(--font);
  font-size: clamp(1.5rem, 3.2vw, 2.375rem);
  font-weight: 400;
  letter-spacing: -1.1px;
  line-height: 1.2;
  color: #000;
}

.about__body {
  margin: 0;
  width: 100%;
  font-family: "Inter", var(--font);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: -0.1px;
  line-height: 1.375;
  color: #1a1a1c;
}

.about__label {
  margin: 0;
  font-family: "Inter", var(--font);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: -0.1px;
  line-height: 1.375;
  text-transform: uppercase;
  color: rgba(26, 26, 28, 0.6);
}

.about__list {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.25rem;
  width: 100%;
}

.about__role {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

.about__title {
  font-family: "Inter", var(--font);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.1px;
  line-height: 1.375;
  color: #1a1a1c;
}

.about__org,
.about__meta {
  font-family: "Inter", var(--font);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: -0.1px;
  line-height: 1.375;
  color: #1a1a1c;
}

.about__meta {
  flex-shrink: 0;
  white-space: nowrap;
}

.about__actions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  width: 100%;
  margin-top: 0.5rem;
}

.about__btn {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 2px;
  height: 32px;
  padding: 8px 7px;
  border: 1px solid #ececec;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 6px 8px rgba(73, 72, 72, 0.02);
  color: #131313;
  font-family: "Inter", var(--font);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.1px;
  line-height: 20px;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.about__btn span {
  padding: 0 4px;
}

.about__btn:hover {
  background: #fafafa;
  border-color: #e0e0e0;
}

.about__btn-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .about__row {
    flex-direction: column;
    gap: 0.15rem;
  }

  .about__meta {
    white-space: normal;
    color: rgba(26, 26, 28, 0.65);
  }
}

@media (prefers-reduced-motion: reduce) {
  .about,
  .about__scroll {
    transition: none;
  }

  .about__scroll {
    transform: none;
  }
}

.case {
  color: #fff;
}

.case .about__scroll {
  background: linear-gradient(180deg, #0b0b0b 0%, #1e1e1e 100%);
  scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
  overflow-x: hidden;
}

.case__close {
  background: transparent;
  border: none;
  box-shadow: none;
  color: #fff;
  padding: 9px 12px;
}

.case__close:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: transparent;
}

.case__inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 95px clamp(1.25rem, 4vw, 2.5rem) clamp(3rem, 8vh, 5rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
}

.case__stack,
.case__intro,
.case__block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: stretch;
  width: 100%;
}

.case__stack {
  gap: 40px;
}

.case__intro {
  gap: 40px;
}

.case__block {
  gap: 24px;
}

.case__brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 5px;
}

.case__mark {
  width: 24.33px;
  height: 30.02px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.case__name {
  font-family: var(--font);
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
  color: #fff;
}

.case__headline {
  margin: 0;
  width: 100%;
  font-family: var(--font);
  font-size: clamp(1.75rem, 3.4vw, 2.375rem);
  font-weight: 400;
  letter-spacing: -1.1px;
  line-height: 1.21;
  color: #fff;
}

.case__label {
  margin: 0;
  font-family: "Inter", var(--font);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: -0.1px;
  line-height: 1.375;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.case__body {
  margin: 0;
  width: 100%;
  font-family: "Inter", var(--font);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: -0.1px;
  line-height: 1.375;
  color: #fff;
}

.case__hijack {
  --hijack-vh: 72vh;
  position: relative;
  width: 100%;
  align-self: stretch;
  height: calc(var(--hijack-vh) * 4.85);
}

.case__hijack-pin {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  height: var(--hijack-vh);
  padding: 4.75rem 0 2.25rem;
  box-sizing: border-box;
}

.case__hijack-index {
  position: absolute;
  top: 5.05rem;
  right: 0;
  display: flex;
  gap: 0.28rem;
  font-family: "Inter", var(--font);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.38);
}

.case__hijack-index [data-hijack-index] {
  color: rgba(255, 255, 255, 0.82);
}

.case__hijack-stage {
  position: relative;
  flex: 1;
  width: 100%;
  min-height: 0;
}

.hijack-scene {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transform: translate3d(0, 1.5rem, 0);
  filter: blur(8px);
  pointer-events: none;
  overflow: auto;
  scrollbar-width: none;
}

.hijack-scene::-webkit-scrollbar {
  display: none;
}

.hijack-scene.is-active {
  pointer-events: auto;
  filter: none;
}

.hijack-scene[data-scene="path"] {
  justify-content: flex-start;
  padding-top: 0.35rem;
}

.hijack-scene[data-scene="impact"] {
  justify-content: center;
}

.showcase {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.showcase.case__hijack {
  --showcase-beats: 17;
  --showcase-gap: 16px;
  display: block;
  gap: 0;
  width: calc(100vw - 2 * var(--modal-inset));
  margin-left: calc(50% - 50vw + var(--modal-inset));
  height: calc(var(--hijack-vh) * (1 + var(--showcase-beats) * 1.5));
}

.showcase.case__hijack .showcase__pin {
  padding: 0;
  overflow: hidden;
}

.showcase__stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: none;
  min-height: 0;
  overflow: hidden;
  isolation: isolate;
}

.showcase__card {
  margin: 0;
  width: 100%;
}

.showcase.case__hijack .showcase__card {
  position: absolute;
  left: 50%;
  top: 50%;
  right: auto;
  bottom: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(1080px, calc(100% - 3.5rem));
  max-width: calc(100% - 3.5rem);
  margin: 0;
  opacity: 0;
  transform: translate3d(-50%, -50%, 0);
  pointer-events: none;
  transform-origin: center center;
  will-change: transform, opacity;
}

.showcase.case__hijack .showcase__card.is-active {
  z-index: 2;
  opacity: 1;
  pointer-events: auto;
}

.showcase.case__hijack .showcase__card.is-active + .showcase__card {
  z-index: 1;
  opacity: 1;
  transform: translate3d(-50%, calc(-50% + var(--hijack-vh) * 0.68 + var(--showcase-gap)), 0);
}

.showcase__card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
}

.showcase.case__hijack .showcase__card img {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: calc(var(--hijack-vh) * 0.68);
  object-fit: contain;
}

.hijack-typed {
  white-space: pre-wrap;
}

.hijack-rest {
  white-space: pre-wrap;
  color: transparent;
}

.hijack-caret {
  display: inline-block;
  width: 1.5px;
  height: 0.9em;
  margin: 0 1px -0.08em;
  background: currentColor;
  animation: hijack-caret 1.05s steps(1) infinite;
  vertical-align: baseline;
}

.hijack-caret[hidden] {
  display: none;
}

@keyframes hijack-caret {
  50% {
    opacity: 0;
  }
}

.compare-wrap {
  margin: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.compare__caption {
  margin: 0;
  font-family: "Inter", var(--font);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: -0.1px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.45);
  text-align: left;
}

.compare {
  --split: 53%;
  --compare-max-h: min(64vh, 560px);
  --compare-ratio: 4392 / 2664;
  position: relative;
  width: 100%;
  max-width: calc(var(--compare-max-h) * 4392 / 2664);
  aspect-ratio: var(--compare-ratio);
  max-height: var(--compare-max-h);
  border-radius: 8px;
  overflow: hidden;
  background: transparent;
  user-select: none;
  touch-action: none;
}

.compare__layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: left top;
  pointer-events: none;
  display: block;
}

.compare__layer--left {
  clip-path: inset(0 calc(100% - var(--split)) 0 0);
}

.compare__divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--split);
  z-index: 2;
  width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.compare__divider::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: #cfcfcf;
  transform: translateX(-50%);
}

.compare__knob {
  position: relative;
  z-index: 1;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(180deg, #6f7cff 0%, #4555ff 48%, #7a4dff 100%);
  box-shadow:
    0 4px 14px rgba(69, 85, 255, 0.38),
    0 0 0 1px rgba(255, 255, 255, 0.18) inset;
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.compare__knob svg {
  display: block;
}

.compare__range {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: none;
  opacity: 0;
  cursor: ew-resize;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
}

.compare__range::-webkit-slider-runnable-track,
.compare__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  border: none;
  box-shadow: none;
}

.compare__range::-moz-range-track,
.compare__range::-moz-range-thumb,
.compare__range::-moz-range-progress {
  appearance: none;
  background: transparent;
  border: none;
  box-shadow: none;
}

.case__steps {
  margin: 0;
  padding: 0 0 0 21px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.375rem;
  font-family: "Inter", var(--font);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: -0.1px;
  line-height: 1.375;
  color: #fff;
}

.hijack-scene[data-scene="compare"] {
  overflow: visible;
}

.hijack-scene[data-scene="compare"] .compare-wrap {
  width: min(
    980px,
    calc(100vw - 2 * var(--modal-inset) - 3.5rem),
    calc(min(64vh, 560px) * 4392 / 2664)
  );
  max-width: none;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.hijack-scene[data-scene="compare"] .compare {
  max-width: none;
  max-height: min(64vh, 560px);
}

.case__hijack .case__steps {
  gap: 0;
}

.case__hijack .case__steps li {
  height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translate3d(0, 0.55rem, 0);
}

.case__hijack .case__steps li.is-open {
  height: auto;
  opacity: 1;
  overflow: visible;
  transform: none;
}

.case__hijack .case__steps li.is-open + li.is-open {
  margin-top: 1.375rem;
}

.case__steps li::marker {
  color: #fff;
}

.case__steps p {
  margin: 0;
}

.case__steps strong {
  font-weight: 600;
}

.case__steps strong::after {
  content: "\A";
  white-space: pre;
}

.case__blog {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 2px;
  height: 32px;
  padding: 8px 7px;
  border: 1px solid #ececec;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 6px 8px rgba(73, 72, 72, 0.02);
  color: #131313;
  font-family: "Inter", var(--font);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.1px;
  line-height: 20px;
  text-decoration: none;
  cursor: pointer;
}

.case__blog:hover {
  background: #f6f6f6;
}

.case__blog span {
  padding: 0 4px;
}

.case__blog-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .case__inner {
    padding-top: 4.5rem;
  }

  .case__hijack-pin {
    padding-top: 4.25rem;
  }

  .case__hijack-index {
    top: 4.55rem;
  }

  .showcase.case__hijack .showcase__pin {
    padding: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .case__hijack {
    height: auto;
  }

  .showcase.case__hijack {
    height: auto;
    width: 100%;
    margin-left: 0;
  }

  .case__hijack-pin {
    position: relative;
    height: auto;
    padding: 0;
  }

  .case__hijack-index {
    display: none;
  }

  .case__hijack-stage {
    display: flex;
    flex-direction: column;
    gap: 40px;
  }

  .hijack-scene {
    position: relative;
    inset: auto;
    opacity: 1;
    transform: none;
    filter: none;
    pointer-events: auto;
    overflow: visible;
  }

  .showcase.case__hijack .showcase__stage {
    position: relative;
    inset: auto;
    left: auto;
    transform: none;
    width: 100%;
    overflow: visible;
    display: flex;
    flex-direction: column;
    gap: var(--showcase-gap, 16px);
  }

  .showcase.case__hijack .showcase__card {
    position: relative;
    left: auto;
    top: auto;
    inset: auto;
    width: 100%;
    max-width: none;
    opacity: 1;
    transform: none;
    filter: none;
    pointer-events: auto;
    will-change: auto;
  }

  .showcase.case__hijack .showcase__card img {
    max-height: none;
  }

  .hijack-caret {
    display: none;
  }

  .hijack-rest {
    color: inherit;
  }

  .case__steps li,
  .case__hijack .case__steps li {
    height: auto;
    opacity: 1;
    overflow: visible;
    transform: none;
  }
}
