/*
 * Continuous Chinese-watercolor editorial theme.
 * One illustrated river asset travels through every chapter; the page content
 * remains live HTML so all existing project, thought and future interactions
 * keep working.
 */

:root {
  --wc-paper: #f8f6f1;
  --wc-paper-blue: #f1f5fb;
  --wc-ink: #31437f;
  --wc-ink-soft: rgba(49, 67, 127, .62);
  --wc-rule: rgba(73, 94, 154, .18);
  --wc-rule-strong: rgba(73, 94, 154, .34);
  --wc-wash: rgba(205, 221, 248, .34);
}

body {
  color: var(--wc-ink);
  background:
    linear-gradient(rgba(255, 255, 255, .42), rgba(255, 255, 255, .42)),
    var(--wc-paper);
}

main {
  position: relative;
  isolation: isolate;
}

main::before {
  position: absolute;
  z-index: -2;
  top: 100svh;
  right: 0;
  bottom: 0;
  left: 0;
  content: "";
  opacity: .26;
  background:
    linear-gradient(180deg, transparent 0 2%, rgba(248, 246, 241, .1) 4% 96%, transparent),
    url("assets/hero/cici-ink-river-v1.png") center top / 100% 100% no-repeat;
  filter: saturate(.82) contrast(.92);
  pointer-events: none;
}

.nav {
  position: fixed;
  color: rgba(40, 57, 113, .78);
  background: rgba(249, 248, 244, .76);
  border-bottom: 1px solid rgba(66, 83, 140, .1);
  box-shadow: 0 12px 34px rgba(77, 92, 142, .035);
  backdrop-filter: blur(15px) saturate(1.05);
  -webkit-backdrop-filter: blur(15px) saturate(1.05);
}

.nav.is-scrolled {
  background: rgba(249, 248, 244, .9);
}

.logo span,
.nav .say-hi {
  border-color: rgba(53, 70, 128, .26);
}

:where(#faces, #work, #thinking, #future, #life) {
  position: relative;
  isolation: isolate;
  color: var(--wc-ink);
  background: transparent !important;
  border-top: 1px solid var(--wc-rule);
}

#faces::after,
#work::after {
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  left: 0;
  height: 560px;
  content: "";
  opacity: .2;
  background: url("assets/hero/cici-ink-river-v1.png") center 42% / 112% auto no-repeat;
  filter: saturate(.72) contrast(.9);
  mask-image: linear-gradient(180deg, #000 0 68%, transparent);
  pointer-events: none;
}

#faces::after {
  background-position: 28% 50%;
  transform: scaleX(-1);
}

:where(#faces, #work, #thinking, #future, #life)::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, .72), transparent 32%),
    linear-gradient(120deg, rgba(249, 247, 242, .84), rgba(238, 244, 252, .66));
  pointer-events: none;
}

.section-label,
.section-label.light {
  color: var(--wc-ink-soft);
}

.section-label span {
  border-color: var(--wc-rule-strong);
  background: rgba(255, 255, 255, .28);
}

:where(.work, .lake-heading, .future-heading, .life-universe > header) h2 {
  color: var(--wc-ink) !important;
  font-size: clamp(38px, 5.2vw, 72px) !important;
  line-height: 1 !important;
  letter-spacing: -.045em !important;
}

/* About / résumé: a calm editorial biography, not a film card. */
.cinematic-profile {
  min-height: 0;
  padding: 120px 6vw 110px;
}

.cinematic-profile__chrome,
.cinematic-stage__beam,
.cinematic-stage__grain,
.cinematic-meta--top,
.cinematic-timecode {
  display: none;
}

