/* ============================================================
   GEMMA MATRONE — Visual Artist Portfolio
   Editorial · WebGL · Kinetic
   ============================================================ */

:root {
  /* Dark theme matching Gemma's portfolio identity: near-black + lime accent */
  --cream: #0a0a0b;        /* page background (kept name for low churn) */
  --ink: #eceae3;          /* primary text */
  --ink-soft: #b8b6ad;     /* dimmed text */
  --bg-deep: #060608;      /* loader / menu */
  --surface: #121214;      /* lifted panels (footer) */
  --line: rgba(236,234,227,0.13);
  --paper: #f4f2ea;        /* light token for cursor / mix-blend nav */
  --accent: #c5d92e;       /* lime-chartreuse */
  --accent-2: #8b5cf6;     /* violet (Feelers) */
  --muted: #86857d;

  --fz-1: clamp(2.6rem, 9vw, 9rem);
  --easing: cubic-bezier(0.16, 1, 0.3, 1);
  --slow: 1.2s var(--easing);

  --pad: clamp(1.25rem, 4vw, 4rem);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.5;
  overflow-x: hidden;
  cursor: none;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: none; }
::selection { background: var(--accent); color: var(--cream); }

.italic { font-style: italic; }

/* ============================================================
   GRAIN
   ============================================================ */
.grain {
  position: fixed; inset: -50%;
  width: 200%; height: 200%;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.045;
  will-change: transform;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.7s steps(4) infinite;
}
@keyframes grain {
  0%,100% { transform: translate(0,0); }
  25% { transform: translate(-8%, 4%); }
  50% { transform: translate(6%, -6%); }
  75% { transform: translate(-4%, 8%); }
}

/* ============================================================
   CUSTOM CURSOR
   ============================================================ */
.cursor { position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none; mix-blend-mode: difference; }
.cursor__dot {
  position: fixed; top: 0; left: 0;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--paper);
  transform: translate(-50%, -50%);
}
.cursor__ring {
  position: fixed; top: 0; left: 0;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--paper);
  transform: translate(-50%, -50%);
  transition: width .4s var(--easing), height .4s var(--easing), background .4s var(--easing), opacity .3s;
}
.cursor__label {
  position: fixed; top: 0; left: 0;
  transform: translate(-50%, -50%);
  font-size: 11px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--ink); opacity: 0; font-weight: 500;
  transition: opacity .3s;
}
body.cursor-hover .cursor__ring { width: 60px; height: 60px; }
body.cursor-view .cursor__ring { width: 96px; height: 96px; background: var(--paper); }
body.cursor-view .cursor__dot { opacity: 0; }
body.cursor-view .cursor__label { opacity: 1; }
body.cursor-hidden .cursor { opacity: 0; }

@media (hover: none) {
  .cursor { display: none; }
  body, button { cursor: auto; }
}

/* ============================================================
   PRELOADER
   ============================================================ */
.loader {
  position: fixed; inset: 0; z-index: 9990;
  background: var(--bg-deep);
  display: flex; align-items: center; justify-content: center;
}
.loader__inner { overflow: hidden; }
.loader__row { position: relative; height: 1.1em; }
.loader__word {
  display: block;
  position: absolute; left: 50%; top: 0;
  transform: translate(-50%, 110%);
  font-family: 'Fraunces', serif;
  font-size: clamp(1.6rem, 5vw, 3rem);
  font-weight: 400;
  color: var(--ink);
  white-space: nowrap;
  opacity: 0;
}
.loader__word:last-child { font-style: italic; color: var(--accent); }
.loader__count {
  position: absolute; bottom: clamp(1.25rem,4vw,3rem); right: clamp(1.25rem,4vw,3rem);
  font-family: 'Fraunces', serif; color: var(--ink);
  display: flex; align-items: baseline;
}
.loader__num { font-size: clamp(3rem, 12vw, 9rem); line-height: .8; font-weight: 300; }
.loader__pct { font-size: 1.2rem; margin-left: .2em; opacity: .6; }
.loader__bar {
  position: absolute; bottom: 0; left: 0; width: 100%; height: 2px;
  background: rgba(236,230,218,.12);
}
.loader__bar-fill { display: block; height: 100%; width: 0%; background: var(--accent); }

