/* Opening storyboard: Portfolio / motion_V2, 1440 × 800. */
.portfolio-home{--opening-ink:#263368;--opening-header-height:74px}
.portfolio-home .portfolio-header{position:relative;z-index:5;height:var(--opening-header-height);max-width:none;padding-inline:clamp(22px,3.7vw,54px);background:#fff;color:#101014}
.portfolio-home .portfolio-name{font-size:20px;font-weight:700;letter-spacing:0;line-height:1.4;color:var(--opening-ink)}
.opening{position:relative;height:calc(100svh - var(--opening-header-height));min-height:500px;isolation:isolate;overflow:hidden;background:#fff}
.opening-scene{position:absolute;inset:calc(-1 * var(--opening-header-height)) 0 0;z-index:1;pointer-events:none;overflow:hidden}
#opening-balls{position:absolute;inset:0;width:100%;height:100%}
.opening-name{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);white-space:nowrap;color:var(--opening-ink);font-size:30px;font-weight:700;line-height:1.6;opacity:0;transform-origin:0 0}
.opening-statement{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:min(539px,calc(100% - 48px));font-size:30px;line-height:1.6;font-weight:700;text-align:center;color:#2541b5;opacity:0}
.art-wall {
  --art-gap: clamp(10px, 1.12vw, 16px);
  position: relative;
  z-index: 2;
  display: grid;
  height: 100%;
  grid-template-columns: minmax(0, 405fr) minmax(0, 599fr) minmax(0, 404fr);
  grid-template-rows: minmax(0, 1fr);
  gap: var(--art-gap);
}
.art-column {
  display: grid;
  min-width: 0;
  min-height: 0;
  gap: var(--art-gap);
}
.art-column-left { grid-template-rows: minmax(0, 515fr) minmax(0, 194fr); }
.art-column-right { grid-template-rows: minmax(0, 360fr) minmax(0, 349fr); }
.art-tile { position: relative; overflow: hidden; margin: 0; background: #08090a; min-width: 0; min-height: 0; }
.art-crop { position: absolute; inset: 0; overflow: hidden; }
.art-crop img, .art-crop iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.art-crop img { object-fit: cover; }
.art-crop iframe { opacity: 0; pointer-events: none; }
.art-live iframe { opacity: 1; pointer-events: auto; }
.art-tile:focus-within { outline: 2px solid white; outline-offset: -2px; }
.opening-skip{position:fixed;right:28px;bottom:24px;z-index:20;background:#ffffffb3;border:1px solid #26336826;color:#263368;border-radius:24px;padding:8px 17px;font-size:12px;cursor:pointer;backdrop-filter:blur(12px)}
.portfolio-home .portfolio-intro {
  max-width: 100%;
  padding: clamp(76px, 9vw, 132px) 24px;
}
.portfolio-home .portfolio-intro h1 {
  margin: 0;
  color: inherit;
  font-size: clamp(18px, 1.85vw, 24px);
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.portfolio-home .portfolio-intro h1 span { display: block; }
.portfolio-home .portfolio-intro h1 span + span { margin-top: .35em; }
body.intro-running{overflow:hidden}
.intro-running .art-wall{pointer-events:none}
.intro-running .portfolio-header{background:transparent}
.intro-running .portfolio-name,.intro-running .portfolio-header nav{opacity:0;pointer-events:none}
.intro-running .art-tile{clip-path:inset(100% 0 0)}
.intro-running .art-crop{translate:0 65px}
.intro-running .opening-scene{overflow:visible}
.portfolio-header.is-docked .portfolio-name{opacity:1;pointer-events:auto}
.portfolio-header.is-docked nav{opacity:1;pointer-events:auto;transition:opacity .6s}
.opening.is-complete .opening-scene{visibility:hidden}
@media(max-width:720px){
 .portfolio-home{--opening-header-height:72px}.portfolio-home .portfolio-header{padding:0 22px}.portfolio-home .portfolio-name{font-size:16px}.portfolio-home .portfolio-header nav{gap:18px;font-size:12px}
 .opening-scene{bottom:auto;height:100svh}.opening-name{font-size:26px}.opening-statement{font-size:24px;line-height:1.6;max-width:410px}
 .opening{height:auto;min-height:0}
 .art-wall{height:auto;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto auto;--art-gap:10px}
 .art-particle-type{grid-column:1/-1;grid-row:1;aspect-ratio:1.08}
 .art-column-left{grid-column:1;grid-row:2;grid-template-rows:minmax(0,1.4fr) minmax(0,.75fr);aspect-ratio:.62}
 .art-column-right{grid-column:2;grid-row:2;grid-template-rows:repeat(2,minmax(0,1fr));aspect-ratio:.62}
 .opening-skip{right:18px;bottom:18px}
}
@media(prefers-reduced-motion:reduce){.art-crop{translate:none!important}.opening-scene{display:none}.opening-skip{display:none}.portfolio-header nav{transition:none!important}}
.intro-running.portfolio-home{background:linear-gradient(170deg,#eeecf5,#fff) fixed}
.intro-running .opening{background:transparent}
/* Approved homepage hero: one continuous lavender backdrop through every phase. */
.portfolio-home,.intro-running.portfolio-home{background:linear-gradient(170deg,#eeecf5,#f5f3fa) fixed}
.intro-running .portfolio-header,.intro-running .opening{background:transparent}
.opening>.opening-statement{z-index:3;top:calc(50% - 40px);pointer-events:none;font-size:24px;font-weight:500;color:var(--opening-ink)}
.opening.is-complete>.opening-statement{visibility:hidden}
@media(max-width:720px){.opening>.opening-statement{top:calc(50% - 36px);font-size:19.2px}}