.cinematic-stage {
  display: grid;
  grid-template-columns: 180px minmax(300px, .9fr) minmax(360px, 1.35fr);
  grid-template-areas:
    "portrait identity traits"
    "credits credits credits"
    "potential potential potential"
    "download download download";
  gap: 42px 36px;
  min-height: 0;
  margin-top: 52px;
  padding: 0;
  color: var(--wc-ink);
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.cinematic-portrait {
  grid-area: portrait;
  position: relative;
  inset: auto;
  width: 180px;
  height: 180px;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(76, 95, 153, .22);
  border-radius: 28px;
  background: rgba(224, 231, 247, .48);
  box-shadow: 0 20px 55px rgba(78, 94, 145, .08);
  transform: none;
}

.cinematic-portrait::before {
  position: absolute;
  z-index: 2;
  inset: auto 18px 18px;
  content: "个人照片 / 1:1";
  color: rgba(63, 80, 138, .55);
  font: 8px var(--mono);
  letter-spacing: .16em;
}

.cinematic-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 17%;
  opacity: .74;
  filter: grayscale(.35) contrast(.82) brightness(1.18);
}

.cinematic-portrait__edge {
  display: none;
}

.cinematic-identity {
  grid-area: identity;
  align-self: start;
  padding: 2px 0 0;
}

.cinematic-identity > p:first-child {
  color: var(--wc-ink-soft);
}

.cinematic-identity h2 {
  margin: 13px 0 0;
  color: var(--wc-ink);
  font-size: clamp(48px, 6vw, 82px);
  line-height: .9;
}

.cinematic-identity h3 {
  margin: 17px 0;
  color: var(--wc-ink);
  font-size: clamp(24px, 2.7vw, 38px);
  font-weight: 400;
}

.cinematic-identity__summary {
  color: var(--wc-ink-soft) !important;
  line-height: 1.9;
}

.cinematic-traits {
  grid-area: traits;
  align-self: stretch;
  padding: 0;
  border: 0;
  background: transparent;
}

.cinematic-traits > p {
  margin: 0 0 20px;
  color: var(--wc-ink);
  font: 400 20px var(--serif);
}

.cinematic-traits ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 0;
  padding: 18px 0;
  border-top: 1px solid var(--wc-rule);
  border-bottom: 1px solid var(--wc-rule);
}

.cinematic-traits li {
  min-height: 80px;
  padding: 8px 18px;
  border-left: 1px solid var(--wc-rule);
  color: var(--wc-ink);
}

.cinematic-traits li:first-child {
  border-left: 0;
}

.cinematic-traits li i {
  color: #7a89c5;
}

.cinematic-traits li small {
  color: var(--wc-ink-soft);
}

.cinematic-credits {
  grid-area: credits;
  display: grid;
  grid-template-columns: 1.3fr .9fr;
  gap: 46px;
  padding: 32px 0 0;
  color: var(--wc-ink);
  border-top: 1px solid var(--wc-rule-strong);
  background: transparent;
}

.credit-column h3 {
  color: var(--wc-ink);
}

.credit-track article {
  color: var(--wc-ink);
  border-color: var(--wc-rule);
  background: transparent;
}

.credit-track :where(time, p, small) {
  color: var(--wc-ink-soft) !important;
}

.cinematic-potential {
  grid-area: potential;
  color: var(--wc-ink);
  border-color: var(--wc-rule);
  background: rgba(255, 255, 255, .12);
}

.cinematic-resume-download {
  grid-area: download;
  justify-self: end;
  color: var(--wc-ink);
  border-color: var(--wc-rule-strong);
}

/* Project archive: open folder index set directly on the paper. */
.work {
  padding: 115px 6vw 120px;
}

.work > header {
  margin: 45px 0 52px;
}

.project-folder,
.folder-shell,
.folder-page {
  width: 100%;
  max-width: none;
  margin: 0;
  color: var(--wc-ink);
  background: transparent !important;
  box-shadow: none !important;
}

.folder-tabs {
  gap: 0;
  padding: 0;
  border-bottom: 1px solid var(--wc-rule);
}

.folder-tabs button {
  min-height: 86px;
  color: rgba(49, 67, 127, .55);
  border-color: var(--wc-rule);
  background: rgba(255, 255, 255, .2);
  box-shadow: none;
}

