/* Amagugu Collection: shared styles for index.html, collection.html, piece.html.
   Layout and type follow Galerie Flak (galerieflak.com/en), Jasper's reference, 23 Nov 2026.
   Flak's own faces are licensed (Dala Floda, Cosi Times); free stand-ins:
     Italiana       ~ Dala Floda   (wide display caps: wordmark, section heads)
     Bodoni Moda    ~ Cosi Times   (big collection names, piece titles)
     Hanken Grotesk = HK Grotesk   (UI and body; same family, renamed)  */

:root {
  --bg: #F7F7F5;
  --ink: #111111;
  --soft: #6B6B66;
  --grey: #B3B3B0;
  --line: #E2E1DC;
  --card: #F2F0EA;
  --f-caps: "Italiana", "Times New Roman", serif;
  --f-display: "Bodoni Moda", "Didot", serif;
  --f-text: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --f-plaque: "Fraunces", Georgia, serif;
  --gutter: clamp(16px, 3.2vw, 48px);
  --wrap: 1320px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--f-text); }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header (Flak: emblem left, nav right) ---------- */
.site-head { position: sticky; top: 0; z-index: 50; background: var(--bg); }
.site-head__in { display: flex; align-items: center; justify-content: space-between; height: 84px; padding: 0 var(--gutter); }
.emblem { display: inline-flex; color: var(--ink); width: 46px; height: 46px; transition: transform .5s var(--ease); }
/* header mark: on hover the emblem gives way to the name */
a.emblem { position: relative; }
a.emblem svg { transition: opacity .35s var(--ease), transform .5s var(--ease); }
.emblem__word { position: absolute; left: 0; top: 50%; transform: translate(-8px, -50%); white-space: nowrap; font-size: 26px;
  opacity: 0; pointer-events: none; transition: opacity .45s var(--ease), transform .55s var(--ease); }
a.emblem:hover svg, a.emblem:focus-visible svg { opacity: 0; transform: rotate(-8deg) scale(.9); }
a.emblem:hover .emblem__word, a.emblem:focus-visible .emblem__word { opacity: 1; transform: translate(0, -50%); }
@media (hover: none) { .emblem__word { display: none; } }
.emblem:active { transform: scale(.94); }
.emblem svg { width: 100%; height: 100%; }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 40px); font-size: 16px; }
.nav > a, .nav__drop > button { text-decoration: none; background: none; border: 0; padding: 6px 0; cursor: pointer;
  border-bottom: 1px solid transparent; transition: border-color .3s var(--ease), opacity .2s; }
.nav > a:hover, .nav__drop > button:hover { border-bottom-color: var(--ink); }
.nav > a:active, .nav__drop > button:active { opacity: .55; }
.nav__drop { position: relative; }
.nav__drop > button { display: inline-flex; align-items: center; gap: 8px; }
.nav__drop > button svg { width: 11px; transition: transform .35s var(--ease); }
.nav__drop.is-open > button svg { transform: rotate(180deg); }
.nav__menu { position: absolute; right: -24px; top: calc(100% + 14px); min-width: 280px; padding: 26px 32px 30px; background: var(--bg);
  box-shadow: 0 18px 40px rgba(0,0,0,.07); text-align: right; opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility 0s .35s; }
