/* Chrystel Floriot — site stylesheet */

:root {
  --bg: #f7f5f1;
  --bg-alt: #efece6;
  --surface: #fcfbf9;
  --ink: #1b1a18;
  --ink-2: #4a4744;
  --muted: #7c776f;
  --line: #e3ded6;
  --line-2: #cbc5bb;
  --accent: #a2793f;
  --accent-ink: #7d5b2a;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Jost', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --wrap: 1320px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --header-h: 78px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.nav-open, body.lb-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; margin: 0; }
h1 { font-size: clamp(2.6rem, 6vw, 4.75rem); }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.hero-inner > *, .split > *, .cv-grid > *, .footer-inner > *, .artist-layout > *, .contact-layout > * { min-width: 0; }
.narrow { max-width: 760px; }
.prose p { max-width: 64ch; }
.eyebrow { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin: 0 0 1rem; font-weight: 400; }
.lead { font-family: var(--serif); font-size: clamp(1.25rem, 2vw, 1.55rem); line-height: 1.45; color: var(--ink-2); max-width: 56ch; }
.muted { color: var(--muted); }
.u { border-bottom: 1px solid var(--line-2); }
.u:hover { border-color: var(--ink); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

/* Buttons and text links */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  font-size: .74rem; font-weight: 400; letter-spacing: .2em; text-transform: uppercase;
  padding: 1em 1.9em; border: 1px solid var(--ink); color: var(--ink); background: transparent;
  cursor: pointer; transition: background .35s var(--ease), color .35s var(--ease), border-color .35s;
}
.btn:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn-ghost { border-color: var(--line-2); }
.link-more, .back {
  display: inline-block; font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 400;
  border-bottom: 1px solid var(--line-2); padding-bottom: .25em; transition: border-color .3s; white-space: nowrap;
}
.link-more:hover, .back:hover { border-color: var(--ink); }
.back { margin-bottom: 2rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
/* Blur on a pseudo-element: a backdrop-filter on the header itself would trap the fixed mobile menu inside it */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(247, 245, 241, .92);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.site-header.is-scrolled { border-color: var(--line); }
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand img { height: 30px; width: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2.4rem; }
.nav a { font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 400; position: relative; padding: .4em 0; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); }
.nav-lang { display: none; }
.header-tools { display: flex; align-items: center; gap: 1.2rem; }
.lang { font-size: .7rem; letter-spacing: .2em; border: 1px solid var(--line-2); padding: .45em .7em; transition: border-color .3s; }
.lang:hover { border-color: var(--ink); }
.burger { display: none; width: 44px; height: 44px; border: 0; background: none; padding: 0; cursor: pointer; position: relative; margin-right: -10px; }
.burger span { position: absolute; left: 9px; right: 9px; height: 2px; border-radius: 1px; background: var(--ink); transition: transform .35s var(--ease), top .35s var(--ease); }
.burger span:first-child { top: 16px; }
.burger span:last-child { top: 26px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

@media (max-width: 900px) {
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: var(--bg);
    display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 3rem;
    opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
  }
  body.nav-open .nav { opacity: 1; visibility: visible; }
  .nav ul { flex-direction: column; align-items: center; gap: 1.4rem; }
  .nav ul a { font-family: var(--serif); font-size: 2.1rem; text-transform: none; letter-spacing: 0; font-weight: 300; }
  .nav-lang { display: inline-block; }
  .lang { display: none; }
  .burger { display: block; }
}

/* Hero */
.hero { position: relative; min-height: calc(100svh - var(--header-h)); display: flex; align-items: center; padding-block: clamp(2rem, 5vw, 4rem) clamp(4rem, 8vw, 6rem); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; width: 100%; }
.hero-title { font-size: clamp(4rem, 11vw, 9.5rem); font-weight: 300; line-height: .95; letter-spacing: -.02em; margin: .05em 0 .25em; }
.hero-text .lead { margin-bottom: 2.2rem; }
.hero-art { position: relative; aspect-ratio: 1; width: 100%; max-height: calc(100svh - var(--header-h) - 9rem); margin-inline: auto; }
.hero-art img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .08));
  animation: heroFade calc(var(--n, 4) * 5s) infinite; animation-delay: calc(var(--i, 0) * 5s);
}
@keyframes heroFade { 0% { opacity: 0; } 8% { opacity: 1; } 25% { opacity: 1; } 33% { opacity: 0; } 100% { opacity: 0; } }
.hero-art img:only-child { animation: none; opacity: 1; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 1.4rem; transform: translateX(-50%);
  font-size: .6rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; gap: .6rem;
}
.scroll-cue::after { content: ""; width: 1px; height: 38px; background: var(--line-2); animation: cue 2.4s infinite var(--ease); }
@keyframes cue {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
@media (max-width: 900px) {
  .hero { min-height: 0; padding-top: 1rem; }
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero-art { order: -1; max-height: 56svh; }
  .scroll-cue { display: none; }
}

/* Sections */
.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section-tight { padding-block: clamp(2rem, 5vw, 4rem); }
.section-alt { background: var(--bg-alt); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head h2 { margin-top: .1em; }
.h-section { margin-bottom: 1.5rem; }
@media (max-width: 640px) { .section-head { flex-direction: column; align-items: flex-start; gap: 1rem; } }

.page-head { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(1.5rem, 3vw, 2.5rem); }
.page-head h1 { margin: .05em 0 .35em; }
.page-head .lead { margin-bottom: 1.2rem; }
.tech { font-size: .92rem; color: var(--ink-2); max-width: 70ch; }
.tech strong { font-weight: 400; letter-spacing: .16em; text-transform: uppercase; font-size: .68rem; color: var(--muted); margin-right: .8em; }
.count { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

/* Artwork cards */
.art { margin: 0; }
.art-link { display: block; position: relative; overflow: hidden; background: var(--surface); }
.art-link img { width: 100%; height: auto; transition: transform .9s var(--ease); }
.art-link:hover img { transform: scale(1.025); }
.art figcaption { padding: .85rem 0 0; }
.art-title { display: block; font-family: var(--serif); font-size: 1.2rem; line-height: 1.2; }
.art-meta { display: block; color: var(--muted); font-size: .78rem; margin-top: .2rem; letter-spacing: .02em; }
.sold { font-family: var(--sans); font-size: .58rem; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-ink); border: 1px solid var(--accent); padding: .2em .5em; margin-left: .5em; position: relative; top: -.25em; }

.strip {
  display: flex; gap: clamp(1.25rem, 3vw, 2.5rem); overflow-x: auto; scroll-snap-type: x mandatory;
  padding-inline: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter)));
  padding-bottom: 1rem; scrollbar-width: none;
}
.strip::-webkit-scrollbar { display: none; }
.strip .art { flex: 0 0 clamp(240px, 30vw, 380px); scroll-snap-align: start; }
.strip::after { content: ""; flex: 0 0 1px; }