.folder-tabs button.active {
  min-height: 92px;
  color: var(--wc-ink);
  background: rgba(255, 255, 255, .66);
  box-shadow: 0 16px 40px rgba(67, 86, 143, .08);
}

.folder-tabs button::after {
  background: #5872c0;
}

.folder-page {
  padding: 42px 1.2vw 30px;
  border: 0;
  border-radius: 0;
}

.folder-page-header {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--wc-rule);
}

.folder-page-header h3,
.project-file-copy strong {
  color: var(--wc-ink);
}

.folder-page-header p,
.project-file-description,
.project-file-data,
.folder-page-header > div:last-child {
  color: var(--wc-ink-soft);
}

.folder-documents {
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid var(--wc-rule);
  border-radius: 16px;
  background: rgba(255, 255, 255, .18);
}

.project-file {
  min-height: 160px;
  color: var(--wc-ink);
  border-color: var(--wc-rule);
  background: transparent;
}

.project-file:hover {
  background: rgba(255, 255, 255, .48);
}

.project-file-cover {
  overflow: hidden;
  border: 1px solid rgba(74, 93, 150, .13);
  background: rgba(222, 231, 247, .45);
}

.project-file-cover img {
  filter: saturate(.58) contrast(.86) brightness(1.08);
}

.project-file-arrow {
  filter: none;
  opacity: .58;
}

.folder-detail {
  color: var(--wc-ink);
  background: rgba(248, 247, 243, .92);
}

/* Thinking: retain the interactive truth mirror in a daylight ink lake. */
.lake-section {
  padding-top: 110px;
}

.lake-heading {
  padding: 0 6vw 52px;
}

.thought-lake {
  min-height: 690px;
  height: min(760px, 72vw);
  color: var(--wc-ink);
  background:
    linear-gradient(rgba(247, 247, 244, .5), rgba(225, 236, 250, .32)),
    url("assets/hero/cici-ink-river-v1.png") center 62% / 130% auto no-repeat;
}

.lake-sky {
  background: linear-gradient(180deg, rgba(249, 247, 242, .48), rgba(224, 233, 248, .22));
}

