/*
 * Cardless editorial pass
 * Content is organised by type, scale, whitespace and rules rather than panels.
 */

:root {
  --editorial-rule: rgba(52, 58, 91, .16);
  --editorial-rule-strong: rgba(52, 58, 91, .28);
  --editorial-ink: #292e49;
  --editorial-muted: rgba(45, 51, 80, .52);
}

.cinematic-profile,
.work,
.lake-section,
.future-lab,
.potential-section,
.life-universe {
  border-top: 1px solid var(--editorial-rule);
}

/* About: one open film composition, not a framed résumé card. */
.cinematic-stage {
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.cinematic-stage::before {
  display: none;
}

.cinematic-stage::after {
  display: none;
}

.cinematic-stage__beam {
  right: -3%;
  opacity: .48;
}

.cinematic-scenes {
  gap: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.cinematic-scenes button {
  position: relative;
  min-width: 68px;
  padding: 10px 0 8px;
}

.cinematic-scenes button::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  content: "";
  background: currentColor;
  opacity: .18;
  transform: scaleX(.35);
  transform-origin: left;
  transition: opacity .3s ease, transform .3s ease;
}

.cinematic-scenes button:hover,
.cinematic-scenes button.is-active {
  background: transparent;
}

.cinematic-scenes button:hover::after,
.cinematic-scenes button.is-active::after {
  opacity: .72;
  transform: scaleX(1);
}

.cinematic-credits {
  padding-inline: 0;
  border-top: 1px solid var(--editorial-rule-strong);
  background: transparent;
}

.cinematic-potential {
  padding-inline: 0;
  border-color: var(--editorial-rule-strong);
  background: transparent;
}

.cinematic-potential__intro h3,
.cinematic-potential__path {
  color: var(--editorial-ink);
}

.cinematic-potential__intro p,
.cinematic-potential__intro > span,
.cinematic-potential__path small,
.cinematic-potential__path i,
.cinematic-potential__track {
  color: var(--editorial-muted);
}

.cinematic-potential__paths,
.cinematic-potential__path {
  border-color: var(--editorial-rule);
}

.cinematic-potential__track i {
  background: linear-gradient(90deg, var(--editorial-rule-strong), transparent);
}

.cinematic-traits {
  padding-right: 0;
}

.credit-track article {
  background: transparent;
}

/* Work: keep the literal building and windows, remove the showroom container. */
.project-city {
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.city-sky {
  left: -4vw;
  right: -4vw;
}

.building-scene {
  padding-inline: 0;
}

.building-detail,
.building-detail.is-visible {
  min-height: 0;
  padding: 34px 0;
  border: 0;
  border-top: 1px solid var(--editorial-rule-strong);
  border-bottom: 1px solid var(--editorial-rule);
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transform: none;
}

.building-detail > button {
  top: 24px;
  right: 0;
}

.building-detail h3 {
  margin-top: 48px;
}

.building-detail > div {
  gap: 7px 14px;
}

.building-detail > div span {
  position: relative;
  padding: 0;
  border: 0;
  border-radius: 0;
}

.building-detail > div span:not(:last-child)::after {
  position: absolute;
  right: -9px;
  content: "/";
  opacity: .35;
}

/* Future worlds: labels sit on the canvas like annotations. */
.world-label {
  width: 190px;
  padding: 14px 0 0;
  border: 0;
  border-top: 1px solid rgba(67, 70, 104, .34);
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.world-label::before {
  position: absolute;
  top: -3px;
  left: 0;
  width: 5px;
  height: 5px;
  content: "";
  border-radius: 50%;
  background: #746e96;
}

.world-trigger:hover .world-label {
  color: var(--editorial-ink);
  border-color: rgba(77, 72, 112, .58);
  background: transparent;
  transform: translateY(-5px);
}

.world-trigger:hover .world-label::before {
  box-shadow: 0 0 0 7px rgba(116, 110, 150, .1);
}

/* Growth: an editorial index with three direct entries. */
.potential-heading {
  margin-bottom: 30px;
}

.potential-orbit {
  display: grid;
  grid-template-columns: minmax(230px, .72fr) minmax(520px, 1.6fr);
  align-items: start;
  gap: 7vw;
  min-height: 0;
  max-width: 1080px;
  margin: 30px auto 90px;
  border: 0;
  border-radius: 0;
}

.potential-orbit::before,
.potential-orbit::after {
  display: none;
}

.potential-core {
  position: sticky;
  top: 150px;
  left: auto;
  grid-column: 1;
  grid-row: 1 / span 3;
  align-items: flex-start;
  justify-content: flex-start;
  width: auto;
  height: auto;
  padding: 26px 0 0;
  border: 0;
  border-top: 1px solid var(--editorial-rule-strong);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transform: none;
}

.potential-core strong {
  font-size: clamp(28px, 3.2vw, 46px);
  line-height: 1.08;
}

.potential-core i {
  margin: 2px 0;
}

.potential-card,
.potential-card:hover {
  position: relative;
  inset: auto;
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  align-items: baseline;
  width: 100%;
  min-height: 0;
  padding: 25px 0 29px;
  border: 0;
  border-top: 1px solid var(--editorial-rule);
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transform: none;
}

.potential-card {
  grid-column: 2;
}

.potential-card:last-child {
  border-bottom: 1px solid var(--editorial-rule);
}

.potential-card small {
  grid-column: 1;
}

.potential-card h3 {
  grid-column: 2;
  margin: 0;
  font-size: clamp(24px, 2.5vw, 35px);
  transition: color .25s ease, transform .35s var(--ease);
}

.potential-card:hover h3,
.potential-card:focus-visible h3 {
  color: #736b94;
  transform: translateX(10px);
}

.potential-card:focus-visible {
  outline: 1px solid rgba(87, 80, 126, .48);
  outline-offset: 8px;
}

/* Life: photographs are loose fragments, not picture cards. */
.fragment-universe figure::before,
.fragment-universe figure::after {
  display: none;
}

.fragment-universe figure button {
  overflow: visible;
  padding: 0;
  border: 0;
  background: transparent !important;
  box-shadow: none !important;
}

.fragment-universe figcaption {
  left: 0 !important;
  bottom: -27px !important;
  padding: 0 0 7px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--editorial-rule) !important;
  color: var(--editorial-muted) !important;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  font: 8px var(--mono) !important;
  letter-spacing: .12em;
}

@media (max-width: 1000px) {
  .building-detail,
  .building-detail.is-visible {
    margin-top: 34px;
  }

  .potential-orbit {
    grid-template-columns: minmax(200px, .65fr) minmax(420px, 1.35fr);
    gap: 5vw;
  }
}

@media (max-width: 840px) {
  .cinematic-credits {
    padding-inline: 28px;
  }

  .cinematic-potential {
    padding-inline: 28px;
  }

  .potential-orbit {
    grid-template-columns: 1fr;
  }

  .potential-core {
    position: relative;
    top: auto;
    grid-column: 1;
    grid-row: auto;
    margin-bottom: 36px;
  }

  .potential-card {
    grid-column: 1;
  }
}

@media (max-width: 700px) {
  .building-scene {
    padding-inline: 0;
  }

  .building-detail,
  .building-detail.is-visible {
    padding-inline: 0;
  }

  .world-label {
    width: 150px;
    padding-inline: 0;
  }
}

@media (max-width: 580px) {
  .cinematic-credits {
    padding-inline: 20px;
  }

  .cinematic-potential {
    padding-inline: 20px;
  }

  .cinematic-scenes {
    gap: 8px;
  }

  .potential-card,
  .potential-card:hover {
    grid-template-columns: 88px minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cinematic-scenes button::after,
  .potential-card h3 {
    transition: none !important;
  }
}

/* Future worlds: supplied 2.5D scene illustrations connected as one elevated route. */
.future-stage {
  height: 1450px;
}

.future-world {
  width: 480px;
  height: 360px;
}

.world-office {
  top: 0;
  right: 2%;
}

.world-restaurant {
  top: 245px;
  left: 0;
}

.world-transit {
  top: 505px;
  right: 2%;
  left: auto;
}

.world-entertainment {
  top: 780px;
  left: 0;
}

.world-home {
  top: 1055px;
  right: 2%;
}

.world-svg {
  display: none;
}

.world-scene-image {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 440px;
  height: 440px;
  object-fit: contain;
  filter:
    saturate(.94)
    drop-shadow(0 32px 24px rgba(74, 69, 116, .19))
    drop-shadow(0 0 22px rgba(255, 255, 255, .38));
  transform: translate3d(calc(-50% + var(--parallax-x)), calc(-50% + var(--parallax-y)), 0) rotateX(var(--rotate-x)) rotateY(var(--rotate-y));
  transform-origin: 50% 58%;
  transition: transform .55s var(--ease), filter .4s ease;
}

.world-trigger:hover .world-scene-image,
.world-trigger:focus-visible .world-scene-image {
  filter:
    saturate(1.04)
    drop-shadow(0 42px 30px rgba(72, 66, 115, .24))
    drop-shadow(0 0 28px rgba(255, 255, 255, .58));
  transform: translate3d(calc(-50% + var(--parallax-x)), calc(-52% + var(--parallax-y)), 32px) rotateX(var(--rotate-x)) rotateY(var(--rotate-y)) scale(1.035);
}

.world-office .world-label,
.world-transit .world-label,
.world-home .world-label {
  right: -12px;
  left: auto;
}

.world-restaurant .world-label,
.world-entertainment .world-label {
  right: auto;
  left: -12px;
}

.future-stage[data-route-focus] .road-flow {
  opacity: .95;
  animation-duration: 1.7s;
}

.future-stage[data-route-focus] .road-top {
  stroke-width: 47;
  filter: url(#roadGlow);
}

.future-world.is-active .world-scene-image {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 70px 52px rgba(69, 63, 109, .26));
  animation: future-image-breathe 6s ease-in-out infinite;
}

@keyframes future-image-breathe {
  0%, 100% {
    transform: translate3d(calc(-50% + var(--parallax-x)), calc(-50% + var(--parallax-y)), 0) rotateX(var(--rotate-x)) rotateY(var(--rotate-y));
  }
  50% {
    transform: translate3d(calc(-50% + var(--parallax-x)), calc(-52% + var(--parallax-y)), 0) rotateX(var(--rotate-x)) rotateY(var(--rotate-y)) scale(1.018);
  }
}

@media (max-width: 900px) {
  .future-stage {
    height: 1390px;
  }

  .future-world {
    width: 430px;
    height: 330px;
  }

  .world-scene-image {
    width: 400px;
    height: 400px;
  }

  .world-office,
  .world-transit,
  .world-home {
    right: -3%;
  }

  .world-restaurant,
  .world-entertainment {
    left: -3%;
  }

  .world-restaurant { top: 235px; }
  .world-transit { top: 480px; }
  .world-entertainment { top: 735px; }
  .world-home { top: 995px; }
}

@media (max-width: 620px) {
  .future-stage {
    height: 1280px;
  }

  .future-world {
    width: 340px;
    height: 270px;
  }

  .world-scene-image {
    width: 320px;
    height: 320px;
  }

  .world-office { top: 0; right: -44px; }
  .world-restaurant { top: 220px; left: -42px; }
  .world-transit { top: 440px; right: -44px; }
  .world-entertainment { top: 665px; left: -42px; }
  .world-home { top: 895px; right: -44px; }

  .world-office .world-label,
  .world-transit .world-label,
  .world-home .world-label {
    right: 8px;
  }

  .world-restaurant .world-label,
  .world-entertainment .world-label {
    left: 8px;
  }

  .future-world.is-active .world-scene-image {
    width: 116vw;
    height: 56vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .world-scene-image,
  .future-world.is-active .world-scene-image {
    animation: none !important;
    transition: none !important;
  }
}

/* Refined section hierarchy: compact editorial titles instead of poster-scale type. */
.work > header,
.life-universe > header {
  margin: 48px 0 56px;
}

.work > header h2,
.lake-heading h2,
.future-heading h2,
.life-universe > header h2 {
  max-width: none;
  font-size: clamp(34px, 4.2vw, 58px);
  line-height: 1.12;
  letter-spacing: -.035em;
}

.lake-heading {
  padding-bottom: 48px;
}

.lake-heading h2 {
  margin-top: 38px;
}

.future-heading {
  margin: 48px 0 34px;
}

.future-heading h2 {
  margin-top: 16px;
}

@media (max-width: 760px) {
  .work > header,
  .life-universe > header {
    margin: 36px 0 42px;
  }

  .work > header h2,
  .lake-heading h2,
  .future-heading h2,
  .life-universe > header h2 {
    font-size: clamp(32px, 10vw, 44px);
  }

  .lake-heading {
    padding-bottom: 38px;
  }

  .lake-heading h2 {
    margin-top: 28px;
  }

  .future-heading {
    margin-top: 36px;
  }
}

/* About: a single cinematic character introduction with tighter visual rhythm. */
.cinematic-profile {
  padding-top: 104px;
}

.cinematic-profile > .section-label {
  margin-bottom: 42px;
}

.cinematic-stage {
  display: grid;
  grid-template-columns: minmax(360px, .92fr) minmax(0, 1.18fr);
  grid-template-rows: minmax(560px, auto) auto auto;
  column-gap: clamp(52px, 7vw, 112px);
  width: min(100%, 1240px);
  min-height: 0;
  margin-inline: auto;
}

.cinematic-meta--top {
  top: 0;
  right: auto;
  left: 0;
  width: 100%;
}

.cinematic-portrait {
  position: relative;
  inset: auto;
  z-index: 1;
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  min-height: 560px;
  overflow: hidden;
}

.cinematic-portrait::before {
  position: absolute;
  z-index: 0;
  inset: 8% 4% 0;
  content: "";
  border: 1px solid rgba(71, 76, 118, .13);
  border-radius: 48% 48% 5% 5% / 34% 34% 5% 5%;
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 255, 255, .94), transparent 37%),
    linear-gradient(180deg, rgba(208, 220, 242, .5), rgba(229, 226, 242, .2));
}

.cinematic-portrait img {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  mix-blend-mode: normal;
  filter: grayscale(.42) contrast(1.04) brightness(.96);
  transform: none;
}

.cinematic-identity {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  max-width: 620px;
  padding: 96px 0 0;
}

.cinematic-identity h2 {
  margin-top: 18px;
  font-size: clamp(76px, 8.5vw, 118px);
  line-height: .8;
  letter-spacing: -.075em;
}

.cinematic-identity h3 {
  margin-top: 30px;
  font-size: clamp(27px, 3vw, 38px);
}

.cinematic-identity__summary {
  max-width: 520px;
  margin-top: 24px;
  line-height: 1.9;
}

.cinematic-traits {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  padding: 0 0 56px;
}

.cinematic-traits > p {
  padding-bottom: 14px;
}

.cinematic-traits ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 20px;
}

.cinematic-traits li {
  align-items: flex-start;
  padding-right: 18px;
}

.cinematic-traits li + li {
  border-left: 1px solid var(--editorial-rule);
  padding-left: 24px;
}

.cinematic-credits {
  grid-column: 1 / -1;
  grid-row: 2;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(48px, 7vw, 92px);
  padding: 34px 0 58px;
}

.credit-track {
  gap: 0;
}

.credit-track article {
  min-height: 150px;
  padding: 22px 0 24px;
}

.cinematic-potential {
  grid-column: 1 / -1;
  grid-row: 3;
  padding: 40px 0 100px;
}

.cinematic-resume-download {
  right: 0;
}

.cinematic-timecode {
  right: 0;
  left: 0;
}

/* Navigation: eased section travel and a subtle moving underline. */
:where(#faces, #work, #thinking, #future, #life) {
  scroll-margin-top: 84px;
}

.nav nav a {
  position: relative;
  transition: color .35s ease, opacity .35s ease, transform .5s var(--ease);
}

.nav.is-navigating nav a:not(.active) {
  opacity: .42;
}

.nav.is-navigating nav a.active {
  transform: translateY(-2px);
}

.nav.is-navigating nav a.active::after {
  animation: navigation-glide .85s var(--ease) both;
}

@keyframes navigation-glide {
  0% {
    opacity: .25;
    transform: scaleX(.15);
    transform-origin: left;
  }
  65% {
    opacity: 1;
    transform: scaleX(1);
    transform-origin: left;
  }
  100% {
    opacity: .75;
    transform: scaleX(1);
  }
}

@media (max-width: 840px) {
  .cinematic-stage {
    grid-template-columns: 1fr;
    grid-template-rows: auto 520px auto auto auto;
    row-gap: 0;
  }

  .cinematic-identity {
    grid-column: 1;
    grid-row: 1;
    padding: 82px 5vw 28px;
  }

  .cinematic-portrait {
    grid-column: 1;
    grid-row: 2;
    min-height: 520px;
  }

  .cinematic-traits {
    grid-column: 1;
    grid-row: 3;
    padding: 34px 5vw 52px;
  }

  .cinematic-credits {
    grid-column: 1;
    grid-row: 4;
    gap: 44px;
    padding-inline: 5vw;
  }

  .cinematic-potential {
    grid-column: 1;
    grid-row: 5;
    padding-inline: 5vw;
  }
}

@media (max-width: 580px) {
  .cinematic-profile {
    padding-top: 84px;
  }

  .cinematic-stage {
    grid-template-rows: auto 430px auto auto auto;
  }

  .cinematic-identity {
    padding-top: 68px;
  }

  .cinematic-identity h2 {
    font-size: clamp(64px, 24vw, 92px);
  }

  .cinematic-portrait {
    min-height: 430px;
  }

  .cinematic-traits ul,
  .cinematic-credits {
    grid-template-columns: 1fr;
  }

  .cinematic-traits li + li {
    border-left: 0;
    padding-left: 0;
  }

  .cinematic-credits {
    gap: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav.is-navigating nav a.active::after {
    animation: none;
  }
}