.masonry { columns: 3; column-gap: clamp(1.25rem, 3vw, 2.5rem); }
.masonry .art { break-inside: avoid; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
@media (max-width: 1000px) { .masonry { columns: 2; } }
@media (max-width: 480px) { .masonry { columns: 1; } }

/* Collections */
.col-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: clamp(2rem, 4vw, 3rem) clamp(1.25rem, 3vw, 2rem); }
.col-card { display: block; }
.col-img { display: block; aspect-ratio: 1; overflow: hidden; background: var(--surface); }
.col-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.col-card:hover .col-img img { transform: scale(1.04); }
.col-name { display: flex; align-items: baseline; gap: .7em; font-family: var(--serif); font-size: 1.6rem; margin-top: .9rem; line-height: 1.1; }
.col-count { display: block; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: .3rem; }
.tag { font-family: var(--sans); font-style: normal; font-size: .58rem; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-ink); border: 1px solid var(--accent); padding: .25em .55em; position: relative; top: -.4em; white-space: nowrap; }
.col-grid-small { grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 1.5rem 1.25rem; }
.col-grid-small .col-name { font-size: 1.15rem; margin-top: .6rem; }
.col-grid-small .tag { display: none; }

/* Two-column blocks */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.split h2 { margin-bottom: .4em; }
.split .lead { margin-bottom: 2rem; }
.news-img img { width: 100%; max-height: 72vh; object-fit: contain; object-position: center; }
.news-date { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-ink); margin: .2rem 0 .8rem; }
.award { color: var(--accent-ink); }
.split .btn { margin-top: .5rem; }
.artist-portrait img { aspect-ratio: 1; object-fit: cover; width: 100%; max-width: 440px; margin-inline: auto; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 2.5rem; } .news-img { order: -1; } }

.commission { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-block: clamp(3.5rem, 7vw, 6rem); text-align: center; }
.commission h2 { margin-bottom: .5em; }
.commission p { max-width: 50ch; margin-inline: auto; margin-bottom: 2rem; }
.commission .eyebrow { margin-bottom: 1.2rem; }

/* Artist */
.artist-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.artist-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; position: sticky; top: calc(var(--header-h) + 1.5rem); }
.artist-photos img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.artist-text h2 { margin: 0 0 1.2rem; }
.artist-text section + .quote, .quote + section { margin-top: 3rem; }
.quote {
  font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 300; font-style: italic; line-height: 1.3;
  margin: 3rem 0; padding-left: 1.5rem; border-left: 1px solid var(--accent); max-width: 30ch;
}
@media (max-width: 860px) { .artist-layout { grid-template-columns: 1fr; } .artist-photos { position: static; max-width: 480px; } }

