@font-face {
  font-family: 'Petal Baskervville';
  src: url('assets/fonts/baskervville-regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
/* The lily signs the page. The project does the talking. */
.portfolio-home {
  color-scheme: only light;
  --canvas: #ffffff;
  --bg: #ffffff;
  --ink: #111421;
  --muted: #606674;
  --surface: #f3f5fa;
  --line: #ced3de;
  --editorial-haze: #d6dbe6;
  --ui-accent: #355b9e;
  --navigation-serif: 'Petal Baskerville', 'Baskerville Old Face', 'Petal Baskervville', Baskerville, Georgia, serif;
  --text-caption: #6c7380;
  --metadata-size: calc(clamp(12px, .76vw, 15px) - 2pt);
  --metadata-leading: 1.525;
}
.portfolio-home[data-theme="dark"] {
  color-scheme: only dark;
  --canvas: #131827;
  --bg: #131827;
  --ink: #f2f3f8;
  --muted: #c5ccdc;
  --surface: #1b2236;
  --line: #3d465c;
  --editorial-haze: #273450;
  --ui-accent: #aecbff;
  --text-caption: #aeb8cd;
}
.portfolio-home .top {
  inset: 13px 4.1% auto 1.2%;
  min-height: 104px;
  gap: 18px;
}
.portfolio-home .brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  white-space: nowrap;
  gap: 0;
}
.portfolio-home .brand span {
  display: inline;
  margin: 0;
  color: var(--ink);
  font: inherit;
  font-size: clamp(21px, 1.62vw, 32px);
  letter-spacing: -.026em;
}
.brand-mark {
  width: clamp(77px, 6.8vw, 133px);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  margin-right: clamp(-61px, -2.9vw, -33px);
  transition: opacity .36s ease-out;
}
.portfolio-home .top-actions {
  gap: clamp(12px, 1.7vw, 30px);
  color: var(--muted);
}
.portfolio-home .top-actions a,
.portfolio-home .top-actions button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: inherit;
}
.portfolio-home .top-actions :is(a,button):is(:hover,:focus-visible) { color: var(--ink); }
.portfolio-home .top-actions .theme-button { justify-content: center; }
.portfolio-home .top-actions .contact-button { display: inline-flex; }

.portfolio-home .stage {
  display: grid;
  grid-template-columns: clamp(132px, 16vw, 312px) minmax(0,1fr);
  align-items: center;
  padding: 124px 4.3% 110px 3.55%;
  width: 100%;
  height: auto;
  min-height: 100svh;
  overflow: clip;
  background: var(--canvas);
}
.portfolio-home:is([data-cat="bx"],[data-cat="ux"]) .stage {
  grid-template-columns: clamp(132px, 16vw, 312px) minmax(0,1fr);
  padding-right: 4.3%;
}
.portfolio-home .menu {
  position: static;
  justify-self: start;
  z-index: 2;
  padding: 0;
  transform: none;
}
.portfolio-home .menu ul {
  display: grid;
  gap: clamp(0px,.45vh,7px);
}
.portfolio-home .menu-item {
  font-size: clamp(21px,1.63vw,32px);
  line-height: 1.25;
  color: var(--ink);
  padding: 6px 0;
  text-align: left;
}
.portfolio-home .menu-item:not(.is-active) { color: var(--muted); opacity: .81; }
.portfolio-home .menu-item:is(:hover,:focus-visible) { color: var(--ink); opacity: 1; }
.portfolio-home .menu-item.is-active { font-weight: 500; }

.portfolio-home .panel-wrap {
  width: 100%;
  max-width: none;
  padding: 0;
  margin: 0;
  position: static;
  justify-self: stretch;
  border: 0;
}
.featured-layout {
  display: grid;
  grid-template-columns: minmax(220px, 30%) minmax(0,1fr);
  align-items: center;
  gap: clamp(14px, 1.7vw, 32px);
}
.portfolio-home:is([data-cat="bx"],[data-cat="ux"]) .featured-layout {
  grid-template-columns: minmax(220px, 30%) minmax(0,1fr);
  gap: clamp(14px, 1.7vw, 32px);
}
.featured-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
  padding-top: clamp(16px,4vh,48px);
}
.portfolio-home[data-cat="bx"] { --featured-category-scale: .68; }
.featured-category {
  --featured-category-size: clamp(18px,1.67vw,33px);
  margin: 0 0 clamp(17px,2.05vh,25px);
  font: italic 500 calc(var(--featured-category-size) * var(--featured-category-scale, 1))/1 var(--display);
  letter-spacing: -.035em;
}
.portfolio-home .featured-copy h2 {
  font: 400 clamp(36px,3.07vw,61px)/1.02 var(--display);
  letter-spacing: -.053em;
  text-wrap: balance;
  word-break: keep-all;
}
.portfolio-home .featured-copy h2[lang="ko"] {
  font-family: var(--sans);
  font-weight: 590;
  font-size: clamp(25px,2.28vw,46px);
  line-height: 1.25;
}
.featured-subtitle {
  color: var(--ink);
  font: 400 clamp(22px,1.93vw,39px)/1.14 var(--display);
  letter-spacing: -.04em;
  margin-top: 6px;
}
.featured-subtitle[lang="ko"] {
  color: var(--muted);
  font: 480 clamp(13px,1.04vw,20px)/1.5 var(--sans);
}
.portfolio-home .panel-description {
  margin-top: clamp(22px,4.45vh,48px);
  color: var(--ink);
  font: 580 clamp(15px,1.06vw,20px)/1.7 var(--sans);
  letter-spacing: -.028em;
  max-width: 42ch;
  word-break: keep-all;
}
.featured-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 19px;
  margin-top: 17px;
}
.featured-site, .featured-detail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  font-size: 12px;
  font-weight: 650;
  border-bottom: 1px solid var(--line);
}
.featured-site { color: var(--ui-accent); }
.featured-site:hover, .featured-detail:hover { border-color: currentColor; }
.portfolio-home .project-controls {
  min-height: 44px;
  margin-top: 8px;
  justify-content: flex-start;
  gap: 9px;
}
.portfolio-home .project-controls .collection-link { margin-left: 6px; }
.portfolio-home .project-prev, .portfolio-home .project-next { width: 36px; height: 36px; }