.nav__drop.is-open .nav__menu { opacity: 1; visibility: visible; transform: none; transition: opacity .35s var(--ease), transform .35s var(--ease); }
.nav__menu a { display: block; white-space: nowrap; font-size: 24px; letter-spacing: .04em; line-height: 1.75; text-decoration: none; color: var(--ink); transition: color .25s; }
.nav__menu:hover a { color: var(--grey); }
.nav__menu a:hover { color: var(--ink); }
.nav__menu a.all { margin-top: 10px; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
@media (max-width: 720px) {
  .site-head__in { height: 68px; }
  .emblem { width: 38px; height: 38px; }
  .nav { gap: 16px; font-size: 14px; }
  .nav .hide-sm { display: none; }
  .nav__menu { position: fixed; left: 0; right: 0; top: 68px; min-width: 0; text-align: left; padding: 20px var(--gutter) 28px; }
  .nav__menu a { font-size: 22px; }
}

/* ---------- section heads (Flak "NEW ACQUISITIONS" / "COLLECTIONS") ---------- */
.caps { font-family: var(--f-caps); font-weight: 400; text-transform: uppercase; letter-spacing: .06em; line-height: 1; margin: 0; }
.h-section { font-size: clamp(34px, 4.6vw, 64px); }
.see-all { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 16px; white-space: nowrap; }
.see-all span { transition: transform .35s var(--ease); }
.see-all:hover span { transform: translateX(6px); }
.see-all:active { opacity: .55; }
.kicker { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); }

/* ---------- hero (Flak wordmark) ---------- */
/* home intro: emblem alone on the first screen, lifts and fades on scroll (same move as Cape Canvas) */
.intro { height: 100vh; height: 100svh; display: flex; align-items: center; justify-content: center; background: var(--bg); position: relative; }
.intro-logo { width: min(260px, 52vw); height: auto; will-change: transform, opacity; }
.intro-cue { position: absolute; left: 50%; bottom: clamp(24px, 5vh, 48px); width: 1px; height: 48px; background: var(--ink); transform-origin: top; animation: cue 2.4s cubic-bezier(.22,1,.36,1) infinite; }
@keyframes cue { 0% { transform: scaleY(0); opacity: 1 } 60% { transform: scaleY(1); opacity: 1 } 100% { transform: scaleY(1); opacity: 0 } }
@media (prefers-reduced-motion: reduce) { .intro-cue { animation: none; } }
.hero { min-height: calc(78svh - 84px); display: grid; place-items: center; text-align: center; padding: 40px var(--gutter) 60px; }
.hero h1 { font-size: clamp(44px, 9.4vw, 148px); letter-spacing: .05em; }
.hero p { margin: clamp(14px, 1.6vw, 22px) 0 0; font-size: clamp(11px, 1.15vw, 15px); letter-spacing: .16em; text-transform: uppercase; }

/* ---------- carousel (Flak "NEW ACQUISITIONS": edge-bleeding, arrows left) ---------- */
.rail-sec { overflow-x: clip; padding: clamp(60px, 9vw, 130px) 0 clamp(40px, 6vw, 80px); }
.rail-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: clamp(30px, 4vw, 56px); }
.rail { position: relative; padding-left: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); }
.rail__track { --gap: clamp(14px, 1.6vw, 24px); display: flex; gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; scrollbar-width: none; padding-right: var(--gutter); cursor: grab; overscroll-behavior-x: contain; }
.rail__track::-webkit-scrollbar { display: none; }
.rail__track.is-drag { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.rail__track > .card { flex: 0 0 calc((min(100vw, var(--wrap)) - 2 * var(--gutter) - 4 * var(--gap)) / 5); scroll-snap-align: start; }
@media (max-width: 1100px) { .rail__track > .card { flex-basis: calc((100vw - 2 * var(--gutter) - 2 * var(--gap)) / 3); } }
@media (max-width: 640px)  { .rail__track > .card { flex-basis: calc((100vw - 2 * var(--gutter) - var(--gap)) / 1.6); } }
.rail__foot { display: flex; align-items: center; gap: 28px; margin-top: 30px; padding-right: var(--gutter); }
.rail__btn { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--ink); background: transparent; cursor: pointer;
  display: grid; place-items: center; font-size: 20px; transition: background .3s, color .3s, transform .15s; }