.lake-moon {
  opacity: .42;
  background: radial-gradient(circle at 38% 36%, #fff7ec, #f0d9c8 57%, #b9c7e4);
  box-shadow: 0 0 70px rgba(150, 169, 217, .18);
}

.lake-cloud,
.lake-mountains,
.lake-figure {
  opacity: .18;
}

.lake-water {
  background: linear-gradient(180deg, rgba(202, 218, 242, .04), rgba(160, 190, 229, .22));
}

.water-line {
  background: linear-gradient(90deg, transparent, rgba(64, 89, 156, .3), transparent);
}

.reflection {
  color: var(--wc-ink);
  filter: none;
}

.reflection small {
  color: rgba(50, 68, 128, .45);
}

.reflection:hover {
  color: #4964b4;
}

.reflection > .reflection-copy {
  opacity: .1;
}

.thought-bubble {
  color: var(--wc-ink);
  border-color: var(--wc-rule);
  background: rgba(250, 249, 246, .9);
  box-shadow: 0 22px 55px rgba(58, 76, 132, .12);
}

/* Future scenes: the existing connected 2.5D road remains functional, now on
   the same pale river landscape instead of a separate neon universe. */
.future-lab {
  padding-top: 110px;
  overflow: hidden;
}

.future-heading {
  position: relative;
  z-index: 4;
  padding: 0 6vw 28px;
}

.future-stage {
  color: var(--wc-ink);
  background:
    linear-gradient(rgba(246, 247, 245, .28), rgba(224, 234, 250, .22)),
    url("assets/hero/cici-ink-river-v1.png") center 55% / 138% auto no-repeat;
  border-top: 1px solid var(--wc-rule);
  border-bottom: 1px solid var(--wc-rule);
}

.future-stage::before {
  opacity: .18;
}

.future-depth,
.future-stage-note {
  color: var(--wc-ink-soft);
}

.future-road-network {
  opacity: .68;
  filter: saturate(.62) brightness(1.12);
}

.world-scene-image {
  filter: saturate(.72) contrast(.92) drop-shadow(0 25px 30px rgba(68, 81, 135, .13));
}

.world-label {
  color: var(--wc-ink);
  border-color: var(--wc-rule-strong);
}

.world-label small,
.world-label i {
  color: var(--wc-ink-soft);
}

.world-detail {
  color: var(--wc-ink);
  background: rgba(249, 248, 244, .9);
}

/* Life archive: loose photographs beside the same river, connected by fine ink. */
.life-universe {
  padding: 110px 6vw 90px;
  color: var(--wc-ink);
}

.life-universe::before {
  opacity: .22;
  background:
    linear-gradient(rgba(248, 247, 243, .68), rgba(239, 244, 251, .48)),
    url("assets/hero/cici-ink-river-v1.png") center 70% / 138% auto no-repeat;
  mask-image: none;
}

.life-universe > header {
  margin: 40px 0 24px;
}

.fragment-universe {
  height: 760px;
}

.fragment-lines path {
  stroke: rgba(58, 79, 142, .3);
}

.fragment-lines circle,
.fragment-star {
  background: #687fca;
  fill: #687fca;
  box-shadow: 0 0 12px rgba(93, 118, 194, .3);
}

.fragment-universe figure::before {
  border-color: rgba(69, 89, 149, .18);
}

.fragment-universe figure::after {
  background: #6e82c3;
  box-shadow: 0 0 10px rgba(88, 111, 184, .3);
}

.fragment-universe figure button {
  background: rgba(251, 250, 247, .86) !important;
  box-shadow: 0 26px 60px rgba(60, 76, 127, .12);
}

.fragment-universe img,
.fragment-universe figure:hover img {
  filter: saturate(.72) contrast(.93) brightness(1.02) !important;
}

.fragment-universe figcaption {
  color: var(--wc-ink) !important;
  border-color: var(--wc-rule) !important;
  background: rgba(249, 248, 244, .84) !important;
}

footer {
  color: var(--wc-ink);
  background: #eef3fa;
  border-top: 1px solid var(--wc-rule);
}

footer > div {
  color: var(--wc-ink-soft);
}

@media (max-width: 900px) {
  main::before {
    background-size: 180% 100%;
  }

  .cinematic-profile {
    padding-inline: 5vw;
  }

  .cinematic-stage {
    grid-template-columns: 140px 1fr;
    grid-template-areas:
      "portrait identity"
      "traits traits"
      "credits credits"
      "potential potential"
      "download download";
  }

  .cinematic-portrait {
    width: 140px;
    height: 140px;
  }

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

  .cinematic-traits li {
    border-top: 1px solid var(--wc-rule);
    border-left: 0;
  }

  .cinematic-traits li:first-child {
    border-top: 0;
  }

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

  .folder-tabs {
    overflow-x: auto;
  }

  .folder-tabs button {
    flex: 0 0 190px;
  }
}

@media (max-width: 620px) {
  .cinematic-stage {
    grid-template-columns: 1fr;
    grid-template-areas:
      "portrait"
      "identity"
      "traits"
      "credits"
      "potential"
      "download";
  }

  .cinematic-portrait {
    width: 168px;
    height: 168px;
  }

  .project-file {
    min-height: 132px;
  }

  .thought-lake {
    height: 820px;
  }
}

@media (prefers-reduced-motion: reduce) {
  main::before,
  .thought-lake,
  .future-stage,
  .life-universe::before {
    background-attachment: scroll;
  }
}

/* About / résumé — flat watercolor editorial sheet. */
#faces.resume-editorial-section {
  min-height: 100svh;
  padding: 112px 5.6vw 88px;
  overflow: hidden;
}

