/* CHEONJI gallery — desktop collage, natural document flow on small screens. */
.home-page { --header-height: 82px; --gallery-width: 1680px; --muted: #b0b6b2; }
.home-page main { overflow: clip; }
.home-page .gallery-header { position: sticky; top: 0; z-index: 50; background: var(--paper); max-width: none; width: 100%; margin: 0; padding-inline: var(--gutter); height: var(--header-height); gap: 38px; }
.home-page .gallery-header .wordmark { display: block; font-size: 26px; letter-spacing: -1.5px; }
.header-discipline { color: var(--muted); font-size: 12px; line-height: 1.5; letter-spacing: .08em; }
.gallery-header nav { width: 43%; justify-content: space-between; font-size: 12px; }
.gallery-header nav sup { color: var(--muted); margin-left: 4px; font-size: 12px; }
.header-signal { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; color: var(--accent); font-size: 28px; margin-left: 26px; }
.gallery-hero { position: relative; max-width: var(--gallery-width); margin: auto; height: min(850px, calc(100svh - 82px)); min-height: clamp(740px, 65vw, 1100px); }
.hero-edition { position: absolute; top: 24px; left: var(--gutter); right: var(--gutter); display: flex; justify-content: space-between; font-size: 12px; letter-spacing: .09em; color: var(--muted); }
.status-dot { display: inline-block; width: 5px; height: 5px; margin: 0 0 2px 6px; border-radius: 50%; background: var(--accent); }
.hero-title { position: absolute; top: 9%; left: 32%; margin: 0; font-size: clamp(36px, 3.55vw, 62px); line-height: 1.07; letter-spacing: -.055em; font-weight: 400; }
.hero-title em { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; }
.hero-gallery { position: absolute; inset: 0; }
.gallery-card { position: absolute; display: block; transform: translate3d(0, var(--drift, 0px), 0); }
.gallery-art { display: block; overflow: hidden; background: var(--soft); aspect-ratio: 1; }
.gallery-card img { width: 100%; height: 100%; object-fit: cover; }
.gallery-caption { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; margin-top: 10px; font-size: 15px; line-height: 1.5; }
.gallery-caption strong { font-weight: 400; }
.gallery-caption small { color: var(--muted); font-size: 11px; letter-spacing: .04em; }
.gallery-open { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; display: grid; place-items: center; background: var(--paper); border-radius: 50%; opacity: 0; transform: translateY(4px); transition: opacity .25s, transform .25s; }
.gallery-card:hover .gallery-open, .gallery-card:focus-visible .gallery-open { opacity: 1; transform: none; }
.gallery-card:nth-child(1) { width: 20%; left: var(--gutter); top: 12%; }
.gallery-card:nth-child(2) { width: 23%; left: 32%; top: 32%; }
.gallery-card:nth-child(3) { width: 17%; right: 9%; top: 11%; }
.gallery-card:nth-child(4) { width: 18%; left: 11%; top: 61%; }
.gallery-card:nth-child(5) { width: 20%; right: var(--gutter); top: 58%; }
.hero-note { position: absolute; top: 43%; left: 63%; font-size: 18px; line-height: 1.8; letter-spacing: -.03em; margin: 0; pointer-events: none; }
.hero-note span { display: block; font-size: 13px; letter-spacing: .07em; color: var(--muted); margin-top: 16px; }
.hero-bottom { position: absolute; bottom: 12px; left: var(--gutter); right: var(--gutter); display: flex; justify-content: center; align-items: flex-end; }


.scroll-cue { display: flex; gap: 32px; align-items: center; font-size: 13px; padding: 12px 0; }
.scroll-cue span { color: var(--accent); font-size: 20px; }

.selected-work, .about-section, .contact-section { max-width: var(--page-width); width: calc(100% - var(--gutter) * 2); margin-inline: auto; }
.selected-work { padding-top: 145px; scroll-margin-top: 35px; }
.section-label { font-size: 12px; letter-spacing: .09em; color: var(--muted); }
.work-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding-bottom: 54px; }
.work-heading h2 { font-size: clamp(36px, 4.3vw, 64px); font-weight: 400; letter-spacing: -.06em; margin: 20px 0 0; line-height: 1.1; }
.blue-dot { color: var(--accent); }
.text-link { display: inline-flex; align-items: center; gap: 32px; padding-block: 10px; font-size: 15px; border-bottom: 1px solid var(--line); }
.text-link span { color: var(--accent); }
.work-collection { padding-top: 22px; border-top: 1px solid var(--line); margin-bottom: 80px; scroll-margin-top: 35px; }
.collection-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 32px; }
.collection-heading h3 { margin: 0; font-size: 19px; font-weight: 400; letter-spacing: -.03em; }
.collection-heading h3 span { font-size: 12px; color: var(--muted); margin-right: 26px; vertical-align: middle; }
.collection-heading > a { color: var(--muted); font-size: 13px; padding: 10px 0; }
.collection-heading > a::after { content: ' ↗'; color: var(--ink); margin-left: 12px; }
.collection-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; align-items: start; }
.story-project { display: block; position: relative; min-width: 0; }
.story-project:nth-child(2) { margin-top: 72px; }
.story-project:nth-child(3) { margin-top: 24px; }
.featured-image { overflow: hidden; aspect-ratio: 1; background: var(--soft); }
.story-project img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .65s cubic-bezier(.2,.7,.2,1); }
.story-project:hover img, .story-project:focus-visible img { transform: scale(1.035); }
.featured-caption { display: block; padding: 17px 28px 0 0; }
.story-project strong { display: block; font-size: 17px; font-weight: 500; letter-spacing: -.035em; }
.story-project small { display: block; margin-top: 7px; font-size: 12px; color: var(--muted); }
.project-link-arrow { position: absolute; right: 0; bottom: 27px; font-size: 19px; color: var(--muted); }
.archive-cta { display: grid; grid-template-columns: 1fr auto; padding: 38px 0; border-block: 1px solid var(--line); align-items: center; }
.archive-cta > span:first-child { color: var(--muted); font-size: 14px; }
.archive-cta strong { grid-column: 1; font-size: clamp(32px, 4vw, 58px); letter-spacing: -.055em; font-weight: 400; line-height: 1.3; margin-top: 6px; }
.archive-cta sup { font-size: 13px; color: var(--muted); vertical-align: super; letter-spacing: 0; }
.archive-arrow { grid-column: 2; grid-row: 1 / 3; font-size: 55px; color: var(--accent); transition: transform .3s; }
.archive-cta:hover .archive-arrow { transform: translate(4px, -4px); }
.about-section { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; padding-block: 150px; scroll-margin-top: 20px; }
.about-label { display: flex; flex-direction: column; align-items: flex-start; gap: 40px; }
.about-symbol { color: var(--accent); font-size: 105px; line-height: 1; }
.about-copy h2 { font-size: clamp(29px, 3.2vw, 48px); letter-spacing: -.05em; line-height: 1.45; margin: 0 0 32px; }
.about-copy h2 span { color: var(--muted); }
.about-copy p { font-size: 17px; line-height: 1.95; color: var(--muted); margin: 0 0 18px; }
.capabilities { display: flex; flex-wrap: wrap; gap: 12px 24px; padding-top: 28px; font-size: 13px; }
.capabilities a { border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.about-signature { display: flex; gap: 20px; align-items: center; margin-top: 42px; font-size: 13px; color: var(--muted); }
.about-signature img { object-fit: contain; width: 50px; height: 75px; }
.about-signature strong { font-weight: 400; color: var(--ink); }
.contact-section { border-top: 1px solid var(--line); padding-top: 28px; padding-bottom: 72px; }
.contact-top, .contact-bottom { display: flex; justify-content: space-between; gap: 20px; font-size: 15px; color: var(--muted); }
.contact-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 32px 20px; }
.contact-cta h2 { margin: 0; font-size: clamp(80px, 13vw, 190px); letter-spacing: -.075em; font-weight: 400; line-height: 1.15; }
.contact-arrow { font-size: clamp(75px, 11vw, 160px); color: var(--accent); line-height: 1; transition: transform .3s; }
.contact-cta:hover .contact-arrow { transform: translate(6px, -6px); }
.contact-bottom p { margin: 0; }
.contact-bottom > a { color: var(--ink); }
.home-page footer { border-top: 1px solid var(--line); }
@media (min-width: 1700px) { .gallery-card:nth-child(4) { width: 16%; } .gallery-card:nth-child(5) { width: 18%; } }
@media (max-width: 1000px) and (min-width: 701px) {
  .gallery-hero { min-height: 660px; height: 75vw; }
  .hero-title { font-size: 39px; top: 15%; }
  .gallery-card:nth-child(1) { top: 14%; width: 23%; }
  .gallery-card:nth-child(2) { top: 38%; width: 26%; }
  .gallery-card:nth-child(3) { top: 13%; width: 19%; right: 5%; }
  .gallery-card:nth-child(4) { top: 61%; width: 20%; left: 7%; }
  .gallery-card:nth-child(5) { top: 64%; width: 24%; }
  .hero-note { left: 63%; top: 41%; font-size: 15px; }
  .hero-note span { font-size: 11px; }

  .gallery-caption small { display: none; }
  .collection-grid { gap: 22px; }
}
@media (max-width: 700px) {
  .home-page { --header-height: 72px; }
  .home-page .gallery-header { height: var(--header-height); gap: 12px; }
  .home-page .gallery-header .wordmark { font-size: 23px; }
  .header-discipline, .header-signal { display: none; }
  .gallery-header nav { width: auto; gap: 22px; font-size: 13px; }
  .gallery-header nav sup { display: none; }
  .gallery-hero { min-height: 0; height: auto; padding: 24px var(--gutter) 0; }
  .hero-edition { position: static; font-size: 10px; gap: 12px; }
  .hero-edition > span:last-child { white-space: nowrap; }
  .hero-title { position: static; font-size: clamp(47px, 9vw, 66px); margin: 42px 0 32px; }
  .hero-gallery { position: static; display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 28px 16px; }
  .gallery-card:nth-child(n) { position: relative; inset: auto; width: 100%; transform: none; will-change: auto; }
  .gallery-card:nth-child(2) { margin-top: 65px; }
  .gallery-card:nth-child(3) { margin-top: -45px; }
  .gallery-card:nth-child(5) { margin-top: -45px; }
  .gallery-caption { margin-top: 8px; font-size: 14px; }
  .gallery-caption small { display: none; }
  .gallery-open { display: none; }
  .hero-note { position: static; font-size: 16px; margin: 32px 0 26px; }
  .hero-note span { margin-top: 10px; }
  .hero-bottom { position: static; border-top: 1px solid var(--line); padding-top: 20px; align-items: center; }



  .selected-work { padding-top: 85px; }
  .work-heading { display: block; padding-bottom: 30px; }
  .work-heading h2 { font-size: 37px; margin-top: 16px; }
  .text-link { margin-top: 24px; }
  .work-collection { margin-bottom: 48px; }
  .collection-heading { margin-bottom: 20px; }
  .collection-heading h3 { font-size: 16px; }
  .collection-heading h3 span { margin-right: 10px; font-size: 12px; }
  .collection-heading > a { font-size: 12px; }
  .collection-heading > a::after { margin-left: 3px; }
  .collection-grid { grid-template-columns: 1fr 1fr; gap: 26px 16px; }
  .story-project:nth-child(n) { margin: 0; }
  .story-project:nth-child(2) { margin-top: 36px; }
  .featured-caption { padding: 12px 0 0; }
  .story-project strong { font-size: 15px; line-height: 1.55; }
  .story-project small { font-size: 12px; }
  .project-link-arrow { display: none; }
  .archive-cta { padding-block: 28px; }
  .archive-arrow { font-size: 40px; }
  .about-section { grid-template-columns: 1fr; padding-block: 80px; gap: 30px; }
  .about-label { flex-direction: row; justify-content: space-between; align-items: center; }
  .about-symbol { font-size: 50px; }
  .about-copy h2 { font-size: clamp(26px, 5.3vw, 36px); }
  .about-copy p { font-size: 16px; }
  .about-copy p br { display: none; }
  .capabilities { gap: 12px 18px; font-size: 12px; }
  .contact-top { font-size: 12px; }
  .contact-top > span:last-child { display: none; }
  .contact-cta { gap: 10px; padding-block: 26px; }
  .contact-cta h2 { font-size: clamp(65px, 16vw, 106px); }
  .contact-arrow { font-size: 59px; }
  .contact-bottom { flex-direction: column; font-size: 13px; gap: 10px; }
  .contact-section { padding-bottom: 45px; }
}
@media (max-width: 370px) {
  .gallery-header nav { gap: 13px; }
  .home-page .gallery-header .wordmark { font-size: 21px; }
  .hero-title { font-size: 43px; }
  .collection-heading { flex-wrap: wrap; gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-card { transform: none !important; will-change: auto; }
  .gallery-card img, .story-project img, .archive-arrow, .contact-arrow { transition: none; }
}

/* Reading sizes for functional navigation take precedence over shared page styles. */
.home-page .gallery-header nav a { font-size: 14px; }
.home-page footer > span, .home-page footer .back-top { font-size: 12px; }
@media (max-width: 700px) {
  .home-page .gallery-header nav a { font-size: 13px; }
  .hero-edition { align-items: flex-start; gap: 20px; line-height: 1.5; }
  .hero-edition > span:first-child { max-width: 200px; }
  .collection-heading { flex-wrap: wrap; }
}
@media (max-width: 370px) {
  .home-page .gallery-header nav a { font-size: 12px; }
}

/* Anchor destinations remain readable beneath the sticky navigation. */
.home-page :is(#main, #intro, #work, #healthcare, #movement, #life, #about, #services, #contact) { scroll-margin-top: 16px; }
.capabilities a, .contact-bottom > a { min-height: 44px; display: inline-flex; align-items: center; }
.capabilities a:hover, .contact-bottom > a:hover { color: var(--accent); }

/* Quiet vertical suspension. Artwork stays flat, with no lighting or added shadow. */
.gallery-hero.is-floating .gallery-card { will-change: transform; }

/* Extra travel is needed only when aligning the last navigation destination. */
.home-page { padding-bottom: var(--anchor-tail, 0px); }
.home-page :is(#work, #about, #contact):focus { outline: none; }