/* ============================================================
   WEBGL CANVAS
   ============================================================ */
.gl-canvas {
  position: fixed; inset: 0; width: 100vw; height: 100vh;
  z-index: 0; pointer-events: none; opacity: 0;
  transition: opacity 1.4s ease;
}
.gl-canvas.is-ready { opacity: 1; }

/* ============================================================
   SCROLL PROGRESS
   ============================================================ */
.scroll-progress {
  position: fixed; top: 0; left: 0; width: 100%; height: 3px; z-index: 9997;
  pointer-events: none; mix-blend-mode: difference;
}
.scroll-progress span {
  display: block; height: 100%; width: 0%;
  background: var(--paper); transform-origin: left;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: clamp(1rem,2.5vw,1.8rem) var(--pad);
  mix-blend-mode: difference; color: var(--paper);
}
.nav__logo { display: inline-flex; align-items: baseline; overflow: hidden; white-space: nowrap; }
.nav__logo span { font-family: 'Fraunces', serif; font-size: 1.4rem; font-weight: 500; }
/* "Gemma Matrone" stays collapsed (zero width, invisible) and only unfolds
   to the right of "GM" on hover — never overlaps the GM mark. */
.nav__logo em {
  font-style: normal; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  opacity: 0; max-width: 0; margin-left: 0; transform: translateX(-6px);
  transition: opacity .45s var(--easing), max-width .6s var(--easing),
              margin-left .6s var(--easing), transform .45s var(--easing);
}
.nav__logo:hover em, .nav__logo:focus-visible em {
  opacity: .75; max-width: 14em; margin-left: .55em; transform: translateX(0);
}

.nav__links { display: flex; gap: clamp(1rem, 2.4vw, 2.6rem); }
.nav__link { position: relative; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; overflow: hidden; }
.nav__link span { display: block; transition: transform .5s var(--easing); }
.nav__link::after {
  content: attr(data-x); position: absolute; left: 0; top: 100%;
}
.nav__link::before {
  content: ''; position: absolute; left: 0; bottom: -2px; width: 100%; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--easing);
}
.nav__link:hover::before { transform: scaleX(1); transform-origin: left; }

.nav__right { display: flex; align-items: center; gap: clamp(1rem, 2vw, 1.8rem); }

/* Language switcher */
.lang { display: flex; align-items: center; gap: .45rem; font-size: .78rem; letter-spacing: .06em; }
.lang button {
  position: relative; padding: .15em .1em; text-transform: uppercase; letter-spacing: .08em;
  opacity: .5; transition: opacity .35s var(--easing);
}
.lang button::after {
  content: ''; position: absolute; left: 0; bottom: -3px; width: 100%; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: center; transition: transform .4s var(--easing);
}
.lang button:hover { opacity: .85; }
.lang button.is-active { opacity: 1; }
.lang button.is-active::after { transform: scaleX(1); }
.lang__sep { opacity: .35; }

