/* Prioritize the creator, direct routes, and the artwork without changing the five scenes. */
.journey .opening-panel {
  top: 50%;
  max-width: min(54%, 44rem);
  transform: translate3d(calc(var(--px) * -.12), calc(-50% + var(--py) * -.12), 0);
}
.opening-panel #journey-opening-title {
  font: 400 clamp(5.2rem, 10.3vw, 10.8rem)/.86 Georgia, 'Yu Mincho', serif;
  letter-spacing: -.085em;
  color: #f0f5f8;
}
.opening-panel #journey-opening-title>span {
  display: block;
  font: 400 clamp(.875rem, 1.4vw, 1.1rem)/1.45 var(--sans);
  letter-spacing: .15em;
  color: #d6e6f2;
  margin: 1rem 0 0 .18em;
}
.opening-role {
  color: #e7f3fa;
  font-size: clamp(1rem, 1.65vw, 1.35rem);
  font-weight: 500;
  line-height: 1.7;
  margin: clamp(1.35rem, 3.8vh, 2.45rem) 0 0;
}
.opening-role>span { color: #a6c7dc; margin-inline: .26em; }
.opening-tagline {
  margin: .65rem 0 0;
  color: #b9cddd;
  font: 400 clamp(1rem, 1.8vw, 1.35rem)/1.6 var(--serif);
  letter-spacing: .08em;
}
.opening-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .65rem 1.35rem;
  margin-block-start: clamp(1.5rem, 4vh, 2.55rem);
}
.opening-works {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding-inline: 1.35rem;
  border: 1px solid #d4edf6;
  border-radius: 3px;
  background: #d4edf6;
  color: #132337;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s, border-color .2s;
}
.opening-works:hover { background: #f1faff; border-color: #f1faff; }
.journey .opening-experience {
  margin: 0;
  min-height: 48px;
  padding: .25rem .45rem .25rem .2rem;
  gap: .6rem;
  font-size: .975rem;
  letter-spacing: .01em;
  white-space: nowrap;
  color: #e4f2fb;
}
.opening-experience .seed-symbol { width: 1.65rem; height: 1.65rem; flex: 0 0 1.65rem; }
.opening-experience .seed-symbol:after { inset: -4px; }
.opening-experience .seed-symbol i { width: 5px; height: 5px; box-shadow: 0 0 10px 3px #afdfff9c; }
.opening-experience:hover>span:last-child { text-decoration: underline; text-underline-offset: .28em; }
.header nav a { min-height: 44px; display: inline-flex; align-items: center; }

/* One lead film, then a quiet catalogue with a single title for each work. */
.catalog>.section-heading, .catalog>.featured-work, .catalog-archive { max-width: 1440px; margin-inline: auto; }
.catalog>.section-heading { align-items: end; padding-bottom: 1.35rem; }
.catalog>.section-heading h1 { margin-top: 0; }
.catalog>.section-heading p { max-width: 27em; font-size: 1rem; margin-bottom: .2rem; }
.catalog>.featured-work {
  margin: 0 auto;
  padding-bottom: clamp(1.65rem, 4vw, 3.5rem);
}
.catalog .featured-work .catalog-meta h2 {
  margin: 0;
  font: 400 clamp(2.35rem, 5.25vw, 4.6rem)/1.08 Georgia, serif;
  letter-spacing: -.04em;
}
.catalog .featured-work .catalog-meta>span { font-size: .875rem; letter-spacing: .045em; }
.catalog .featured-work .catalog-meta p:not(.role) { margin-top: .8rem; font-size: 1rem; }
.catalog-archive { padding-block: clamp(1.7rem, 4vw, 3.65rem) 0; }
.catalog-archive>h2, .bio-detail section>h2 {
  font-family: var(--serif);
  font-weight: 400;
  color: #e4eef5;
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  margin: 0 0 1.25rem;
}
.catalog .catalog-grid { gap: clamp(1.2rem, 3vw, 2.7rem); }
.catalog-archive .catalog-item { border-bottom: 1px solid var(--editorial-line); padding-bottom: .5rem; }
.catalog .catalog-title { display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; }
.catalog .catalog-title h3 { color: #f0f5f8; font-size: clamp(1.15rem, 1.75vw, 1.5rem); line-height: 1.52; margin: 0; }
.catalog .catalog-type { display: inline-block; color: #afc6d7; font-size: .8rem; letter-spacing: .08em; }
.catalog .catalog-qualifiers { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem .65rem; }
.catalog .catalog-qualifiers .catalog-award { margin: 0; }
.catalog-archive .catalog-meta { gap: .45rem; }
.catalog .catalog-meta p:not(.role) { font-size: 1rem; line-height: 1.65; }
.catalog .catalog-meta .role { line-height: 1.6; }

/* Anchor the profile in verifiable facts and keep the short career below. */
.bio-heading>.eyebrow { font-size: .875rem; letter-spacing: .06em; }
.bio .bio-sub { font-size: 1rem; color: #e4f1fa; }
.bio-heading .bio-lead { margin-top: 1.3rem; max-width: 32em; font-size: 1rem; color: #c4d6e4; line-height: 1.85; }
.bio .bio-facts { margin: 0 0 clamp(1.8rem, 5vw, 3.3rem); }
.bio .bio-facts p { font-size: .875rem; line-height: 1.6; }
.bio .bio-facts small { font-size: .75rem; color: #adc1d0; }
.bio .career-path { margin-block: 1.4rem .35rem; }
.bio .career-path li { padding-bottom: 1.1rem; }
.bio .career-path li:before { top: .48rem; }
.bio .career-path h3 { margin-block: 0 .35rem; }
.bio .career-path p { font-size: 1rem; line-height: 1.65; }
.bio .bio-links { display: flex; flex-wrap: wrap; gap: 0 1.3rem; }
.bio .bio-links a { margin: .45rem 0 0; }

@media (max-width: 700px) {
  .journey .opening-panel {
    top: clamp(6.6rem, 17svh, 10rem);
    left: 7%;
    right: 7%;
    max-width: none;
    transform: none;
  }
  #journey .journey-topline { flex-wrap: nowrap; }
  #journey .journey-topline>span { flex-basis: auto; font-size: .67rem; white-space: nowrap; }
  .opening-panel #journey-opening-title { font-size: clamp(4.75rem, 19.8vw, 7rem); }
  .opening-panel #journey-opening-title>span { margin-top: .9rem; }
  .opening-role { margin-top: 1.3rem; }
  .opening-actions { gap: .7rem 1.05rem; margin-top: 1.45rem; }
  .opening-works { padding-inline: 1rem; }
  .journey .opening-experience { font-size: .9rem; }
  .catalog>.section-heading p { margin-top: .75rem; }
  .catalog .catalog-grid { gap: 1.6rem; }
  .catalog-archive .catalog-title { flex-wrap: wrap; }
  .bio-heading { padding-bottom: 1.2rem; }
  .bio-heading .bio-lead { max-width: none; }
}
@media (max-width: 360px) {
  .opening-panel #journey-opening-title { font-size: clamp(3.7rem, 21vw, 4.75rem); }
  .opening-role { font-size: .92rem; }
  .opening-actions { gap: .45rem .7rem; }
  .opening-works { padding-inline: .8rem; }
  .journey .opening-experience{ font-size: .85rem; }
}

/* Tide: reserve negative space for the line and action, never the character art. */
.journey[data-scene=tide] {
  --char-x: 0%;
  --char-y: -2%;
  --char-scale: .94;
}
.journey[data-scene=tide]::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(90deg, #07182bdc 0%, #07182b9c 34%, transparent 66%);
}
.journey[data-scene=tide] .continuity-frame { opacity: .21; }
.journey[data-scene=tide] .world-type { opacity: .58; }
.journey[data-scene=tide] .light-ribbons { opacity: .49; }
.journey[data-scene=tide] .tide-panel {
  left: 8%;
  right: auto;
  top: 49%;
  bottom: auto;
  max-width: 43%;
  transform: translate3d(calc(var(--px) * -.12), calc(-50% + var(--py) * -.12), 0);
}
.journey[data-scene=tide] .tide-panel h2 {
  font-size: clamp(1.875rem, 4.15vw, 4rem);
  line-height: 1.4;
}
@media (min-width: 1700px) {
  .journey[data-scene=tide] .tide-panel { left: 12%; }
}
@media (max-width: 700px) {
  .journey[data-scene=tide] {
    --char-x: -50%;
    --char-y: 0%;
    --char-scale: .96;
  }
  .journey[data-scene=tide]::before {
    background: linear-gradient(0deg, #07182bf2 4%, #07182bd9 32%, transparent 60%);
  }
  .journey[data-scene=tide]::after { display: none; }
  .journey[data-scene=tide] .character-track {
    top: clamp(3.35rem, 9%, 5.4rem);
    bottom: auto;
    left: 55%;
    right: auto;
    width: 80%;
    height: min(44%, clamp(14.4rem, 43svh, 23rem));
  }
  .journey[data-scene=tide] .tide-panel {
    left: 7%;
    right: 7%;
    top: clamp(21rem, 54svh, 63%);
    max-width: none;
    transform: none;
  }
  .journey[data-scene=tide] .tide-panel h2 { font-size: clamp(1.5rem, 6.8vw, 2rem); line-height: 1.31; }
  .journey[data-scene=tide] .tide-panel h2 br { display: revert; }
  .journey[data-scene=tide] .tide-panel .ripple-action { margin-top: .8rem; min-height: 48px; }
  .journey[data-scene=tide] .ripple-icon { width: 34px; height: 34px; }
}

/* Profile recognition: compact cards with a quiet badge for each result. */
.bio .bio-awards {
  display: grid;
  gap: .5rem;
  list-style: none;
  padding: 0;
  margin: 0 0 clamp(1.65rem, 4vw, 3.2rem);
}
.bio .bio-awards li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .65rem 1rem;
  min-height: 3.25rem;
  padding: .55rem .75rem;
  border: 1px solid #8ab5d03b;
  border-radius: 9px;
  background: linear-gradient(105deg, #192d41, #101d2c);
  color: #ebf3fa;
  font-size: .975rem;
  font-weight: 500;
  line-height: 1.45;
}
.bio .bio-awards li>span { min-width: 0; overflow-wrap: anywhere; }
.bio .bio-awards strong {
  padding: .2rem .48rem;
  border: 1px solid #85b8d474;
  border-radius: 5px;
  background: #294762;
  color: #e2f3ff;
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}
.bio .bio-milestone {
  max-width: 32em;
  margin-top: clamp(1.45rem, 4vw, 2.5rem);
  padding-top: 1.1rem;
  border-top: 1px solid var(--editorial-line);
}
.bio .bio-milestone h2 {
  margin: 0 0 .5rem;
  font: 400 1.15rem/1.4 var(--serif);
  color: #e4eef5;
}
.bio .bio-milestone p { font-size: 1rem; line-height: 1.75; }
.bio .bio-milestone strong { color: #d3eaf9; font-weight: 600; }
@media (max-width: 390px) {
  .bio .bio-awards li { gap: .45rem .55rem; padding-inline: .6rem; font-size: .9rem; }
  .bio .bio-awards strong { padding-inline: .38rem; }
}

/* Keep the English labels readable without relying on hover on touch screens. */
.header #navigation a {
  position: relative;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: .19rem;
  padding-block: .32rem .4rem;
  min-height: 44px;
  font-size: .875rem;
  line-height: 1.25;
  text-decoration: none;
}
.header #navigation .nav-en {
  font-size: .75rem;
  line-height: 1.2;
  letter-spacing: .065em;
  color: #adc1d3;
}
.header #navigation a::after {
  position: absolute;
  content: "";
  inset-inline: 0;
  bottom: 0;
  height: 1px;
  background: #a7d6ed;
  opacity: 0;
}
.header #navigation a[aria-current=page]::after { opacity: 1; }
.header #navigation a:is(:hover, :focus-visible, [aria-current=page]) .nav-en { color: #e8f5fd; }
.header #navigation .nav-contact:is(:hover, :focus-visible) { text-decoration: none; }
@media (prefers-reduced-motion: no-preference) {
  .header #navigation .nav-en { transition: color .18s ease-out; }
}
@media (max-width: 900px) {
  html[data-screen] .header #navigation a { padding-block: .32rem .4rem; }
}
@media (max-width: 590px) {
  html[data-screen] { --compact-header-height: 82px; }
  html[data-screen] .header {
    display: grid;
    grid-template-rows: 33px 47px;
    justify-content: stretch;
    justify-items: stretch;
    align-items: center;
    height: var(--compact-header-height);
    padding-inline: 5%;
  }
  html[data-screen] .header .wordmark {
    font-size: 1.5rem;
    justify-self: start;
    padding-top: .19rem;
    line-height: 1;
  }
  html[data-screen] .header #navigation {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(max-content, 1fr));
    justify-items: stretch;
    align-items: stretch;
    gap: 0;
    min-width: 0;
  }
  html[data-screen] .header #navigation a {
    align-items: center;
    padding-inline: .19rem;
    font-size: .76rem;
    line-height: 1.15;
    letter-spacing: 0;
  }
  html[data-screen] .header #navigation .nav-en {
    font-size: .72rem;
    letter-spacing: .035em;
  }
  html[data-screen] .header #navigation a::after { inset-inline: 13%; }
  html[data-screen] .experience-primary .journey { height: calc(100svh - var(--compact-header-height)); }
  html[data-screen] :is(#work, #about, #what-i-do, #contact) { min-height: calc(100svh - var(--compact-header-height)); }
  html[data-screen] section[id] { scroll-margin-top: calc(var(--compact-header-height) + 8px); }
}

/* Give verified awards their own shelf; submissions are never shown as awards. */
.catalog .catalog-archive .catalog-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.catalog .catalog-awarded .catalog-award {
  display: inline-block;
  margin: 0 0 .18rem;
  padding: .32rem .58rem;
  max-width: 100%;
  border-color: #8e7653;
  border-radius: 3px;
  color: #fae1b6;
  background: #45372445;
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1.4;
  white-space: normal;
}
@media (max-width: 700px) {
  .catalog .catalog-archive .catalog-grid { grid-template-columns: minmax(0, 1fr); }
}
.catalog .catalog-titlecard {
  min-height: 9rem;
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1rem, 4vw, 2rem);
  background: radial-gradient(ellipse at 87% 17%, #314c62 0%, transparent 54%), #102133;
  color: #e8f4fb;
  text-decoration: none;
}
.catalog .catalog-titlecard::after { display: none; }
.catalog .catalog-titlecard:hover, .catalog .catalog-titlecard:focus-visible { border-color: #b7d8ec; }
.catalog-titlecard>span {
  font-size: .78rem;
  letter-spacing: .12em;
  color: #b5cddb;
}
.catalog-titlecard>h3 {
  font: 400 clamp(1.6rem, 3.4vw, 3.1rem)/1.2 Georgia, 'Yu Mincho', serif;
  letter-spacing: .01em;
  margin: .35rem 0 0;
}
.catalog-titlecard>.catalog-titlecard-action {
  width: fit-content;
  margin-top: .8rem;
  padding-bottom: .17rem;
  border-bottom: 1px solid #8fb2c9;
  color: #d2e9f7;
  letter-spacing: .025em;
}

/* Introduce Ayuneo in About only. */
.bio .bio-portrait {
  display: block;
  width: clamp(8.5rem, 15vw, 12rem);
  height: auto;
  aspect-ratio: 1;
  margin: 1.2rem 0 0;
  border: 1px solid #a5c7e055;
  border-radius: 4px;
  box-shadow: 0 12px 34px #06111d65;
}
@media (max-width: 390px) {
  .journey[data-scene=gallery] .journey-bottom { gap: 8px; }
}

/* One optical grid for the site: full-bleed surfaces, bounded content. */
:root {
  --site-content-width: 74rem;
  --site-gutter: clamp(1.125rem, 5vw, 3.5rem);
  --site-edge: max(var(--site-gutter), calc((100% - var(--site-content-width)) / 2));
}
.header, html[data-screen] .header,
.creator-bridge, footer,
#work, #about, #what-i-do, #contact {
  padding-inline: var(--site-edge);
}
#work, #about, #what-i-do, #contact {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
}
.catalog>.section-heading,
.catalog>.featured-work,
.catalog .catalog-archive,
.catalog .catalog-grid,
.portfolio-inquiry-cta {
  max-width: var(--site-content-width);
}
.catalog .catalog-meta p,
.portfolio-inquiry-cta p,
.bio .career-path p,
.service-list p {
  max-inline-size: 36em;
}
.bio-heading .bio-lead { max-inline-size: 32em; }
.inquiry-simple { max-inline-size: 40rem; }
#contact .inquiry-lead { max-inline-size: 33em; }

/* One rail for the header and the journey's copy/controls; artwork stays full bleed. */
#journey .journey-topline,
#journey .journey-bottom {
  left: var(--site-edge);
  right: var(--site-edge);
}
#journey .scene-panel {
  left: var(--site-edge);
  right: auto;
  max-width: min(43%, 30rem);
}
#journey .reveal-panel {
  max-width: min(57%, 40rem);
}
@media (min-width: 701px) {
  #journey .gallery-panel { max-width: min(51%, 37rem); }
  #journey .gallery-panel h2 {
    font-size: clamp(1.75rem, 3.65vw, 3.375rem);
    line-height: 1.38;
    white-space: nowrap;
  }
  #journey .fragment-a {
    /* Start the nearest decorative card beyond the copy, even on a wide monitor. */
    left: max(46%, calc(50% - 2rem));
    width: min(19%, 28rem);
  }
}
@media (min-width: 701px) and (max-width: 1050px) {
  #journey[data-scene=gallery] { --char-x: -10%; }
  #journey .fragment-a { left: max(48%, calc(50% - 2rem)); }
}
@media (max-width: 700px) {
  #journey .scene-panel {
    right: var(--site-edge);
    max-width: none;
  }
  #journey .gallery-panel h2 br { display: initial; }
}