#faces.resume-editorial-section::after {
  z-index: -1;
  height: 78%;
  opacity: .2;
  background-position: 72% 4%;
  background-size: 104% auto;
  transform: none;
  mask-image: linear-gradient(180deg, #000 0 75%, transparent 100%);
}

.resume-editorial-section > .section-label {
  margin-bottom: 34px;
  font-size: 10px;
  letter-spacing: .14em;
}

.resume-editorial {
  width: min(1500px, 100%);
  margin: 0 auto;
  color: var(--wc-ink);
}

.resume-editorial__intro {
  position: relative;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 34px;
  min-height: 210px;
  align-items: center;
}

.resume-editorial__portrait {
  position: relative;
  width: 150px;
  aspect-ratio: 1;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(83, 103, 169, .2);
  border-radius: 18px;
  background: rgba(231, 235, 248, .5);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6);
}

.resume-editorial__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 15%;
  opacity: .2;
  filter: grayscale(1) contrast(.7) brightness(1.35) sepia(.18) hue-rotate(185deg);
}

.resume-editorial__portrait figcaption {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  color: rgba(55, 73, 139, .65);
  font: 500 13px/1.6 var(--sans);
  letter-spacing: .08em;
}

.resume-editorial__portrait figcaption small {
  font: 9px var(--mono);
  letter-spacing: .14em;
}

.resume-editorial__about {
  position: relative;
  z-index: 2;
  align-self: center;
  width: min(100%, clamp(560px, 55vw, 820px));
  min-width: 0;
}

.resume-editorial__eyebrow {
  margin: 0 0 9px;
  color: var(--wc-ink-soft);
  font: 9px var(--mono);
  letter-spacing: .18em;
}

.resume-editorial__about h2 {
  margin: 0 0 17px;
  color: var(--wc-ink);
  font: 400 clamp(32px, 3.2vw, 48px)/1 var(--serif);
  letter-spacing: .03em;
}

.resume-editorial__about > p:not(.resume-editorial__eyebrow) {
  width: 100%;
  max-width: none;
  margin: 5px 0;
  color: rgba(48, 68, 132, .72);
  font-size: 13px;
  line-height: 1.85;
  text-wrap: pretty;
  overflow-wrap: anywhere;
}

.resume-editorial__river {
  position: absolute;
  z-index: 0;
  top: -82px;
  right: -8vw;
  width: min(62vw, 920px);
  height: 360px;
  opacity: .44;
  background: url("assets/hero/cici-ink-river-v1.png") 62% 10% / 150% auto no-repeat;
  filter: saturate(.75) contrast(.9);
  mask-image: radial-gradient(ellipse 88% 70% at 55% 48%, #000 48%, transparent 100%);
  pointer-events: none;
}

.resume-editorial__river span {
  position: absolute;
  top: 47%;
  left: 55%;
  width: 34px;
  height: 8px;
  border-radius: 50%;
  background: rgba(64, 78, 119, .22);
  box-shadow: 0 5px 12px rgba(61, 78, 130, .13);
  animation: resumeBoat 6s ease-in-out infinite;
}

.resume-editorial__columns {
  display: grid;
  grid-template-columns: minmax(0, 1.72fr) minmax(300px, .8fr);
  gap: clamp(50px, 7vw, 120px);
  margin-top: 38px;
}

.resume-history-block + .resume-history-block,
.resume-index-block + .resume-index-block {
  margin-top: 30px;
}

.resume-history-block > header,
.resume-index-block > header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 13px;
}

.resume-history-block > header::after,
.resume-index-block > header::after {
  height: 1px;
  flex: 1;
  content: "";
  background: var(--wc-rule-strong);
}

.resume-history-block h3,
.resume-index-block h3 {
  margin: 0;
  color: var(--wc-ink);
  font: 400 20px/1 var(--serif);
  letter-spacing: .08em;
}

.resume-history-block header span,
.resume-index-block header span {
  order: 2;
  color: var(--wc-ink-soft);
  font: 8px var(--mono);
  letter-spacing: .16em;
  white-space: nowrap;
}