.rail__btn:hover { background: var(--ink); color: var(--bg); }
.rail__btn:active { transform: scale(.92); }
.rail__btn:disabled { opacity: .25; pointer-events: none; }
.rail__bar { flex: 1; height: 1px; background: var(--line); position: relative; overflow: hidden; }
.rail__bar i { position: absolute; inset: 0 auto 0 0; width: 20%; background: var(--ink); transition: transform .25s linear; transform-origin: left; }
.rail__count { font-size: 13px; letter-spacing: .08em; color: var(--soft); min-width: 74px; text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- piece card (used by carousel, full collection, category pages) ---------- */
.card { display: block; text-decoration: none; color: inherit; -webkit-tap-highlight-color: transparent; }
.card__img { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--card); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), opacity .6s; }
.card:hover .card__img img { transform: scale(2); }   /* Jasper 25 Nov: the piece doubles on hover */
.card:active .card__img img { transform: scale(1.02); opacity: .85; }
.card__meta { margin: 14px 0 4px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--soft); }
.card__title { margin: 0; font-size: 16px; line-height: 1.35; font-weight: 400; }
.card__desc { margin: 4px 0 0; font-size: 13px; line-height: 1.45; color: var(--soft); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__cue { margin: 8px 0 0; font-size: 12px; color: var(--soft); }
.card:hover .card__cue { color: var(--ink); }
.card__open { font-size: 12px; color: var(--soft); opacity: 0; transition: opacity .3s; }
.card:hover .card__open, .card:focus-visible .card__open { opacity: 1; }
.sold-tag { position: absolute; top: 12px; left: 12px; z-index: 1; background: var(--ink); color: var(--bg); font-size: 11px;
  letter-spacing: .16em; text-transform: uppercase; padding: 6px 10px; }
.card.is-sold .card__img img { opacity: .82; }
.card:focus-visible { outline: 1px solid var(--ink); outline-offset: 6px; }

/* ---------- collections (Flak: list right, image left, hover greys the rest) ---------- */
.coll-sec { padding: clamp(70px, 10vw, 150px) 0; }
.coll { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(30px, 6vw, 90px); align-items: start; }
.coll__left { display: flex; flex-direction: column; gap: clamp(28px, 4vw, 60px); position: sticky; top: 120px; }
.coll__frame { position: relative; display: block; width: min(100%, 400px); aspect-ratio: 2 / 3; overflow: hidden; background: var(--card); }
.coll__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04);
  transition: opacity .7s var(--ease), transform 1.4s var(--ease); }
.coll__frame img.is-on { opacity: 1; transform: scale(var(--img-grow, 1)); }
/* scroll effect (set from index.html): the frame grows a little as the section passes, the photo inside grows a touch more */
.coll__frame { transform: scale(var(--frame-grow, 1)); transform-origin: 50% 0; will-change: transform; }
.coll__right { text-align: right; }
.coll__right .caps { font-size: clamp(30px, 4vw, 58px); }
.coll__intro { margin: 22px 0 0 auto; max-width: 44ch; color: var(--soft); font-size: 17px; }
.coll__list { list-style: none; margin: clamp(34px, 4.5vw, 64px) 0 0; padding: 0; }
.coll__list a { display: inline-flex; align-items: baseline; gap: 14px; text-decoration: none; font-family: var(--f-display);
  font-weight: 700; font-size: clamp(24px, 3.5vw, 54px); line-height: 1.18; white-space: nowrap; letter-spacing: -.015em; color: var(--grey);
  transition: color .45s var(--ease); }
.coll__list a.is-on { color: var(--ink); }
.coll__list a sup { font-family: var(--f-text); font-weight: 400; font-size: 13px; letter-spacing: .06em; transform: translateY(-1.6em); }
.coll__list a:active { opacity: .6; }
@media (max-width: 860px) {
  .coll { grid-template-columns: 1fr; }
  .coll__right { text-align: left; order: -1; }
  .coll__intro { margin-left: 0; }
  .coll__frame { width: 100%; max-width: 420px; }
  .coll__left { position: static; }
  .coll__list a { white-space: normal; gap: 8px; }
  .coll__list a sup { transform: translateY(-.5em); }
}