/* Profile portrait, introduction, and recognition have distinct quiet space. */
#about.bio {
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.4rem, 4vw, 2.65rem);
  align-items: start;
}
#about .bio-heading {
  padding: 0;
  border: 0;
}
#about .bio-heading .eyebrow { color: #adcadc; }
#about .bio-portrait {
  width: min(100%, 11.5rem);
  margin-top: .9rem;
  box-shadow: none;
}
#about .bio-heading h1 {
  margin: .32em 0 .28em;
  font-size: clamp(2.25rem, 4.35vw, 3.6rem);
  letter-spacing: -.035em;
}
#about .bio-heading h1 span { margin-top: .35rem; }
#about .bio-sub { font-size: .875rem; line-height: 1.6; }
#about .bio-introduction .bio-lead {
  margin: 0;
  max-inline-size: 29em;
  color: #edf5fa;
  font: 400 clamp(1.15rem, 2vw, 1.6rem)/1.78 var(--serif);
}
#about .bio-introduction a { margin-top: .95rem; }
#about .bio-achievements h2 {
  margin: 0 0 .75rem;
  color: #d9eaf4;
  font: 400 1.3rem/1.38 var(--serif);
}
#about .bio-awards { margin-bottom: 0; }
#about .bio-lower { min-width: 0; }
#about .bio-career { border-block: 1px solid var(--editorial-line); }
#about .bio-career summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 48px;
  padding: .6rem 0;
  list-style: none;
  color: #d9eaf4;
  cursor: pointer;
  font: 400 1.05rem/1.5 var(--serif);
}
#about .bio-career summary::-webkit-details-marker { display: none; }
#about .bio-career summary span { color: #a7c9e0; }
#about .bio-career[open] summary span { transform: rotate(45deg); }
#about .bio-career .career-path { margin-top: .75rem; }
#about .bio-career .bio-milestone { margin-block: .6rem 1.25rem; }
#about .bio-links { margin-top: .65rem; }
@media (min-width: 701px) {
  #about.bio {
    grid-template-columns: minmax(9rem, .58fr) minmax(0, 1.42fr);
    column-gap: clamp(1.5rem, 4vw, 3.5rem);
  }
  #about .bio-introduction, #about .bio-achievements, #about .bio-lower { grid-column: 2; }
  #about .bio-introduction { padding-top: 2rem; }
}
@media (min-width: 1080px) {
  #about.bio { grid-template-columns: minmax(10rem, .62fr) minmax(0, 1.23fr) minmax(18rem, 1.15fr); }
  #about .bio-introduction { grid-column: 2; }
  #about .bio-achievements { grid-column: 3; padding-top: 2rem; }
  #about .bio-lower { grid-column: 2 / -1; }
}

