/* ==========================================================================
   Osley Gil — site styles
   Light theme by default; dark ("night") theme via [data-theme="dark"] on <html>.
   ========================================================================== */

:root {
  --bg: #f6f4f0;
  --surface: #ffffff;
  --ink: #171615;
  --ink-soft: #3d3a36;
  --muted: #77726b;
  --line: #e2ddd5;
  --accent: #9e1b1f;
  --accent-ink: #ffffff;
  --overlay: rgba(246, 244, 240, 0.97);
  --shadow: 0 1px 2px rgba(23, 22, 21, 0.06), 0 8px 24px rgba(23, 22, 21, 0.08);

  --font-display: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0e0e0e;
  --surface: #171717;
  --ink: #ece8e2;
  --ink-soft: #c9c4bc;
  --muted: #8f8a83;
  --line: #2a2826;
  --accent: #d4463e;
  --accent-ink: #ffffff;
  --overlay: rgba(10, 10, 10, 0.97);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  /* Even, full-height numerals everywhere (Cormorant defaults to old-style figures) */
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
}

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.25rem;
}
.skip-link { position: absolute; left: -9999px; top: 0; }
.skip-link:focus { left: 16px; top: 16px; z-index: 100; background: var(--surface); padding: 8px 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background-color 0.4s var(--ease), transform 0.5s var(--ease-out);
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.wordmark {
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.wordmark:hover { color: var(--ink); }

.site-nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 36px); margin-left: auto; }
.site-nav a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  padding-block: 6px;
  position: relative;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease-out);
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

.lang-switch { display: flex; align-items: center; gap: 2px; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.14em; }
.lang-switch a { padding: 6px 5px; text-decoration: none; color: var(--muted); }
.lang-switch a:hover { color: var(--accent); }
.lang-switch a[aria-current="true"] { color: var(--ink); }
.lang-switch span { color: var(--line); }

.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s, transform 0.3s var(--ease);
}
.theme-toggle:hover { border-color: var(--ink); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

@media (max-width: 600px) {
  :root { --header-h: 100px; }
  .site-header .container { flex-wrap: wrap; align-content: center; row-gap: 10px; column-gap: 12px; }
  .wordmark { font-size: 1.15rem; letter-spacing: 0.2em; }
  .site-nav { order: 3; width: 100%; justify-content: space-between; gap: 8px; margin: 0; }
  .site-nav a { font-size: 0.7rem; letter-spacing: 0.12em; padding-block: 4px; }
  .theme-toggle { width: 34px; height: 34px; }
  .lang-switch { margin-left: auto; }
}

/* ---------- Hero (home) ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
  min-height: calc(100svh - var(--header-h));
  padding-block: clamp(32px, 6vh, 72px);
}
.hero__text h1 { font-size: clamp(3.4rem, 8vw, 7.5rem); margin-bottom: 1.5rem; }
.hero__lede {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.1vw, 1.8rem);
  font-style: italic;
  line-height: 1.35;
  color: var(--ink-soft);
  max-width: 28ch;
  margin: 0 0 2.5rem;
}
.hero__figure { margin: 0; justify-self: end; width: 100%; }
.hero__figure img {
  width: 100%;
  max-height: calc(100svh - var(--header-h) - 120px);
  object-fit: contain;
  object-position: right center;
}
.hero__figure figcaption { margin-top: 14px; text-align: right; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero__figure { order: -1; }
  .hero__figure img { max-height: 70svh; object-position: center; }
  .hero__figure figcaption { text-align: left; }
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 28px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }

.link-arrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.link-arrow::after { content: " →"; transition: margin 0.25s var(--ease); }
.link-arrow:hover::after { margin-left: 6px; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(72px, 11vw, 160px); }
.section--rule { border-top: 1px solid var(--line); }
.section__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.section__head h2 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); }

/* Feature: latest series */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.feature__text { position: sticky; top: calc(var(--header-h) + 40px); }
.feature__text h2 { font-size: clamp(2.4rem, 5vw, 4.2rem); margin-bottom: 1.5rem; }
.feature__text p { color: var(--ink-soft); max-width: 46ch; }
.feature__text .link-arrow { display: inline-block; margin-top: 1.5rem; }
.feature__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 32px); }
.feature__grid .work:nth-child(even) { margin-top: clamp(40px, 8vw, 120px); }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; }
  .feature__text { position: static; }
}