/* painter heading: the one-line intro sits to the right of his name */
.painter__title { display: flex; align-items: flex-end; gap: clamp(20px, 3vw, 48px); flex-wrap: wrap; }
.painter__line { margin: 0 0 .5em; max-width: 30ch; color: var(--soft); font-size: 17px; line-height: 1.6; }

/* ---------- about ---------- */
.about { padding: clamp(60px, 9vw, 130px) 0; border-top: 1px solid var(--line); }
.about__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(30px, 6vw, 90px); }
.about h2 { font-family: var(--f-display); font-weight: 700; font-size: clamp(34px, 4.4vw, 62px); line-height: 1.05; letter-spacing: -.01em; margin: 18px 0 0; }
.about__photo { display: block; width: 100%; max-width: 440px; height: auto; margin-top: clamp(24px, 3vw, 40px); }
.about__body p { margin: 0 0 1.1em; font-size: 18px; line-height: 1.7; max-width: 62ch; }
@media (max-width: 860px) { .about__grid { grid-template-columns: 1fr; } }

/* ---------- Nicolaas teaser ---------- */
.painter { padding: clamp(50px, 8vw, 110px) 0; border-top: 1px solid var(--line); }
.painter__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.6vw, 24px); margin-top: 40px; }
.painter__grid a { text-decoration: none; }
.painter__grid img { aspect-ratio: 1; object-fit: cover; width: 100%; transition: opacity .4s; }
.painter__grid a:hover img { opacity: .85; }
.painter__grid h3 { font-weight: 400; font-size: 16px; margin: 12px 0 0; }
.painter__grid p { margin: 2px 0 0; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); }
@media (max-width: 640px) { .painter__grid { grid-template-columns: 1fr 1fr; } .painter__grid a:nth-child(3) { display: none; } }

/* ---------- full collection grid ---------- */
.full { padding: clamp(60px, 9vw, 130px) 0; border-top: 1px solid var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 clamp(30px, 4vw, 56px); }
.chips a { text-decoration: none; font-size: 14px; padding: 8px 16px; border: 1px solid var(--line); transition: border-color .25s, background .25s, color .25s; }
.chips a:hover { border-color: var(--ink); }
.chips a.is-on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chips a:active { transform: scale(.96); }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(30px, 3.6vw, 56px) clamp(14px, 1.6vw, 24px); }
@media (max-width: 1100px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px)  { .grid { grid-template-columns: repeat(2, 1fr); } .card__title { font-size: 14px; } }

/* ---------- category page head ---------- */
.cat-head { padding: clamp(40px, 7vw, 100px) 0 0; }
.cat-head h1 { font-family: var(--f-display); font-weight: 700; font-size: clamp(52px, 9vw, 132px); line-height: 1; letter-spacing: -.02em; margin: 14px 0 0; }
.cat-head p { color: var(--soft); margin: 16px 0 0; }
.crumbs { font-size: 13px; letter-spacing: .06em; color: var(--soft); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }

/* ---------- enquire band + footer (Flak footer) ---------- */
.enquire { background: #141210; color: #F7F7F5; padding: clamp(70px, 10vw, 140px) 0; text-align: center; }
.enquire .caps { font-size: clamp(30px, 4.4vw, 60px); }
.enquire p { color: #B9B3A8; margin: 18px auto 34px; max-width: 46ch; }
.btn-line { display: inline-block; border: 1px solid currentColor; padding: 15px 34px; text-decoration: none; letter-spacing: .06em; font-size: 15px;
  transition: background .3s, color .3s, transform .15s; }
.btn-line:hover { background: #F7F7F5; color: #141210; }
.btn-line:active { transform: scale(.97); }
.foot { padding: 50px 0 60px; border-top: 1px solid var(--line); }
.foot__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; font-size: 14px; }
.foot__brand { display: flex; gap: 16px; align-items: flex-start; }
.foot__brand .emblem { width: 38px; height: 38px; }
.foot h4 { margin: 0 0 10px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); font-weight: 500; }
.foot ul { list-style: none; margin: 0; padding: 0; line-height: 2; }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot .pending { color: var(--grey); }
.foot__base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; }
.foot small { display: block; color: var(--soft); font-size: 12px; }
.foot small a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.foot small a:active { opacity: .55; }
@media (max-width: 860px) { .foot__grid { grid-template-columns: 1fr 1fr; } }

