/* ==========================================================
   Katrina Winsko — Portfolio
   Gallery monochrome with a Front Porch neon hairline.
   ========================================================== */

:root {
  --bone: #f4f1ea;
  --bone-2: #e9e4d8;
  --ink: #0e0e0e;
  --mute: #6f6b63;
  --line: rgba(14, 14, 14, 0.12);
  --cyan: #00e5ff;
  --magenta: #ff2da0;

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --max: 1440px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bone);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 1px solid var(--magenta);
  outline-offset: 4px;
}

main:focus { outline: none; }

.eyebrow {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--mute);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem var(--gutter);
  background: var(--bone);
}

/* The Front Porch nod: a single neon hairline */
.site-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), var(--magenta) 50%, transparent);
  opacity: 0.7;
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1;
}

.wordmark span {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--sans);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--mute);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
}

.back-link {
  position: relative;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
}

.back-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}

.back-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ---------- Collections dropdown ---------- */

.collections { position: relative; }

.collections-btn {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding: 0.55rem 0.95rem;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.collections-btn:hover,
.collections-btn[aria-expanded="true"] {
  background: var(--ink);
  color: var(--bone);
  border-color: var(--ink);
}

.collections-label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.collections-current {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1;
  white-space: nowrap;
}

.collections-current::before {
  content: "/ ";
  font-style: normal;
  opacity: 0.4;
}

.chevron {
  align-self: center;
  transition: transform 0.35s var(--ease);
}

.collections-btn[aria-expanded="true"] .chevron { transform: rotate(180deg); }

.collections-menu {
  position: absolute;
  top: calc(100% + 0.75rem);
  right: 0;
  min-width: 20rem;
  padding: 0.5rem;
  list-style: none;
  background: var(--ink);
  color: var(--bone);
  border-radius: 14px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s linear 0.3s;
}

.collections-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.collections-menu li:first-child {
  border-bottom: 1px solid rgba(244, 241, 234, 0.1);
  margin-bottom: 0.35rem;
  padding-bottom: 0.35rem;
}

.collections-menu a {
  display: grid;
  grid-template-columns: 2rem 1fr auto;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 0.85rem;
  border-radius: 9px;
  transition: background 0.25s var(--ease);
}

.collections-menu a:hover,
.collections-menu a:focus-visible {
  background: rgba(244, 241, 234, 0.07);
  outline: none;
}

.mi-num {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  opacity: 0.45;
}

.mi-title {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.1;
  transition: transform 0.3s var(--ease);
}

.collections-menu a:hover .mi-title,
.collections-menu a:focus-visible .mi-title { transform: translateX(4px); }

.collections-menu a[aria-current="page"] .mi-title { font-style: italic; }

.collections-menu a[aria-current="page"] .mi-num {
  opacity: 1;
  color: var(--cyan);   /* matches Art Portfolio's cyan on the Front Porch homepage */
}

.mi-tag {
  padding: 0.2rem 0.55rem;
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid rgba(244, 241, 234, 0.25);
  border-radius: 999px;
  opacity: 0.7;
  white-space: nowrap;
}

.collections-menu .is-soon .mi-title { opacity: 0.55; }

.mi-title em {
  font-style: italic;
  font-size: 0.85em;
  letter-spacing: 0.01em;
  text-transform: none;
  opacity: 0.85;
}

.cc-short { display: none; }

/* ---------- Split hero (DUALITY) ---------- */

.hero {
  --split: 50%;
  position: relative;
  height: min(84vh, 860px);
  min-height: 30rem;
  overflow: hidden;
  user-select: none;
}

.hero-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.hero-light { background: var(--bone); color: var(--ink); }

.hero-dark {
  background: var(--ink);
  color: var(--bone);
  clip-path: inset(0 0 0 var(--split));
  transition: clip-path 0.9s var(--ease);
}

.hero-seam {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--split);
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--cyan) 30%, var(--magenta) 70%, transparent);
  transition: left 0.9s var(--ease);
  pointer-events: none;
}

/* Mirrored hero: dark on the left, light on the right */
.hero--flip .hero-light { background: var(--ink); color: var(--bone); }
.hero--flip .hero-dark  { background: var(--bone); color: var(--ink); }