.nav__menu { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav__menu span { display: block; width: 26px; height: 1.5px; background: currentColor; transition: transform .4s, opacity .3s; }

@media (max-width: 760px) {
  .nav__links { display: none; }
  .nav__menu { display: flex; }
}

/* Language-switch transition curtain */
.lang-curtain {
  position: fixed; inset: 0; z-index: 9985; background: var(--ink);
  transform: scaleY(0); transform-origin: bottom; pointer-events: none;
  transition: transform .55s var(--easing);
}
.lang-curtain.is-on { transform: scaleY(1); transform-origin: bottom; pointer-events: auto; }

/* ============================================================
   FULLSCREEN MENU — award-level overlay navigator
   ============================================================ */
.menu {
  position: fixed; inset: 0; z-index: 99; visibility: hidden;
  display: flex; align-items: stretch;
}
.menu__bg {
  position: absolute; inset: 0; background: var(--bg-deep);
  transform: scaleY(0); transform-origin: top; transition: transform .9s var(--easing);
}
.menu.is-open { visibility: visible; }
.menu.is-open .menu__bg { transform: scaleY(1); }

/* The persistent nav hamburger (#menuBtn) morphs into the X and toggles the menu,
   so this dedicated overlay close button is redundant — hiding it avoids two
   overlapping X's in the top-right corner. Kept in the DOM for older bookmarks
   / the Escape handler; JS still binds to it harmlessly. */
.menu__close { display: none; }

.menu__inner {
  position: relative; z-index: 3; width: 100%;
  padding: clamp(5rem,12vh,8rem) var(--pad) clamp(2rem,5vw,3.5rem);
  display: grid; grid-template-columns: 1.7fr 1fr; gap: clamp(2rem,5vw,5rem);
  align-content: center; color: var(--ink);
}
.menu__label {
  display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .18em;
  color: var(--muted); margin-bottom: clamp(1.2rem,3vw,2rem);
  opacity: 0; transform: translateY(12px); transition: opacity .6s ease .35s, transform .6s var(--easing) .35s;
}
.menu.is-open .menu__label { opacity: 1; transform: none; }

/* ---- main project list ---- */
.menu__list { list-style: none; }
.menu__item { position: relative; border-top: 1px solid var(--line); }
.menu__item:last-child { border-bottom: 1px solid var(--line); }
.menu__item a {
  display: flex; align-items: center; gap: 1.2rem; position: relative;
  padding: clamp(.5rem,1.6vw,1.1rem) 0; color: var(--ink);
}
.menu__idx { font-size: .8rem; font-family: 'Inter'; color: var(--muted); width: 2.2em; flex: 0 0 auto; transition: color .4s; }
.menu__txt { display: block; overflow: hidden; flex: 1; }
.menu__txt-inner {
  display: block; font-family: 'Fraunces', serif; font-weight: 400;
  font-size: clamp(2rem, 6vw, 5rem); line-height: 1.04; letter-spacing: -.01em;
  transform: translateY(110%); transition: transform .9s var(--easing), color .4s, font-style .3s;
}
.menu.is-open .menu__item:nth-child(1) .menu__txt-inner { transition-delay: .28s; transform: translateY(0); }
.menu.is-open .menu__item:nth-child(2) .menu__txt-inner { transition-delay: .35s; transform: translateY(0); }
.menu.is-open .menu__item:nth-child(3) .menu__txt-inner { transition-delay: .42s; transform: translateY(0); }
.menu.is-open .menu__item:nth-child(4) .menu__txt-inner { transition-delay: .49s; transform: translateY(0); }
.menu.is-open .menu__item:nth-child(5) .menu__txt-inner { transition-delay: .56s; transform: translateY(0); }
.menu__arrow { font-size: 1.3rem; color: var(--muted); opacity: 0; transform: translate(-8px,0); transition: opacity .4s, transform .4s var(--easing), color .4s; }
.menu__item a:hover .menu__idx { color: var(--accent-h, var(--accent)); }
.menu__item a:hover .menu__txt-inner { font-style: italic; color: var(--accent-h, var(--accent)); transform: translateX(.25em); }
.menu__item a:hover .menu__arrow { opacity: 1; transform: translate(0,0); color: var(--accent-h, var(--accent)); }

/* ---- secondary links + footer ---- */
.menu__side { display: flex; flex-direction: column; justify-content: center; }
.menu__sub { list-style: none; display: grid; gap: .2rem; margin-bottom: clamp(2rem,5vw,3.5rem); }
.menu__sub li { overflow: hidden; }
.menu__sub a {
  display: inline-block; font-family: 'Fraunces', serif; font-size: clamp(1.3rem,2.4vw,1.9rem);
  padding: .25rem 0; color: var(--ink); transform: translateY(110%);
  transition: transform .8s var(--easing), color .35s, font-style .3s;
}
.menu.is-open .menu__sub li:nth-child(1) a { transition-delay: .5s; transform: translateY(0); }
.menu.is-open .menu__sub li:nth-child(2) a { transition-delay: .56s; transform: translateY(0); }
.menu.is-open .menu__sub li:nth-child(3) a { transition-delay: .62s; transform: translateY(0); }
.menu.is-open .menu__sub li:nth-child(4) a { transition-delay: .68s; transform: translateY(0); }
.menu__sub a:hover { font-style: italic; color: var(--accent); }
.menu__foot {
  display: flex; flex-wrap: wrap; gap: 2rem; margin-top: auto; padding-top: clamp(1.5rem,4vw,2.5rem);
  border-top: 1px solid var(--line);
  opacity: 0; transition: opacity .6s ease .8s;
}
.menu.is-open .menu__foot { opacity: 1; }
.menu__foot-label { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: .4rem; }
.menu__foot p { font-size: .92rem; }
.menu__foot a:hover { color: var(--accent); }

/* ---- floating hover preview ---- */
.menu__preview {
  position: fixed; top: 0; left: 0; z-index: 2; width: clamp(180px, 22vw, 320px); aspect-ratio: 4/5;
  pointer-events: none; overflow: hidden; opacity: 0; will-change: transform;
  transform: translate(-50%,-50%) scale(.9); transition: opacity .35s var(--easing), transform .35s var(--easing);
  border-radius: 4px;
}
.menu__preview.is-visible { opacity: 1; transform: translate(-50%,-50%) scale(1); }
.menu__preview img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: none) { .menu__preview { display: none; } }

