/* ==========================================================================
   Fabulaurora — site styles
   A small museum: one dark display case (the hero) and quiet gallery walls.
   Sections: tokens · base · layout · header · controls · labels & frames ·
             hero · home · gallery · exhibit · blog ·
             about · contact · footer · lightbox · motion
   ========================================================================== */

/* ---------- tokens ---------- */
:root {
  --stage: #120b2b;          /* the display case: deep night violet */
  --stage-2: #1d1540;
  --wall: #f4f2f8;           /* gallery wall */
  --wall-2: #ebe8f3;
  --paper: #ffffff;
  --ink: #201d33;
  --ink-2: #55516b;
  --ink-3: #85819c;
  --line: #dcd8e8;
  --peri: #5750d0;           /* periwinkle — primary */
  --peri-deep: #3f38b5;
  --peri-tint: #e7e5fb;
  --coral: #e9655a;
  --butter: #f4c64e;

  /* disciplines — Jeah's own color code (her hearts and sticker outlines) */
  --d-anatomy: #62bfe8;
  --d-biology: #63c483;
  --d-medical: #f0be25;
  --d-journal: #2b2838;
  --d-xr: #9778e6;
  --d-promo: #4a82e6;
  --d-fun: #f18fb9;

  --font-display: "Bagel Fat One", "IBM Plex Sans KR", system-ui, sans-serif;
  --font-text: "IBM Plex Sans", "IBM Plex Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;

  --step--1: 0.8125rem;      /* 13 */
  --step-0: 1.0625rem;       /* 17 body */
  --step-1: 1.3125rem;       /* 21 */
  --step-2: 1.75rem;         /* 28 */
  --step-3: clamp(2rem, 1.3rem + 2.4vw, 3.25rem);
  --step-4: clamp(2.6rem, 1.3rem + 4.6vw, 5.4rem);

  --wrap: 76rem;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --header-h: 4.5rem;
  --shadow-hang: 0 1px 0 rgba(32, 29, 51, 0.07), 0 26px 36px -26px rgba(32, 29, 51, 0.5);
  --shadow-card: 0 1px 2px rgba(32, 29, 51, 0.08), 0 8px 18px -12px rgba(32, 29, 51, 0.28);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0;
  background: var(--wall);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
:lang(ko) { word-break: keep-all; overflow-wrap: break-word; }
img, svg, video, canvas { max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, figure, ul, ol, dl, dd, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--peri); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible, .hero :focus-visible, .site-footer :focus-visible { outline-color: var(--butter); }
::selection { background: var(--peri); color: #fff; }

.display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: 0.004em;
}
h1.display { font-size: var(--step-4); }
h2.display { font-size: var(--step-3); }
h3.display { font-size: var(--step-2); line-height: 1.12; }
.lede { font-size: var(--step-1); line-height: 1.5; color: var(--ink-2); max-width: 38rem; }
.muted { color: var(--ink-2); }
.small { font-size: var(--step--1); }
.caption { font-size: var(--step--1); color: var(--ink-3); font-style: italic; }
.prose { max-width: 40rem; }
.prose p + p { margin-top: 1em; }
.prose a { color: var(--peri-deep); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* ---------- layout ---------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section--tint { background: var(--wall-2); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: clamp(1.75rem, 4vw, 3rem); }
.section__head p { max-width: 34rem; color: var(--ink-2); }
.page-head { padding-top: calc(var(--header-h) + clamp(2.5rem, 6vw, 5rem)); padding-bottom: clamp(1.5rem, 4vw, 3rem); }
.page-head .lede { margin-top: 1.1rem; }
.stack > * + * { margin-top: var(--stack, 1rem); }
.row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

/* ---------- header ---------- */
.skip { position: fixed; left: 1rem; top: -4rem; z-index: 60; background: var(--ink); color: #fff; padding: 0.6rem 1rem; border-radius: 0.5rem; font-weight: 600; text-decoration: none; transition: top 0.15s ease; }
.skip:focus { top: 1rem; }
main:focus { outline: none; }
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background-color 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
  color: var(--ink);
}
.site-header.is-solid { background: rgba(244, 242, 248, 0.92); backdrop-filter: saturate(1.4) blur(10px); box-shadow: 0 1px 0 var(--line); }
.site-header.on-dark:not(.is-solid) { color: #fff; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand__mark { width: 2.5rem; height: 2.6rem; background: center / contain no-repeat url(../img/brand/jeah-mark.png); flex: none; }
.site-header.on-dark:not(.is-solid) .brand__mark, .site-footer .brand__mark { background-image: url(../img/brand/jeah-mark-white.png); }
.brand__name { font-family: var(--font-display); font-size: 1.35rem; line-height: 1; padding-top: 0.15em; }
.nav { display: flex; align-items: center; gap: clamp(0.9rem, 2.2vw, 2rem); }
.nav__links { display: flex; gap: clamp(0.9rem, 2.2vw, 2rem); }
.nav__links a { text-decoration: none; font-weight: 500; font-size: 0.97rem; padding: 0.4rem 0; position: relative; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.2s ease; }
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { transform: scaleX(1); }
.lang { display: inline-flex; border: 1.5px solid currentColor; border-radius: 999px; padding: 2px; font-size: 0.8rem; font-weight: 600; }
.lang button { border: 0; background: none; border-radius: 999px; padding: 0.22rem 0.62rem; line-height: 1.3; }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--wall); }
.site-header.on-dark:not(.is-solid) .lang button[aria-pressed="true"] { background: #fff; color: var(--stage); }
.menu-btn { display: none; border: 0; background: none; padding: 0.5rem; margin-right: -0.5rem; }
.menu-btn svg { display: block; }

@media (max-width: 56rem) {
  .menu-btn { display: block; }
  .nav__links {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
    flex-direction: column; gap: 0; padding: 1rem var(--gutter) 2rem;
    background: var(--wall); color: var(--ink);
    transform: translateY(-0.5rem); opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    overflow-y: auto;
  }
  .nav__links a { font-family: var(--font-display); font-size: 2rem; padding: 0.55rem 0; border-bottom: 1px solid var(--line); }
  .nav__links a::after { display: none; }
  .menu-open .nav__links { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
  .menu-open .site-header, .menu-open .site-header.is-solid { background: var(--wall); color: var(--ink); box-shadow: 0 1px 0 var(--line); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .menu-open .site-header .brand__mark { background-image: url(../img/brand/jeah-mark.png); }
  .menu-open .site-header .lang button[aria-pressed="true"] { background: var(--ink); color: var(--wall); }
  .menu-open { overflow: hidden; }
}

/* ---------- controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3rem; padding: 0.7rem 1.45rem;
  border: 2px solid transparent; border-radius: 999px;
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; text-align: center;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--peri); color: #fff; }
.btn--primary:hover { background: var(--peri-deep); }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--wall); }
.btn--butter { background: var(--butter); color: var(--ink); }
.btn--butter:hover { background: #ffd972; }
.btn--ghost-light { border-color: rgba(255, 255, 255, 0.75); color: #fff; }
.btn--ghost-light:hover { background: #fff; color: var(--stage); }
.btn--small { min-height: 2.4rem; padding: 0.4rem 1rem; font-size: 0.9rem; }
.btn[aria-disabled="true"] { opacity: 0.55; pointer-events: none; }
.link { color: var(--peri-deep); font-weight: 600; text-decoration: underline; }
.link:hover { color: var(--ink); }

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  display: inline-flex; align-items: center; gap: 0.45rem;
  border: 1.5px solid var(--line); background: var(--paper); color: var(--ink);
  border-radius: 999px; padding: 0.36rem 0.85rem; font-size: 0.9rem; font-weight: 500; line-height: 1.3; text-decoration: none;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"], .chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip__n { font-size: 0.78rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.chip[aria-pressed="true"] .chip__n, .chip.is-on .chip__n { color: rgba(255, 255, 255, 0.7); }
.dot { width: 0.62rem; height: 0.62rem; border-radius: 50%; background: var(--d, var(--ink-3)); flex: none; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.9); }
[data-d="anatomy"] { --d: var(--d-anatomy); }
[data-d="biology"] { --d: var(--d-biology); }
[data-d="medical"] { --d: var(--d-medical); }
[data-d="journal"] { --d: var(--d-journal); }
[data-d="xr"] { --d: var(--d-xr); }
[data-d="promo"] { --d: var(--d-promo); }
[data-d="fun"] { --d: var(--d-fun); }
.tag { display: inline-flex; align-items: center; gap: 0.4rem; font-size: var(--step--1); font-weight: 600; color: var(--ink-2); text-decoration: none; }
a.tag:hover { color: var(--ink); text-decoration: underline; }
.hash { font-size: var(--step--1); color: var(--peri-deep); text-decoration: none; font-weight: 500; }
a.hash:hover { text-decoration: underline; }

.field { display: grid; gap: 0.4rem; }
.field label, .field legend { font-weight: 600; font-size: 0.95rem; }
.field .hint { font-size: var(--step--1); color: var(--ink-3); }
.input, .textarea, .select {
  width: 100%; border: 1.5px solid var(--line); border-radius: 0.6rem; background: var(--paper);
  padding: 0.7rem 0.85rem; min-height: 3rem; transition: border-color 0.15s ease;
}
.textarea { min-height: 9rem; resize: vertical; }
.input:hover, .textarea:hover, .select:hover { border-color: var(--ink-3); }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--peri); box-shadow: 0 0 0 3px var(--peri-tint); }
.field.has-error .input, .field.has-error .textarea { border-color: var(--coral); }
.field .error { font-size: var(--step--1); color: #b23a30; font-weight: 500; }
.search { position: relative; }
.search .input { padding-left: 2.6rem; border-radius: 999px; }
.search svg { position: absolute; left: 0.95rem; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }

/* ---------- labels & frames (the gallery vocabulary) ---------- */
.frame { display: block; background: var(--paper); padding: 0.6rem; box-shadow: var(--shadow-hang); transition: transform 0.2s ease, box-shadow 0.2s ease; }
button.frame { border: 0; width: 100%; text-align: left; position: relative; }
.frame__play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: rgba(32, 29, 51, 0.82); color: #fff; display: grid; place-items: center; padding-left: 2px; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.85); pointer-events: none; }
.step__thumbs .is-anim { position: relative; }
.step__thumbs .is-anim::after { content: ""; position: absolute; left: 50%; top: 50%; translate: -35% -50%; border: 0.4rem solid transparent; border-left: 0.65rem solid #fff; border-right: 0; filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.7)); }
.frame img, .frame video { display: block; width: 100%; height: auto; background: var(--wall-2); }
a.hang { display: block; text-decoration: none; color: inherit; }
a.hang:hover .frame { transform: translateY(-4px); box-shadow: 0 1px 0 rgba(32, 29, 51, 0.07), 0 34px 40px -26px rgba(32, 29, 51, 0.55); }
.frame__film { display: grid; place-items: center; aspect-ratio: 4 / 3; background: color-mix(in srgb, var(--d, var(--peri)) 34%, var(--wall)); color: var(--ink); }
.placard { margin-top: 0.9rem; display: grid; gap: 0.15rem; max-width: 22rem; }
.placard__title { font-weight: 600; line-height: 1.3; }
a.hang:hover .placard__title { text-decoration: underline; }
.placard__meta { font-size: var(--step--1); color: var(--ink-2); }
.wall-label {
  background: var(--paper); box-shadow: var(--shadow-card); padding: 1.15rem 1.25rem;
  font-size: 0.93rem; line-height: 1.5; border-top: 4px solid var(--d, var(--peri));
}
.wall-label dl { display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 1rem; }
.wall-label dt { color: var(--ink-3); }
.wall-label dd { font-weight: 500; }
.badge { display: inline-block; font-size: 0.76rem; font-weight: 600; padding: 0.2rem 0.6rem; border-radius: 999px; background: var(--peri-tint); color: var(--peri-deep); line-height: 1.4; }
.fig-n { font-style: italic; color: var(--ink-3); font-size: var(--step--1); }

/* ---------- hero ---------- */
/* One scene, four floors. Labels on the right point at the floors with leader lines; a label, its ring on the
   model, or the floor itself opens that floor's card, which slides in from the left over the headline. */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--case, #0b0420); color: #fff; min-height: max(38rem, min(100svh, 64rem)); display: grid; }
.hero__stage { position: absolute; inset: 0; z-index: 0; }
.hero__stage canvas { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity 1s ease; touch-action: pan-y; cursor: grab; }
.hero__stage canvas.is-dragging { cursor: grabbing; }
.hero__stage canvas.is-hot { cursor: pointer; }
.hero.is-ready .hero__stage canvas { opacity: 1; }
/* the still image is only shown when the 3D scene cannot run */
.hero__poster { position: absolute; inset: 0; opacity: 0; pointer-events: none; background: no-repeat var(--poster-pos, 60% 54%) / auto min(82%, 52rem) url(../img/hero-poster.jpg); transition: opacity 0.8s ease; }
.hero.is-still .hero__poster { opacity: 1; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(90% 85% at 60% 48%, transparent 45%, rgba(14, 12, 22, 0.55) 100%), linear-gradient(90deg, rgba(20, 18, 30, 0.6), transparent 46%); }

.hero__inner { position: relative; z-index: 2; pointer-events: none; display: grid; align-content: center; padding-top: calc(var(--header-h) + 1.5rem); padding-bottom: 5rem; }
.hero__copy { pointer-events: auto; max-width: 30rem; transition: opacity 0.35s ease, transform 0.35s ease; }
.hero__copy h1 { font-size: clamp(2.6rem, 1rem + 3.3vw, 4.3rem); text-wrap: balance; }
.hero__copy .lede { color: rgba(255, 255, 255, 0.84); margin-top: 1.4rem; max-width: 26rem; font-size: 1.2rem; }
.hero__copy .row { margin-top: 2rem; }
.hero__hint { display: flex; align-items: center; gap: 0.6rem; margin-top: 1.25rem; font-size: 0.95rem; color: rgba(255, 255, 255, 0.72); }
.hero__hint i { flex: none; width: 0.85rem; height: 0.85rem; border-radius: 50%; background: var(--d-xr); box-shadow: 0 0 0 2px #fff; }
.hero__hint .for-touch, .hero.is-still .hero__hint { display: none; }
@media (hover: none) { .hero__hint .for-mouse { display: none; } .hero__hint .for-touch { display: inline; } }
.hero.is-floor .hero__copy, .hero.is-floor .hero__chips { opacity: 0; transform: translateX(-1rem); pointer-events: none; }
.hero__chips { display: none; pointer-events: auto; transition: opacity 0.35s ease, transform 0.35s ease; }
.hero__chips .chip { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.3); color: #fff; }
.hero__chips .chip[aria-pressed="true"] { background: #fff; border-color: #fff; color: var(--stage); }
.hero.is-still .hero__chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.4rem; }

/* labels on the right, each with a leader line to its ring on the model */
.callouts { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hero.is-still .callouts { display: none; }
.callouts svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; transition: opacity 0.3s ease; }
.callouts polyline { stroke: rgba(255, 255, 255, 0.62); stroke-width: 1; fill: none; vector-effect: non-scaling-stroke; }
.hero.is-floor .callouts svg { opacity: 0; }
.callout {
  position: absolute; pointer-events: auto; transform: translateY(-50%);
  display: grid; grid-template-columns: auto 1fr; column-gap: 0.6rem; align-items: start;
  width: 13.5rem; padding: 0.35rem 0.2rem; border: 0; background: none; text-align: left; color: #fff; font: inherit; line-height: 1.6;
  cursor: pointer; opacity: 0; transition: opacity 0.5s ease;
}
.hero.is-ready .callout { opacity: 1; }
.hero.is-floor .callout { opacity: 0; pointer-events: none; }
.callout__k { font-style: italic; font-weight: 500; width: 1.55rem; height: 1.55rem; border-radius: 50%; background: var(--d); color: var(--ink); display: grid; place-items: center; font-size: 0.88rem; line-height: 1; margin-top: 0.1rem; transition: box-shadow 0.2s ease; }
.callout__name { font-weight: 600; line-height: 1.25; }
.callout__sub { grid-column: 2; font-size: var(--step--1); color: rgba(255, 255, 255, 0.7); line-height: 1.35; }
.callout:hover .callout__name, .callout.is-hot .callout__name { text-decoration: underline; }
.callout.is-hot .callout__k, .callout:focus-visible .callout__k { box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.28); }

/* the rings: one per floor, pinned to the model; the open floor's ring turns white and closes it again */
.marker {
  position: absolute; left: 0; top: 0; z-index: 1;
  width: 1.15rem; height: 1.15rem; margin: -0.575rem 0 0 -0.575rem; padding: 0;
  border: 0; border-radius: 50%; background: var(--d);
  box-shadow: inset 0 0 0 1.5px #fff, 0 1px 6px rgba(0, 0, 0, 0.35);
  pointer-events: auto; cursor: pointer; opacity: 0;
  transition: opacity 0.5s ease, scale 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.marker::before { content: ""; position: absolute; inset: -0.6rem; border-radius: 50%; }   /* a bigger target for thumbs */
.hero.is-ready .marker { opacity: 1; }
.marker:hover, .marker.is-hot, .marker:focus-visible { scale: 1.3; box-shadow: inset 0 0 0 1.5px #fff, 0 0 0 4px rgba(255, 255, 255, 0.28); }
.marker[aria-pressed="true"] { scale: 1.35; background: #fff; box-shadow: inset 0 0 0 3px var(--d), 0 0 0 4px rgba(255, 255, 255, 0.2); }
.hero.is-floor .marker:not([aria-pressed="true"]) { opacity: 0.7; }
.hero .marker.is-off { opacity: 0 !important; pointer-events: none; }   /* off the canvas or under the header, whatever state it is in */

/* the floor card: three selected pieces from the open floor, on a small stack of cards */
.floorcard {
  position: absolute; z-index: 4; left: var(--gutter); top: 50%;
  width: min(23rem, calc(100% - 2 * var(--gutter)));
  color: var(--ink);
  opacity: 0; transform: translate(-2.5rem, -50%);
  transition: opacity 0.4s ease, transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.floorcard.is-in { opacity: 1; transform: translate(0, -50%); }
.floorcard::before, .floorcard::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 1.5rem; background: var(--d); transform-origin: 20% 100%; transition: transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s; }
.floorcard::after { filter: brightness(0.86); }
.floorcard.is-in::before { transform: translate(1.2rem, 0.5rem) rotate(3.5deg); }
.floorcard.is-in::after { transform: translate(2.4rem, 1rem) rotate(7deg); }
.floorcard__panel { position: relative; display: grid; gap: 0.8rem; background: var(--paper); border-radius: 1.5rem; padding: 1.5rem; box-shadow: 0 40px 70px -30px rgba(0, 0, 0, 0.7); max-height: calc(100svh - var(--header-h) - 3rem); overflow: auto; }
.floorcard__close { position: absolute; top: 1rem; right: 1rem; width: 2.3rem; height: 2.3rem; border: 0; border-radius: 50%; background: var(--wall-2); color: var(--ink-2); display: grid; place-items: center; transition: background-color 0.15s ease, color 0.15s ease; }
.floorcard__close:hover { background: var(--ink); color: #fff; }
.floorcard__name { font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 1.2rem + 1.6vw, 2.6rem); line-height: 1; color: var(--d); padding-right: 2.6rem; }
[data-d="medical"] .floorcard__name { color: #d9a400; }   /* the yellow needs a little more weight on white */
.floorcard__sub { color: var(--ink-2); font-size: 0.95rem; margin-top: -0.35rem; }
.floorcard__pic { position: relative; display: block; aspect-ratio: var(--ratio, 1.333); border-radius: 1rem; overflow: hidden; background: var(--wall-2); }
.floorcard__pic img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; transition: transform 0.45s ease; }
.floorcard__pic:hover img { transform: scale(1.035); }
.floorcard__pic.is-swap img { animation: pic-swap 0.4s ease; }
@keyframes pic-swap { from { opacity: 0; transform: translateY(6px); } }
.floorcard__cap { display: grid; gap: 0.1rem; line-height: 1.3; }
.floorcard__cap b { font-weight: 600; }
.floorcard__cap span { font-size: var(--step--1); color: var(--ink-2); }
.floorcard__thumbs { display: flex; gap: 0.5rem; }
.floorcard__thumbs button { width: 3.3rem; height: 3.3rem; padding: 0; border: 2px solid transparent; border-radius: 0.7rem; overflow: hidden; background: var(--wall-2); opacity: 0.65; transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.2s ease; }
.floorcard__thumbs button:hover { opacity: 1; transform: translateY(-2px); }
.floorcard__thumbs button[aria-selected="true"] { opacity: 1; border-color: var(--d); }
.floorcard__thumbs img { display: block; width: 100%; height: 100%; object-fit: cover; }
.floorcard .btn { justify-self: start; margin-top: 0.3rem; }

@media (max-width: 68rem) {
  .hero { min-height: max(34rem, 100svh); display: block; }
  .hero::after { background: linear-gradient(180deg, rgba(11, 4, 32, 0.35), transparent 22%, transparent 58%, var(--case, #0b0420) 100%); }
  .hero__inner { position: absolute; left: 0; right: 0; bottom: 0; width: auto; display: block; padding: 0 var(--gutter) 1.5rem; }
  .hero__copy { max-width: none; }
  .hero__copy h1 { font-size: clamp(1.7rem, 1rem + 3vw, 2.4rem); }
  .hero__copy .lede { display: none; }
  .hero__copy .row { margin-top: 1rem; }
  .hero__chips, .hero.is-still .hero__chips { display: flex; gap: 0.5rem; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)) 1rem; padding: 0.25rem var(--gutter); scrollbar-width: none; }
  .hero__chips::-webkit-scrollbar { display: none; }
  .hero__chips .chip { flex: none; }
  .callouts svg, .callout { display: none; }
  /* the card becomes a sheet from the bottom */
  .floorcard { left: 0; right: 0; top: auto; bottom: 0; width: auto; transform: translateY(2rem); }
  .floorcard.is-in { transform: none; }
  .floorcard::before, .floorcard::after { display: none; }
  .floorcard__panel { border-radius: 1.5rem 1.5rem 0 0; max-height: 60svh; padding: 1.25rem var(--gutter) max(1.25rem, env(safe-area-inset-bottom)); gap: 0.65rem; }
  .floorcard__name { font-size: 1.8rem; }
  .floorcard__pic { aspect-ratio: auto; height: 10.5rem; }
  .floorcard__pic img { object-fit: contain; }   /* the sheet is short, so show the whole piece rather than a slice of it */
  .floorcard .btn { justify-self: stretch; }
}

/* ---------- home ---------- */
.logos { background: var(--paper); padding-block: 1.6rem 1.9rem; border-bottom: 1px solid var(--line); }
.logos__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.logos__head h2 { font-weight: 400; }
.logos__toggle { border: 1.5px solid var(--line); background: var(--paper); color: var(--ink-2); width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; flex: none; }
.logos__toggle:hover { border-color: var(--ink); color: var(--ink); }
.logos__viewport { display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.logos__track { display: flex; flex: none; align-items: center; justify-content: space-around; gap: clamp(2.5rem, 5vw, 4.5rem); min-width: 100%; padding-right: clamp(2.5rem, 5vw, 4.5rem); animation: logos-slide 48s linear infinite; }
.logos__track li { flex: none; display: grid; place-items: center; height: 3.25rem; }
.logos__track img { display: block; height: 2.6rem; width: auto; max-width: 13rem; object-fit: contain; filter: grayscale(1); opacity: 0.72; transition: filter 0.2s ease, opacity 0.2s ease; }
.logos__track li:hover img { filter: none; opacity: 1; }
.logos__name { font-weight: 600; font-size: 1.05rem; color: var(--ink-2); white-space: nowrap; letter-spacing: 0.005em; }
.logos:hover .logos__track, .logos:focus-within .logos__track, .logos.is-paused .logos__track { animation-play-state: paused; }
@keyframes logos-slide { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) {
  .logos__viewport { -webkit-mask-image: none; mask-image: none; }
  .logos__track { animation: none; flex-wrap: wrap; justify-content: flex-start; min-width: 0; padding-inline: var(--gutter); gap: 0.75rem 2.5rem; }
  .logos__track[aria-hidden="true"], .logos__toggle { display: none; }
}

.salon { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(1.5rem, 3.5vw, 3.25rem) clamp(1.25rem, 3vw, 2.75rem); align-items: end; }
.salon > :nth-child(1) { grid-column: 1 / span 7; }
.salon > :nth-child(2) { grid-column: 8 / span 5; }
.salon > :nth-child(3) { grid-column: 1 / span 4; }
.salon > :nth-child(4) { grid-column: 5 / span 4; }
.salon > :nth-child(5) { grid-column: 9 / span 4; }
.salon .frame img { aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 18%; }
.salon > :nth-child(-n+2) .frame img { aspect-ratio: 16 / 11; }
@media (max-width: 48rem) { .salon { grid-template-columns: 1fr 1fr; } .salon > :nth-child(n) { grid-column: auto; } .salon > :nth-child(1) { grid-column: 1 / -1; } }


/* ---------- gallery ---------- */
.filterbar { position: sticky; top: var(--header-h); z-index: 20; background: rgba(244, 242, 248, 0.94); backdrop-filter: blur(8px); padding-block: 0.85rem; border-bottom: 1px solid var(--line); }
.filterbar .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 1px; }
.filterbar .chips::-webkit-scrollbar { display: none; }
.filterbar .chip { flex: none; }
.wallgrid { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: clamp(1.5rem, 3.5vw, 3rem); align-items: start; }
.wallcol { display: grid; gap: clamp(2rem, 4vw, 3.25rem); }
.empty { padding: 3rem 0; color: var(--ink-2); }
.count { font-size: var(--step--1); color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* ---------- exhibit (one work) ---------- */
.exhibit-head { padding-top: calc(var(--header-h) + clamp(1.5rem, 4vw, 3rem)); }
.crumbs { display: flex; flex-wrap: wrap; gap: 0.5rem 0.9rem; align-items: center; font-size: 0.93rem; margin-bottom: 1.5rem; }
.crumbs a { color: var(--ink-2); text-decoration: none; font-weight: 500; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.exhibit-head h1 { max-width: 20ch; text-wrap: balance; }
.exhibit-head .lede { margin-top: 1.1rem; }
.exhibit-main { display: grid; grid-template-columns: minmax(0, 1fr) 19rem; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; margin-top: clamp(1.75rem, 4vw, 3rem); }
.exhibit-main .frame { padding: clamp(0.6rem, 1.2vw, 1rem); cursor: zoom-in; width: fit-content; max-width: 100%; }
.exhibit-main .frame img { width: auto; max-width: 100%; max-height: min(82vh, 58rem); }
.exhibit-main .wall-label { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.wall-label h2 { font-size: 1.05rem; font-weight: 600; line-height: 1.3; margin-bottom: 0.2rem; }
.wall-label .year { color: var(--ink-2); margin-bottom: 0.9rem; }
.wall-label .links { margin-top: 1rem; display: grid; gap: 0.35rem; }
@media (max-width: 56rem) { .exhibit-main { grid-template-columns: 1fr; } .exhibit-main .wall-label { position: static; } }

.brief { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.5rem 2.5rem; }
.brief h3 { font-size: 0.95rem; font-weight: 600; color: var(--ink-3); margin-bottom: 0.4rem; }
.brief p { font-size: 1.08rem; line-height: 1.5; }

.trail { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(15.5rem, 19rem); gap: clamp(1.25rem, 2.5vw, 2rem); overflow-x: auto; padding: 0.25rem var(--gutter) 1.75rem; margin-inline: calc(-1 * var(--gutter)); scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter); scrollbar-width: thin; scrollbar-color: var(--ink-3) transparent; }
.step { position: relative; scroll-snap-align: start; display: grid; grid-template-rows: auto auto 1fr; gap: 0.85rem; }
.step__rail { display: flex; align-items: center; gap: 0.7rem; }
.step__n { width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-size: 1.05rem; line-height: 1; padding-top: 0.12em; flex: none; }
.step__rail::after { content: ""; flex: 1; height: 2px; background: repeating-linear-gradient(90deg, var(--ink-3) 0 6px, transparent 6px 12px); margin-right: calc(-1 * clamp(1.25rem, 2.5vw, 2rem)); }
.step:last-child .step__rail::after { background: none; }
.step:last-child .step__n { background: var(--peri); }
.step__stage { font-weight: 600; }
.step__media { display: grid; gap: 0.5rem; }
.step__media .frame { padding: 0.45rem; cursor: zoom-in; }
.step__media .frame img { aspect-ratio: 4 / 3; object-fit: contain; background: var(--wall); }
.step__media .frame.step__video { cursor: default; }
.step__video video, .step__video iframe { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: var(--stage); border: 0; }
.step__video iframe { aspect-ratio: 16 / 9; }
.step__thumbs { display: flex; gap: 0.4rem; }
.step__thumbs button { border: 0; padding: 0; background: var(--paper); box-shadow: var(--shadow-card); width: 3.4rem; height: 2.6rem; cursor: zoom-in; }
/* in the trail, five thumbnails share the step's width; a "+n more" tile wraps to the next row */
.step .step__thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.step .step__thumbs button { width: auto; height: auto; aspect-ratio: 4 / 3; }
.step__thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.step__thumbs .more { display: grid; place-items: center; font-size: 0.8rem; font-weight: 600; color: var(--ink-2); }
.step__note { font-size: 0.95rem; color: var(--ink-2); line-height: 1.45; }
.step__note b { color: var(--ink); font-weight: 600; }
.step__link { font-size: 0.95rem; line-height: 1.45; }
.step__media .step__card { min-width: 0; min-height: 12.5rem; display: grid; align-content: center; padding: 1.1rem 1.2rem; }
.step__card ul, .mode ul { display: grid; gap: 0.6rem; list-style: none; margin: 0; padding: 0; }
.step__card li, .mode ul li { position: relative; padding-left: 1.1rem; font-size: 0.95rem; line-height: 1.4; }
.step__card li::before, .mode ul li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--d-xr); }
.trail-hint { display: flex; justify-content: space-between; gap: 1rem; font-size: var(--step--1); color: var(--ink-3); margin-top: 0.25rem; }
@media (max-width: 40rem) {
  .trail { grid-auto-flow: row; grid-auto-columns: auto; overflow: visible; margin-inline: 0; padding-inline: 0; gap: 0; }
  .step { grid-template-columns: 2.25rem 1fr; grid-template-rows: auto; column-gap: 1rem; padding-bottom: 2rem; }
  .step__rail { grid-row: 1 / span 3; flex-direction: column; align-items: center; }
  .step__rail::after { width: 2px; height: auto; margin: 0; background: repeating-linear-gradient(180deg, var(--ink-3) 0 6px, transparent 6px 12px); }
  .step__stage { grid-column: 2; align-self: center; }
  .step__media, .step__note { grid-column: 2; }
  .trail-hint { display: none; }
}

.modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: clamp(2rem, 4vw, 3.5rem); list-style: none; margin: 0; padding: 0; }
.mode { display: grid; gap: 0.75rem; align-content: start; }
.mode .step__media { grid-column: auto; }
.mode .frame img { aspect-ratio: 16 / 9; object-fit: cover; }
.mode__from { font-size: var(--step--1); color: var(--ink-2); margin-top: 0.5rem; }
.mode__from span { font-weight: 600; color: var(--ink-3); }
.mode h3 { font-size: var(--step-2); line-height: 1.1; }
.mode > p:not(.mode__from) { font-size: 1.08rem; line-height: 1.5; max-width: 34rem; }
.principles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.75rem 2.5rem; list-style: none; margin: 0; padding: 0; }
.principles li { display: grid; gap: 0.35rem; align-content: start; border-top: 2px solid var(--ink); padding-top: 0.8rem; }
.principles span { font-family: var(--font-display); font-size: 1.3rem; line-height: 1; color: var(--d-xr); }
.principles h3 { font-weight: 600; }
.principles p { font-size: 0.95rem; color: var(--ink-2); line-height: 1.45; }
@media (max-width: 60rem) { .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 30rem) { .principles { grid-template-columns: 1fr; } }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: 1.5rem; align-items: start; }
.detail-grid figure { display: grid; gap: 0.5rem; }
.detail-grid .frame { padding: 0.4rem; cursor: zoom-in; border: 0; width: 100%; }
.detail-grid figcaption { font-size: var(--step--1); color: var(--ink-2); }
.outcomes { display: grid; gap: 0.8rem; }
.outcomes li { display: grid; grid-template-columns: auto 1fr; gap: 0.8rem; align-items: start; background: var(--paper); padding: 0.9rem 1.1rem; box-shadow: var(--shadow-card); }
.outcomes svg { color: var(--peri); margin-top: 0.15rem; }
.outcomes figcaption { margin-top: 0.15rem; font-size: var(--step--1); color: var(--ink-3); }
.video-embed { position: relative; aspect-ratio: 16 / 9; background: var(--stage); box-shadow: var(--shadow-hang); width: 100%; max-width: 58rem; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* A vertical embed such as an Instagram reel: a 4:5 video plus the player's fixed-height header and footer. */
.video-embed--portrait { aspect-ratio: auto; max-width: 25rem; background: #fff; container-type: inline-size; }
.video-embed--portrait iframe { position: static; display: block; height: calc(125cqw + 255px); }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; border-top: 1px solid var(--line); padding-top: 2rem; }
.pager a { text-decoration: none; display: grid; gap: 0.2rem; }
.pager a:last-child { text-align: right; }
.pager span { font-size: var(--step--1); color: var(--ink-3); }
.pager b { font-family: var(--font-display); font-weight: 400; font-size: 1.4rem; line-height: 1.15; }
.pager a:hover b { color: var(--peri-deep); }

/* ---------- blog ---------- */
.blog-tools { display: grid; grid-template-columns: minmax(14rem, 22rem) 1fr; gap: 1rem 2rem; align-items: center; }
@media (max-width: 48rem) { .blog-tools { grid-template-columns: 1fr; } }
.tagcloud { display: flex; flex-wrap: wrap; gap: 0.35rem 0.9rem; margin-top: 1rem; }
.tagcloud button { border: 0; background: none; padding: 0.1rem 0; color: var(--peri-deep); font-size: 0.92rem; font-weight: 500; }
.tagcloud button:hover { text-decoration: underline; }
.tagcloud button[aria-pressed="true"] { color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; }
.post-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(18.5rem, 1fr)); gap: clamp(1.75rem, 3.5vw, 3rem) clamp(1.25rem, 3vw, 2.5rem); }
.post-card { display: grid; gap: 0.85rem; align-content: start; text-decoration: none; }
.post-card .frame { padding: 0.45rem; }
.post-card .frame img { aspect-ratio: 16 / 10; object-fit: cover; }
.post-card:hover .frame { transform: translateY(-4px); }
.post-card h3 { font-weight: 600; font-size: 1.22rem; line-height: 1.28; }
.post-card:hover h3 { text-decoration: underline; }
.post-card p { color: var(--ink-2); font-size: 0.97rem; }
.post-meta { display: flex; flex-wrap: wrap; gap: 0.3rem 0.9rem; align-items: center; font-size: var(--step--1); color: var(--ink-2); }
.post-card--lead { grid-column: 1 / -1; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(1.25rem, 3vw, 3rem); align-items: center; }
.post-card--lead h3 { font-family: var(--font-display); font-weight: 400; font-size: var(--step-3); line-height: 1.06; }
@media (max-width: 48rem) { .post-card--lead { grid-template-columns: 1fr; } }

.article { max-width: 43rem; margin-inline: auto; }
.article__head { padding-top: calc(var(--header-h) + clamp(1.5rem, 4vw, 3rem)); }
.article__head h1 { font-size: clamp(2.2rem, 1.2rem + 3.4vw, 3.9rem); text-wrap: balance; }
.article__hero { margin-block: clamp(1.5rem, 4vw, 2.75rem); }
.article__body { font-size: 1.125rem; line-height: 1.72; }
.article__body > * + * { margin-top: 1.15em; }
.article__body h2 { font-family: var(--font-display); font-weight: 400; font-size: 1.75rem; line-height: 1.15; margin-top: 2em; }
.article__body h3 { font-size: 1.2rem; font-weight: 600; margin-top: 1.7em; }
.article__body a { color: var(--peri-deep); }
.article__body ul, .article__body ol { padding-left: 1.3rem; }
.article__body ul { list-style: disc; }
.article__body ol { list-style: decimal; }
.article__body li + li { margin-top: 0.35em; }
.article__body figure { margin-block: 2em; }
.article__body figcaption { margin-top: 0.6rem; font-size: var(--step--1); color: var(--ink-3); font-style: italic; }
.article__body .pull { margin-block: 1.25em; padding-left: 1rem; border-left: 3px solid var(--butter); }
.article__body .pull blockquote { font-size: 1.2rem; line-height: 1.45; }
.article__body .pull figcaption { margin-top: 0.25rem; font-style: normal; }
.article__lead { font-size: var(--step-1); line-height: 1.5; color: var(--ink-2); }
.byline { display: grid; grid-template-columns: 3.25rem 1fr; gap: 0.9rem; align-items: center; border-top: 1px solid var(--line); margin-top: 3rem; padding-top: 1.5rem; }
.byline img { width: 3.25rem; height: 3.25rem; border-radius: 50%; object-fit: cover; background: var(--peri-tint); }

/* ---------- about ---------- */
.about-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(16rem, 26rem); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.about-top__art { position: relative; }
.about-top__art img { display: block; width: 100%; }
@media (max-width: 52rem) { .about-top { grid-template-columns: 1fr; } .about-top__art { max-width: 20rem; } }
.directions { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.5rem; counter-reset: dir; }
.directions li { counter-increment: dir; background: var(--paper); box-shadow: var(--shadow-card); padding: 1.4rem; border-top: 5px solid var(--d); }
.directions h3 { font-weight: 600; font-size: 1.12rem; line-height: 1.3; margin-bottom: 0.5rem; }
.directions p { color: var(--ink-2); font-size: 0.98rem; }
.cv { display: grid; grid-template-columns: 11rem 1fr; gap: 0 2.5rem; }
.cv h2 { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; line-height: 1.1; padding-top: 1.5rem; border-top: 2px solid var(--ink); }
.cv__items { border-top: 2px solid var(--ink); }
.cv__item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.2rem 1.5rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.cv__item h3 { font-weight: 600; font-size: 1.1rem; line-height: 1.3; }
.cv__item .where { color: var(--ink-2); }
.cv__item .when { font-size: 0.93rem; color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.cv__item ul { grid-column: 1 / -1; margin-top: 0.6rem; display: grid; gap: 0.4rem; padding-left: 1.1rem; list-style: disc; color: var(--ink-2); font-size: 0.98rem; }
.cv__group + .cv__group { margin-top: 0; }
.cv > * { margin-bottom: 2.5rem; }
@media (max-width: 48rem) { .cv { grid-template-columns: 1fr; } .cv h2 { border-top: 0; padding-top: 0; margin-bottom: 0.75rem; } .cv__item { grid-template-columns: 1fr; } .cv__item .when { text-align: left; } }
.toolset { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.toolset li { background: var(--paper); border: 1.5px solid var(--line); border-radius: 999px; padding: 0.25rem 0.8rem; font-size: 0.92rem; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
@media (max-width: 54rem) { .contact-grid { grid-template-columns: 1fr; } }
.form { display: grid; gap: 1.25rem; background: var(--paper); padding: clamp(1.25rem, 3vw, 2.25rem); box-shadow: var(--shadow-card); }
.form__two { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 34rem) { .form__two { grid-template-columns: 1fr; } }
.picker { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.picker label { position: relative; }
.picker input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.picker span { display: inline-flex; align-items: center; gap: 0.45rem; border: 1.5px solid var(--line); border-radius: 999px; padding: 0.4rem 0.9rem; font-size: 0.93rem; font-weight: 500; background: var(--paper); }
.picker input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.picker input:focus-visible + span { outline: 3px solid var(--peri); outline-offset: 2px; }
.notice { background: var(--peri-tint); padding: 0.9rem 1.1rem; border-left: 4px solid var(--peri); font-size: 0.97rem; }
.notice--ok { background: #dff5e6; border-color: #1d8a4a; }
.checks { display: grid; gap: 0.5rem; }
.checks li { display: grid; grid-template-columns: 1.25rem 1fr; gap: 0.6rem; }
.checks svg { color: var(--peri); margin-top: 0.25rem; }
.reach { display: grid; gap: 1.5rem; }
.reach h2 { font-size: 0.95rem; font-weight: 600; color: var(--ink-3); margin-bottom: 0.3rem; }
.reach a.big { font-family: var(--font-display); font-size: clamp(1.3rem, 2.6vw, 1.75rem); text-decoration: none; overflow-wrap: anywhere; line-height: 1.2; }
.reach a.big:hover { color: var(--peri-deep); }
.reach__art { display: block; width: min(100%, 20rem); height: auto; margin-top: 0.5rem; filter: drop-shadow(0 18px 28px rgba(32, 29, 51, 0.28)); }
.socials { display: flex; gap: 0.6rem; }
.socials a { width: 2.75rem; height: 2.75rem; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid currentColor; transition: background-color 0.15s ease, color 0.15s ease; }
.socials a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.site-footer .socials a:hover { background: #fff; color: var(--stage); border-color: #fff; }

/* ---------- footer ---------- */
.site-footer { background: var(--stage); color: rgba(255, 255, 255, 0.8); padding-block: clamp(2.5rem, 6vw, 4.5rem) 2rem; overflow: hidden; }
.site-footer a { color: #fff; }
.site-footer__top { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(13rem, 21rem); gap: 2rem 3rem; align-items: center; }
.site-footer__art { display: block; width: 100%; height: auto; justify-self: end; filter: drop-shadow(0 26px 40px rgba(0, 0, 0, 0.5)); }
.site-footer__top p { margin-top: 1rem; max-width: 24rem; font-size: 0.97rem; }
.site-footer h2 { font-size: 0.9rem; font-weight: 600; color: rgba(255, 255, 255, 0.6); margin-bottom: 0.8rem; }
.site-footer li + li { margin-top: 0.4rem; }
.site-footer li a { text-decoration: none; }
.site-footer li a:hover { text-decoration: underline; }
.site-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.16); font-size: var(--step--1); color: rgba(255, 255, 255, 0.6); }
@media (max-width: 60rem) { .site-footer__top { grid-template-columns: 1fr 1fr; align-items: start; } .site-footer__art { grid-column: 1 / -1; justify-self: center; max-width: 18rem; margin-top: 0.5rem; } }
@media (max-width: 40rem) { .site-footer__top { grid-template-columns: 1fr; } }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(24, 21, 36, 0.94); display: grid; grid-template-rows: auto 1fr auto; color: #fff; }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 1rem; }
.lightbox__bar button, .lightbox__nav button { border: 0; background: rgba(255, 255, 255, 0.12); color: #fff; width: 2.75rem; height: 2.75rem; border-radius: 50%; display: grid; place-items: center; }
.lightbox__bar button:hover, .lightbox__nav button:hover { background: rgba(255, 255, 255, 0.24); }
.lightbox__stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 1rem; }
.lightbox__stage img { max-width: 100%; max-height: 100%; object-fit: contain; background: #fff; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6); }
.lightbox__nav { position: absolute; inset: 0; display: flex; justify-content: space-between; align-items: center; padding: 0 1rem; pointer-events: none; }
.lightbox__nav button { pointer-events: auto; }
.lightbox__cap { padding: 0.9rem 1.25rem 1.25rem; text-align: center; font-size: 0.95rem; color: rgba(255, 255, 255, 0.86); min-height: 3.2rem; }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
