/*
 * JUN YEON WONG — 2026
 * Layout coordinates derive from the five-page Illustrator source:
 * 1920 px desktop artboards, 30 px outer gutters, 30 px image gutters,
 * Work tiles 600x768, Project single images 1860x1080,
 * Project paired images 915x1080, related tiles 442x566.
 *
 * Commercial fonts must be supplied by the owner with web embedding rights.
 * The fallback is intentionally restrained; it is not a font substitute.
 */
@font-face {
  font-family: "Loretta VF";
  src: url("./fonts/LorettaVF.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "TT Norms Bold";
  src: url("./fonts/TTNorms-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --black: #000;
  --white: #f5f4f1;
  --green: #07583a;
  --soft: #a6aaa6;
  --placeholder: #e6e6e6;
  --margin: clamp(16px, 1.5625vw, 30px);
  --gallery-gap: clamp(14px, 1.5625vw, 30px);
  --header-height: clamp(68px, 5.5vw, 100px);
  --font-main: "Loretta VF", Georgia, "Times New Roman", serif;
  --font-name: "TT Norms Bold", "Arial", sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--black); scroll-behavior: smooth; overflow-x:clip; }
body {
  margin: 0;
  min-width: 280px;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-main);
  font-weight: 450;
  line-height: 1.1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.is-locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--white); outline-offset: 5px; }