@media (max-width: 820px) {
  .menu__inner { grid-template-columns: 1fr; gap: 2rem; align-content: start; padding-top: clamp(4.5rem,12vh,6rem); }
  .menu__side { justify-content: flex-start; }
}

body.menu-open .nav__menu span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
body.menu-open .nav__menu span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; z-index: 2;
  min-height: 100vh; display: flex; flex-direction: column; justify-content: center;
  padding: var(--pad);
}
.hero__meta {
  position: absolute; top: 38%; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em;
  display: flex; flex-direction: column; gap: .3rem; color: var(--ink-soft);
}
.hero__meta--left { left: var(--pad); }
.hero__meta--right { right: var(--pad); text-align: right; }
.line-up { display: block; overflow: hidden; }
.line-up > span { display: block; transform: translateY(110%); }

.hero__title {
  font-family: 'Fraunces', serif; font-weight: 400;
  font-size: var(--fz-1); line-height: .92; letter-spacing: -0.02em;
  text-align: center; margin: auto 0;
}
.hero__line { display: block; overflow: hidden; }
.hero__line--indent { /* offset for editorial feel */ }
.hero__word { display: inline-block; transform: translateY(110%); }
.hero__word--italic { font-style: italic; color: var(--accent); }
.hero__word--out { }

.hero__statement {
  position: absolute; bottom: clamp(5rem, 12vh, 9rem); left: var(--pad);
  max-width: 30ch; font-size: clamp(.95rem, 1.4vw, 1.15rem); line-height: 1.55;
}
.hero__statement em { font-family: 'Fraunces', serif; font-style: italic; }

.hero__scroll {
  position: absolute; bottom: clamp(1.5rem,4vw,3rem); right: var(--pad);
  display: flex; align-items: center; gap: .8rem;
  font-size: .72rem; text-transform: uppercase; letter-spacing: .12em;
}
.hero__scroll-line { display: block; width: 60px; height: 1px; background: var(--ink); position: relative; overflow: hidden; }
.hero__scroll-line::after { content:''; position:absolute; inset:0; background: var(--accent); transform: translateX(-100%); animation: scrollLine 2.4s var(--easing) infinite; }
@keyframes scrollLine { 0%{transform:translateX(-100%);} 50%{transform:translateX(0);} 100%{transform:translateX(100%);} }

@media (max-width: 760px) {
  .hero__meta { display: none; }
  .hero__statement { position: static; margin-top: 2rem; max-width: none; }
  .hero__title { text-align: left; margin: 0; }
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  position: relative; z-index: 2; overflow: hidden;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: clamp(1rem,2vw,1.6rem) 0; background: var(--cream);
}
.marquee__track {
  display: flex; gap: 2.5rem; white-space: nowrap; width: max-content;
  font-family: 'Fraunces', serif; font-size: clamp(2rem,5vw,4rem); font-style: italic; font-weight: 300;
}
.marquee__track .dot { font-style: normal; color: var(--accent); font-size: .6em; align-self: center; }