/* Statement quote */
.statement { text-align: center; }
.statement blockquote {
  margin: 0 auto;
  max-width: 30ch;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.2vw, 3.4rem);
  font-style: italic;
  line-height: 1.22;
}
.statement blockquote::before { content: ""; display: block; width: 40px; height: 1px; background: var(--accent); margin: 0 auto 2.5rem; }
.statement cite { display: block; margin-top: 2rem; font-style: normal; }

/* Studio / about teaser */
.split {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.split__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.split__text h2 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); margin-bottom: 1.5rem; }
.split__text p { color: var(--ink-soft); }
.split__text .btn { margin-top: 1.5rem; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Upcoming / recent fairs list */
.events { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.events li {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 24px;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.events .events__year { color: var(--muted); font-size: 0.85rem; letter-spacing: 0.08em; }
.events .events__name { font-family: var(--font-display); font-size: clamp(1.3rem, 2.4vw, 1.9rem); line-height: 1.2; }
.events .events__place { color: var(--muted); font-size: 0.9rem; text-align: right; }
@media (max-width: 600px) {
  .events li { grid-template-columns: 1fr; gap: 4px; }
  .events .events__place { text-align: left; }
}

/* ---------- Details ("Up close") ---------- */
.details { padding-block: clamp(72px, 11vw, 160px); position: relative; }
.details__head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px 48px;
  flex-wrap: wrap;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.details__head h2 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
.details__intro { max-width: 44ch; margin: 0; color: var(--ink-soft); }

/* Default: a native, swipeable row (phones, no-JS, reduced motion) */
.details__viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.details__viewport::-webkit-scrollbar { display: none; }
.details__track {
  display: flex;
  gap: clamp(12px, 2vw, 28px);
  width: max-content;
  padding-inline: var(--gutter);
}
.detail { margin: 0; width: min(78vw, 420px); scroll-snap-align: center; }
.detail__open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--line);
  cursor: zoom-in;
  overflow: hidden;
  aspect-ratio: 1;
}
.detail__open img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out), opacity 0.6s; }
.detail__open:hover img { transform: scale(1.06); }
.detail figcaption { margin-top: 12px; font-size: 0.8rem; color: var(--muted); }
.detail__num { font-variant-numeric: tabular-nums; letter-spacing: 0.12em; }
.details__progress { display: none; }

/* Wide screens with motion: the section pins and the strip travels sideways (main.js) */
.details.is-pinned { padding-block: 0; }
.details.is-pinned .details__pin {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.details.is-pinned .details__viewport { overflow: visible; scroll-snap-type: none; }
.details.is-pinned .details__track { will-change: transform; padding-inline: var(--gutter) 30vw; }
.details.is-pinned .detail { width: min(38vw, 62vh); }
.details.is-pinned .details__head { margin-bottom: clamp(24px, 3vh, 40px); }
.details.is-pinned .details__progress {
  display: block;
  height: 1px;
  margin-top: clamp(20px, 3vh, 36px);
  background: var(--line);
}
.details__progress span { display: block; height: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left; }

/* ---------- Series cards ---------- */
.series-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: clamp(28px, 4vw, 56px) clamp(16px, 2.5vw, 32px);
}
.series-card { text-decoration: none; display: block; }
.series-card__media { overflow: hidden; background: var(--line); aspect-ratio: 4 / 5; }
.series-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease), opacity 0.6s;
}
.series-card:hover .series-card__media img { transform: scale(1.04); }
.series-card__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 16px; }
.series-card h3 { font-size: clamp(1.5rem, 2.2vw, 1.9rem); }
.series-card:hover h3 { color: var(--accent); }
.series-card__count { color: var(--muted); font-size: 0.8rem; letter-spacing: 0.06em; white-space: nowrap; }

/* ---------- Page header ---------- */
.page-head { padding-block: clamp(56px, 9vw, 128px) clamp(32px, 5vw, 64px); }
.page-head h1 { font-size: clamp(3rem, 8vw, 6.5rem); }
.page-head__intro {
  margin-top: 1.75rem;
  max-width: 62ch;
  color: var(--ink-soft);
  font-size: 1.05rem;
}
.page-head__intro p { margin: 0 0 1em; }
.breadcrumb { font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.5rem; }
.breadcrumb a { text-decoration: none; }

