/* Single preview: Jeju Myeongjo headings, Arial text, regular weight only. */
@font-face {
  font-family: 'Jeju Myeongjo';
  src: url('./assets/fonts/JejuMyeongjo-Regular.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
html {
  --display-font: 'Jeju Myeongjo', serif;
  --ease-out: cubic-bezier(.22,.68,0,1);
  --page-gutter: 3.125vw;
  --navigation-font-size: clamp(8px,.8vw,13px);
  --navigation-line-height: 1.35;
  --navigation-height: calc(var(--navigation-font-size) * var(--navigation-line-height) * 6);
  --navigation-width: 72px;
  --navigation-gap: clamp(32px,5vw,88px);
  --navigation-start: calc(100svh - var(--page-gutter) - var(--navigation-height));
  scroll-padding-top: var(--page-gutter);
}
.direction-selected {
  --paper: #fff;
  --ink: #111;
  --accent: #a84732;
  --line: #e5e5e5;
  position: relative;
  font-family: Arial, sans-serif;
  font-weight: 400;
  background: var(--paper);
  color: var(--ink);
}
.direction-selected *, html dialog * { font-weight: 400; }
.direction-selected :is(h1,h2,h3),
.direction-selected .intro-manifesto,
.direction-selected .event-poster-title,
html dialog :is(h1,h2,h3) {
  font-family: var(--display-font);
  font-style: normal;
  font-weight: 400;
  letter-spacing: -.035em;
}
html dialog { font-family: Arial, sans-serif; font-weight: 400; }
.direction-selected .section-pad { padding: 76px 48px; background: #fff; }
/* A single natural-width menu starts at the hero origin and sticks without cloning or scroll handlers. */
.navigation-rail { position: absolute; inset: 0 auto 0 var(--page-gutter); width: max-content; padding-top: var(--navigation-start); padding-bottom: var(--page-gutter); z-index: 10; pointer-events: none; }
.navigation-origin { width: var(--navigation-width); height: var(--navigation-height); flex-shrink: 0; }
.content-column { margin-left: calc(var(--page-gutter) + var(--navigation-width) + var(--navigation-gap)); margin-right: var(--page-gutter); min-width: 0; container-type: inline-size; }
.direction-selected .content-column .section-pad,.content-column .selected-footer { padding-left: 0; padding-right: 0; }
.direction-selected .eyebrow { font-size: 10px; letter-spacing: .035em; text-transform: none; }
.direction-selected .section-heading { align-items: flex-end; margin-bottom: 35px; }
.direction-selected .section-heading h2 { font-size: clamp(39px,4.4vw,68px); line-height: 1.1; }
.direction-selected .section-heading .eyebrow { margin-bottom: 13px; }
.direction-selected .section-index { font-size: 10px; line-height: 1.5; }
/* Figma 2266:649: the manifesto is the heading; the navigation sits below it, bottom-left. */
.intro-block {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  padding: var(--page-gutter);
  gap: 1.25vw;
  overflow: hidden;
  color: #111;
  background: #fff;
}
.intro-block .intro-manifesto {
  position: relative;
  z-index: 2;
  width: 100%;
  font-size: 4.85vw;
  line-height: .95;
  letter-spacing: -.025em;
  margin: 0;
}
.manifesto-line { display: block; white-space: nowrap; }
.intro-footer {
  position: relative;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 25px;
  margin-top: auto;
}
.intro-navigation {
  position: sticky;
  top: var(--page-gutter);
  width: max-content;
  pointer-events: auto;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  font: 400 var(--navigation-font-size)/var(--navigation-line-height) Arial,sans-serif;
}
.intro-navigation a,.intro-navigation button { display: block; text-align: left; line-height: inherit; }
.intro-navigation :is(a,button):is(:hover,:focus-visible) { text-decoration: underline; text-underline-offset: 2px; }
.intro-signature { display: flex; align-items: center; gap: 18px; }
/* Preserve the supplied white SVG exports; only their display colour changes on white. */
.brand-image { display: block; width: 100%; height: auto; filter: brightness(0); }
.intro-mark { display: block; width: clamp(24px,3.2vw,52px); }
.motion-toggle { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid #e5e5e5; border-radius: 50%; color: #777; font: 400 10px/1 Arial,sans-serif; }
.motion-toggle:disabled { cursor: default; opacity: .45; }
.dvd-bounds { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }
.dvd-object { position: absolute; left: 0; top: 0; width: clamp(72px,8vw,120px); aspect-ratio: 1; will-change: transform; }
.dvd-object>img { display: block; width: 100%; height: 100%; object-fit: contain; }
.intro-wordmark { display: block; width: clamp(130px,12vw,180px); max-width: 100%; }
/* Available works immediately follow the opening. */
.direction-selected .collection { border-bottom: 1px solid var(--line); }
.direction-selected .filters { gap: 28px; padding: 19px 0 30px; font-size: 11px; }
.direction-selected .filters button { position: relative; border-color: transparent; color: #7b7f71; }
.direction-selected .filters button::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .22s var(--ease-out); }
.direction-selected .filters button[aria-pressed='true'] { color: var(--accent); border-color: transparent; }
.direction-selected .filters button[aria-pressed='true']::after { transform: scaleX(1); }
.direction-selected .work-grid { gap: 40px 26px; }
.direction-selected .work-image { aspect-ratio: 4/4.65; }
.direction-selected .work-image img { transition: transform .5s var(--ease-out); }
.direction-selected .work-image:focus-visible img { transform: scale(1.035); }
.direction-selected .work-open { color: var(--ink); background: var(--paper); transition: background .2s,color .2s,transform .2s; }
.direction-selected .work-image:is(:hover,:focus-visible) .work-open { background: var(--accent); color: var(--paper); transform: translate(2px,-2px); }
.direction-selected .work-caption h3 { font-size: 19px; line-height: 1.2; margin-top: 5px; }
.direction-selected .work-author,.direction-selected .work-price { font-size: 11px; }
.direction-selected .work-material { margin-top: 7px; }
.direction-selected .catalog-note { font-size: 9px; line-height: 1.6; }
/* A single, clearly labelled demo agenda. All poster lettering is live Jeju/Arial text. */
.event-agenda { border-bottom: 1px solid var(--line); }
.event-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 26px; }
.event-link { width: 100%; text-align: left; }
.event-poster { position: relative; display: flex; flex-direction: column; aspect-ratio: .74; overflow: hidden; padding: 22px; background: #fff; border: 1px solid var(--line); transition: transform .35s var(--ease-out); }
.event-poster--clay { color: #3c312c; }
.event-poster--paper { color: #30372c; }
.event-poster--sage { color: #2e402e; }
.event-poster-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; font: 9px/1.5 Arial,sans-serif; position: relative; z-index: 1; }
.event-poster-top>span:first-child { font-family: var(--display-font); font-size: 16px; }
.event-poster-title { display: block; position: relative; z-index: 1; font-size: clamp(22px,3.25cqw,50px); line-height: 1.08; margin-top: 28px; }
.event-poster-art { position: relative; flex: 1; min-height: 0; margin-top: 24px; }
.event-poster-art>img { position: absolute; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out); }
.event-poster--clay .event-poster-art { width: 70%; align-self: center; transform: rotate(-7deg); margin-bottom: 12px; }
.event-poster--clay .event-poster-art>img { mix-blend-mode: multiply; }
.event-poster--paper .event-poster-title { margin-top: 42px; }
.event-poster--paper .event-poster-art { margin-top: 0; }
.event-poster--paper .event-poster-art>img { object-fit: contain; transform: scale(.9); }
.event-poster--sage .event-poster-art { width: 85%; align-self: flex-end; margin-right: -22px; margin-bottom: 20px; border-radius: 50% 0 0 50%; overflow: hidden; }
.event-poster-date { position: relative; z-index: 1; font: 10px/1.5 Arial,sans-serif; letter-spacing: .05em; margin-top: 15px; }
.event-caption { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-top: 17px; color: #747a6b; font-size: 10px; line-height: 1.4; }
.event-caption>span:last-child { font-size: 19px; color: var(--ink); transition: transform .22s var(--ease-out); }
.event-link h3 { font-size: 26px; line-height: 1.15; margin-top: 8px; }
.event-link:is(:hover,:focus-visible) .event-caption>span:last-child { transform: translate(3px,-3px); }
.event-link:is(:hover,:focus-visible) .event-poster-art>img { transform: scale(1.035); }
.event-link:is(:hover,:focus-visible) .event-poster--paper .event-poster-art>img { transform: scale(.95); }
/* Residents connect the programme to the open invitation that follows. Artwork covers, not pretend portraits. */
.resident-community { border-bottom: 1px solid var(--line); }
.resident-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 26px; }
.resident-link { display: block; width: 100%; text-align: left; }
.resident-image { position: relative; overflow: hidden; aspect-ratio: 1; }
.resident-image>img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out); }
.resident-index { position: absolute; top: 12px; left: 12px; background: #fff; padding: 5px 7px; font: 9px/1 Arial,sans-serif; }
.resident-caption { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 17px; }
.resident-caption h3 { font-size: 25px; line-height: 1.2; }
.resident-caption>span { font-size: 18px; transition: transform .22s var(--ease-out); }
.resident-practice { color: #777; font-size: 10px; line-height: 1.6; margin-top: 8px; }
.resident-link:is(:hover,:focus-visible) .resident-image>img { transform: scale(1.035); }
.resident-link:is(:hover,:focus-visible) .resident-caption>span { transform: translate(3px,-3px); }
/* Invitation, not a fake application form. */
.residency-invitation { display: grid; grid-template-columns: .3fr 1fr; gap: 6%; padding-top: 100px!important; padding-bottom: 100px!important; background: #fff; }
.residency-margin { display: flex; flex-direction: column; justify-content: space-between; gap: 50px; }
.residency-annotation { font-size: 10px; line-height: 1.7; color: #79806b; }
.residency-copy h2 { font-size: clamp(45px,6.3vw,100px); line-height: 1.04; }
.residency-bottom { display: grid; grid-template-columns: 1.15fr 1fr; gap: 45px; align-items: end; margin-top: 40px; }
.residency-bottom>p { font-size: 13px; line-height: 1.8; max-width: 390px; }
.residency-cta { display: flex; justify-content: space-between; align-items: center; gap: 25px; border-bottom: 1px solid var(--ink); padding: 0 0 13px; font-size: 12px; }
.residency-cta>span { font-size: 28px; line-height: .9; transition: transform .22s var(--ease-out); }
.residency-cta:is(:hover,:focus-visible)>span { transform: translate(3px,-3px); }
.selected-footer { padding: 34px 48px 44px; display: grid; grid-template-columns: 1fr 1.2fr auto auto; gap: 28px; align-items: center; font-size: 10px; border-top: 1px solid var(--line); }
.selected-footer>p { grid-column: 1/-1; font-size: 9px; color: #7b7f71; line-height: 1.6; }
/* Local previews and shared work/about dialogs follow the same type contract. */
html .detail-copy h2 { font-size: 39px; letter-spacing: -.035em; }
html .about-preview h2 { font-size: clamp(49px,8vw,90px); }
.resident-detail { padding: 65px; max-width: 760px; margin: auto; }
.resident-detail h2 { font-size: clamp(39px,5vw,64px); line-height: 1.1; margin: 24px 0 15px; }
.resident-detail-practice { color: #777; font-size: 12px; }
.resident-detail>img { width: 100%; height: 300px; object-fit: cover; margin: 28px 0; }
.resident-detail>p:not(.eyebrow):not(.detail-note):not(.resident-detail-practice) { font-size: 15px; line-height: 1.75; }
.resident-works { margin-top: 30px; }
.resident-works h3 { font-size: 27px; }
.event-detail,.proposal-detail { padding: 65px; max-width: 760px; margin: auto; }
.event-detail h2,.proposal-detail h2 { font-size: clamp(39px,5vw,64px); line-height: 1.1; margin: 24px 0; }
.event-detail dl { font-size: 12px; margin: 28px 0; }
.event-detail dl>div { display: flex; justify-content: space-between; gap: 20px; padding: 11px 0; border-bottom: 1px solid #d3d0c7; }
.event-detail dt { color: #7b7f71; }
.event-detail dd { margin: 0; text-align: right; }
.event-detail>p:not(.eyebrow):not(.detail-note),.proposal-detail>p:not(.eyebrow):not(.detail-note) { font-size: 15px; line-height: 1.75; }
.proposal-detail ul { padding-left: 18px; font-size: 12px; line-height: 2; margin: 24px 0; }
.direction-selected .is-revealed { animation: selected-enter .45s var(--reveal-delay,0ms) var(--ease-out) backwards; }
html dialog[open] { animation: selected-dialog .2s var(--ease-out) both; }
@keyframes selected-enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes selected-dialog { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 1100px) {
  .direction-selected .section-pad { padding: 62px 30px; }
  .event-poster { padding: 17px; }
  .event-poster-top { font-size: 8px; }
  .event-poster-top>span:first-child { font-size: 14px; }
  .event-poster-title { font-size: clamp(20px,3.15cqw,40px); }
  .resident-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .event-poster--sage .event-poster-art { margin-right: -17px; }
  .event-link h3 { font-size: 23px; }
  .residency-invitation { grid-template-columns: .2fr 1fr; gap: 5%; }
  .residency-bottom { gap: 30px; }
  .selected-footer { padding-left: 30px; padding-right: 30px; }
}
@media (max-width: 760px) {
  .direction-selected .section-pad { padding: 46px 20px; }
  .direction-selected .section-heading { gap: 15px; margin-bottom: 27px; }
  .direction-selected .section-heading h2 { font-size: clamp(34px,9.2vw,51px); line-height: 1.12; }
  .direction-selected .section-heading .eyebrow { font-size: 9px; margin-bottom: 10px; }
  .direction-selected .section-index { font-size: 8px; max-width: 95px; }
  .direction-selected .collection .section-index { display: none; }
  .direction-selected .filters { gap: 22px; font-size: 10px; padding: 17px 0 24px; }
  .direction-selected .work-grid { gap: 30px 16px; }
  .direction-selected .work-caption h3 { font-size: 17px; line-height: 1.25; }
  .direction-selected .work-author { font-size: 9px; }
  .direction-selected .work-price { font-size: 10px; }
  .direction-selected .catalog-note { font-size: 8px; }
  .event-grid { grid-template-columns: 1fr; gap: 34px; }
  .event-poster { aspect-ratio: .83; padding: clamp(12px,4cqw,23px); }
  .event-poster-top { font-size: 8px; }
  .event-poster-top>span:first-child { font-size: 15px; }
  .event-poster-title { font-size: clamp(19px,8.6cqw,40px); margin-top: 20px; }
  .event-poster--paper .event-poster-title { margin-top: 24px; }
  .event-poster--sage .event-poster-art { margin-right: -12px; }
  .event-caption { font-size: 10px; margin-top: 15px; }
  .event-link h3 { font-size: 23px; }
  .resident-grid { gap: 28px 16px; }
  .resident-caption { gap: 8px; margin-top: 13px; }
  .resident-caption h3 { font-size: 23px; }
  .residency-invitation { grid-template-columns: 1fr; gap: 30px; padding-top: 46px!important; padding-bottom: 50px!important; }
  .residency-margin { flex-direction: row; gap: 20px; align-items: flex-start; }
  .residency-margin>.eyebrow { font-size: 9px; }
  .residency-annotation { font-size: 8px; text-align: right; }
  .residency-copy h2 { font-size: clamp(43px,12vw,70px); line-height: 1.1; }
  .residency-bottom { grid-template-columns: 1fr; gap: 30px; margin-top: 25px; }
  .residency-bottom>p { font-size: 12px; line-height: 1.8; max-width: 350px; }
  .residency-cta { font-size: 11px; max-width: 330px; }
  .selected-footer { padding: 29px 20px 40px; grid-template-columns: 1fr auto; gap: 25px 15px; }
  .selected-footer>span:nth-child(2) { grid-row: 2; font-size: 9px; }
  .selected-footer>span:nth-child(4) { grid-column: 2; grid-row: 2; text-align: right; }
  .selected-footer>a:nth-child(3) { grid-column: 2; grid-row: 1; text-align: right; font-size: 9px; }
  .selected-footer>p { font-size: 8px; }
  .event-detail,.proposal-detail,.resident-detail { padding: 55px 25px 30px; }
  .event-detail h2,.proposal-detail h2,.resident-detail h2 { font-size: 38px; }
  .resident-detail>img { height: 220px; }
  .event-detail>p:not(.eyebrow):not(.detail-note),.proposal-detail>p:not(.eyebrow):not(.detail-note) { font-size: 14px; }
  html .detail-copy h2 { font-size: 33px; }
}
@media (max-width: 370px) {
  .direction-selected .filters { gap: 18px; font-size: 9px; }
}
@media (max-width: 760px) {
  html { --page-gutter: 20px; --navigation-gap: 20px; --navigation-font-size: 10px; --navigation-line-height: 1.3; }
  .intro-block { gap: 28px; }
  .intro-block .intro-manifesto { font-size: clamp(27px,7.2vw,42px); line-height: 1.05; letter-spacing: -.025em; }
  .manifesto-line { display: inline; white-space: normal; }
  .intro-signature { gap: 13px; }
  .intro-mark { width: 32px; }
  .dvd-object { width: 72px; }
}
@container (max-width: 420px) {
  .direction-selected .section-heading { flex-direction: column; align-items: flex-start; gap: 12px; }
  .direction-selected .section-heading h2 { font-size: clamp(26px,8cqw,38px); }
  .direction-selected .section-index { display: none; }
  .direction-selected .work-grid,.resident-grid { grid-template-columns: 1fr; }
  .residency-margin { flex-direction: column; gap: 15px; }
  .residency-annotation { text-align: left; }
  .residency-copy h2 { font-size: clamp(31px,10cqw,43px); }
  .selected-footer { grid-template-columns: 1fr; }
  .selected-footer>a:nth-child(3),.selected-footer>span:nth-child(4),.selected-footer>span:nth-child(2) { grid-column: auto; grid-row: auto; text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { animation: none!important; transition: none!important; }
}