/* ============================================================
   SHARED SECTION HELPERS
   ============================================================ */
.section-title {
  font-family: 'Fraunces', serif; font-weight: 400;
  font-size: clamp(2rem, 6vw, 5rem); line-height: 1; letter-spacing: -.02em;
}
[data-reveal] { display: inline-block; }

.ethos, .work, .about, .exhibitions, .contact, .pull {
  position: relative; z-index: 2; background: var(--cream);
}

/* ============================================================
   ETHOS
   ============================================================ */
.ethos {
  padding: clamp(6rem,16vh,12rem) var(--pad);
  display: grid; grid-template-columns: 1fr; gap: 2rem;
}
.ethos__index { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.ethos__text {
  font-family: 'Fraunces', serif; font-weight: 400;
  font-size: clamp(1.6rem, 4.2vw, 3.4rem); line-height: 1.18; letter-spacing: -.01em;
  max-width: 22ch;
}
.ethos__text .italic { color: var(--accent); }
.ethos__sign { font-size: .9rem; text-transform: uppercase; letter-spacing: .1em; }

/* word-by-word reveal — hidden state applied by GSAP (immediateRender:false),
   so text stays visible if a ScrollTrigger never fires (fail-safe). */
[data-words] .word, [data-words] .word > span { display: inline-block; }
.word { overflow: hidden; }

/* ============================================================
   WORK
   ============================================================ */
.work { padding: clamp(4rem,10vh,8rem) var(--pad) clamp(6rem,14vh,10rem); }
.work__head {
  display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 1.5rem;
  border-bottom: 1px solid var(--line); padding-bottom: 2rem; margin-bottom: clamp(2rem,6vw,4.5rem);
}
.work__count { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); max-width: 24ch; }

.work__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(2rem,5vw,5rem) clamp(2rem,4vw,4rem); }
.project:nth-child(even) { margin-top: clamp(2rem, 8vw, 7rem); }
.project__media { display: block; position: relative; overflow: hidden; }
.project__img-wrap { overflow: hidden; aspect-ratio: 4/5; }
.project__media img { transform: scale(1.04); transition: transform 1.1s var(--easing), filter 1.1s var(--easing); filter: saturate(.9) contrast(1.02); }
.project:hover .project__media img { transform: scale(1.08); filter: saturate(1.05) contrast(1.05); }
.project__info { display: flex; align-items: baseline; gap: 1rem; margin-top: 1.2rem; }
.project__num { font-size: .8rem; color: var(--pc, var(--accent)); font-family: 'Fraunces', serif; }
.project__title { font-family: 'Fraunces', serif; font-weight: 400; font-size: clamp(1.3rem,2.6vw,2.1rem); line-height: 1; flex: 1; transition: font-style .3s, color .4s; }
.project__title a { color: inherit; }
.project:hover .project__title { font-style: italic; color: var(--pc, var(--accent)); }
.project__img-wrap { box-shadow: 0 0 0 1px var(--line); }
.project:hover .project__media img { filter: saturate(1.08) contrast(1.06); }
.project__tags { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); text-align: right; }
.project__tags span { white-space: nowrap; }

.work__all { display: block; text-align: center; margin-top: clamp(4rem,9vw,7rem); }

/* Magnetic button */
.btn-magnetic {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 1.1em 2.4em; border: 1px solid var(--ink); border-radius: 100px;
  position: relative; overflow: hidden; will-change: transform;
}
.btn-magnetic::before {
  content: ''; position: absolute; inset: 0; background: var(--accent);
  border-radius: 50%; transform: scale(0); transform-origin: center;
  transition: transform .6s var(--easing);
}
.btn-magnetic { border-color: var(--ink); }
.btn-magnetic__txt { position: relative; z-index: 2; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; transition: color .4s; }
.work__all:hover .btn-magnetic { border-color: var(--accent); }
.work__all:hover .btn-magnetic::before { transform: scale(1.6); }
.work__all:hover .btn-magnetic__txt { color: var(--cream); }