/* Peripheral glass and light connect the existing Fragments artwork across the screen. */
.fragment-atmosphere {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.fragment-atmosphere::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 22% 39% at 5% 36%, #326c9b27, transparent 89%),
    radial-gradient(ellipse 29% 17% at 22% 83%, #256a9722, transparent 87%);
}
.fragment-orbits {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .56;
}
.fragment-orbits path { vector-effect: non-scaling-stroke; stroke-width: .8px; }
.fragment-orbits path:nth-child(2) { stroke-dasharray: 2 5; opacity: .72; }
.fragment-orbits path:nth-child(3) { opacity: .4; }
.ambient-fragment {
  position: absolute;
  box-sizing: border-box;
  overflow: hidden;
  border: 1px solid #9dd2f452;
  background:
    linear-gradient(151deg, #669bc131, transparent 42%, #7bbae220),
    #0d233759;
  box-shadow: inset 0 0 1.25rem #7bb6df15, 0 .8rem 2.4rem #020a1455;
  opacity: .56;
}
.ambient-fragment::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid #b9dbf01b;
}
.ambient-fragment-near {
  left: 7.25%;
  top: 16%;
  width: clamp(7rem, 12%, 15.5rem);
  aspect-ratio: 1.6;
  transform: perspective(650px) rotateY(21deg) rotateZ(11deg);
  opacity: .6;
}
.ambient-fragment-near img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(.47);
  opacity: .31;
}
.ambient-fragment-edge {
  left: 9.25%;
  top: 77%;
  width: clamp(5rem, 8.5%, 10rem);
  aspect-ratio: 1.55;
  transform: perspective(560px) rotateY(-32deg) rotateZ(-15deg);
  opacity: .63;
}
.ambient-fragment-far {
  right: 7.75%;
  top: 16.5%;
  width: clamp(3.7rem, 6%, 7rem);
  aspect-ratio: 1.45;
  transform: perspective(560px) rotateY(23deg) rotateZ(15deg);
  opacity: .43;
}
@media (max-width: 700px) {
  .fragment-orbits { opacity: .46; }
  .ambient-fragment-near { left: 3.75%; top: 22%; width: clamp(5rem, 25%, 8.5rem); opacity: .45; }
  .ambient-fragment-edge { display: none; }
  .ambient-fragment-far { right: 5%; top: 75%; width: clamp(3.5rem, 17%, 5.5rem); opacity: .28; }
}