.hero-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35em;
  margin: 0;
  font: inherit;
  text-align: center;
}

.hero-sub {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2.6rem, 8vw, 7rem);
  letter-spacing: 0.01em;
  line-height: 1;
  animation: rise 1.4s var(--ease) 0.2s both;
}

.hero-title {
  display: block;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3.6rem, 16.5vw, 16rem);
  letter-spacing: 0.08em;
  padding-left: 0.08em; /* balances the trailing letter-spacing */
  text-transform: uppercase;
  line-height: 0.9;
  animation: rise 1.4s var(--ease) both;
}

.hero-corner {
  position: absolute;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.hero-corner--tl { top: 2rem; left: var(--gutter); }
.hero-corner--tr { top: 2rem; right: var(--gutter); }

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  width: 1px;
  height: 3rem;
  background: currentColor;
  opacity: 0.4;
  transform-origin: top;
  animation: drip 2.4s var(--ease) infinite;
}

/* ---------- Simple hero (All Works) ---------- */

.hero-simple {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(4rem, 10vw, 8rem) var(--gutter) clamp(2rem, 5vw, 4rem);
}

.hero-simple h1 {
  margin-top: 1rem;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3rem, 10vw, 9rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 0.95;
  animation: rise 1.2s var(--ease) both;
}

.hero-simple h1 em { font-style: italic; text-transform: none; letter-spacing: 0; }

/* ---------- Intro / statement ---------- */

.intro {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 7rem) var(--gutter);
  display: grid;
  grid-template-columns: minmax(14rem, 1fr) 2.2fr;
  gap: clamp(2rem, 6vw, 6rem);
  border-bottom: 1px solid var(--line);
}

.intro dl {
  margin-top: 1.75rem;
  display: grid;
  gap: 1rem;
}

.intro dl div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.85rem;
}

.intro dt { color: var(--mute); }

.statement {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.5rem, 2.6vw, 2.45rem);
  line-height: 1.3;
}

.statement em { font-style: italic; }

/* ---------- Works grid ---------- */

.works {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 6rem) var(--gutter) clamp(4rem, 10vw, 9rem);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: clamp(16rem, 30vw, 30rem);
  gap: clamp(2.5rem, 5vw, 5rem) clamp(1rem, 2.5vw, 2.5rem);
}

.work {
  display: flex;
  flex-direction: column;
  min-height: 0;
}


.work-frame {
  position: relative;
  flex: 1;
  min-height: 0;
  width: 100%;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: var(--bone-2);
  cursor: zoom-in;
  /* the tile is a little "wall": the diptych hangs centred inside it */
  container-type: size;
  display: grid;
  place-items: center;
}

/* ---------- Diptychs ----------
   A .piece holds one or two panels, sized in real inches:
   --tw / --th = total width / height in inches, --g = gap between panels.
   Each context sets --inch so the whole piece fits its space. */

.piece {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(var(--g, 0) * var(--inch));
  transition: gap 0.9s var(--ease);
}

/* "Coming soon" pill centred over placeholder artwork */
.soon-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  transform: translate(-50%, -50%);
  padding: 0.5em 1.1em;
  background: var(--bone);
  color: var(--ink);
  border-radius: 999px;
  box-shadow: 0 6px 18px -8px rgba(14, 14, 14, 0.45);
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  white-space: nowrap;
  text-transform: uppercase;
  pointer-events: none;
}

.lb-stage .soon-badge { font-size: 0.8rem; }

.panel {
  position: relative;
  flex: none;
  width: calc(var(--w) * var(--inch));
  aspect-ratio: var(--r);
  overflow: hidden;
  box-shadow: 0 14px 24px -14px rgba(14, 14, 14, 0.45), 0 2px 4px rgba(14, 14, 14, 0.08);
}

.work-frame .piece { --inch: min(calc(84cqw / var(--tw)), calc(76cqh / var(--th))); }

/* Hover: the two panels slide together and read as one composition */
.work-frame:hover .piece,
.work-frame:focus-visible .piece,
.pair-art:hover .piece,
.pair-art:focus-visible .piece,
.mini-btn:hover .piece,
.mini-btn:focus-visible .piece { gap: 0px; }