@media (max-width: 700px) {
  .work__list { grid-template-columns: 1fr; }
  .project:nth-child(even) { margin-top: 0; }
}

/* ============================================================
   HORIZONTAL GALLERY
   ============================================================ */
.gallery { position: relative; background: var(--cream); color: var(--ink); }
.gallery__sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; align-items: center; }
.gallery__track { display: flex; gap: clamp(1.5rem,3vw,3rem); align-items: center; padding: 0 var(--pad); will-change: transform; }
.gallery__intro { flex: 0 0 auto; width: clamp(280px, 36vw, 520px); padding-right: 2rem; }
.gallery__label { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); margin-bottom: 1.5rem; }
.gallery__heading { font-family: 'Fraunces', serif; font-weight: 400; font-size: clamp(1.8rem,3.4vw,3.2rem); line-height: 1.12; }
.gal-card { flex: 0 0 auto; width: clamp(240px, 28vw, 420px); }
.gal-card img { aspect-ratio: 3/4; border-radius: 2px; }
.gal-card--tall { width: clamp(220px, 24vw, 360px); }
.gal-card--tall img { aspect-ratio: 2/3; }
.gal-card--wide { width: clamp(320px, 40vw, 620px); }
.gal-card--wide img { aspect-ratio: 16/10; }
.gal-card figcaption { margin-top: 1rem; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: rgba(236,230,218,.6); display: flex; gap: .8rem; }
.gal-card figcaption span { color: var(--accent); }

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  padding: clamp(6rem,14vh,11rem) var(--pad);
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem,6vw,6rem); align-items: start;
}
.about__portrait { position: sticky; top: 12vh; }
.about__img-wrap { overflow: hidden; aspect-ratio: 3/4; }
.about__img-wrap img { transform: scale(1.15); will-change: transform; }
.about__caption { display: block; margin-top: 1rem; font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.about__index { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 2rem; }
.about__lead { font-family: 'Fraunces', serif; font-weight: 400; font-size: clamp(1.5rem,3vw,2.6rem); line-height: 1.2; letter-spacing: -.01em; margin-bottom: clamp(2rem,5vw,3.5rem); }
.about__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-bottom: clamp(2.5rem,6vw,4rem); }
.about__cols p { font-size: .98rem; line-height: 1.65; color: var(--ink-soft); }
.about__facts { list-style: none; display: flex; flex-wrap: wrap; gap: clamp(1.5rem,4vw,3.5rem); border-top: 1px solid var(--line); padding-top: 2rem; }
.about__facts li { display: flex; flex-direction: column; }
.about__facts .num { font-family: 'Fraunces', serif; font-size: clamp(2.4rem,5vw,3.6rem); line-height: 1; }
.about__facts .lbl { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-top: .4rem; }

@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
  .about__portrait { position: static; max-width: 380px; }
  .about__cols { grid-template-columns: 1fr; }
}

/* ============================================================
   EXHIBITIONS
   ============================================================ */