/* A stable home: work is the main action; the manual scene sequence is optional. */
#journey .journey-home-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .4rem 1.35rem;
  margin-top: clamp(1.1rem, 3.5vh, 1.9rem);
}
#journey .journey-work-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .45rem 1.2rem;
  border: 1px solid #cbe6f5;
  border-radius: 3px;
  background: #d5eaf8;
  color: #13283e;
  font-size: 1rem;
  font-weight: 650;
  text-decoration: none;
}
#journey .journey-work-cta:hover { background: #ecf7ff; }
#journey-start, #journey-exit {
  min-height: 44px;
  padding: .4rem 0;
  border: 0;
  border-bottom: 1px solid #a4c8e093;
  border-radius: 0;
  background: transparent;
  color: #d1e7f6;
  font-size: .875rem;
  letter-spacing: .04em;
  white-space: nowrap;
  cursor: pointer;
}
#journey-start:hover, #journey-exit:hover { color: #fff; border-bottom-color: currentColor; }
#journey[data-scene=reveal] #journey-exit { color: #173e59; border-bottom-color: #29617f9c; }
@media (max-width: 700px) {
  #journey .journey-home-actions { gap: .35rem 1rem; }
  #journey .journey-work-cta { padding-inline: 1rem; }
  #journey-exit { font-size: .78rem; }
}
@media (max-width: 700px) and (max-height: 660px) {
  #journey[data-tour=off] .gallery-panel {
    bottom: max(112px, calc(100% - 100svh + var(--compact-header-height, 64px) + 1rem));
  }
}