/* ---------- Works grid (masonry via columns) ---------- */
.works-grid { columns: 3 300px; column-gap: clamp(16px, 2.5vw, 36px); padding-bottom: clamp(72px, 10vw, 140px); }
.works-grid .work { break-inside: avoid; margin-bottom: clamp(32px, 4vw, 56px); }

.work { margin: 0; }
.work__open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  color: inherit;
  text-align: left;
}
.work__media { background: var(--line); overflow: hidden; }
.work__media img { width: 100%; transition: transform 1s var(--ease), opacity 0.6s; }
.work__open:hover .work__media img { transform: scale(1.025); }
.work figcaption { margin-top: 12px; font-size: 0.86rem; line-height: 1.5; }
.work__title { font-family: var(--font-display); font-size: 1.25rem; font-style: italic; color: var(--ink); }
.work__title .work__year { font-style: normal; }
.work__details { color: var(--muted); }

/* Image fade-in once loaded */
.js img[loading="lazy"]:not(.is-loaded) { opacity: 0; }

/* Series pager */
.series-pager {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-block: 40px clamp(72px, 10vw, 120px);
  border-top: 1px solid var(--line);
}
.series-pager a { text-decoration: none; }
.series-pager small { display: block; color: var(--muted); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 6px; }
.series-pager span { font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2.2rem); }
.series-pager .next { text-align: right; margin-left: auto; }

/* ---------- About ---------- */
.about-intro {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
  padding-bottom: clamp(72px, 10vw, 140px);
}
.about-intro__media { position: sticky; top: calc(var(--header-h) + 32px); margin: 0; }
.about-intro__media figcaption { margin-top: 12px; color: var(--muted); font-size: 0.85rem; }
.prose { font-size: 1.06rem; color: var(--ink-soft); max-width: 64ch; }
.prose p { margin: 0 0 1.25em; }
.prose em { color: var(--ink); }
.prose h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); color: var(--ink); margin: 2.2em 0 0.9em; }
.prose h2:first-child { margin-top: 0; }
.prose--lead p:first-child {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 1.95rem);
  line-height: 1.35;
  color: var(--ink);
}
@media (max-width: 860px) {
  .about-intro { grid-template-columns: 1fr; }
  .about-intro__media { position: static; }
}

.cv { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: clamp(24px, 5vw, 80px); padding-block: clamp(48px, 6vw, 80px); border-top: 1px solid var(--line); }
.cv h2 { font-size: clamp(1.7rem, 2.8vw, 2.3rem); }
.cv ul { list-style: none; margin: 0; padding: 0; }
.cv li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.cv li:first-child { padding-top: 0; }
.cv li b { font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.cv li em { color: var(--ink); }
@media (max-width: 700px) {
  .cv { grid-template-columns: 1fr; }
  .cv li { grid-template-columns: 1fr; gap: 2px; }
}

/* ---------- Press ---------- */
.press-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(46%, 220px), 1fr));
  gap: clamp(40px, 5vw, 64px) clamp(16px, 2.5vw, 32px);
  padding-bottom: clamp(72px, 10vw, 140px);
}
.press-card__link { display: block; text-decoration: none; height: 100%; }
.press-card__media {
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 4;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 18px;
  margin-bottom: 18px;
  overflow: hidden;
  transition: border-color 0.3s var(--ease);
}
.press-card__media img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
  box-shadow: var(--shadow);
  transition: transform 0.8s var(--ease), opacity 0.6s;
}
.press-card__media.is-logo { padding: 36px; }
.press-card__media.is-logo img { box-shadow: none; }
:root[data-theme="dark"] .press-card__media.is-logo { background: #f3f1ed; }
.press-card__media.is-text span {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.2vw, 1.9rem);
  font-style: italic;
  line-height: 1.15;
  text-align: center;
  color: var(--muted);
}
a.press-card__link:hover .press-card__media { border-color: var(--ink); }
a.press-card__link:hover .press-card__media img { transform: translateY(-4px); }
a.press-card__link:hover h3 { color: var(--accent); }
.press-card__meta { margin: 0 0 6px; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.press-card h3 { font-size: 1.45rem; line-height: 1.15; }
.press-card__title { margin: 6px 0 12px; font-size: 0.9rem; line-height: 1.5; color: var(--ink-soft); }
.press-card__offline { font-size: 0.75rem; color: var(--muted); letter-spacing: 0.04em; }
@media (max-width: 600px) {
  .press-card__media { padding: 10px; }
  .press-card__media.is-logo { padding: 16px; }
  .press-card h3 { font-size: 1.2rem; }
  .press-card__title { font-size: 0.82rem; }
}

/* Video (click-to-load YouTube) */
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(24px, 3vw, 40px); }
.video { margin: 0; }
.video__poster, .video iframe {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  padding: 0;
  background: #000;
  cursor: pointer;
  overflow: hidden;
}
.video__poster img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; transition: opacity 0.4s, transform 1s var(--ease); }
.video__poster:hover img { opacity: 1; transform: scale(1.03); }
.video__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #111;
  transition: background-color 0.25s, color 0.25s;
}
.video__play svg { width: 26px; height: 26px; margin-left: 4px; }
.video__poster:hover .video__play { background: var(--accent); color: #fff; }
.video figcaption { margin-top: 12px; font-size: 0.86rem; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line);
  margin-bottom: clamp(56px, 8vw, 110px);
}
.contact-item { padding: 28px 0; border-bottom: 1px solid var(--line); min-width: 0; }
@media (min-width: 600px) {
  .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-item { padding: 36px 28px 36px 0; }
  .contact-item:nth-child(even) { border-left: 1px solid var(--line); padding-left: 28px; }
}
@media (min-width: 1100px) {
  .contact-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .contact-item + .contact-item { border-left: 1px solid var(--line); padding-left: 28px; }
}
.contact-item .eyebrow { margin-bottom: 0.75rem; }
.contact-item a { font-family: var(--font-display); font-size: clamp(1.4rem, 2.4vw, 2rem); text-decoration: none; word-break: break-word; }