.exhibitions { padding: clamp(5rem,12vh,9rem) var(--pad); }
.exhibitions__head { margin-bottom: clamp(2rem,5vw,3.5rem); }
.exh-list { list-style: none; border-top: 1px solid var(--line); }
.exh-row { position: relative; border-bottom: 1px solid var(--line); }
.exh-row__link {
  position: relative; display: grid;
  grid-template-columns: 0.5fr 2fr 2fr 0.7fr;
  gap: 1rem; align-items: center; color: inherit;
  padding: clamp(1.2rem,3vw,2.2rem) 0;
  transition: padding-left .5s var(--easing), color .5s;
}
.exh-row__link::before { content: ''; position: absolute; inset: 0; background: var(--accent); transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--easing); z-index: -1; }
.exh-row__link:hover { padding-left: 1.5rem; color: var(--cream); }
.exh-row__link:hover::before { transform: scaleY(1); transform-origin: top; }
.exh-row__year { font-size: .85rem; color: var(--accent); font-family: 'Fraunces', serif; }
.exh-row__link:hover .exh-row__year { color: var(--cream); }
.exh-row__title { font-family: 'Fraunces', serif; font-size: clamp(1.2rem,2.6vw,2rem); font-weight: 400; }
.exh-row__link:hover .exh-row__title { font-style: italic; }
.exh-row__place { font-size: .9rem; color: var(--muted); transition: color .5s; }
.exh-row__link:hover .exh-row__place { color: rgba(10,10,11,.72); }
.exh-row__type { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; text-align: right; }
.exhibitions__note { font-size: .85rem; color: var(--muted); margin-top: 1rem; max-width: 48ch; }
.exh-row__hover {
  position: absolute; right: 8%; top: 50%; width: 160px; height: 200px;
  transform: translateY(-50%) scale(.8) rotate(-4deg); opacity: 0; pointer-events: none;
  z-index: 5; overflow: hidden; transition: opacity .4s, transform .5s var(--easing);
}
.exh-row__link:hover .exh-row__hover { opacity: 1; transform: translateY(-50%) scale(1) rotate(-4deg); }

@media (max-width: 760px) {
  .exh-row__link { grid-template-columns: 0.5fr 2fr; grid-row-gap: .3rem; }
  .exh-row__place, .exh-row__type { grid-column: 2; text-align: left; }
  .exh-row__hover { display: none; }
}

/* ============================================================
   PROCESS TEASER (links to the full gallery subpage)
   ============================================================ */
.process-teaser { padding: clamp(5rem,12vh,9rem) var(--pad); position: relative; z-index: 2; background: var(--cream); }
.process-teaser__head { max-width: 60ch; margin-bottom: clamp(2.5rem,6vw,4rem); }
.process-teaser__label { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); margin-bottom: 1.5rem; }
.process-teaser__heading { font-family: 'Fraunces', serif; font-weight: 400; font-size: clamp(1.8rem,3.4vw,3.2rem); line-height: 1.12; }
.process-teaser__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(.6rem,1.5vw,1.2rem);
  align-items: start;
}
.process-teaser__card { overflow: hidden; aspect-ratio: 3/4; }
.process-teaser__card--tall { grid-row: span 1; aspect-ratio: 3/5; }
.process-teaser__card img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--easing), filter .6s; filter: grayscale(.2); }
.process-teaser__grid:hover .process-teaser__card img { filter: grayscale(0); }
.process-teaser__card img:hover { transform: scale(1.06); }
@media (max-width: 760px) { .process-teaser__grid { grid-template-columns: 1fr 1fr; } }

/* ============================================================
   EDUCATION / STUDIED
   ============================================================ */
.about__edu { border-top: 1px solid var(--line); margin-top: clamp(2rem,5vw,3rem); padding-top: 2rem; }
.about__edu-label { font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 1.4rem; }
.about__edu-list { list-style: none; display: grid; gap: 1.2rem; }
.edu-row { display: grid; grid-template-columns: 1.4fr 1.6fr .8fr; gap: 1rem; align-items: baseline; border-bottom: 1px solid var(--line); padding-bottom: 1.2rem; }
.edu-row:last-child { border-bottom: 0; }
.edu-row__school { font-family: 'Fraunces', serif; font-size: clamp(1.05rem,1.8vw,1.4rem); }
.edu-row__course { font-size: .92rem; color: var(--ink-soft); }
.edu-row__place { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); text-align: right; }
@media (max-width: 760px) { .edu-row { grid-template-columns: 1fr; gap: .2rem; } .edu-row__place { text-align: left; } }

/* ============================================================
   EXPLORE (minimal homepage section → opens the menu)
   ============================================================ */