.resume-history-block > header::after,
.resume-index-block > header::after {
  order: 3;
}

.resume-history-list {
  position: relative;
  display: grid;
  gap: 0;
  padding-left: 16px;
}

.resume-history-list::before {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 4px;
  width: 1px;
  content: "";
  background: rgba(71, 92, 159, .28);
}

.resume-history-list article {
  position: relative;
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr);
  gap: 25px;
  min-height: 94px;
  padding: 12px 0 18px 15px;
}

.resume-history-list article::before {
  position: absolute;
  top: 17px;
  left: -15px;
  width: 7px;
  height: 7px;
  content: "";
  border: 2px solid #7183c0;
  border-radius: 50%;
  background: #f7f7f5;
}

.resume-history-list time {
  color: rgba(59, 79, 145, .68);
  font: 10px var(--mono);
  letter-spacing: .08em;
  white-space: nowrap;
}

.resume-history-list h4 {
  margin: -2px 0 7px;
  color: var(--wc-ink);
  font: 500 15px/1.5 var(--sans);
  letter-spacing: .02em;
}

.resume-history-list p {
  max-width: 680px;
  margin: 0;
  color: rgba(53, 72, 134, .63);
  font-size: 11px;
  line-height: 1.75;
}

.resume-history-list small {
  display: block;
  margin-top: 8px;
  color: rgba(53, 72, 134, .48);
  font: 8px var(--mono);
  letter-spacing: .08em;
}

.resume-history-list--compact article {
  min-height: 70px;
}

.resume-editorial__sidebar {
  position: relative;
  z-index: 1;
}

.resume-icon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px 10px;
  margin: 0;
  padding: 4px 0 0;
  list-style: none;
}

.resume-icon-grid li {
  display: grid;
  justify-items: center;
  gap: 8px;
  color: rgba(49, 67, 127, .72);
  font-size: 10px;
  text-align: center;
}

.resume-icon-grid img {
  width: 25px;
  height: 25px;
  opacity: .72;
  filter: invert(32%) sepia(24%) saturate(1285%) hue-rotate(188deg) brightness(94%) contrast(90%);
}

.resume-potential-links {
  display: grid;
  gap: 0;
}

.resume-potential-links button {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 8px;
  padding: 10px 0;
  color: rgba(48, 66, 126, .74);
  font: 11px var(--sans);
  text-align: left;
  border: 0;
  border-bottom: 1px solid var(--wc-rule);
  background: transparent;
  cursor: pointer;
  transition: color .25s ease, transform .25s ease;
}

.resume-potential-links button:hover {
  color: var(--wc-ink);
  transform: translateX(4px);
}

.resume-potential-links button span {
  color: var(--wc-ink-soft);
  font: 8px var(--mono);
}

.resume-editorial__download {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 30px;
  padding: 12px 0;
  color: var(--wc-ink);
  font-size: 11px;
  text-decoration: none;
  border-top: 1px solid var(--wc-rule-strong);
  border-bottom: 1px solid var(--wc-rule-strong);
  transition: padding .25s ease, background-color .25s ease;
}

.resume-editorial__download:hover {
  padding-inline: 10px;
  background: rgba(222, 230, 248, .25);
}

.resume-editorial__download span {
  color: var(--wc-ink-soft);
  font: 8px var(--mono);
  letter-spacing: .14em;
}

@keyframes resumeBoat {
  0%, 100% { transform: translate3d(-10px, 1px, 0) rotate(-2deg); }
  50% { transform: translate3d(18px, -3px, 0) rotate(2deg); }
}

@media (max-width: 980px) {
  .resume-editorial__intro {
    grid-template-columns: 140px 1fr;
  }

  .resume-editorial__about {
    width: 100%;
  }

  .resume-editorial__river {
    opacity: .24;
  }

  .resume-editorial__columns {
    grid-template-columns: 1fr;
  }

  .resume-editorial__sidebar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .resume-index-block + .resume-index-block {
    margin-top: 0;
  }

  .resume-editorial__download {
    align-self: end;
  }
}