/* Inquiry form (sends via WhatsApp or email, see main.js) */
.inquiry {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.inquiry__intro h2 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); margin-bottom: 1.25rem; }
.inquiry__intro p:last-child { color: var(--ink-soft); max-width: 36ch; }
.inquiry__form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.field label span { text-transform: none; letter-spacing: 0.02em; font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 10px 0 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1.05rem;
  transition: border-color 0.3s var(--ease);
}
.field textarea { resize: vertical; min-height: 130px; line-height: 1.55; }
.field select { appearance: none; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 10px) 52%, calc(100% - 5px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 24px; }
.field select option { background: var(--surface); color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--ink); }
.field input:user-invalid, .field textarea:user-invalid { border-bottom-color: var(--accent); }
.inquiry__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; margin-top: 8px; }
.inquiry__email { background: none; border: 0; padding: 0; color: var(--ink); cursor: pointer; font-family: inherit; }
.btn--wa svg { width: 18px; height: 18px; }
.btn--wa:hover { background: #1fa855; border-color: #1fa855; color: #fff; }
@media (max-width: 860px) {
  .inquiry { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .inquiry__form { grid-template-columns: 1fr; }
}

/* ---------- WhatsApp ---------- */
.wa-float {
  position: fixed;
  right: clamp(16px, 2.5vw, 28px);
  bottom: clamp(16px, 2.5vw, 28px);
  z-index: 40;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: #1fa855;
  box-shadow: var(--shadow);
  transition: transform 0.5s var(--ease-out), opacity 0.4s var(--ease), background-color 0.25s, color 0.25s;
}
.wa-float svg { width: 24px; height: 24px; }
.wa-float:hover { background: #1fa855; border-color: #1fa855; color: #fff; }
.js .wa-float:not(.is-visible) { opacity: 0; transform: translateY(20px) scale(0.9); pointer-events: none; }

.lightbox__inquire {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.lightbox__inquire svg { width: 16px; height: 16px; color: #1fa855; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 56px 40px; font-size: 0.88rem; color: var(--muted); }
.site-footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; margin-bottom: 48px; }
.site-footer .wordmark { color: var(--ink); font-size: 1.2rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.78rem; }

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--overlay);
  color: var(--ink);
}
.lightbox::backdrop { background: var(--overlay); }
.lightbox:focus { outline: none; }
.lightbox[open] { display: grid; grid-template-rows: 1fr auto; animation: lb-in 0.35s var(--ease); }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }

.lightbox__stage {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 56px clamp(56px, 7vw, 110px) 8px;
  touch-action: pan-x pan-y pinch-zoom;
}
.lightbox__stage img {
  max-width: 100%;
  max-height: calc(100dvh - 160px);
  width: auto;
  height: auto;
  object-fit: contain;
  cursor: zoom-in;
  user-select: none;
  -webkit-user-drag: none;
  box-shadow: var(--shadow);
}
.lightbox.is-zoomed .lightbox__stage { display: block; overflow: auto; padding: 0; cursor: grab; scrollbar-width: none; }
.lightbox.is-zoomed .lightbox__stage::-webkit-scrollbar { display: none; }
.lightbox.is-zoomed .lightbox__stage.is-dragging { cursor: grabbing; }
.lightbox.is-zoomed .lightbox__stage img { max-width: none; max-height: none; cursor: inherit; box-shadow: none; }

.lightbox__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px var(--gutter) 22px;
}
.lightbox__caption { font-size: 0.86rem; line-height: 1.5; min-width: 0; }
.lightbox__counter { color: var(--muted); font-size: 0.78rem; letter-spacing: 0.1em; margin-right: 16px; }
.lightbox__actions { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }
.lightbox__hint { color: var(--muted); font-size: 0.75rem; }
.lightbox.is-zoomed .lightbox__hint { visibility: hidden; }