.explore { position: relative; z-index: 2; background: var(--cream); padding: clamp(5rem,16vh,11rem) var(--pad); }
.explore__label { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: clamp(1.5rem,4vw,2.5rem); }
.explore__cta { display: block; }
.explore__title { font-family: 'Fraunces', serif; font-weight: 400; letter-spacing: -.02em; font-size: clamp(2.6rem, 9vw, 8rem); line-height: .98; }
.explore__line { display: block; overflow: hidden; }
.explore__cta:hover .explore__title { font-style: italic; color: var(--accent); }
.explore__hint { display: inline-block; margin-top: clamp(1rem,2.5vw,1.8rem); font-size: .9rem; color: var(--muted); transition: color .3s; }
.explore__cta:hover .explore__hint { color: var(--ink); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { padding: clamp(5rem,12vh,9rem) var(--pad) clamp(3rem,6vw,5rem); }
.contact__label { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: clamp(1.5rem,4vw,2.2rem); }
.contact__title {
  font-family: 'Fraunces', serif; font-weight: 400;
  font-size: clamp(2.6rem, 9vw, 7rem); line-height: .98; letter-spacing: -.02em;
  margin-bottom: clamp(2.5rem,6vw,4rem);
}
.contact__title .italic { font-style: italic; color: var(--accent); }
.contact__title span { display: inline-block; }
.contact__layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2.5rem,6vw,5rem); align-items: start; }
@media (max-width: 860px) { .contact__layout { grid-template-columns: 1fr; } }

.contact__form { display: grid; gap: 1.4rem; }
.contact__hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.field { display: grid; gap: .5rem; }
.field__label { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.field__input {
  width: 100%; background: transparent; color: var(--ink);
  border: 1px solid var(--line); border-radius: 6px;
  padding: .9em 1em; font: inherit; font-size: .95rem;
  transition: border-color .3s, background .3s;
}
.field__input::placeholder { color: var(--muted); }
.field__input:focus { outline: none; border-color: var(--accent); background: rgba(197,217,46,.04); }
.field__input--area { resize: vertical; min-height: 120px; }
.contact__submit { justify-self: start; margin-top: .4rem; background: none; border: none; cursor: pointer; }
.contact__submit .btn-magnetic { border-color: var(--ink); }
.contact__submit:hover .btn-magnetic { border-color: var(--accent); }
.contact__submit:hover .btn-magnetic::before { transform: scale(1.6); }
.contact__submit:hover .btn-magnetic__txt { color: var(--cream); }
.contact__submit[disabled] { opacity: .55; pointer-events: none; }
.contact__status { font-size: .85rem; min-height: 1.2em; color: var(--muted); }
.contact__status.is-success { color: var(--accent); }
.contact__status.is-error { color: #e23b2e; }

.contact__grid {
  display: grid; grid-template-columns: 1fr; gap: 2rem;
  border-top: 1px solid var(--line); padding-top: 2.5rem;
}
.contact__k { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: .7rem; }
.contact__grid a:hover { color: var(--accent); }
.contact__grid p, .contact__grid a { font-size: .95rem; line-height: 1.5; }
@media (max-width: 860px) { .contact__grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 560px) { .contact__grid { grid-template-columns: 1fr 1fr; } }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--surface); color: var(--ink); padding: clamp(3rem,6vw,5rem) var(--pad) 2rem; position: relative; z-index: 2; }
.footer__top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; padding-bottom: clamp(3rem,8vw,6rem); border-bottom: 1px solid rgba(236,230,218,.15); }
.footer__name { font-family: 'Fraunces', serif; font-size: clamp(2.5rem,9vw,7rem); font-weight: 400; line-height: 1; }
.footer__back { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; border: 1px solid rgba(236,230,218,.3); border-radius: 100px; padding: .9em 1.8em; transition: background .4s, color .4s; }
.footer__back:hover { background: var(--accent); color: var(--cream); border-color: var(--accent); }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: rgba(236,230,218,.55); }

/* ============================================================
   REVEAL / FADE LINES
   ============================================================ */
[data-fade-lines] .fl-line { overflow: hidden; }
[data-fade-lines] .fl-inner { display: block; }

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: .01ms !important; }
  .hero__word, .line-up > span, .word > span, .contact__big-line > span, [data-fade-lines] .fl-inner { transform: none !important; }
}