@media (max-width: 640px) {
  #faces.resume-editorial-section {
    padding: 96px 6vw 70px;
  }

  .resume-editorial__intro {
    grid-template-columns: 96px 1fr;
    gap: 20px;
  }

  .resume-editorial__portrait {
    width: 96px;
  }

  .resume-editorial__portrait figcaption {
    font-size: 11px;
  }

  .resume-editorial__river {
    top: 90px;
    right: -30vw;
    width: 130vw;
    opacity: .16;
  }

  .resume-history-list article {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .resume-editorial__sidebar {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .resume-editorial__river span {
    animation: none;
  }
}

/* Future worlds — five small islands joined by one continuous watercolor river. */
#future.future-lab {
  padding: 108px 6vw 118px;
  background: transparent !important;
}

#future.future-lab::after {
  display: none;
}

#future .future-heading {
  max-width: 1500px;
  margin: 44px auto 18px;
  padding: 0;
}

#future .future-heading h2 {
  margin-top: 14px;
  font-size: clamp(38px, 5vw, 66px) !important;
}

#future .future-stage {
  position: relative;
  width: min(1280px, 100%);
  height: 1370px;
  margin: 0 auto;
  overflow: visible;
  color: var(--wc-ink);
  border: 0;
  background: transparent;
}

#future .future-stage::before {
  position: absolute;
  z-index: 0;
  inset: -40px 7% -20px;
  content: "";
  opacity: .34;
  background: url("assets/hero/cici-ink-river-v1.png") center / 86% 100% no-repeat;
  filter: saturate(.78) contrast(.9);
  mask-image: linear-gradient(180deg, transparent 0, #000 5% 95%, transparent 100%);
  pointer-events: none;
}

#future .future-sky-decor,
#future .future-depth,
#future .future-road-network,
#future .future-stage-note {
  display: none;
}

#future .future-world:not(.is-active) {
  width: 340px;
  height: 255px;
  z-index: 2;
}

#future .world-office:not(.is-active) {
  top: 18px;
  right: 8%;
}

#future .world-restaurant:not(.is-active) {
  top: 270px;
  left: 9%;
}

#future .world-transit:not(.is-active) {
  top: 515px;
  right: 14%;
  left: auto;
}

#future .world-entertainment:not(.is-active) {
  top: 780px;
  left: 12%;
}

#future .world-home:not(.is-active) {
  top: 1040px;
  right: 7%;
}

#future .future-world:not(.is-active) .world-trigger::before {
  width: 66%;
  height: 55%;
  opacity: .32;
  background: radial-gradient(ellipse, rgba(201, 215, 247, .65), transparent 70%);
  filter: blur(14px);
}

#future .future-world:not(.is-active) .world-scene-image {
  width: 310px;
  height: 310px;
  filter:
    saturate(.9)
    contrast(.96)
    drop-shadow(0 24px 22px rgba(70, 83, 135, .13));
}

#future .future-world:not(.is-active) .world-label {
  top: 58%;
  width: 160px;
  padding: 9px 0 8px;
  color: var(--wc-ink);
  border: 0;
  border-top: 1px solid var(--wc-rule-strong);
  border-bottom: 1px solid var(--wc-rule);
  background: rgba(249, 248, 244, .5);
  box-shadow: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

#future .future-world:not(.is-active) .world-label strong {
  margin: 7px 0 5px;
  font-size: 17px;
}

#future .future-world:not(.is-active) .world-label small,
#future .future-world:not(.is-active) .world-label i {
  color: var(--wc-ink-soft);
}

#future .world-office:not(.is-active) .world-label,
#future .world-transit:not(.is-active) .world-label,
#future .world-home:not(.is-active) .world-label {
  right: -90px;
  left: auto;
}