.lb-btn {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  color: var(--ink);
  cursor: pointer;
}
.lb-btn:hover { border-color: var(--ink); }
.lb-btn svg { width: 18px; height: 18px; }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
.lightbox.is-zoomed .lb-prev, .lightbox.is-zoomed .lb-next { display: none; }
@media (max-width: 600px) {
  .lightbox__stage { padding: 60px 12px 8px; }
  .lb-prev, .lb-next { top: auto; bottom: 86px; transform: none; }
  .lightbox__hint { display: none; }
}

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out); transition-delay: var(--d, 0ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   Motion — all of it is switched off by prefers-reduced-motion (see Base)
   ========================================================================== */

/* Page transitions between pages (browsers with cross-document View Transitions) */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }
.site-header { view-transition-name: site-header; }
::view-transition-old(root) { animation: vt-out 0.35s var(--ease) both; }
::view-transition-new(root) { animation: vt-in 0.7s var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(16px); } }

/* Theme switch: night mode spreads in a circle from the toggle (set up in main.js) */
:root.theme-switching .site-header { view-transition-name: none; }
:root.theme-switching::view-transition-old(root),
:root.theme-switching::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
:root.theme-switching::view-transition-new(root) { z-index: 2; }

/* Masked titles: text rises from behind an invisible edge */
.mask { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.mask > span { display: block; }
@keyframes mask-up { from { transform: translateY(108%); } }
.js .page-head h1 .mask > span { animation: mask-up 1.2s var(--ease-out) 0.1s backwards; }
.js .page-head .eyebrow, .js .page-head .breadcrumb { animation: rise 1s var(--ease-out) backwards; }
.js .page-head__intro { animation: rise 1.1s var(--ease-out) 0.35s backwards; }
.js .reveal-mask .mask > span { transform: translateY(108%); transition: transform 1.2s var(--ease-out); transition-delay: var(--d, 0ms); }
.js .reveal-mask.is-visible .mask > span { transform: none; }

@keyframes rise { from { opacity: 0; transform: translateY(20px); } }

/* Home hero: letters of the name rise one by one, the painting is unveiled like a curtain */
.hero h1 .word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.hero h1 .char { display: inline-block; }
@keyframes char-up { from { transform: translateY(112%); } }
.js .hero h1 .char { animation: char-up 1.1s var(--ease-out) backwards; animation-delay: calc(300ms + var(--i) * 45ms); }
.js .hero__text > .eyebrow { animation: rise 1s var(--ease-out) 0.15s backwards; }
.js .hero__lede { animation: rise 1.1s var(--ease-out) 0.85s backwards; }
.js .hero__text > .btn { animation: rise 1.1s var(--ease-out) 1s backwards; }
.js .hero__figure figcaption { animation: rise 1s var(--ease-out) 1.5s backwards; }
@keyframes curtain { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes settle { from { transform: scale(1.12); } }
.js .hero__media { animation: curtain 1.6s var(--ease-out) 0.2s backwards; }
.js .hero__media img { animation: settle 2.4s var(--ease-out) 0.2s backwards; }
[data-parallax] { will-change: transform; }

/* Artworks and series covers are unveiled from the bottom as they scroll in */
.js .work.reveal .work__media,
.js .series-card.reveal .series-card__media {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.3s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.js .work.reveal.is-visible .work__media,
.js .series-card.reveal.is-visible .series-card__media { clip-path: inset(0 0 0 0); }

/* Studio photo: gentle parallax inside its frame */
.parallax-frame { overflow: hidden; aspect-ratio: 4 / 5; }
.parallax-frame [data-parallax] { height: 100%; }
.split__media .parallax-frame img { height: 100%; aspect-ratio: auto; transform: scale(1.14); }

/* Statement quote appears word by word */
.js .reveal.quote-words { opacity: 1; transform: none; }
.quote-words .w { display: inline-block; }
.js .quote-words .w {
  opacity: 0;
  transform: translateY(0.35em);
  filter: blur(6px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out), filter 0.9s var(--ease-out);
  transition-delay: calc(var(--i) * 70ms);
}
.js .quote-words.is-visible .w { opacity: 1; transform: none; filter: none; }
.js .quote-words::before { transform: scaleX(0); transition: transform 1.2s var(--ease-out); }
.js .quote-words.is-visible::before { transform: scaleX(1); }
.js .quote-words cite { opacity: 0; transition: opacity 1s var(--ease) 0.9s; }
.js .quote-words.is-visible cite { opacity: 1; }

/* Events list rows slide in */
.js .events li.reveal { transform: translateX(-24px); }
.js .events li.reveal.is-visible { transform: none; }

/* Lightbox: each painting fades in when you move to it */
@keyframes lb-img { from { opacity: 0; transform: scale(0.985); } }
.lightbox__stage img.is-entering { animation: lb-img 0.7s var(--ease-out) both; }
.lightbox__caption.is-entering { animation: rise 0.7s var(--ease-out) both; }

/* Cursor label over artworks (mouse only; injected by main.js) */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  pointer-events: none;
}
.cursor__dot {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  margin: -43px 0 0 -43px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transform: scale(0);
  opacity: 0;
  transition: transform 0.45s var(--ease-out), opacity 0.3s;
}
.cursor.is-active .cursor__dot { transform: scale(1); opacity: 0.92; }
.has-cursor [data-lightbox], .has-cursor .series-card { cursor: none; }

/* ==========================================================================
   Home intro: Osley's butterfly lands on the visor of the hero painting and
   the painting is revealed from that point (main.js). Every load of the home page.
   ========================================================================== */
.js.hero-intro .hero__media { animation: none; }
.js.hero-intro:not(.hero-intro-petals) .hero__media img {
  filter: blur(14px) saturate(0.55) brightness(1.06);
  opacity: 0.38;
  /* Safety net: if the intro never runs, the painting unveils on its own */
  animation: hero-unveil 0.8s var(--ease) 6s forwards;
}
.js.hero-intro .hero__media img.hero-sharp { filter: none; opacity: 1; animation: none; }
@keyframes hero-unveil { to { filter: none; opacity: 1; } }
.js.hero-intro:not(.hero-intro-petals) .hero__figure figcaption { animation: rise 1s var(--ease-out) 3s backwards; }
.hero__media [data-parallax] { position: relative; }
.hero-sharp {
  position: absolute;
  left: 0;
  top: 0;
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  pointer-events: none;
}

.hero-bf { position: fixed; inset: 0; z-index: 45; pointer-events: none; overflow: hidden; }
.hero-bf canvas { position: absolute; left: 0; top: 0; }
.hero-bf__fly { position: absolute; left: 0; top: 0; width: 200px; height: 163px; transform-origin: 100px 81.5px; will-change: transform, opacity; }
.hero-bf__fly .bf-shadow { position: absolute; inset: 0; filter: drop-shadow(0 14px 16px rgba(0, 0, 0, 0.22)); }
.hero-bf__wing { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; }

/* Petals intro: the painting itself only fades in briefly on load (no curtain, no zoom) */
.js.hero-intro-petals .hero__media { animation: hero-fade 0.7s var(--ease) both; }
.js.hero-intro-petals .hero__media img { animation: none; }
@keyframes hero-fade { from { opacity: 0; } }