/* The desktop sparkle trail is visual only; the native cursor and hit testing stay intact. */
.cursor-sparkles {
  display: none;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 78;
  pointer-events: none;
}
@media (min-width: 900px) and (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  html:not([data-intro]):not([data-motion=off]) body:not(.dialog-open) .cursor-sparkles { display: block; }
}

/* The source is slightly wider than 16:9; show both edge subjects without a crop. */
#work .voicelink-poster img { object-fit: contain; background: #101d2b; }

/* Wide card, full portrait: recess the same colors into a soft side fill. */
#work .murabito-poster::before {
  content: "";
  position: absolute;
  inset: -7%;
  background:
    linear-gradient(90deg, #09162582, transparent 37% 63%, #09162582),
    url("assets/murabito-a-poster.webp") center 46% / cover no-repeat;
  filter: blur(15px) saturate(.77) brightness(.68);
  pointer-events: none;
}
#work .murabito-poster img {
  position: relative;
  z-index: 1;
  object-fit: contain;
  background: transparent;
}

/* Return within the current screen; keep the floating button off the opening and film layers. */
.page-top {
  display: inline-grid;
  place-items: center;
  position: fixed;
  right: max(clamp(.85rem, 3vw, 2.25rem), calc(env(safe-area-inset-right, 0px) + .65rem));
  bottom: max(clamp(.85rem, 3vw, 1.75rem), calc(env(safe-area-inset-bottom, 0px) + .65rem));
  min-width: 48px;
  min-height: 48px;
  padding: .35rem .58rem;
  z-index: 60;
  border: 1px solid #91b6ce88;
  border-radius: 5px;
  background: #102236f5;
  color: #e2f1fb;
  font: 600 .82rem/1 var(--sans);
  letter-spacing: .055em;
  cursor: pointer;
  box-shadow: 0 .45rem 1.4rem #0004;
}
.page-top:hover { background: #27475f; border-color: #c6e2f4; }
.page-top[hidden], html[data-intro] .page-top, body.dialog-open .page-top { display: none; }

/* Keep the original-IP shelf distinct from the standalone featured work. */
#work .catalog-ip { padding-top: clamp(1.4rem, 3.4vw, 2.8rem); }
#work .ip-christmas-poster { aspect-ratio: 16 / 9; }