/* ---------- piece page: gallery + Isabella's gallery-card plaque ---------- */
.piece { display: grid; grid-template-columns: 7fr 6fr; gap: clamp(26px, 5vw, 80px); align-items: start; padding: 20px 0 clamp(60px, 8vw, 110px); }
.gal { position: sticky; top: 100px; }
.gal__stage { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.gal__stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .5s var(--ease); }
.gal__stage img.is-on { opacity: 1; }
/* hover magnifier: the part of the piece under the pointer zooms in */
@media (hover: hover) {
  .gal__stage { cursor: zoom-in; }
  .gal__stage img { transition: opacity .5s var(--ease), transform .35s var(--ease); }
  .gal__stage.is-zoom img.is-on { transform: scale(2.6); }
}
.gal__nav { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; }
.gal__count { font-size: 13px; letter-spacing: .1em; color: var(--soft); font-variant-numeric: tabular-nums; }
.gal__thumbs { display: flex; gap: 10px; margin-top: 16px; overflow-x: auto; scrollbar-width: none; }
.gal__thumbs button { flex: 0 0 64px; height: 80px; padding: 0; border: 1px solid transparent; background: var(--card); cursor: pointer; opacity: .55; transition: opacity .25s, border-color .25s; }
.gal__thumbs button.is-on { opacity: 1; border-color: var(--ink); }
.gal__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.plaque { background: var(--card); padding: clamp(24px, 3vw, 44px); font-family: var(--f-plaque); }
.plaque__head { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid #CFC7B6;
  font: 500 12px/1.4 var(--f-text); letter-spacing: .14em; text-transform: uppercase; color: #9A8F7A; }
.plaque__head span:last-child { white-space: nowrap; }
.plaque b { display: block; font-weight: 600; font-size: 15px; }
.plaque__title { margin: 26px 0 0; }
.plaque__title h1 { font-family: var(--f-display); font-weight: 700; font-size: clamp(28px, 2.8vw, 40px); line-height: 1.12; letter-spacing: -.01em; margin: 4px 0 0; }
.plaque__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; margin-top: 26px; padding-bottom: 24px; border-bottom: 1px solid #CFC7B6; }
.plaque__grid:empty { display: none; }
.plaque__grid div { font-size: 16px; line-height: 1.45; }
.plaque__desc { margin-top: 24px; }
.plaque__desc p { margin: 6px 0 14px; font-size: 16.5px; line-height: 1.6; }
.plaque__cta { margin-top: 26px; font-family: var(--f-text); }
.plaque__cta .status { font-size: 17px; margin: 0 0 18px; }
.plaque__cta .status.is-sold { letter-spacing: .18em; text-transform: uppercase; font-weight: 600; }
.btn-ink { display: inline-block; border: 1px solid var(--ink); padding: 14px 30px; text-decoration: none; letter-spacing: .04em; font-size: 15px; transition: background .3s, color .3s, transform .15s; }
.btn-ink:hover { background: var(--ink); color: var(--bg); }
.btn-ink:active { transform: scale(.97); }
.more { padding: clamp(40px, 6vw, 90px) 0; border-top: 1px solid var(--line); }
@media (max-width: 900px) {
  .piece { grid-template-columns: 1fr; }
  .gal { position: static; }
  .plaque__grid { grid-template-columns: 1fr; }
}

/* ---------- reveal on scroll (Flak uses AOS fade-up) ---------- */
.rv { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.rv.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
  .rv { opacity: 1; transform: none; }
}