.featured-visual {
  display: block;
  justify-self: center;
  width: 100%;
  transition: transform .4s cubic-bezier(.2,.75,.25,1);
}
.featured-visual:is(:hover,:focus-visible) { transform: translateY(-5px); }
.editorial-cover {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  background: color-mix(in srgb,var(--surface) 84%,var(--editorial-haze));
}
.editorial-cover img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.project-mockup { width: min(100%, 960px); }
.project-mockup .editorial-cover {
  aspect-ratio: 3 / 2;
  border: 1px solid color-mix(in srgb,var(--line) 68%,transparent);
  border-radius: 10px;
  box-shadow: 0 25px 60px -28px #121b3a87;
}
.project-mockup .editorial-cover img { object-position: center; }
.project-mockup[data-project="aespa"] .editorial-cover,
.project-card[data-project="aespa"] .collection-thumb {
  position: relative;
  isolation: isolate;
  background: transparent;
  overflow: visible;
}
.project-mockup[data-project="aespa"] .editorial-cover {
  aspect-ratio: 1460 / 870;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
:is(.project-mockup[data-project="aespa"] .editorial-cover,
    .project-card[data-project="aespa"] .collection-thumb)::before,
:is(.project-mockup[data-project="aespa"] .editorial-cover,
    .project-card[data-project="aespa"] .collection-thumb)::after {
  content: '';
  position: absolute;
  z-index: -1;
  pointer-events: none;
}
:is(.project-mockup[data-project="aespa"] .editorial-cover,
    .project-card[data-project="aespa"] .collection-thumb)::before {
  inset: -9% -8% -20%;
  background:
    radial-gradient(ellipse 42% 37% at 68% 56%, #9b83e34a, transparent 91%),
    radial-gradient(ellipse 48% 34% at 57% 76%, #89b7e849, transparent 96%);
}
:is(.project-mockup[data-project="aespa"] .editorial-cover,
    .project-card[data-project="aespa"] .collection-thumb)::after {
  left: 3%;
  right: 2%;
  bottom: -7%;
  height: 18%;
  background:
    radial-gradient(ellipse 44% 24% at 49% 38%, #29254551, transparent 96%),
    radial-gradient(ellipse 50% 48% at 53% 43%, #25293d38, transparent 94%);
  filter: blur(5px);
}
.portal-mockup .portal-device {
  filter: drop-shadow(0 6px 4px #2623373d) drop-shadow(0 18px 16px #2e34522b);
}
.portfolio-home:is([data-cat="bx"],[data-cat="ux"]) .collection-thumb { aspect-ratio: 3 / 2; }
.project-card[data-project="aespa"] .collection-thumb .portal-mockup { top: 50%; transform: translateY(-50%); }
.portal-mockup {
  position: relative;
  isolation: isolate;
  display: block;
  width: 100%;
  aspect-ratio: 1460 / 870;
}
.portal-mockup .portal-device {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.portal-mockup .portal-chain {
  position: absolute;
  display: block;
  top: 56%;
  left: -5%;
  width: 110%;
  max-width: none;
  height: 51%;
  object-fit: fill;
  pointer-events: none;
}
.portal-chain-back { z-index: 0; }
.portal-chain-front {
  z-index: 2;
  clip-path: polygon(0 52%, 100% 32%, 100% 100%, 0 100%);
}
.project-card[data-project="aespa"] .portal-chain { left: 0; width: 100%; }
.portfolio-home .panel:has(> .panel-top) { max-width: 690px; }

.portfolio-home .foot {
  inset: auto 3.55% 16px;
  min-height: 44px;
  color: var(--muted);
}
.portfolio-home .foot-note {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  width: min(60%,660px);
  font-size: clamp(10px,.96vw,18px);
}
.portfolio-home .foot-actions { gap: 17px; }
.portfolio-home .foot button { min-height: 42px; }

.studio-scene {
  position: relative;
  isolation: isolate;
  width: min(100%,960px);
  margin: 18px auto 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #d7e3ff;
  border-radius: 12px;
}
.studio-scene .flower { position: absolute; inset: 0; margin: 0; max-width: none; width: 100%; height: 100%; }
.studio-scene .flower > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.studio-scene .orb { display: block; }

.bloom-intro {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  isolation: isolate;
}
.bloom-intro::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #fff;
  opacity: 1;
  transition: opacity .25s .1s ease-out;
}
.bloom-intro[data-phase="dissolving"]::before { opacity: 0; }
.bloom-object {
  width: min(77vw,68svh,690px);
  aspect-ratio: 1;
  transition: opacity .25s ease-in-out;
}
.bloom-intro[data-phase="dissolving"] .bloom-object { opacity: 0; }
.bloom-object video { width: 100%; height: 100%; object-fit: contain; }
.bloom-object video:not(.is-playing) { visibility: hidden; }
html[data-bloom] .brand-mark { opacity: 0; }
#skip-bloom {
  position: absolute;
  right: clamp(18px,4vw,62px);
  bottom: clamp(16px,5vh,48px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid #dbe0e7;
  border-radius: 24px;
  background: #fff;
  color: #34415c;
  font-size: 12px;
  transition: opacity .26s;
}
.bloom-intro[data-phase="dissolving"] #skip-bloom { opacity: 0; }

@media (max-width: 1090px) {
  .portfolio-home .stage { grid-template-columns: clamp(112px, 15vw, 164px) minmax(0,1fr); padding-inline: 4%; }
  .portfolio-home:is([data-cat="bx"],[data-cat="ux"]) .stage { grid-template-columns: clamp(112px, 15vw, 164px) minmax(0,1fr); padding-right: 4%; }
  .featured-layout { grid-template-columns: minmax(200px,33%) minmax(0,1fr); }
  .portfolio-home:is([data-cat="bx"],[data-cat="ux"]) .featured-layout { grid-template-columns: minmax(200px, 33%) minmax(0,1fr); }
  .portfolio-home .menu-item { font-size: 24px; }
  .portfolio-home .foot-note { position: static; transform: none; width: auto; }
}

@media (max-width: 750px) {
  .portfolio-home .top { position: relative; inset: auto; min-height: 0; padding: 8px 16px 0 8px; flex-wrap: wrap; gap: 0; }
  .portfolio-home .brand { margin-right: 8px; }
  .portfolio-home .brand span { font-size: clamp(20px,5.6vw,30px); }
  .brand-mark { width: 76px; margin-right: -35px; }
  .portfolio-home .top-actions { width: 100%; justify-content: flex-end; gap: 16px; font-size: 11px; margin-top: -9px; }
  .portfolio-home .top-actions :is(a,button) { min-height: 42px; }
  .portfolio-home .top-actions .theme-button { width: 29px; }
  .portfolio-home .stage,
  .portfolio-home:is([data-cat="bx"],[data-cat="ux"]) .stage {
    grid-template-columns: minmax(0,1fr);
    gap: 0;
    align-content: start;
    padding: 4px 20px 26px;
    min-height: 64svh;
  }
  .portfolio-home .menu { width: 100%; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
  .portfolio-home .menu ul { display: flex; gap: 4px 14px; flex-wrap: wrap; margin: 0; }
  .portfolio-home .menu-item { font-size: clamp(14px,4.05vw,22px); line-height: 1.2; min-height: 44px; }
  .featured-layout,
  .portfolio-home:is([data-cat="bx"],[data-cat="ux"]) .featured-layout { grid-template-columns: minmax(0,1fr); gap: 20px; }
  .featured-copy { padding: 0; }
  .featured-category { --featured-category-size: 19px; margin-bottom: 11px; }
  .portfolio-home .featured-copy h2 { font-size: clamp(32px,9.6vw,54px); }
  .featured-subtitle { font-size: 24px; margin-top: 4px; }
  .portfolio-home .panel-description { margin-top: 19px; font-size: 15px; }
  .featured-links { margin-top: 10px; }
  .featured-visual { width: min(100%,520px); }
  .portfolio-home .foot {
    position: static;
    inset: auto;
    padding: 14px 20px 23px;
    min-height: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2px 12px;
    border-top: 1px solid var(--line);
  }
  .portfolio-home .foot-note { order: 3; width: 100%; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .featured-visual { transition: none; transform: none !important; }
  .bloom-intro::before, .brand-mark { transition: none; }
}

/* The portfolio layout places the menu, project information, and artwork on one line. */
@media (min-width: 1091px) {
  .portfolio-home .top { inset: 0 3.55% auto 0; min-height: clamp(88px, 8vw, 145px); }
  .portfolio-home .brand span { font-size: clamp(21px, 1.62vw, 32px); }
  .portfolio-home .brand-mark { width: clamp(81px, 7.4vw, 146px); margin-right: clamp(-76px, -4vw, -44px); }
  .portfolio-home .stage,
  .portfolio-home:is([data-cat="bx"],[data-cat="ux"]) .stage {
    grid-template-columns: 18.65vw minmax(0, 1fr);
    padding-inline: 3.55% 14%;
    padding-block: 102px;
  }
  .portfolio-home .featured-layout,
  .portfolio-home:is([data-cat="bx"],[data-cat="ux"]) .featured-layout {
    grid-template-columns: 17.55vw minmax(0, 1fr);
    gap: 2.65vw;
  }
  .portfolio-home .featured-copy { padding-top: 28px; }
  .portfolio-home .featured-copy h2 { font-size: clamp(32px,2.65vw,55px); }
  .portfolio-home .featured-category { margin-bottom: clamp(16px, 1.55vw, 30px); }
  .portfolio-home .panel-description { margin-top: clamp(20px, 2.25vw, 38px); }
  .portfolio-home .foot-note { font-size: clamp(10px,.8vw,14px); bottom: 30px; }
}

.featured-meta {
  margin-top: clamp(16px, 3vh, 32px);
  color: var(--muted);
  font: 470 clamp(12px,.9vw,15px)/1.65 var(--sans);
  word-break: keep-all;
}



.animated-preview {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-width: 0;
  padding: 0;
  align-self: center;
}

.animated-preview .preview-screen {
  position: relative;
  z-index: 1;
  aspect-ratio: var(--preview-ratio);
  background: var(--preview-surface, #514136);
  box-shadow: 0 22px 65px -23px #38476160;
  transform-origin: center;
}

.animated-preview .preview-screen img { display: block; object-fit: contain; }

.freshcode-preview { --preview-surface: #f8faf4; }
.freshcode-thumb-stage { position: absolute; inset: 0; display: block; overflow: hidden; background: #111a13; }
.freshcode-thumb-player { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; border: 0; object-fit: cover; pointer-events: none; }
.freshcode-thumb-poster { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; object-fit: cover; opacity: 1; transition: opacity .32s ease; }
.freshcode-thumb-stage.is-playing .freshcode-thumb-poster { opacity: 0; }
.freshcode-thumb-shade { position: absolute; inset: 0; z-index: 3; background: linear-gradient(180deg,rgba(5,12,7,.14),rgba(5,12,7,.48)); opacity: 0; transition: opacity .4s ease; pointer-events: none; }
.freshcode-thumb-stage.is-playing .freshcode-thumb-shade { opacity: 1; }
.freshcode-thumb-copy { position: absolute; z-index: 4; top: 50%; left: 50%; width: min(90%,650px); display: flex; flex-direction: column; align-items: center; gap: 5px; color: #fff; text-align: center; text-shadow: 0 2px 16px #0009; opacity: 1; transform: translate(-50%,-44%); pointer-events: none; }
.freshcode-thumb-stage.is-playing .freshcode-thumb-copy { opacity: 1; animation: freshcode-thumb-title .8s cubic-bezier(.16,1,.3,1) both; }
.freshcode-thumb-logo { display: block; width: clamp(144px,21.6%,360px); height: auto; object-fit: contain; transform: scale(1.1); transform-origin: center bottom; filter: drop-shadow(0 2px 12px #0009); }
.freshcode-thumb-stage .freshcode-thumb-copy .freshcode-thumb-logo { width: clamp(144px,21.6%,360px) !important; }
.freshcode-thumb-since { font-size: clamp(7px,.8vw,11px); font-weight: 600; letter-spacing: .3em; }
.freshcode-thumb-tagline { margin-top: 3px; font-size: clamp(8px,.95vw,13px); font-weight: 600; word-break: keep-all; }
@keyframes freshcode-thumb-title { from { opacity: 0; transform: translate(-50%,-38%); } to { opacity: 1; transform: translate(-50%,-44%); } }
@media (prefers-reduced-motion: reduce) { .freshcode-thumb-stage.is-playing .freshcode-thumb-copy { animation: none; } }

.freshcode-leaf {
  position: absolute;
  z-index: var(--leaf-layer, 2);
  width: var(--leaf-width);
  pointer-events: none;
  perspective: 480px;
}

.freshcode-leaf img {
  display: block;
  width: 100%;
  height: auto;
  transform: rotate(var(--leaf-tilt));
  filter: drop-shadow(1px 5px 9px #244f2c38);
}

.freshcode-leaf-arugula {
  top: -14%; left: 5%;
  --leaf-width: 9%; --leaf-tilt: -37deg; --leaf-delay: .87s; --leaf-duration: 6.8s; --leaf-layer: 0;
}

.freshcode-leaf-spinach {
  top: 14%; right: -7%;
  --leaf-width: 10%; --leaf-tilt: 34deg; --leaf-delay: 1.13s; --leaf-duration: 7.6s; --leaf-layer: 0;
}

.freshcode-leaf-lettuce {
  bottom: -12%; right: -3%;
  --leaf-width: 17%; --leaf-tilt: 24deg; --leaf-delay: .96s; --leaf-duration: 5.9s;
}


.carol-snow {
  position: absolute;
  z-index: 0;
  inset: -27% -12% -28%;
  container-type: size;
  overflow: hidden;
  opacity: .86;
  pointer-events: none;
  mask-image: linear-gradient(180deg, transparent, #000 17% 82%, transparent);
}

.carol-snow i {
  position: absolute;
  top: 0;
  left: var(--x);
  width: var(--size);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 5px #a0b7ce85;
  opacity: 0;
}

.carol-snow .snow-depth-0 { --snow-light: .58; }
.carol-snow .snow-depth-1 { --snow-light: .82; }
.carol-snow .snow-depth-2 { --snow-light: .94; filter: blur(.65px); box-shadow: 0 0 9px #8aa4c68a; }

.carol-crystal {
  position: absolute;
  z-index: 2;
  display: block;
  pointer-events: none;
  transform-style: preserve-3d;
  perspective: 550px;
}

.carol-crystal-large { width: 23%; right: -9.4%; bottom: -16%; --tilt: 12deg; --crystal-delay: .93s; }
.carol-crystal-small { width: 6.4%; right: -11.5%; bottom: 21%; --tilt: -13deg; --crystal-delay: 1.19s; }
.portal-emblem { position: absolute; z-index: 3; right: -9.4%; bottom: -16%; display: block; width: 23%; pointer-events: none; transform-style: preserve-3d; animation: none; }
.portal-emblem img { display: block; width: 100%; height: auto; opacity: 1; mask-image: none; -webkit-mask-image: none; }
.portal-emblem::after { content: none; }

.carol-crystal img {
  display: block;
  width: 100%;
  height: auto;
  transform: rotate(var(--tilt));
  filter: none;
  opacity: 1;
}

.carol-crystal::after {
  content: '';
  position: absolute;
  top: 26%;
  left: 62%;
  width: 25%;
  aspect-ratio: 1;
  background:
    linear-gradient(90deg, transparent, #f6fcff 49% 51%, transparent) center / 100% 1px no-repeat,
    linear-gradient(0deg, transparent, #f6fcff 48% 52%, transparent) center / 1px 76% no-repeat;
  opacity: 0;
  transform: translate(-50%,-50%) rotate(-19deg);
}

@media (prefers-reduced-motion: no-preference) {
  .animated-preview:not([data-ready]) :is(.carol-crystal, .carol-snow, .freshcode-leaf) { opacity: 0; }
  .animated-preview[data-ready] .preview-screen { animation: preview-screen-arrive .78s cubic-bezier(.2,.71,.24,1) both; }
  .carol-preview[data-ready] .carol-snow { animation: carol-snow-arrive .85s .59s ease both; }
  .carol-preview[data-ready] .carol-snow i {
    animation: carol-snow-drift var(--duration) var(--phase) linear infinite;
  }
  .carol-preview[data-ready] .carol-crystal {
    animation: preview-decoration-arrive .7s var(--crystal-delay) cubic-bezier(.18,.64,.3,1) both;
  }
  .carol-preview[data-ready] .carol-crystal img {
    animation: carol-crystal-float 5.4s calc(var(--crystal-delay) + .22s) ease-in-out infinite;
  }
  .carol-preview[data-ready] .carol-crystal::after {
    animation: carol-crystal-glint 5.4s calc(var(--crystal-delay) + .16s) ease-in-out infinite;
  }
  html[data-bloom] .animated-preview :is(.preview-screen, .carol-snow, .carol-snow i, .carol-crystal, .carol-crystal img, .freshcode-leaf, .freshcode-leaf img),
  html[data-bloom] .carol-preview .carol-crystal::after { animation-play-state: paused; }
}

@keyframes preview-screen-arrive {
  from { transform: translateY(22px) scale(.983); opacity: 0; }
  to { transform: none; opacity: 1; }
}

@keyframes carol-snow-arrive { from { opacity: 0; } }

@keyframes carol-snow-drift {
  0% { transform: translate3d(0,-12px,0) scale(.85); opacity: 0; }
  12%, 82% { opacity: var(--snow-light); }
  100% { transform: translate3d(var(--drift), calc(100cqh + 12px), 0) scale(1.15); opacity: 0; }
}

@keyframes preview-decoration-arrive {
  from { transform: translateY(18px) scale(.78); opacity: 0; }
  to { transform: none; opacity: 1; }
}

@keyframes carol-crystal-float {
  0%, 100% { transform: translateY(0) rotate(var(--tilt)) rotateY(0) rotateX(0); }
  50% { transform: translateY(-11%) rotate(calc(var(--tilt) + 7deg)) rotateY(21deg) rotateX(-12deg); }
}

@keyframes freshcode-leaf-float {
  0%, 100% { transform: rotate(var(--leaf-tilt)) rotateY(-5deg); }
  48% { transform: translate(5%,-13%) rotate(calc(var(--leaf-tilt) + 14deg)) rotateY(23deg) rotateX(11deg); }
  76% { transform: translate(-3%,-5%) rotate(calc(var(--leaf-tilt) + 4deg)) rotateY(6deg); }
}

@keyframes carol-crystal-glint {
  0%, 11%, 33%, 71%, 89%, 100% { opacity: 0; }
  18% { opacity: .99; }
  80% { opacity: .73; }
}

@media (max-width: 750px) {
  .portfolio-home .featured-layout:has(.animated-preview) { gap: 0; }
  .featured-layout:has(.animated-preview) .featured-copy { display: contents; }
  .animated-preview { order: 1; width: calc(100% - 16px); margin: 20px 10px 17px 0; }
  .featured-layout:has(.animated-preview) :is(.panel-description, .featured-meta, .featured-links, .project-controls) { order: 2; }
  .carol-crystal-large { right: -7.3%; bottom: -17%; }
  .carol-crystal-small { right: -8.7%; }
  .portal-emblem { right: -7.3%; bottom: -17%; width: 25%; }
  .carol-snow { inset: -19% -6% -24%; }
  .featured-meta { margin-top: 16px; }
}

.featured-copy :is(.panel-description, .featured-meta) span { display: block; }
.featured-copy .panel-description span + span { margin-top: .15em; }
.portfolio-home .featured-copy h2[lang="ko"] { font-size: clamp(24px, 2.25vw, 44px); }

.object-preview,
.process-visual {
  position: relative;
  isolation: isolate;
  min-width: 0;
}
.object-preview .editorial-cover { position: relative; z-index: 1; }
.object-preview.archive-cover .editorial-cover { aspect-ratio: 1.86; }
.object-preview.archive-cover .editorial-cover img { object-fit: contain; object-position: center; }
.object-preview.typography-cover .editorial-cover { aspect-ratio: 1.74; }
.freshcode-mobile-preview .freshcode-leaf-arugula { --leaf-width: 12%; }
.freshcode-mobile-preview .freshcode-leaf-lettuce { --leaf-width: 19%; }
.freshcode-mobile-preview .freshcode-leaf-spinach { --leaf-width: 13%; }

.project-object {
  position: absolute;
  z-index: 2;
  inset: var(--object-placement, auto -5% -10% auto);
  width: var(--object-width, clamp(76px, 9.2vw, 178px));
  pointer-events: none;
  perspective: 530px;
}
.project-object img {
  display: block;
  width: 100%;
  height: auto;
  transform: rotateZ(var(--object-angle, 0deg));
  filter: drop-shadow(0 12px 14px var(--object-shadow, #2a314533));
}
.object-glass { --object-angle: -12deg; --object-shadow: #3c669c44; }
[data-project="samsung-main"] .object-glass,
[data-project="samsung-promo"] .object-glass {
  --object-placement: auto 2% -13% auto;
  --object-width: clamp(80px, 11vw, 210px);
}
[data-project="samsung-product"] .object-glass { --object-placement: -12% 2% auto auto; --object-angle: 19deg; }
.object-key { --object-angle: 9deg; --object-width: clamp(72px, 7.9vw, 151px); }
.object-autohands-key {
  --object-placement: auto -3% -10% auto;
  --object-width: clamp(50px, 5.3vw, 85px);
  --object-shadow: #203d6733;
  perspective: none;
}

.object-panther-glass {
  --object-placement: -12% -5% auto auto;
  --object-width: clamp(76px, 9.6vw, 182px);
  --object-angle: 7deg;
  --object-shadow: #24254154;
}
.object-peach {
  --object-placement: auto -5% -9% auto;
  --object-angle: -11deg;
  --object-shadow: #be59724a;
  --object-width: clamp(61.56px, 7.452vw, 144.18px);
}
.object-riceball {
  --object-placement: auto -4% -11% auto;
  --object-angle: 0deg;
  --object-shadow: #a56d5350;
}
.object-peach img, .object-riceball img { filter: none; }
.object-peach img { opacity: .88; filter: saturate(1.1) contrast(1.06) brightness(1.10); }
.object-riceball { perspective: none; }

@media (prefers-reduced-motion: no-preference) {
  .project-object { animation: object-arrive .8s .15s both; }
  .project-object img { animation: object-float 7.5s .65s ease-in-out infinite; }
  .object-key img, .object-peach img { animation-duration: 9s; }
  .object-autohands-key img { animation: autohands-key-float 9s .65s ease-in-out infinite; }
  .object-riceball img { animation-name: riceball-float; }
  html[data-bloom] .project-object, html[data-bloom] .project-object img { animation-play-state: paused; }
}
@keyframes object-arrive {
  from { opacity: 0; transform: translateY(12px) scale(.92); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes object-float {
  0%, 100% { transform: translateY(0) rotateY(-8deg) rotateZ(var(--object-angle, 0deg)); }
  50% { transform: translateY(-13%) rotateY(13deg) rotateZ(calc(var(--object-angle, 0deg) + 9deg)); }
}
@keyframes autohands-key-float {
  0%, 100% { transform: translate(0, 0) rotate(-4deg); }
  50% { transform: translate(8%, -14%) rotate(7deg); }
}
@keyframes riceball-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7%); }
}

.process-visual { width: min(100%, 580px); margin: 20px 0 26px; }
.process-site { display: grid; justify-items: start; }
.process-site-label { margin-top: 7%; padding-block: 9px; font-size: 13px; border-bottom: 1px solid var(--line); }
.process-site:is(:hover, :focus-visible) .process-site-label { border-color: currentColor; }
.panel .portal-steps { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(16px, 4vw, 64px); }
.panel .portal-steps .step { padding-block: 12px; }
.panel .portal-steps .step b { font-size: 14px; font-weight: 650; }
.panel .portal-steps .step p { font-size: 13px; line-height: 1.6; word-break: keep-all; }

@media (max-width: 750px) {
  .portfolio-home .featured-layout:has(.object-preview) { gap: 0; }
  .featured-layout:has(.object-preview) .featured-copy { display: contents; }
  .featured-layout:has(.object-preview) :is(.panel-description, .featured-meta, .featured-links, .project-controls) { order: 2; }
  .object-preview { order: 1; width: calc(100% - 16px); margin: 20px 10px 17px 0; }
  .portal-mockup .portal-chain { width: 105%; left: -2.5%; }
  .project-object { right: -2%; }
  .panel .portal-steps { grid-template-columns: 1fr; }
}

.process-body { margin-top: clamp(20px, 3vw, 32px); }
.process-body .process-visual { margin-top: 0; }

@media (min-width: 1051px) {
  .process-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr); gap: clamp(24px, 4vw, 68px); align-items: center; }
  .process-body .portal-steps { grid-template-columns: 1fr; margin-top: 0; }
  .panel .portal-steps .step:first-child { padding-top: 0; }
}

.portfolio-home .featured-copy .panel-description { font-size: clamp(14px, 1.01vw, 19px); }

/* Use Carol's frame for every rectangular project thumbnail. */
.featured-visual:not([data-project="aespa"]) > .editorial-cover,
.portfolio-home .project-card:not([data-project="aespa"]) .collection-thumb {
  aspect-ratio: 1178 / 600;
  border-radius: 8px;
}
.featured-visual:not([data-project="aespa"]) > .editorial-cover img {
  object-fit: cover;
  object-position: center;
}
.portfolio-home .project-card:not([data-project="aespa"]) .collection-thumb img { object-fit: cover; object-position: center; }

/* Highlights on the Fresh Code leaves. */
.freshcode-leaf::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 2.2px 3px at 31% 28%, #fff 0 14%, #c8fff14f 30% 63%, #3b856c70 74%, transparent 90%),
    radial-gradient(ellipse 3.5px 5px at 54% 51%, #fff9 0 13%, #e4fff44f 26% 64%, #1c66456b 73%, transparent 88%),
    radial-gradient(ellipse 2.5px 3.5px at 48% 71%, #fff 0 10%, #d9fff738 25% 66%, #17614266 74%, transparent 88%),
    radial-gradient(ellipse 2px 2.5px at 69% 38%, #fff 0 14%, #d8fff94a 26% 64%, #18684960 73%, transparent 88%);
  mask: var(--leaf-mask) center / contain no-repeat;
  transform: rotate(var(--leaf-tilt));
}
.object-peach { z-index: 3; }
/* Dark Portal thumbnail: animate the actual intro still, without a laptop frame. */
.featured-visual.portal-preview .portal-screen { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 9; background: #080815; }
.featured-visual.portal-preview .portal-screen > img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .75s cubic-bezier(.2,.72,.25,1), filter .45s ease; }
.featured-visual:not([data-project="aespa"]) > .editorial-cover img.black-panther-thumb { object-position: center top; }
.featured-visual.portal-preview .portal-emblem { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .featured-visual.portal-preview:hover .portal-screen > img,
  .featured-visual.portal-preview:focus-visible .portal-screen > img { transform: scale(1.055); filter: brightness(1.16) saturate(1.1); }
  html[data-bloom] .featured-visual.portal-preview .portal-screen > img { animation-play-state: paused; }
}
@keyframes portal-intro-replay { 0% { transform: scale(1.07); filter: brightness(1.42) saturate(1.2); } 32% { filter: brightness(.82) saturate(.9); } 100% { transform: scale(1.055); filter: brightness(1.16) saturate(1.1); } }
.portal-live-frame { position: absolute; z-index: 2; top: 0; left: 0; width: 1920px; height: 1080px; border: 0; transform-origin: top left; pointer-events: none; }
.motion-live-frame { position: absolute; z-index: 2; top: 0; left: 0; width: 1920px; height: 2400px; border: 0; transform-origin: top left; pointer-events: none; }
.motion-screen:is(.is-loading,.is-live) > img { opacity: 0; }
.portal-screen.is-live > img { opacity: 0; }
.portal-screen:not(.is-live) .portal-live-frame { visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .portal-emblem { animation: none; } .portal-live-frame,.motion-live-frame { display: none; } .portal-screen:is(.is-loading, .is-live) > img,.motion-screen:is(.is-loading,.is-live) > img { opacity: 1; } }

/* Clear sculptural objects: motion stays in the light, without deforming anatomy. */
.object-sculpture { position: relative; display: block; }
.object-panther-claws {
  --object-placement: auto -5% -18% auto;
  --object-width: clamp(106.25px, 11.9vw, 208.25px);
  perspective: none;
}
.object-tech-cube {
  --object-placement: auto -5% -17% auto;
  --object-width: clamp(106px, 12vw, 205px);
  perspective: none;
}
.object-panther-claws img, .object-tech-cube img { filter: none; transform: none; animation: none; }
.object-refraction {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(118deg, transparent 28%, #bbf9ff00 42%, #b8f6ff9c 49%, #d6c6ff77 54%, transparent 65%);
  background-size: 270% 100%; background-position: 100% 50%;
  mask: center / 100% 100% no-repeat;
  -webkit-mask: center / 100% 100% no-repeat;
  opacity: .5;
}
.object-panther-claws .object-refraction {
  mask-image: url('assets/project-object-panther-claws.webp');
  -webkit-mask-image: url('assets/project-object-panther-claws.webp');
}
.object-tech-cube .object-refraction {
  mask-image: url('assets/project-object-tech-cube.webp');
  -webkit-mask-image: url('assets/project-object-tech-cube.webp'); opacity: .4;
}
.tech-network { position: absolute; width: 200%; height: auto; left: -73%; top: -8%; overflow: visible; }
.tech-network-grid { stroke: #487fc2; stroke-width: .65; opacity: .17; }
.tech-network-cubes { stroke: #4b9ed3; stroke-width: 1; opacity: .6; }
.tech-connection { stroke: #73a8df; stroke-width: 1; opacity: .4; }
.tech-signal { stroke: #6cdaef; stroke-width: 2; stroke-dasharray: 12 340; stroke-linecap: round; }
.tech-nodes { fill: #5baedb; }
@media (prefers-reduced-motion: no-preference) {
  .object-panther-claws .object-sculpture { animation: spectral-float 6.5s ease-in-out infinite; }
  .object-tech-cube .object-sculpture { animation: spectral-float 8s ease-in-out infinite; }
  .object-refraction { animation: spectral-refraction 5.5s ease-in-out infinite; }
  .tech-network { animation: tech-assemble 1.1s .2s both; }
  .tech-signal { animation: tech-flow 5s linear infinite; }
  .tech-nodes { animation: tech-nodes 3s ease-in-out infinite; }
  html[data-bloom] :is(.object-sculpture, .object-refraction, .tech-network, .tech-signal, .tech-nodes) { animation-play-state: paused; }
}
@keyframes spectral-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
@keyframes spectral-refraction { 0%, 100% { background-position: 100% 50%; opacity: .16; } 50% { background-position: 0 50%; opacity: .5; } }
@keyframes tech-assemble { from { opacity: 0; clip-path: inset(0 100% 0 0); } to { opacity: 1; clip-path: inset(0); } }
@keyframes tech-flow { to { stroke-dashoffset: -352; } }
@keyframes tech-nodes { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }

/* Textured metal tears are revealed in the direction of the talon strike. */
#panther-transition {
  display: none; position: fixed; inset: 0; margin: 0; padding: 0;
  width: 100%; height: 100%; max-width: none; max-height: none;
  border: 0; border-radius: 0; box-shadow: none;
  background: #090814f5; overflow: hidden; color: #e6f7ff;
}
#panther-transition[open] { display: grid; place-items: center; animation: panther-transition 1.45s linear both; }
#panther-transition::backdrop { background: transparent; backdrop-filter: none; }
.panther-swipe-stage { position: relative; width: min(90vmin, 820px); aspect-ratio: 1; animation: panther-impact 1.45s both; }
.panther-rifts { position: absolute; inset: 5% 18% 7% 18%; transform: rotate(24deg); }
.panther-rift {
  position: absolute; display: block; left: var(--rift-x); top: var(--rift-top);
  height: var(--rift-length); width: 31%; overflow: hidden;
  clip-path: inset(0 0 100% 0); transform-origin: top center;
  animation: metal-rift-reveal .36s var(--cut-delay) cubic-bezier(.24,.5,.3,1) both;
}
.panther-rift img { display: block; width: 100%; height: 100%; object-fit: fill; }
.panther-rift:nth-child(2) { width: 32%; }
.panther-rift:nth-child(3) img { transform: scaleX(-1); }
.panther-fragments { position: absolute; inset: 0; transform: rotate(24deg); }
.panther-fragment {
  position: absolute; left: var(--chip-x); top: var(--chip-y);
  width: var(--chip-size); height: calc(var(--chip-size) * 1.7);
  background: linear-gradient(120deg,#f4edff 0 17%,#727387 22% 48%,#252438 54% 75%,#bea4df);
  clip-path: polygon(18% 0,100% 24%,63% 100%,0 65%); opacity: 0;
  animation: metal-fragment .56s var(--chip-delay) ease-out both;
}
.panther-swipe-talons {
  position: absolute; width: 49%; height: auto; max-width: none;
  left: 43%; top: -8%; opacity: 0; transform-origin: 20% 85%;
  animation: panther-talon-strike .65s .03s cubic-bezier(.2,.55,.28,1) both;
}
@keyframes panther-transition { 0% { opacity: 0; } 8%, 74% { opacity: 1; } 100% { opacity: 0; } }
@keyframes metal-rift-reveal { 0% { clip-path: inset(0 0 100% 0); scale: .97 1; } 100% { clip-path: inset(0); scale: 1 1; } }
@keyframes metal-fragment {
  0% { opacity: 0; transform: translate(0,0) rotate(var(--chip-angle)); }
  15% { opacity: .9; }
  100% { opacity: 0; transform: translate(var(--chip-dx),var(--chip-dy)) rotate(calc(var(--chip-angle) + 140deg)) scale(.35); }
}
@keyframes panther-talon-strike {
  0% { opacity: 0; transform: translate(30%, -30%) rotate(-12deg); }
  13% { opacity: 1; transform: translate(14%, -18%) rotate(-7deg); }
  67% { opacity: .95; transform: translate(-45%, 72%) rotate(6deg); }
  100% { opacity: 0; transform: translate(-66%, 106%) rotate(14deg); }
}
@keyframes panther-impact { 0%, 27%, 44%, 100% { translate: 0 0; } 29% { translate: -3px 2px; } 34% { translate: 2px -1px; } }

/* Each Fresh Code view uses a different pair of salad ingredients. */
.freshcode-leaf-tomato {
  top: -13%; right: 7%; --leaf-width: 11%; --leaf-tilt: -15deg;
  --leaf-delay: .83s; --leaf-duration: 7.2s;
}
.freshcode-leaf-cucumber {
  bottom: -11%; right: -3%; --leaf-width: 21%; --leaf-tilt: 22deg;
  --leaf-delay: .96s; --leaf-duration: 7.8s;
}
.freshcode-mobile-preview .freshcode-leaf-arugula {
  top: -12%; left: 4%; --leaf-width: 14%; --leaf-layer: 2; --leaf-tilt: -45deg;
}
.freshcode-leaf-tomato::after, .freshcode-leaf-cucumber::after { display: none; }
.freshcode-leaf-tomato img, .freshcode-leaf-cucumber img { filter: none; }
@media (prefers-reduced-motion: no-preference) {
  .freshcode-mobile-preview .freshcode-leaf img { animation: freshcode-leaf-float var(--leaf-duration) var(--leaf-delay) ease-in-out infinite; }
  html[data-bloom] .freshcode-mobile-preview .freshcode-leaf img { animation-play-state: paused; }
}
@media (max-width: 750px) {
  .object-panther-claws { --object-width: clamp(80.75px, 22.1vw, 123.25px); --object-placement: auto -3% -19% auto; }
  .object-tech-cube { --object-width: clamp(96px, 25vw, 150px); --object-placement: auto -2% -15% auto; }
  .panther-swipe-stage { width: 120vmin; }
}
@media (prefers-reduced-motion: reduce) {
  .object-refraction, .tech-signal { display: none; }
  #panther-transition[open], .panther-swipe-stage, .panther-rift, .panther-swipe-talons, .panther-fragment { animation: none; }
}

/* One restrained catchlight belongs to the uppermost talon. */
.claw-first-glint {
  position: absolute; display: block; left: 66%; top: 10%;
  width: 37%; aspect-ratio: 1; opacity: 0; pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0%, #bdefff77 36%, #fff 49% 51%, #c8eaff77 64%, transparent 100%) center / 100% 1px no-repeat,
    linear-gradient(0deg, transparent 0%, #e3ddff80 35%, #fff 48% 52%, #d3eeff80 65%, transparent 100%) center / 1px 100% no-repeat,
    radial-gradient(ellipse, #fff 0 3%, #d5f4ff80 7%, transparent 30%);
  transform: translate(-50%,-50%) rotate(16deg) scale(.25);
}
@media (prefers-reduced-motion: no-preference) {
  .object-panther-claws[data-ready] .claw-first-glint { animation: claw-arrival-glint .64s .78s ease-out 1 both; }
  html[data-bloom] .claw-first-glint { animation-play-state: paused; }
}
@keyframes claw-arrival-glint {
  0%,100% { opacity: 0; transform: translate(-50%,-50%) rotate(16deg) scale(.25); }
  24% { opacity: 1; transform: translate(-50%,-50%) rotate(16deg) scale(1); }
  58% { opacity: .45; transform: translate(-50%,-50%) rotate(27deg) scale(.7); }
}

/* Keep the intended white presentation when mobile browsers request dark mode. */
.portfolio-home[data-theme="light"] { color-scheme: only light; }
.portfolio-home[data-theme="dark"] { color-scheme: only dark; }
.featured-visual:is(.portal-preview, .freshcode-preview) .editorial-cover { box-shadow: none; }

/* A painted white canvas also protects against browser background recoloring. */
.portfolio-home[data-theme="light"],
.portfolio-home[data-theme="light"] :is(body, .app, .stage, .top, .bloom-intro) {
  background-color: #fff !important;
  background-image: linear-gradient(#fff, #fff) !important;
  color-scheme: only light;
}
.portfolio-home[data-theme="light"] :is(h1,h2,h3,p,a,button,.brand span,.project-category,.featured-meta,.project-counter) {
  -webkit-text-fill-color: currentColor;
}
.portal-emblem, .portal-emblem img { box-shadow: none; }
.portal-emblem img { filter: url(#portal-emblem-alpha); }
.portal-emblem::before, .portal-emblem::after { content: none !important; }

/* Samsung clear chip, independent of the thumbnail crop. */
.object-samsung-clear-chip {
  --object-placement: auto -4% -16% auto;
  --object-width: clamp(60px, 8.5vw, 128px);
  --object-shadow: #236ba62b;
}
@media (max-width: 700px) {
  .object-samsung-clear-chip {
    --object-width: clamp(52px, 15vw, 80px);
    --object-placement: auto -2% -17% auto;
  }
}

.featured-visual[data-project="samsung"] > .editorial-cover img { object-position: center 48%; }

/* Float the cucumber as a rigid slice without perspective or changing its shape. */
.freshcode-mobile-preview .freshcode-leaf-cucumber { perspective: none; }
.freshcode-mobile-preview .freshcode-leaf-cucumber img {
  width: 100%; height: auto; object-fit: contain; transform-origin: center;
}
@media (prefers-reduced-motion: no-preference) {
  .freshcode-mobile-preview .freshcode-leaf-cucumber img {
    animation: cucumber-rigid-float 7.8s .96s ease-in-out infinite;
  }
}
@keyframes cucumber-rigid-float {
  0%, 100% { transform: translate(0, 0) rotate(22deg); }
  50% { transform: translate(-3%, -10%) rotate(25deg); }
}

/* Shared layout from the November portfolio design. */
.portfolio-home .top { min-height: 0; }
.portfolio-home .brand span {
  font-size: clamp(19px, 1.19vw, 24px);
}
.portfolio-home .menu-item {
  display: block;
  position: relative;
  isolation: isolate;
  font-weight: 400;
}
.portfolio-home .menu-item:not(.is-active):not(:hover):not(:focus-visible),
.portfolio-home .menu-item:disabled {
  color: var(--muted);
  opacity: .81;
}
.portfolio-home .menu-item:disabled { cursor: default; }
.menu-item .mi-body { position: relative; z-index: 1; }
.menu-petal {
  position: absolute;
  inset: 50% auto auto -22px;
  width: 70px;
  height: 49px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity .2s ease-out;
  object-fit: contain;
}
.menu-item[data-key="bx"] .menu-petal { inset-inline-start: -21px; width: 65.52px; max-width: none; height: auto; }
.menu-item[data-key="ux"] .menu-petal { inset-block-start: 40%; }
.menu-item[data-key="pr"] .menu-petal { width: 68.4px; height: 48.6px; }
.menu-item[data-key="gr"] .menu-petal { width: 62px; height: 76px; inset-block-start: calc(50% - 25px); }
.menu-item:enabled:is(.is-active, :focus-visible) .menu-petal { opacity: 1; }
@media (hover: hover) {
  .menu-item:enabled:hover .menu-petal { opacity: 1; }
  .menu:has(.menu-item:enabled:hover) .menu-item.is-active:not(:hover) .menu-petal { opacity: 0; }
}
.petal[aria-disabled="true"] { pointer-events: none; }

.portfolio-home .featured-category {
  margin: 0 0 clamp(24px, 2.55vw, 49px);
  font: 400 calc(clamp(16px, 1.09vw, 22px) - 2px)/1.1 var(--display);
  letter-spacing: -.02em;
}
.portfolio-home .featured-copy h2 {
  font-size: calc(clamp(37px, 3.35vw, 66px) - 2px - var(--ux-type-reduction, 0px));
  text-wrap: initial;
}
.portfolio-home .featured-copy h2[lang="ko"] { font-size: clamp(26px, 2.2vw, 43px); }
.portfolio-home .featured-subtitle {
  font-size: calc(clamp(23px, 1.75vw, 34px) - 2px - var(--ux-type-reduction, 0px));
  margin-top: 3px;
}

.portfolio-home .featured-copy .panel-description {
  font-size: calc(clamp(15px, .94vw, 18px) - 2px);
  font-weight: 550;
  line-height: 1.55;
  color: color-mix(in srgb, var(--ink) 79%, var(--canvas));
}
.portfolio-home .featured-meta {
  font-size: var(--metadata-size);
  line-height: var(--metadata-leading);
  margin-top: clamp(28px, 3.6vw, 69px);
}
.featured-media {
  position: relative;
  min-width: 0;
  align-self: center;
}
.portfolio-home .featured-media > .featured-visual { width: 100%; }
.portfolio-home .featured-media > .featured-visual > .editorial-cover {
  position: relative;
  aspect-ratio: 1178 / 600;
  border: 0;
  border-radius: clamp(8px, .67vw, 13px);
}
.portfolio-home .featured-media img:is(.black-panther-thumb,.toktok-thumb) { object-position: center top; }

.portfolio-home .carol-crystal-large { right: -9%; bottom: -12%; }

.featured-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.portfolio-home .featured-actions .project-controls { margin-top: 5px; }
.portfolio-home .featured-actions .project-controls :is(button) {
  background: transparent;
  border-color: transparent;
}
.portfolio-home .featured-actions .project-controls button:is(:hover, :focus-visible) {
  border-color: var(--line);
}
.portfolio-home .foot { justify-content: center; }
.portfolio-home .foot-note {
  display: block;
  position: static;
  width: auto;
  transform: none;
  text-align: center;
  font-size: clamp(12px, .82vw, 16px);
  color: var(--text-caption);
}
.utility-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 5px 18px;
  padding: 8px 5.2%;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.portfolio-home .utility-bar .foot-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 17px;
  width: auto;
  margin: 0;
}
.portfolio-home .utility-bar button { min-height: 44px; }

@media (min-width: 1091px) {
  .portfolio-home .top { inset: 8.45svh 5.2% auto; }
  .portfolio-home .stage,
  .portfolio-home:is([data-cat="bx"],[data-cat="ux"]) .stage {
    grid-template-columns: 16.98vw minmax(0, 1fr);
    padding-inline: 5.2% 14.1%;
    padding-block: 82px;
  }
  .portfolio-home .featured-layout,
  .portfolio-home:is([data-cat="bx"],[data-cat="ux"]) .featured-layout {
    grid-template-columns: 17.55vw minmax(0, 1fr);
    gap: 2.60vw;
  }
  .portfolio-home .featured-copy { padding-top: 0; }
  .portfolio-home .featured-layout[data-featured="carol"] .featured-copy {
    align-self: start;
    padding-top: clamp(32px, 3.45vw, 67px);
  }
  .portfolio-home .featured-copy .panel-description { margin-top: clamp(25px, 2.52vw, 48px); }
  .portfolio-home .menu ul { gap: clamp(5px, .7vw, 14px); }
  .portfolio-home .menu-item { font-size: clamp(22px, 1.56vw, 30px); min-height: 44px; }
  .featured-actions { position: absolute; top: 100%; inset-inline: 0; }
  .portfolio-home .foot { inset-block-end: auto; top: 90.8svh; }
}
@media (max-width: 1090px) and (min-width: 751px) {
  .portfolio-home .top { inset: 42px 4% auto; }
}
@media (max-width: 750px) {
  .portfolio-home .top { padding: 24px 20px 12px; }
  .menu-petal { inset-inline-start: -9px; width: 46px; height: 34px; }
  .menu-item[data-key="bx"] .menu-petal { inset-inline-start: -10px; width: 43.092px; }
  .menu-item[data-key="pr"] .menu-petal { width: 45px; height: 32.4px; }
  .menu-item[data-key="gr"] .menu-petal { width: 42px; height: 53px; inset-block-start: calc(50% - 20px); }
  .portfolio-home .featured-layout { row-gap: 0; }
  .portfolio-home .featured-copy { display: contents; }
  .portfolio-home .featured-category { margin-bottom: 12px; }
  .portfolio-home .featured-media { margin-block: 16px 2px; }
  .portfolio-home .featured-media > .featured-visual { margin: 0; }
  .portfolio-home .featured-copy .panel-description { margin-top: 12px; }
  .portfolio-home .featured-meta { margin-top: 22px; }
  .portfolio-home .foot { padding-block: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .menu-petal { transition: none; }
}

.archive-live-art {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #cff0f1;
}
.portfolio-home .archive-live-art img { position: absolute; height: auto; object-fit: contain; }

.archive-live-art .archive-water-canvas + .archive-water { visibility: hidden; }
.archive-live-art .archive-fish { position: absolute; width: 32%; left: 34%; top: 30%; }
.portfolio-home .archive-live-art .archive-fish img { position: static; }
.archive-ticker {
  --ticker-width: 136%;
  position: absolute;
  left: 0;
  display: flex;
  width: calc(var(--ticker-width) * 2);
  gap: 0;
  animation: archive-thumbnail-ticker 15s linear infinite paused;
}
.archive-ticker-1 { top: 24%; }
.archive-ticker-2 { top: 48%; animation-direction: reverse; animation-duration: 17s; }
.portfolio-home .archive-live-art .archive-ticker img { position: static; width: 50%; flex: 0 0 50%; }
@keyframes archive-thumbnail-ticker { to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: no-preference) {
  .archive-preview:is(:hover,:focus-visible) .archive-ticker { animation-play-state: running; }
}

.freshcode-preview .freshcode-thumb-copy { opacity: 0; }
.freshcode-preview .freshcode-thumb-stage.is-playing .freshcode-thumb-copy { opacity: 1; }

.portfolio-home .featured-media > .portal-preview > .editorial-cover { aspect-ratio: 16 / 9; }
.portfolio-home .featured-copy #featured-title { font-family: var(--display); font-weight: 400; }
@media (max-width: 750px) {
  .portfolio-home .featured-copy #featured-title { font-size: calc(clamp(27px, 7.2vw, 47px) - 2px - var(--ux-type-reduction, 0px)); }
}

.carol-hover-film {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
}
.carol-preview .motion-screen.is-live .carol-hover-film { opacity: 1; }
.carol-preview .motion-screen.is-live > img { opacity: 0; }

.freshcode-mobile-preview .freshcode-leaf-cucumber img {
  filter: hue-rotate(11deg) saturate(.75) brightness(1.23) contrast(.90);
}
@media (prefers-reduced-motion: no-preference) {
  .freshcode-mobile-preview .freshcode-leaf-arugula img { animation-name: arugula-float; }
  @keyframes arugula-float {
    0%, 100% { transform: rotate(-45deg); }
    50% { transform: translate(3%, -8%) rotate(-45deg); }
  }
}
.object-samsung-clear-chip img {
  filter: drop-shadow(0 7px 12px var(--object-shadow));
}
.portfolio-home .featured-visual[data-project="samsung"] > .editorial-cover > img {
  transform: scale(1.035);
  transform-origin: 50% 8%;
}
.portfolio-home .featured-visual[data-project="freshcode-mobile"] > .editorial-cover > img {
  transform: translateY(4%) scale(1.09);
  transform-origin: center;
}
.portfolio-home .featured-subtitle { white-space: nowrap; }
.portfolio-home [data-featured="portfolio-archive"] #featured-title {
  white-space: nowrap;
}
@media (min-width: 751px) {
  .portfolio-home .featured-copy { container-type: inline-size; }
  .portfolio-home .featured-subtitle { font-size: calc(min(clamp(23px, 1.75vw, 34px), 10.4cqi) - 2px - var(--ux-type-reduction, 0px)); }
  .portfolio-home [data-featured="portfolio-archive"] #featured-title {
    font-size: calc(min(clamp(37px, 3.35vw, 66px), 19.5cqi) - 2px);
  }
}
@media (max-width: 750px) {
  .portfolio-home .top { gap: 2px 16px; }
  .portfolio-home .top-actions { width: auto; margin-top: 0; margin-inline-start: auto; }
}

.portfolio-home[data-cat="ux"] { --ux-type-reduction: 2pt; }
.portfolio-home[data-cat="ux"] #featured-title { letter-spacing: -.065em; }
.portfolio-home[data-cat="ux"] .featured-subtitle { letter-spacing: -.052em; }
.portfolio-home[data-cat="ux"] .featured-copy .panel-description {
  line-height: 1.4;
  letter-spacing: -.034em;
}
.portfolio-home[data-cat="ux"] .featured-copy .panel-description span + span { margin-top: .06em; }
.portfolio-home[data-cat="ux"] { --metadata-leading: 1.4; }

.portfolio-home [data-featured="autohands-promo"] #featured-title { white-space: nowrap; }
@media (min-width: 751px) {
  .portfolio-home [data-featured="autohands-promo"] #featured-title {
    font-size: calc(min(clamp(37px, 3.35vw, 66px), 17.2cqi) - 2px);
  }
}

/* The pre-cropped still and the ripple canvas cover the same frame. */
.portfolio-home .archive-live-art .archive-water,
.archive-live-art .archive-water-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
}
.archive-live-art .archive-ticker {
  opacity: 0;
  transition: opacity .22s ease;
  pointer-events: none;
}
.archive-preview:is(:hover,:focus-visible) .archive-ticker { opacity: 1; }

.profile-layout {
  display: grid;
  grid-template-columns: minmax(110px, .76fr) minmax(0, 1.65fr);
  align-items: start;
  gap: clamp(20px, 3vw, 50px);
  margin-top: 22px;
}
.profile-portrait {
  aspect-ratio: 360 / 504;
  width: 100%;
  max-width: 288px;
  margin: 0;
  overflow: hidden;
  border-radius: 10px;
}
.profile-portrait .profile-image {
  width: 102.5%;
  max-width: none;
  height: auto;
  margin-inline-start: -2.5%;
}
.profile-layout .plain-rows { margin-top: 0; }
.profile-layout .portfolio-skills { font-size: 12px; margin-block: 22px 12px; }
.portfolio-home[data-cat="lb"] .panel {
  align-self: start;
  max-width: none;
}
@media (min-width: 751px) {
  .portfolio-home[data-cat="lb"] .menu {
    position: relative;
    align-self: start;
    inset-block-start: calc(50svh - 117px);
    inset-inline-start: auto;
    transform: translateY(-50%);
  }
}
@media (min-width: 1091px) {
  .portfolio-home[data-cat="lb"] .stage { padding-inline-end: 5.2%; }
  .portfolio-home[data-cat="lb"] .menu { inset-block-start: calc(50svh - 82px); }
}
html[data-cat="lb"] .foot, html[data-cat="about"] .foot { position: static; margin-inline: auto; }
.process-projects { list-style: none; margin: clamp(24px, 3vw, 55px) 0; padding: 0; }
.process-projects li { border-bottom: 1px solid var(--line); }
.process-projects li:first-child { border-top: 1px solid var(--line); }
.process-project {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: clamp(38px, 4vw, 77.5px);
  padding: 6px 1.5%;
}
.portfolio-home :is(.brand, .brand span, .menu-item, .top-actions a, .top-actions button, .process-project-name) {
  font-family: var(--navigation-serif);
  font-weight: 400;
  font-style: normal;
  font-synthesis: none;
  letter-spacing: -.04em;
  text-transform: uppercase;
}
.process-project-name {
  position: relative;
  z-index: 2;
  font-size: clamp(13px, 1.9vw, 38px);
  line-height: 1;
  white-space: nowrap;
  color: transparent;
  -webkit-text-fill-color: currentColor;
  -webkit-text-stroke: .65px var(--ink);
  transition: margin-inline-start .5s ease;
}
.process-project-info {
  position: relative;
  z-index: 2;
  align-self: center;
  display: grid;
  gap: 3px;
  text-align: end;
  transition: transform .5s ease;
}
.process-project-info strong { font: 400 clamp(15px, 1.5vw, 29px)/1 var(--display); }
.process-project-info small { font-size: clamp(10px, .9vw, 14px); }
.process-wave {
  position: absolute;
  right: 100%;
  top: 50%;
  width: clamp(10px, 1.4vw, 26px);
  opacity: 0;
  transform: translate(-6px, -50%);
  transition: opacity .5s ease;
}
.process-project-preview {
  position: absolute;
  z-index: 1;
  inset: var(--preview-y, 50%) auto auto var(--preview-x, 51%);
  width: min(37.5%, 352.5px);
  aspect-ratio: 1.5;
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity .5s ease;
  pointer-events: none;
}
.process-preview-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.process-preview-image ~ .process-preview-image { opacity: 0; }
.process-preview-script {
  position: absolute;
  z-index: 2;
  width: clamp(32px, 30%, 70px);
  max-width: none;
  right: -9%;
  bottom: 5%;
  transform: rotate(-7deg);
}
.process-preview-script:is([src*="process-graphic"], [src*="process-samsung-ui-ux"]) { right: -3%; bottom: 7%; transform: none; }
.process-preview-script[src*="dark-portal"] { width: clamp(27px, 24%, 56px); }
.process-project:is(:hover, :focus-visible) { background: linear-gradient(0deg, color-mix(in srgb, var(--process-tint) 50%, transparent), transparent); z-index: 1; }
.process-project:is(:hover, :focus-visible) .process-project-name {
  margin-inline-start: clamp(17px, 3vw, 60px);
  color: var(--ink);
  -webkit-text-stroke-width: 0;
}
.process-project:is(:hover, :focus-visible) .process-project-info { transform: translateX(-12px); }
.process-project:is(:hover, :focus-visible) :is(.process-wave, .process-project-preview) { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .process-project:is(:hover, :focus-visible) .process-project-preview:has(.process-preview-image:nth-child(3)) .process-preview-image { animation: process-image-cycle 5.4s linear var(--cycle-offset, 0s) infinite; }
  .process-project:is(:hover, :focus-visible) .process-project-preview .process-preview-image:nth-child(2) { --cycle-offset: -3.6s; }
  .process-project:is(:hover, :focus-visible) .process-project-preview .process-preview-image:nth-child(3) { --cycle-offset: -1.8s; }
  @keyframes process-image-cycle { 0%, 28% { opacity: 1; } 34%, 94% { opacity: 0; } 100% { opacity: 1; } }
}
.freshcode-mobile-preview .freshcode-leaf-arugula img { filter: saturate(1.12) drop-shadow(1px 5px 9px #244f2c38); }
.freshcode-preview .freshcode-leaf-tomato { top: -7%; left: 4%; right: auto; --leaf-width: 12%; }
.freshcode-preview .freshcode-leaf-tomato img { filter: url(#freshcode-tomato-gold); }
.hetbahn-grain { position: absolute; z-index: 3; pointer-events: none; }
.hetbahn-grain img {
  display: block;
  width: 100%;
  height: auto;
  filter: saturate(.82) brightness(1.08) drop-shadow(0 4px 7px #a368422f);
}
.hetbahn-grain-single {
  width: 11%;
  top: -7%;
  left: 3%;
  --grain-tilt: -10deg;
  --grain-duration: 6.4s;
}
.hetbahn-grain-pair { width: 18%; right: -2%; bottom: -12%; }
.hetbahn-grain-pair img { width: 68%; }
.hetbahn-grain-pair img:first-child {
  position: absolute;
  right: 0;
  top: 19%;
  --grain-tilt: 34deg;
  --grain-duration: 7.6s;
  --grain-delay: -2.7s;
}
.hetbahn-grain-pair img:last-child {
  --grain-tilt: -18deg;
  --grain-duration: 6.9s;
  --grain-delay: -1.1s;
}
.hetbahn-grain img { transform: rotate(var(--grain-tilt)); }

.freshcode-preview .freshcode-leaf-spinach { right: -4%; bottom: -10%; top: auto; --leaf-width: 15%; --leaf-layer: 2; }
.freshcode-preview .freshcode-leaf-spinach::after { content: none; }
@media (prefers-reduced-motion: no-preference) {
  .freshcode-preview .freshcode-leaf img {
    animation: freshcode-leaf-float var(--leaf-duration) var(--leaf-delay) ease-in-out infinite;
  }
  .freshcode-preview .freshcode-leaf-tomato img { animation-name: freshcode-tomato-float; }
  .hetbahn-grain img { animation: hetbahn-grain-float var(--grain-duration) var(--grain-delay, 0s) ease-in-out infinite; }
  html[data-bloom] .hetbahn-grain img { animation-play-state: paused; }
}
@keyframes freshcode-tomato-float {
  0%, 100% { transform: translate(0, 0) rotate(var(--leaf-tilt)); }
  50% { transform: translate(4%, -11%) rotate(calc(var(--leaf-tilt) + 6deg)); }
}
@keyframes hetbahn-grain-float {
  0%, 100% { transform: translateY(0) rotate(var(--grain-tilt)); }
  50% { transform: translateY(-10%) rotate(calc(var(--grain-tilt) + 6deg)); }
}
@media (max-width: 750px) {
  .profile-layout { grid-template-columns: 1fr; }
  .profile-portrait { width: min(49%, 178px); }
  .profile-layout .portfolio-skills { grid-template-columns: 1fr; }
  .process-project-name { font-size: clamp(12px, 2.25vw, 18px); }
  .process-project-info small { max-width: 12ch; }
}
@media (max-width: 460px) {
  .profile-layout .portfolio-skills ul { grid-auto-flow: row; grid-template-rows: none; }
}
@media (prefers-reduced-motion: reduce) {
  .process-project * { transition: none; }
}


/* Keep the crystal lighting on its silhouette, with a brief pinpoint on the rim. */
.portal-emblem-glint {
  position: absolute;
  left: 92%;
  top: 13%;
  width: 12%;
  aspect-ratio: 1;
  pointer-events: none;
  opacity: 0;
  background:
    linear-gradient(90deg, transparent, #e4faff 44%, white 50%, #e4faff 56%, transparent) center / 100% 1px no-repeat,
    linear-gradient(0deg, transparent, #e4faff 44%, white 50%, #e4faff 56%, transparent) center / 1px 100% no-repeat;
  transform: translate(-50%, -50%) rotate(24deg) scale(.35);
}
.portal-emblem-sparks i {
  position: absolute;
  left: var(--spark-x);
  top: var(--spark-y);
  width: 4px;
  aspect-ratio: 1;
  background: #e9e5ff;
  box-shadow: 0 0 5px #ad9bff, 0 0 10px #8c7ff4;
  opacity: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .portal-preview:not([data-ready]) .portal-emblem img { opacity: 0; }
  .portal-preview[data-ready] .portal-emblem img {
    animation: portal-crystal-arrive 2.75s .2s both, portal-crystal-shimmer 5.8s 3.6s ease-in-out infinite;
  }
  .portal-preview[data-ready] .portal-emblem-glint {
    animation: portal-crystal-flash .95s 2.85s both;
  }
  .portal-preview[data-ready] .portal-emblem-sparks i {
    animation: portal-crystal-spark 1.55s var(--spark-delay) cubic-bezier(.2,.46,.45,1) both;
  }
  html[data-bloom] .portal-preview[data-ready] .portal-emblem :is(img, .portal-emblem-glint, i) { animation-play-state: paused; }
}
@keyframes portal-crystal-arrive {
  0% { opacity: 0; clip-path: inset(0 100% 0 0); transform: translateY(5px) scale(.96); }
  32% { opacity: .36; clip-path: inset(0 65% 0 0); }
  71% { opacity: .84; clip-path: inset(0 7% 0 0); }
  100% { opacity: 1; clip-path: inset(0); transform: none; }
}
@keyframes portal-crystal-spark {
  0% { opacity: 0; transform: translate(var(--spark-dx), var(--spark-dy)) rotate(45deg) scale(.35); }
  31% { opacity: .8; }
  76% { opacity: 1; transform: translate(0, 0) rotate(155deg) scale(.8); }
  100% { opacity: 0; transform: translate(0, 0) rotate(180deg) scale(.1); }
}
@keyframes portal-crystal-flash {
  0%, 100% { opacity: 0; transform: translate(-50%, -50%) rotate(24deg) scale(.35); }
  34% { opacity: 1; transform: translate(-50%, -50%) rotate(24deg) scale(1); }
}
@keyframes portal-crystal-shimmer {
  0%, 100% { filter: url(#portal-emblem-alpha) brightness(1); }
  32% { filter: url(#portal-emblem-alpha) brightness(1.17); }
  49% { filter: url(#portal-emblem-alpha) brightness(1.04); }
  63% { filter: url(#portal-emblem-alpha) brightness(1.11); }
}
.portfolio-home .contact-cta .small-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 13px;
  border-radius: 999px;
  line-height: 1.3;
  white-space: nowrap;
}

.portfolio-home [data-featured="samsung-audio"] .featured-subtitle {
  font-size: clamp(15px, 3.8vw, 21px);
}
.portfolio-home :is([data-featured="samsung-promo"], [data-featured="samsung-product"]) #featured-title {
  overflow-wrap: normal;
  word-break: normal;
}
@media (min-width: 751px) {
  .portfolio-home [data-featured="samsung-audio"] .featured-subtitle {
    font-size: clamp(14px, 7.2cqi, 27px);
  }
}