#future .world-restaurant:not(.is-active) .world-label,
#future .world-entertainment:not(.is-active) .world-label {
  right: auto;
  left: -72px;
}

#future .future-world:not(.is-active) .world-trigger:hover .world-label {
  color: #26386f;
  background: rgba(244, 247, 252, .78);
  transform: translateY(-4px);
}

#future .future-world:not(.is-active) .world-trigger:hover .world-scene-image,
#future .future-world:not(.is-active) .world-trigger:focus-visible .world-scene-image {
  filter:
    saturate(1)
    contrast(1)
    drop-shadow(0 32px 26px rgba(65, 78, 130, .18));
  transform: translate3d(calc(-50% + var(--parallax-x)), calc(-52% + var(--parallax-y)), 20px) rotateX(var(--rotate-x)) rotateY(var(--rotate-y)) scale(1.025);
}

@media (max-width: 760px) {
  #future .future-stage {
    height: 1510px;
  }

  #future .future-stage::before {
    inset-inline: -20%;
    background-size: 130% 100%;
  }

  #future .future-world:not(.is-active) {
    width: 280px;
    height: 230px;
  }

  #future .future-world:not(.is-active) .world-scene-image {
    width: 265px;
    height: 265px;
  }

  #future .world-office:not(.is-active),
  #future .world-transit:not(.is-active),
  #future .world-home:not(.is-active) {
    right: 4%;
  }

  #future .world-restaurant:not(.is-active),
  #future .world-entertainment:not(.is-active) {
    left: 4%;
  }

  #future .future-world:not(.is-active) .world-label {
    top: 77%;
    right: 0 !important;
    left: 0 !important;
    margin: auto;
  }
}

/* One continuous paper-and-river world: calm backgrounds and soft section joins. */
:where(#faces, #work, #thinking, #future, #life) {
  background: rgba(248, 247, 243, .22) !important;
}

:where(#faces, #work, #thinking, #future, #life)::before {
  background:
    linear-gradient(180deg, rgba(250, 249, 246, .62), rgba(243, 246, 251, .38) 60%, rgba(249, 248, 244, .56)) !important;
}

#faces::after,
#work::after {
  opacity: .095;
  filter: saturate(.62) contrast(.88);
}

#thinking .thought-lake,
#future .future-stage,
#life .life-universe {
  background-color: transparent !important;
  box-shadow: none !important;
}

#thinking .thought-lake::before,
#life .life-universe::before {
  opacity: .12 !important;
}

.section-transition-ready {
  --section-reveal-y: 34px;
}

.section-transition-ready > .section-label,
.section-transition-ready > header,
.section-transition-ready > article,
.section-transition-ready > div:not(.section-label) {
  opacity: .22;
  transform: translate3d(0, var(--section-reveal-y), 0);
  filter: blur(5px);
  transition:
    opacity .9s cubic-bezier(.22, 1, .36, 1),
    transform 1.08s cubic-bezier(.22, 1, .36, 1),
    filter .92s cubic-bezier(.22, 1, .36, 1);
}

.section-transition-ready > header {
  transition-delay: .07s;
}

.section-transition-ready > article,
.section-transition-ready > div:not(.section-label) {
  transition-delay: .14s;
}

.section-transition-visible > .section-label,
.section-transition-visible > header,
.section-transition-visible > article,
.section-transition-visible > div:not(.section-label) {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: blur(0);
}

.resume-highlight-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.resume-highlight-list li {
  position: relative;
  padding-left: 18px;
  color: var(--wc-ink-mid);
  font-size: 13px;
  line-height: 1.65;
}

.resume-highlight-list li::before {
  position: absolute;
  top: .72em;
  left: 2px;
  width: 4px;
  height: 4px;
  content: "";
  border-radius: 50%;
  background: #7182c2;
  box-shadow: 0 0 0 4px rgba(113, 130, 194, .08);
}

@media (prefers-reduced-motion: reduce) {
  .section-transition-ready > * {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
}