.mini-btn:hover .piece.is-framed,
.mini-btn:focus-visible .piece.is-framed,
.work-frame:hover .piece.is-framed { gap: calc(var(--inch) * 0.1); }

.art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}

.work-frame:hover .art,
.work-frame:focus-visible .art { transform: scale(1.03); }

/* CSS-generated placeholder "paintings": a split field + an orb.
   Replace with real images by setting `src` in portfolio.js. */
.art--placeholder {
  background:
    radial-gradient(circle at var(--ox) var(--oy), var(--c) 0 14%, transparent 14.4%),
    linear-gradient(var(--ang), var(--a) 0 50%, var(--b) 50% 100%);
}

.art--placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.16;
  mix-blend-mode: multiply;
}

.work-view {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  padding: 0.45rem 0.85rem;
  background: var(--bone);
  color: var(--ink);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.work-frame:hover .work-view,
.work-frame:focus-visible .work-view { opacity: 1; transform: none; }

.work figcaption {
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  column-gap: 0.5rem;
  padding-top: 1rem;
}

.work-num {
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  color: var(--mute);
  padding-top: 0.35rem;
}

.work-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1.2;
}

.work-meta {
  grid-column: 2;
  font-size: 0.78rem;
  color: var(--mute);
}

.work-meta .tag {
  color: var(--ink);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.65rem;
  font-weight: 500;
}

/* ---------- Handmade frames (Framed Minis) ---------- */

:root { --inch: clamp(2.6rem, 4.6vw, 4.4rem); } /* 1 painted inch on the minis wall */

.framed {
  --fp: calc(var(--inch) * 0.3);                  /* frame moulding width (matches FRAME_IN in JS) */
  position: relative;
  flex: none;
  width: calc(var(--w) * var(--inch) + 2 * var(--fp));
  padding: var(--fp);
  background:
    repeating-linear-gradient(100deg, rgba(255, 255, 255, 0.05) 0 2px, transparent 2px 7px),
    linear-gradient(135deg, var(--f1), var(--f2) 55%, var(--f3));
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.22),
    inset -1px -1px 0 rgba(0, 0, 0, 0.35),
    0 18px 30px -12px rgba(14, 14, 14, 0.45),
    0 4px 8px rgba(14, 14, 14, 0.12);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

/* Hand-soldered tin: brushed pewter-silver with a soft specular sweep */
.framed--tin {
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 3px),
    linear-gradient(135deg, #eef0f1 0%, #9a9ea2 32%, #dadcde 52%, #7d8185 78%, #c3c6c9 100%);
}

.framed-painting {
  position: relative;
  aspect-ratio: var(--r);
  overflow: hidden;
}

/* the inner lip where the painting meets the frame */
.framed-painting::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(0, 0, 0, 0.3);
  pointer-events: none;
}

.mini-btn {
  display: flex;
  justify-content: center;
  /* fixed slot = the pair's full width with the gap open, so when the
     frames slide together on hover, neighbouring minis don't shift */
  width: calc(var(--tw) * var(--inch));
  padding: 0;
  background: none;
  border: 0;
  cursor: zoom-in;
}

.mini-btn:hover .framed,
.mini-btn:focus-visible .framed {
  transform: translateY(-5px);
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.22),
    inset -1px -1px 0 rgba(0, 0, 0, 0.35),
    0 30px 40px -14px rgba(14, 14, 14, 0.5),
    0 6px 12px rgba(14, 14, 14, 0.12);
}

/* ---------- Section heads ---------- */

.section-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 0.75rem 2rem;
  padding-bottom: 1.5rem;
  margin-bottom: clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid var(--line);
}

.section-head .eyebrow { grid-column: 1 / -1; }

.section-head h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 4.5vw, 3.8rem);
  line-height: 1.05;
}

.section-head h2 em { font-style: italic; }

.section-note {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mute);
}

/* ---------- The minis wall ---------- */

.minis {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 8rem) var(--gutter) 0;
}