/* Exhibitions */
.expo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 4vw, 4rem); padding-block: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--line); }
.expo-list > .expo:last-child { border-bottom: 1px solid var(--line); }
.expo.is-upcoming { background: var(--surface); padding: clamp(1.5rem, 4vw, 3rem); border: 1px solid var(--line); margin-bottom: 1.5rem; grid-template-columns: 1fr; }
.expo.is-upcoming .expo-text { max-width: 68ch; }
.expo.is-upcoming .expo-title { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.expo-date { font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: .6rem; }
.expo-title { margin-bottom: .4rem; }
.expo-place { color: var(--ink-2); margin-bottom: .6rem; }
.expo-award { color: var(--accent-ink); }
.expo-images { display: flex; gap: 1rem; flex-wrap: wrap; align-items: flex-start; }
.expo-images a { flex: 1 1 200px; max-width: 420px; }
.expo-images img { width: 100%; height: auto; max-height: 440px; object-fit: contain; object-position: top left; }
@media (max-width: 760px) { .expo { grid-template-columns: 1fr; } }
details.more summary {
  cursor: pointer; list-style: none; display: inline-block; margin: 2rem 0 0;
  font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; border-bottom: 1px solid var(--line-2); padding-bottom: .25em;
}
details.more summary::-webkit-details-marker { display: none; }
details.more[open] summary { display: none; }
.cv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); }
.cv-grid h2, .cv-awards h2 { margin-bottom: 1.2rem; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cv-awards { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.cv { list-style: none; padding: 0; margin: 0; }
.cv li { display: grid; grid-template-columns: 4rem 1fr; gap: 1rem; padding: .7rem 0; border-top: 1px solid var(--line); font-size: .95rem; }
.cv li:last-child { border-bottom: 1px solid var(--line); }
.cv-plain li { display: block; }
.cv .year { font-family: var(--serif); font-size: 1.15rem; color: var(--muted); }
@media (max-width: 860px) { .cv-grid { grid-template-columns: 1fr; } }

/* Boat & contact */
.boat-images { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 3rem; }
@media (max-width: 640px) { .boat-images { grid-template-columns: 1fr; } }
.contact-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.contact-email { font-family: var(--serif); font-size: clamp(1.5rem, 3.5vw, 2.6rem); font-weight: 300; border-bottom: 1px solid var(--line-2); display: inline-block; margin: 0 0 1.5rem; transition: border-color .3s; word-break: break-all; }
.contact-email:hover { border-color: var(--ink); }
.contact-art img { width: 100%; max-width: 480px; margin-inline: auto; }
@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; } .contact-art { display: none; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: clamp(3rem, 8vw, 6rem); font-size: .9rem; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; padding-block: clamp(2.5rem, 5vw, 4rem); }
.signature { height: 44px; width: auto; margin-bottom: .8rem; }
.footer-name { font-family: var(--serif); font-size: 1.5rem; margin: 0 0 .3rem; }
.footer-tagline { color: var(--muted); margin: 0; }
.footer-heading { font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin: 0 0 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.site-footer li a { border-bottom: 1px solid transparent; transition: border-color .3s; }
.site-footer li a:hover { border-color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; padding-block: 1.2rem; border-top: 1px solid var(--line); font-size: .74rem; color: var(--muted); }
.footer-bottom p { margin: 0; }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(247, 245, 241, .97); display: grid; grid-template-rows: minmax(0, 1fr) auto; animation: lbIn .3s var(--ease); }
.lb[hidden] { display: none; }
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
.lb-stage {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center;
  padding: clamp(3.5rem, 6vh, 5rem) clamp(3.5rem, 8vw, 7rem) 1rem; touch-action: none; user-select: none; -webkit-user-select: none;
}
.lb-stage.is-zoomed { cursor: grab; }
.lb-stage.is-zoomed:active { cursor: grabbing; }
.lb-stage img {
  max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain;
  transform-origin: center center; will-change: transform; pointer-events: none; -webkit-user-drag: none;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .12));
}
.lb-caption { text-align: center; padding: 0 var(--gutter) clamp(1.2rem, 3vh, 2rem); }
.lb-title { font-family: var(--serif); font-size: 1.5rem; margin: 0; }
.lb-meta { color: var(--muted); font-size: .85rem; margin: .2rem 0 .5rem; }
.lb-hint { font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0; }
.lb-count { margin-left: .8em; }
.lb-btn { position: absolute; z-index: 2; width: 52px; height: 52px; border: 0; background: none; cursor: pointer; color: var(--ink); padding: 0; display: grid; place-items: center; opacity: .7; transition: opacity .3s; }
.lb-btn:hover { opacity: 1; }
.lb-btn svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.lb-close { top: .75rem; right: .75rem; }
.lb-prev { left: .75rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: .75rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
  .lb-stage { padding: 3.5rem .75rem .5rem; }
  .lb-prev, .lb-next { top: auto; bottom: 5.4rem; transform: none; }
  .lb-caption { padding-inline: 4rem; }
}

/* Reveal on scroll (only when JS is running) */
html.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .hero-art img { animation: none; }
  .hero-art img:first-child { opacity: 1; }
  .scroll-cue::after { animation: none; }
  .art-link img, .col-img img { transition: none; }
}