button, img { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
button { border: 0; }
h1,h2,h3,p,figure { margin: 0; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* The navigation is intentionally spare, following the supplied artboards. */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  height: var(--header-height);
  padding: 0 var(--margin);
  display: grid;
  grid-template-columns: max-content minmax(0,1fr) max-content;
  column-gap: clamp(22px,2.4vw,48px);
  align-items: start;
  padding-top: clamp(17px,1.5vw,30px);
  background: var(--black);
  transition: opacity .45s ease;
}
.brand-name {
  font-family: var(--font-name);
  font-weight: 700;
  font-size: clamp(14px,1.33vw,25.5px);
  line-height: 1.2;
  letter-spacing: -.02em;
  white-space: nowrap;
}
.header-context {
  display: flex;
  align-items: baseline;
  gap: clamp(15px,2.2vw,44px);
  min-width: 0;
  font-size: clamp(14px,1.37vw,26px);
  line-height: 1.12;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.header-counter { flex: 0 0 auto; }
.header-title { overflow: hidden; text-overflow: ellipsis; }
.site-nav { display: flex; align-items: baseline; gap: clamp(18px,2.8vw,58px); font-size: clamp(15px,1.35vw,26px); white-space: nowrap; }
.work-link { color: var(--green); transition: color .2s ease; }
.work-link:hover, .work-link:focus-visible { color: #238a64; }
.information-link { transition: opacity .25s ease; }
.information-link:hover { opacity: .62; }
.view { min-height: 100svh; }

/* Full-screen statement, fades to the Home gallery. */
.opening {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--black);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 8vw;
  transition: opacity .68s cubic-bezier(.2,.65,.35,1), visibility .68s;
  visibility: visible;
}
.opening p {
  max-width: min(96vw,1440px);
  font-size: clamp(20px,2.5vw,48px);
  font-weight: 600;
  line-height: 1.27;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.opening.is-leaving { opacity: 0; visibility: hidden; pointer-events: none; }
.opening.is-gone { display: none; }
body.has-opening .site-header { opacity: 0; }

/* Home: gallery centered inside the whole viewport, independent image ratios. */
.view-home { overflow: hidden; }
.home-stage {
  position: relative;
  height: 100svh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  touch-action: pan-y;
  user-select: none;
  cursor: grab;
}
.home-stage.is-dragging { cursor: grabbing; }
.home-media {
  width: 100%;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: calc(var(--header-height) + 18px) 6vw clamp(35px,5vh,70px);
  transform: translate3d(0,0,0);
  will-change: transform,opacity;
  transition: transform .42s cubic-bezier(.2,.7,.2,1), opacity .24s ease;
}
.home-media.is-flipping { opacity: .2; }
.home-media.is-dragging { transition: none; }
.home-media img {
  max-width: min(88vw,1600px);
  max-height: min(80svh,calc(100svh - var(--header-height) - 80px));
  width: auto;
  height: auto;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  opacity: 1;
  transition: opacity .18s ease;
}
.home-media.is-loading img { opacity: .35; }
.home-media > .media-placeholder {
  width: min(72vw, 1100px);
  height: auto;
  aspect-ratio: 16 / 9;
  background: #242424;
}
.drag-hint {
  position: fixed;
  z-index: 3;
  left: var(--margin);
  bottom: 25px;
  opacity: .42;
  font-family: var(--font-name);
  letter-spacing: .08em;
  font-size: 10px;
  transition: opacity .4s ease;
}
.drag-hint.is-hidden { opacity: 0; }
.stage-area {
  position: absolute;
  top: 14%;
  bottom: 0;
  z-index: 2;
  width: 13%;
  background: transparent;
  opacity: 0;
}
.stage-area-prev { left: 0; cursor: w-resize; }
.stage-area-next { right: 0; cursor: e-resize; }
.home-stage.is-dragging .stage-area { pointer-events: none; }
.view-home.is-flashing .home-media { transition: none !important; }
.view-home.is-flashing .home-media img { transition: none !important; }

/* Work: exact original desktop grid, scaled fluidly. */
.view-work { padding: clamp(108px,8.125vw,156px) var(--margin) 0; }
.work-gallery {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  column-gap: var(--gallery-gap);
  row-gap: clamp(40px,4.8vw,92px);
  align-items: start;
}
.work-card { min-width: 0; }
.work-card a { display: block; }
.work-image {
  display: block;
  width: 100%;
  aspect-ratio: 25 / 32;
  overflow: hidden;
  background: var(--placeholder);
  position: relative;
}
.work-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.22,1,.36,1); }
.work-card > a:hover .work-image img, .work-card > a:focus-visible .work-image img { transform: scale(1.045); }
.media-placeholder {
  width: 100%;
  height: 100%;
  background: var(--placeholder);
  display: grid;
  place-items: center;
  color: #777;
  font-size: 12px;
}
.work-caption {
  display: block;
  margin-top: clamp(9px,.66vw,13px);
  font-size: clamp(13px,1.27vw,24px);
  line-height: 1.1;
}
.work-extra {
  padding: clamp(150px,20vw,400px) 0 clamp(30px,3vw,60px);
  font-size: clamp(13px,1vw,19px);
}
.work-extra span { color: #7e7e7e; }

/* The project hero uses the same full-screen single-image stage as Home. */
.project-hero {
  height: 100svh;
  display: grid;
  place-items: center;
  padding: calc(var(--header-height) + 15px) 6vw 7vh;
  background: #000;
}
.project-hero img {
  display: block;
  max-width: 88vw;
  max-height: min(77svh,calc(100svh - var(--header-height) - 80px));
  width: auto;
  height: auto;
  object-fit: contain;
}
.project-hero .media-placeholder { width: 70vw; height: min(72vh,780px); }
.project-body { padding: 0 var(--margin); }
.project-title {
  margin: clamp(24px,1.55vw,30px) 0 clamp(60px,8.6vw,165px);
  font-size: clamp(28px,4.65vw,88px);
  line-height: 1.06;
  letter-spacing: -.042em;
  font-weight: 520;
}
.project-scope {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--gallery-gap);
  font-size: clamp(14px,1.35vw,26px);
  margin-bottom: clamp(18px,1.3vw,25px);
  line-height: 1.24;
}
.project-scope-label { opacity: .95; }
.project-scope-value { justify-self: start; }
.project-gallery { display: flex; flex-direction: column; gap: var(--gallery-gap); }
.project-frame {
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--placeholder);
  min-width: 0;
  position: relative;
}
.project-frame.single { width: 100%; aspect-ratio: 31 / 18; }
.project-pair {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: var(--gallery-gap);
}
.project-pair .project-frame { aspect-ratio: 61 / 72; }
.project-frame img { width: 100%; height: 100%; object-fit: cover; }
.project-intro {
  margin: clamp(26px,1.85vw,36px) 0 clamp(70px,7vw,136px);
  font-size: clamp(19px,3.05vw,58px);
  line-height: 1.14;
  max-width: min(1450px,86vw);
  letter-spacing: -.025em;
}
.project-meta {
  display: flex;
  gap: clamp(30px,12vw,240px);
  font-size: clamp(13px,1.35vw,26px);
  margin: 0 0 clamp(45px,4vw,78px);
}
.project-meta span { display: block; }
.project-more { margin-top: clamp(110px,9vw,170px); }
.project-more h2 {
  font-size: clamp(21px,2vw,38px);
  font-weight: 450;
  margin: 0 0 clamp(34px,2.5vw,48px);
}
.related-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px,23.75%);
  gap: var(--gallery-gap);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  touch-action: pan-y;
  cursor: grab;
}
.related-track::-webkit-scrollbar { display: none; }
.related-track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.related-card { display: block; scroll-snap-align: start; min-width: 0; }
.related-card .work-image { aspect-ratio: 221 / 283; }
.related-card .work-caption { font-size: clamp(13px,1.3vw,24px); }
.related-instruction { font-size: 12px; opacity: .48; margin: 20px 0 0; }
.project-contact {
  padding: clamp(110px,12vw,230px) 0 clamp(35px,3vw,60px);
  font-size: clamp(18px,1.9vw,36px);
  line-height: 1.27;
}
.project-contact a { text-decoration: underline; text-underline-offset: .15em; }
.project-contact a:hover { color: #bbb; }

/* Information: editorial full-screen overlay, not a generic modal card. */
.information-panel {
  position: fixed;
  inset: 0;
  z-index: 90;
  overflow: auto;
  background: #000;
  color: var(--white);
  opacity: 0;
  visibility: hidden;
  transform: translateY(9px);
  transition: opacity .5s cubic-bezier(.2,.8,.2,1), visibility .5s, transform .5s cubic-bezier(.2,.8,.2,1);
  -webkit-overflow-scrolling: touch;
}
.information-panel.is-open { opacity: 1; visibility: visible; transform: none; }
.information-close {
  position: fixed;
  z-index: 5;
  right: clamp(28px,4.1vw,78px);
  top: clamp(28px,3.1vw,60px);
  width: clamp(34px,2.8vw,54px);
  height: clamp(34px,2.8vw,54px);
  background: none;
  padding: 0;
  transition: transform .3s ease;
}
.information-close:hover { transform: rotate(90deg); }
.information-close span {
  display: block;
  position: absolute;
  width: 100%;
  height: 3px;
  background: #fff;
  left: 0;
  top: 50%;
  transform: rotate(45deg);
}
.information-close span:last-child { transform: rotate(-45deg); }
.information-content {
  padding: clamp(28px,2.25vw,43px) clamp(28px,2.25vw,43px) clamp(150px,20vh,340px);
  min-height: 100%;
}
.info-intro {
  max-width: 1740px;
  padding-right: clamp(24px,3vw,65px);
  font-size: clamp(27px,3.15vw,61px);
  font-weight: 520;
  line-height: 1.13;
  letter-spacing: -.022em;
}
.info-intro p + p { margin-top: clamp(60px,4.4vw,85px); }
.info-contact {
  margin-top: clamp(140px,13vw,250px);
  font-size: clamp(25px,3.1vw,60px);
  font-weight: 480;
  letter-spacing: -.022em;
  line-height: 1.13;
}
.info-contact h2 { font-size: inherit; font-weight: 450; margin: 0 0 .15em; }
.info-contact a { display: block; width: fit-content; }
.info-contact a:hover { text-decoration: underline; text-underline-offset: .1em; }
.info-contact p { max-width: 1650px; margin-top: clamp(48px,4.5vw,90px); }

/* Responsive adaptation never changes the source grid's aspect ratios. */
@media(max-width:1100px) {
  .site-header { grid-template-columns:max-content minmax(0,1fr) max-content; column-gap:18px; }
  .work-gallery { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .header-context { font-size:16px; }
  .header-title { max-width:32vw; }
  .site-nav { gap:20px; font-size:17px; }
  .project-intro { max-width:100%; }
  .related-track { grid-auto-columns:minmax(240px,36%); }
}
@media(max-width:700px) {
  :root { --margin:16px; --gallery-gap:16px; --header-height:72px; }
  .site-header {
    padding-top:17px;
    grid-template-columns:minmax(0,1fr) max-content;
    align-items:start;
    gap:0 10px;
    height:80px;
  }
  .brand-name { font-size:15px; }
  .header-context {
    grid-row:2;
    grid-column:1 / -1;
    padding-top:8px;
    gap:15px;
    font-size:14px;
    line-height:1;
    max-width: calc(100vw - 32px);
  }
  .header-title { max-width:75vw; }
  .site-nav { grid-column:2;grid-row:1;font-size:15px;gap:15px; }
  .opening { padding:23px; }
  .opening p { font-size:clamp(23px,5.6vw,36px);line-height:1.2; }
  .opening p br { display:none; }
  .home-media { padding:95px 20px 60px; }
  .home-media img { max-width:100%;max-height:67svh; }
  .home-media > .media-placeholder { width:100%;aspect-ratio:4/5; }
  .stage-area { width:11%; }
  .drag-hint { bottom:24px;font-size:9px; }
  .view-work { padding-top:128px; }
  .work-gallery { grid-template-columns:repeat(2,minmax(0,1fr));row-gap:36px; }
  .work-caption { font-size:13px;line-height:1.2; }
  .work-extra { padding:100px 0 30px;line-height:1.5; }
  .project-hero { padding:100px 17px 40px; }
  .project-hero img { max-width:100%;max-height:67svh; }
  .project-title { margin-top:22px;margin-bottom:76px;line-height:1.05; }
  .project-scope { grid-template-columns:1fr;gap:6px;margin-bottom:20px; }
  .project-pair { gap:8px; }
  .project-gallery { gap:8px; }
  .project-intro { font-size:23px;margin:30px 0 70px; }
  .project-meta { font-size:14px;gap:40px;margin-bottom:40px; }
  .related-track { grid-auto-columns:minmax(220px,70%); }
  .project-contact { padding:110px 0 40px;font-size:22px; }
  .information-close { right:23px;top:22px;width:28px;height:28px; }
  .information-close span { height:2px; }
  .information-content { padding:80px 24px 100px; }
  .info-intro { padding-right:0;font-size:clamp(26px,5vw,38px);line-height:1.17; }
  .info-intro p + p { margin-top:55px; }
  .info-contact { margin-top:110px;font-size:clamp(25px,4.9vw,36px); }
  .info-contact a { overflow-wrap:anywhere; }
  .info-contact p { margin-top:55px; }
}
@media(max-width:430px) {
  .work-gallery { grid-template-columns:1fr;row-gap:31px; }
  .work-image { aspect-ratio:25/32; }
  .work-caption { font-size:15px; }
  .site-nav { font-size:13px;gap:10px; }
  .brand-name { font-size:13px; }
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after { scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important; }

}
@font-face { font-family: "Loretta"; src: url("./fonts/Loretta-Regular.otf") format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Loretta"; src: url("./fonts/Loretta-SemiBold.otf") format("opentype"); font-weight: 600 900; font-display: swap; }
:root { --font-main: "Loretta", Georgia, serif; --gallery-gap: clamp(8px, .8vw, 16px); }
.home-media { position:relative; overflow:visible; }
.home-media .home-neighbor { position:absolute; top:50%; transform:translateY(-50%); }
.home-media .home-neighbor-prev { left:0; translate:-100% 0; }
.home-media .home-neighbor-next { right:0; translate:100% 0; }
.home-media.is-settling { transition: transform .42s cubic-bezier(.18, .85, .23, 1.13); }
.work-gallery { row-gap:clamp(24px,2.4vw,46px); }
.work-caption { color:#636363; transition:color .2s ease; }
.work-card:has(>a:hover) .work-caption, .work-card:has(>a:focus-visible) .work-caption, .work-card .work-caption:hover, .work-card .work-caption:focus-visible, .related-card:has(>a:hover) .work-caption, .related-card:has(>a:focus-visible) .work-caption, .related-card .work-caption:hover, .related-card .work-caption:focus-visible { color:#fff; }
.work-extra { padding-top:clamp(100px,12vw,230px); font-size:clamp(20px,2.1vw,40px); line-height:1.2; }
.work-extra a { color:#636363; }
.work-extra a:hover, .work-extra a:focus-visible { color:#fff; cursor:alias; }
.project-hero { height:100svh; padding:0; display:block; }
.project-hero img { width:100%; height:100%; max-width:none; max-height:none; object-fit:cover; }
.project-scope { grid-template-columns:25% 1fr; gap:0; }
.project-scope-value { max-width:30ch; }
.project-meta { display:grid; grid-template-columns:25% 1fr; gap:0; }
.project-frame.single { aspect-ratio:auto; }
.project-frame.single img { width:100%; height:auto; }
.project-frame.single .media-placeholder { aspect-ratio:31/18; }
.project-pair .project-frame { aspect-ratio:auto; align-items:start; }
.project-pair .project-frame img { height:auto; object-fit:contain; }
.related-track { grid-auto-columns:calc((100% - 2 * var(--gallery-gap))/3); }
.related-card .work-image { aspect-ratio:25/32; }
.related-card .work-caption { font-size:clamp(13px,1.27vw,24px); }
.project-contact a { color:#636363; text-decoration:none; }
.project-contact a:hover, .project-contact a:focus-visible { color:#fff; }
.information-content { padding:0; }
.info-intro, .info-contact { min-height:100svh; padding:clamp(28px,2.25vw,43px); }
.info-intro { position:sticky; top:0; max-width:none; }
.info-contact { position:relative; z-index:1; margin:0; background:#000; }
@media(max-width:1100px) { .related-track { grid-auto-columns:calc((100% - var(--gallery-gap))/2); } }
@media(max-width:700px) {
 .work-gallery { row-gap:24px; }
 .project-hero { padding:0; }
 .project-hero img { max-width:none; max-height:none; }
 .project-scope { grid-template-columns:25% 1fr; gap:0; }
 .project-pair, .project-gallery { gap:var(--gallery-gap); }
 .related-track { grid-auto-columns:75%; }
 .info-intro, .info-contact { padding:80px 24px 40px; }
 .info-intro { position:sticky; }
}
.home-media .home-neighbor-prev { left:50%; right:auto; translate:calc(-50% - 100vw) 0; }
.home-media .home-neighbor-next { left:50%; right:auto; translate:calc(-50% + 100vw) 0; }
/* Transitions and media, following the supplied reference. */
.site-header { background:transparent; mix-blend-mode:difference; transition:opacity 2s ease; }
.site-header .work-link { color:#fff; }
#main-content { transition:opacity 2s ease; }
body.has-opening #main-content, body.has-opening .site-header,
body.is-info-transition #main-content, body.is-info-transition .site-header { opacity:0; pointer-events:none; }
.opening { transition:opacity 2s ease, visibility 2s; }
.opening p { opacity:0; animation: opening-text-in 2s ease 1s forwards; }
@keyframes opening-text-in { to { opacity:1; } }
.information-panel { transform:none; transition:opacity 2s ease, visibility 2s; }
.home-media { position:absolute; inset:0; width:100%; height:100%; display:block; padding:0; }
.home-slide { position:absolute; inset:0; display:grid; place-items:center; padding:calc(var(--header-height) + 18px) 6vw clamp(35px,5vh,70px); }
.home-slide.slide-prev { transform:translateX(-100%); }
.home-slide.slide-next { transform:translateX(100%); }
.home-media.is-dragging { transition:none; }
.home-media.is-settling { transition:transform .5s cubic-bezier(.18,.85,.23,1.13); }
.work-extra { font-size:clamp(13px,1.27vw,24px); }
.project-more { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:var(--gallery-gap); align-items:start; }
.project-more h2 { margin:0; font-size:clamp(13px,1.27vw,24px); line-height:1.1; }
.project-more .related-track { grid-column:2 / 5; grid-auto-columns:calc((100% - 2 * var(--gallery-gap))/3); padding-bottom:32px; }
.related-card > a:hover .work-image img, .related-card > a:focus-visible .work-image img { transform:scale(1.045); }
.reveal { opacity:0; transform:translateY(22px); transition:opacity .8s ease, transform .8s cubic-bezier(.22,1,.36,1); }
.reveal.is-visible { opacity:1; transform:translateY(0); }
.info-contact a:hover { text-decoration:none; }
@media(max-width:700px) {
 .home-slide { padding:95px 20px 60px; }
 .project-more { grid-template-columns:1fr; }
 .project-more h2 { margin-bottom:8px; font-size:15px; }
 .project-more .related-track { grid-column:1; grid-auto-columns:70%; }
 .work-extra { font-size:13px; }
}
@media(max-width:430px) { .work-extra { font-size:15px; } }
@media(prefers-reduced-motion:reduce) { .opening p { animation:none; opacity:1; } .reveal { opacity:1; transform:none; } }
.site-header .work-link { color:#005530; }
.site-header.is-work .work-link { color:#fff; }
.site-header .work-link:hover, .site-header .work-link:focus-visible { color:#9e9e9e; }
.more-projects-gap { display:inline-block; width:.65em; }
.project-pair .project-frame { align-items:stretch; }
.project-pair .project-frame img { width:100%; height:100%; object-fit:cover; }
.reveal.is-visible { transform:none; }
.site-header.is-work .work-link:hover, .site-header.is-work .work-link:focus-visible { color:#fff; }
/* Keep the scrollbar space when the information overlay locks the page. */
html { scrollbar-gutter:stable; }
.project-frame.reveal { transition:opacity 1.35s ease, transform 1.35s cubic-bezier(.22,1,.36,1); transform:translateY(14px); }
.project-frame.reveal.is-visible { transform:none; }

/* Keep the cover in place while the project section scrolls over it. */
.project-hero { position:sticky; top:0; z-index:0; overflow:hidden; }
.project-body { position:relative; z-index:1; display:flow-root; background:var(--black); }

/* Project labels and direct, responsive browsing. */
.work-caption-row { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-top:clamp(9px,.66vw,13px); }
.work-caption-row .work-caption { margin-top:0; min-width:0; }
.work-scope { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:4px; max-width:68%; font-size:clamp(10px,.75vw,14px); line-height:1.2; }
.scope-tag { --tag-outline:1.2px; display:inline-block; color:#a3a3a3; box-shadow:inset 0 0 0 var(--tag-outline) #a3a3a3; border-radius:999px; padding:.22em .68em; white-space:nowrap; transition:color .2s ease, background-color .2s ease, box-shadow .2s ease; }
@media (hover:hover) { .scope-tag:hover { color:#000; background:#fff; box-shadow:inset 0 0 0 var(--tag-outline) #fff; } }
.project-coming-soon { min-height:100svh; display:grid; place-items:center; padding:var(--header-height) var(--margin); font-size:clamp(20px,2vw,38px); }
.related-track { min-width:0; max-width:100%; scroll-snap-type:none; scroll-behavior:auto; touch-action:pan-x pan-y; -webkit-overflow-scrolling:touch; }
.related-track.is-dragging { user-select:none; }
.related-track.is-dragging .work-image img { transition:none; }
@media (max-width:700px) and (orientation:portrait) {
  .project-scope, .project-meta { grid-template-columns:calc(50% + var(--gallery-gap) / 2) minmax(0,1fr); gap:0; }
  .project-pair { grid-template-columns:minmax(0,1fr); }
  .project-pair .project-frame img { width:100%; height:auto; object-fit:contain; }
  .project-pair .project-frame { aspect-ratio:var(--own-ratio,1) !important; }
  .work-scope { font-size:11px; }
}
/* Prevent fractional image dimensions from exposing a light frame edge. */
.project-frame, .work-image { background:var(--black); }
.project-frame img, .work-image img { display:block; }
@media (max-width:700px) { .scope-tag { --tag-outline:.6px; } }

/* Quiet, correctly sized loading states without unrelated imagery. */
.project-frame:has(>img.is-pending), .work-image:has(>img.is-pending),
.project-hero:has(>img.is-pending), .media-placeholder { background:#1c1c1c; }
.project-frame img, .work-image img, .project-hero img, .home-slide img { transition:opacity .45s ease, transform .8s cubic-bezier(.22,1,.36,1); }
.project-frame img.is-pending, .work-image img.is-pending, .project-hero img.is-pending, .home-slide img.is-pending { opacity:0; }
.home-slide:has(>img.is-pending)::before { content:""; grid-area:1 / 1; width:min(75vw,1100px); aspect-ratio:16 / 10; background:#1c1c1c; }
.home-slide > img { grid-area:1 / 1; }
.home-slide > .media-placeholder { width:min(75vw,1100px); height:auto; aspect-ratio:16 / 10; }
.media-placeholder.is-unavailable { color:#858585; font-size:12px; text-align:center; padding:16px; }
.opening { cursor:pointer; }
.opening.is-skipping { transition-duration:.18s; }
body.is-opening-skipping #main-content, body.is-opening-skipping .site-header { transition-duration:.18s; }

.project-frame:has(>img.is-pending) { background:var(--media-color,#1c1c1c); }
.home-slide > img.media-flash-preview { --preview-max-height:min(80svh,calc(100svh - var(--header-height) - 80px)); position:relative; z-index:0; width:min(100%,1600px,calc(var(--preview-max-height) * var(--preview-ratio,1.6))); aspect-ratio:var(--preview-ratio,1.6); height:auto; }
.home-slide > img:not(.media-flash-preview) { position:relative; z-index:1; }
.project-hero.is-entering { animation:project-cover-in 1.1s ease both; }
@keyframes project-cover-in { from { opacity:0; } to { opacity:1; } }
@media (prefers-reduced-motion:reduce) { .project-hero.is-entering { animation:none; } }
@media (max-width:700px) { .home-slide > img.media-flash-preview { --preview-max-height:67svh; } }

/* Image-sized color placeholders and delayed, real transfer progress. */
.project-frame:has(>img.is-pending), .work-image:has(>img.is-pending), .project-hero:has(>img.is-pending) { background:var(--media-color,#1c1c1c); }
/* Bleed the rendered image very slightly past the clipped frame to cover fractional-pixel seams. */
.project-frame img, .work-image img, .project-hero img { transform:scale(1.004); }
.home-slide:has(>img.is-pending)::before { display:none; }
.project-frame:has(>img.is-pending)::after, .work-image:has(>img.is-pending)::after, .project-hero:has(>img.is-pending)::after { content:""; position:absolute; inset:0; z-index:1; background:#000; pointer-events:none; animation:placeholder-breathe 3.2s ease-in-out infinite; }
.home-slide > .home-color-placeholder { --preview-max-height:min(80svh,calc(100svh - var(--header-height) - 80px)); grid-area:1/1; width:min(100%,1600px,calc(var(--preview-max-height) * var(--preview-ratio,1.6))); aspect-ratio:var(--preview-ratio,1.6); background:var(--media-color,#1c1c1c); transition:opacity .45s ease; }
.home-slide:has(>img:not(.is-pending)) > .home-color-placeholder { opacity:0; }
.home-slide:has(>img.is-pending) > .home-color-placeholder { animation:home-placeholder-breathe 3.2s ease-in-out infinite; }
.media-placeholder.is-pending { animation:home-placeholder-breathe 3.2s ease-in-out infinite; }
.project-frame img, .work-image img, .project-hero img, .home-slide img { transition:opacity 1s ease, transform .8s cubic-bezier(.22,1,.36,1); }
.home-slide > .home-color-placeholder { transition:opacity 1s ease; }
@keyframes placeholder-breathe { 0%,100% { opacity:.04; } 50% { opacity:.22; } }
@keyframes home-placeholder-breathe { 0%,100% { filter:brightness(1); } 50% { filter:brightness(.8); } }
@media (prefers-reduced-motion:reduce) { .project-frame::after,.work-image::after,.project-hero::after,.home-slide > .home-color-placeholder,.media-placeholder { animation:none!important; } }
@media (max-width:700px) {
 .home-slide > .home-color-placeholder { --preview-max-height:67svh; }
 .project-more .related-track { padding-bottom:24px; }
 .related-card .work-caption-row { display:grid; grid-template-columns:max-content minmax(0,1fr); column-gap:12px; }
 .related-card .work-caption { white-space:nowrap; }
 .related-card .work-scope { min-width:0; max-width:100%; font-size:10px; }
 .project-contact { overflow-wrap:anywhere; }
 /* Longer introductions scroll first, then stay pinned as contact covers them. */
 .info-intro { top:min(0px,calc(100svh - var(--info-intro-height,100svh))); bottom:auto; padding-top:80px; }
}
@media (max-width:360px) { .project-more .related-track { grid-auto-columns:85%; } }