.minis-wall {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(2.5rem, 5vw, 5rem) clamp(2.5rem, 6vw, 6rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
}

/* every mini hangs on the same centre line, like a gallery wall */
.mini {
  display: grid;
  grid-template-rows: calc(3.9 * var(--inch)) auto;
  justify-items: center;
  align-content: start;
}

.mini figcaption { align-content: start; }

.mini .mini-btn { align-self: center; }

.mini figcaption {
  display: grid;
  justify-items: center;
  gap: 0.2rem;
  max-width: 15rem;
  margin-top: 1.25rem;
  text-align: center;
}

.mini .work-num { padding: 0; }

.mini .work-meta,
.pair .work-meta { grid-column: auto; }

.mini-jump {
  margin-top: 0.6rem;
  padding: 0 0 0.15rem;
  background: none;
  border: 0;
  border-bottom: 1px solid currentColor;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.3s var(--ease);
}

.mini-jump:hover { color: var(--magenta); }

/* ---------- Mini → Expanded pairs ---------- */

.pairs {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) var(--gutter) clamp(3rem, 6vw, 5rem);
}

.pair {
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) clamp(4rem, 9vw, 8rem) 1.7fr;
  align-items: center;
  gap: clamp(1rem, 3vw, 3rem);
  padding: clamp(3rem, 6vw, 5rem) 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 6rem;
}

.pair:last-child { border-bottom: 0; }

.pair--flip { grid-template-columns: 1.7fr clamp(4rem, 9vw, 8rem) minmax(12rem, 1fr); }
.pair--flip .pair-mini  { order: 3; }
.pair--flip .pair-link  { order: 2; }
.pair--flip .pair-large { order: 1; }

/* the mini beside its expanded work: a touch smaller than on the wall */
.pair-mini .piece { --inch: clamp(2rem, 3.4vw, 3.2rem); }

.pair-mini,
.pair-large {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pair figcaption {
  display: grid;
  justify-items: center;
  gap: 0.2rem;
  margin-top: 1.25rem;
  text-align: center;
}

.pair-kicker {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--mute);
}

.pair-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.pair-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
}

.pair--flip .pair-line { background: linear-gradient(270deg, var(--cyan), var(--magenta)); }

.pair-label {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.pair-arrow { font-size: 1rem; }
.pair--flip .pair-arrow { transform: scaleX(-1); }

.pair-art {
  position: relative;
  /* box takes the diptych's own proportions, capped at ~60% of the screen height */
  width: min(100%, calc(60vh * var(--tw) / var(--th)));
  aspect-ratio: var(--tw) / var(--th);
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  container-type: size;
  display: grid;
  place-items: center;
}

.pair-art .piece { --inch: min(calc(100cqw / var(--tw)), calc(100cqh / var(--th))); }

.pair-art:hover .work-view,
.pair-art:focus-visible .work-view { opacity: 1; transform: none; }

/* ---------- Next collection ---------- */

.next-collection {
  display: block;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 7rem) var(--gutter);
  border-top: 1px solid var(--line);
  text-align: center;
}

.next-title {
  display: block;
  margin-top: 1rem;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.2rem, 6vw, 5rem);
  letter-spacing: 0.06em;
  line-height: 1.05;
  text-transform: uppercase;
}

.next-title em {
  font-style: italic;
  text-transform: none;
  letter-spacing: 0.01em;
}

.next-arrow {
  display: inline-block;
  transition: transform 0.4s var(--ease);
}

.next-collection:hover .next-arrow { transform: translateX(0.3em); }

/* ---------- Coming soon teaser ---------- */

.teaser {
  min-height: calc(100vh - 5rem);
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1.75rem;
  padding: 4rem var(--gutter);
  text-align: center;
}

.teaser-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3.2rem, 13vw, 12rem);
  letter-spacing: 0.08em;
  padding-left: 0.08em;
  text-transform: uppercase;
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1px var(--ink);
  animation: rise 1.4s var(--ease) both;
}

.teaser-soon {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.teaser-soon .line {
  flex: none;
  width: 3.5rem;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  transform-origin: center;
  animation: grow 1.6s var(--ease) 0.4s both;
}

.teaser-copy {
  max-width: 32rem;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-style: italic;
  color: var(--mute);
}

.text-link {
  margin-top: 0.5rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--ink);
  transition: letter-spacing 0.4s var(--ease);
}

.text-link:hover { letter-spacing: 0.3em; }

/* ---------- Footer ---------- */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem var(--gutter);
  border-top: 1px solid var(--line);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mute);
}

.site-footer a:hover { color: var(--ink); }

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 6rem 1fr 6rem;
  align-items: center;
  padding: 4rem 0;
  background: rgba(14, 14, 14, 0.985);
  color: var(--bone);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0s linear 0.4s;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s var(--ease);
}

.lb-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  min-width: 0;
}

.lb-stage {
  width: 100%;
  height: min(62vh, 52rem);
  container-type: size;
  display: grid;
  place-items: center;
  transform: scale(0.97);
  transition: transform 0.6s var(--ease);
}

.lightbox.is-open .lb-stage { transform: none; }

.lb-stage .piece { --inch: min(calc(96cqw / var(--tw)), calc(96cqh / var(--th))); }

.lb-photo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Together · I · II · On the wall */
.lb-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
}

.lb-tab {
  padding: 0.45rem 0.9rem;
  background: none;
  border: 1px solid rgba(244, 241, 234, 0.2);
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.lb-tab:hover { border-color: rgba(244, 241, 234, 0.6); }

.lb-tab[aria-selected="true"] {
  background: var(--bone);
  color: var(--ink);
  border-color: var(--bone);
}

.lb-tab em {
  font-family: var(--serif);
  font-size: 1.1em;
  letter-spacing: 0.02em;
  text-transform: none;
}

.lb-from {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cyan);
}

.lb-caption {
  text-align: center;
}

.lb-caption .work-title { font-size: 1.6rem; }

.lb-caption .work-meta { color: rgba(244, 241, 234, 0.55); }

.lb-nav,
.lb-close {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  justify-self: center;
  background: transparent;
  border: 1px solid rgba(244, 241, 234, 0.25);
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

.lb-nav:hover,
.lb-close:hover {
  background: var(--bone);
  color: var(--ink);
}

.lb-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
}

.lb-count {
  position: absolute;
  top: 2.2rem;
  left: 1.75rem;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  color: rgba(244, 241, 234, 0.55);
}

/* ---------- Motion ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease) var(--d, 0ms), transform 1s var(--ease) var(--d, 0ms);
}

.reveal.is-visible { opacity: 1; transform: none; }

@keyframes rise {
  from { opacity: 0; transform: translateY(0.25em); }
  to   { opacity: 1; transform: none; }
}

@keyframes drip {
  0%   { transform: scaleY(0); }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

@keyframes grow {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .intro { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .wordmark { font-size: 1.25rem; }
  .wordmark span { display: none; }
  .collections-label { display: none; }
  .collections-current::before { content: ""; }
  .cc-full { display: none; }
  .cc-short { display: inline; }

  .section-head { grid-template-columns: 1fr; }

  .pair,
  .pair--flip { grid-template-columns: 1fr; row-gap: 2rem; }
  .pair--flip .pair-mini,
  .pair--flip .pair-link,
  .pair--flip .pair-large { order: 0; }
  .pair-link { flex-direction: row; justify-content: center; }
  .pair-line { width: 3rem; }
  .pair-arrow,
  .pair--flip .pair-arrow { transform: rotate(90deg); }
  .back-link { font-size: 0.62rem; letter-spacing: 0.16em; }

  .collections-menu {
    position: fixed;
    top: 4.25rem;
    left: 0.75rem;
    right: 0.75rem;
    min-width: 0;
  }

  .hero { height: 72vh; min-height: 26rem; }
  .hero-corner--tr { display: none; }

  .works {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }
  .work-frame { flex: none; aspect-ratio: 5 / 4; }

  .lightbox {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr auto;
    padding: 4.5rem 1rem 2rem;
    row-gap: 1.5rem;
  }
  .lb-figure { grid-column: 1 / -1; grid-row: 1; }
  .lb-prev { grid-row: 2; grid-column: 1; }
  .lb-next { grid-row: 2; grid-column: 2; }
  .lb-stage { height: 52vh; }
}
