/* ==========================================================================
   FAKE ART gallery — v2 (2026 edition)
   Two pages: index.html (the exhibition) and about.html. No sales content.

   Typography (Sigalia, Sept 2026): Playfair Display carries the voice of the
   exhibition — the two statement lines on the gallery page and the whole About
   text, alongside the headings. Poppins is left to the interface: buttons, the
   tagline, the wall label, the footer. No tracking on the manifesto text.

   Sizing model, reverse-engineered from the live site:
   Wix scales everything from  base = min(contentWidth, 1440px) - 15px
   and each element is  coefficient x base.  Two sections opt out of the
   1440px cap and keep growing forever: the page hero and the quote band.

   Here .page is a container (container-type: inline-size), so 1cqw == 1% of
   the content width, and:
       --base        capped   = min(100cqw, 1425px)      (most sections)
       --base-free   uncapped = 100cqw                   (hero, quote band)
   Every coefficient below is the live value at the 1425px design width.

   Breakpoints match Wix Studio's: desktop >=1001, tablet 751-1000, mobile <=750.
   ========================================================================== */

/* ---------- fonts ---------- */
@font-face{font-family:"Playfair Display";src:url("../assets/fonts/playfair-display-latin-400-normal.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"Playfair Display";src:url("../assets/fonts/playfair-display-latin-600-normal.woff2") format("woff2");font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:"Playfair Display";src:url("../assets/fonts/playfair-display-latin-700-normal.woff2") format("woff2");font-weight:700;font-style:normal;font-display:swap}
@font-face{font-family:"Playfair Display";src:url("../assets/fonts/playfair-display-latin-400-italic.woff2") format("woff2");font-weight:400;font-style:italic;font-display:swap}
@font-face{font-family:"Playfair Display";src:url("../assets/fonts/playfair-display-latin-600-italic.woff2") format("woff2");font-weight:600;font-style:italic;font-display:swap}
@font-face{font-family:"Poppins";src:url("../assets/fonts/poppins-latin-200-normal.woff2") format("woff2");font-weight:200;font-style:normal;font-display:swap}
@font-face{font-family:"Poppins";src:url("../assets/fonts/poppins-latin-300-normal.woff2") format("woff2");font-weight:300;font-style:normal;font-display:swap}
@font-face{font-family:"Poppins";src:url("../assets/fonts/poppins-latin-400-normal.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"Poppins";src:url("../assets/fonts/poppins-latin-500-normal.woff2") format("woff2");font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:"Poppins";src:url("../assets/fonts/poppins-latin-600-normal.woff2") format("woff2");font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:"Poppins";src:url("../assets/fonts/poppins-latin-700-normal.woff2") format("woff2");font-weight:700;font-style:normal;font-display:swap}

/* ---------- tokens ---------- */
:root{
  --ink:#303030;
  --ink-hover-border:#323232;
  --black:#000;
  --paper:#fff;
  --serif:"Playfair Display",Georgia,"Times New Roman",serif;
  --sans:"Poppins",-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
}

/* ---------- reset ---------- */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;background:var(--paper);color:var(--ink);
  font-family:var(--sans);font-weight:400;
  overflow-x:hidden;
}
img{display:block;max-width:100%;height:auto}
a{color:inherit;text-decoration:none}
p{margin:0}
h1,h2,h3,h4{margin:0;font-weight:inherit}
:focus-visible{outline:2px solid var(--ink);outline-offset:3px}

/* the scaling container: 1cqw == 1% of the content width */
.page{
  container-type:inline-size;
  width:100%;
  --base:min(100cqw,1425px);
  --base-free:100cqw;
}

/* ==========================================================================
   HERO  (gallery page) — uncapped scaling section
   live: height 94.86vh, two halves, images cover-cropped, instant swap
   ========================================================================== */
.hero{
  position:relative;
  display:grid;grid-template-columns:1fr 1fr;
  width:100%;height:94.86vh;
  /* the sparkle cursor from the live site */
  cursor:url("../assets/img/misc/cursor-sparkle.svg") 41 41,auto;
}
.hero__half{position:relative;overflow:hidden;height:100%}
.hero__half img{
  position:absolute;inset:0;
  width:100%;height:100%;object-fit:cover;object-position:50% 50%;
}
/* the swap is instantaneous on the live site (transition-duration: 0s) */
.hero__half img.is-alt{opacity:0}
.hero__half:hover img.is-alt,.hero__half:focus-within img.is-alt{opacity:1}

.hero__overlay{
  position:absolute;inset:0;display:flex;
  align-items:center;justify-content:center;
  padding-bottom:22px;          /* live title sits 11px above centre */
  text-align:center;color:#fff;pointer-events:none;
}
.hero__title{
  font-family:var(--serif);font-weight:600;
  font-size:calc(var(--base-free) * 0.078707);   /* 112.16px @1425 */
  line-height:1.05;
}
.hero__title em{display:block;font-weight:400;font-style:italic}
.hero__tagline{
  position:absolute;left:0;right:0;bottom:81px;   /* fixed 81px on the live site */
  margin:0;text-align:center;
  font-weight:300;font-size:18px;line-height:1.4;color:#fff;
  pointer-events:none;
}

/* the About hero — a plain image band, width-driven */
.hero--single{grid-template-columns:1fr;height:auto;cursor:auto}
.hero--about .hero__half{aspect-ratio:1425/536;height:auto}
.hero--single .hero__overlay{align-items:flex-end}
.hero--about .hero__overlay{padding-bottom:calc(var(--base-free) * 0.01825)}
.page-title{
  font-family:var(--serif);font-weight:600;
  font-size:calc(var(--base-free) * 0.084329);   /* 120.17px @1425 */
  line-height:1.4;color:#fff;
}

/* ==========================================================================
   STATEMENT  (gallery page) — capped section
   ========================================================================== */
.statement{
  padding-top:77px;
  padding-bottom:calc(151px + (100cqw - var(--base)) * 0.1375);
}
/* v2: the gap above the ABOUT button was too generous */
.statement--tight{padding-bottom:calc(var(--base) * 0.0323)}   /* 46px @1425 */
.statement__line{
  font-family:var(--serif);font-weight:400;
  font-size:calc(var(--base) * 0.029515);        /* 42.06px @1425 */
  line-height:1.3;text-align:center;color:var(--ink);
  width:calc(var(--base) * 0.842105);            /* 1200px @1425 */
  margin-inline:auto;
}
.fakeart-word{
  font-family:var(--serif);font-weight:700;
  font-size:calc(var(--base) * 0.070274);        /* 100.14px @1425 */
  line-height:1.1;text-align:center;color:var(--ink);
  width:calc(var(--base) * 0.747368);            /* 1065px @1425 */
  margin-inline:auto;
}
.statement__line + .fakeart-word{margin-top:18px}
.fakeart-word + .statement__line{margin-top:17px}

/* ==========================================================================
   BUTTON  — capped section, 311x50 with a 20px label @1425
   ========================================================================== */
.btn-row{
  display:flex;align-items:center;justify-content:center;
  height:calc(var(--base) * 0.069474);           /* 99px @1425 */
}
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  width:calc(var(--base) * 0.218246);            /* 311px @1425 */
  height:calc(var(--base) * 0.035088);           /*  50px @1425 */
  padding:0 calc(var(--base) * 0.0015628);
  background:#fff;
  border:calc(var(--base) * 0.000702) solid var(--ink);
  font-weight:400;font-size:calc(var(--base) * 0.014035); /* 20px @1425 */
  line-height:1.4;color:var(--ink);white-space:nowrap;
  transition:border-color .4s ease,background-color .4s ease,color .4s ease;
}
.btn:hover{background:var(--ink);border-color:var(--ink-hover-border);color:#fff}
.btn-row--roomy{height:calc(var(--base) * 0.082807)}   /* 118px @1425 */

/* back to top — a floating tile that follows the reader down the exhibition.
   Same square and same thin frame as the works on the wall; it turns solid on
   hover exactly like .btn, and it steps aside while the viewer is open. */
@media (prefers-reduced-motion:no-preference){html{scroll-behavior:smooth}}
.gallery-end{height:calc(var(--base) * 0.082807)}       /* 118px @1425 — the air the old button row held */
.to-top{
  position:fixed;right:24px;bottom:24px;z-index:80;
  display:flex;align-items:center;justify-content:center;
  width:52px;height:52px;padding:0;margin:0;
  background:#fff;border:1px solid var(--ink);color:var(--ink);cursor:pointer;
  opacity:0;transform:translateY(10px);pointer-events:none;
  transition:opacity .35s ease,transform .35s ease,
             background-color .4s ease,border-color .4s ease,color .4s ease;
}
.to-top.is-on{opacity:1;transform:none;pointer-events:auto}
.to-top:hover{background:var(--ink);border-color:var(--ink-hover-border);color:#fff}
.to-top svg{display:block;width:20px;height:20px}
body.lb-open .to-top{opacity:0;pointer-events:none}

/* ==========================================================================
   GALLERY  — capped section: 40px padding, inner max 1360px, 2 cols, 37px gaps
   ========================================================================== */
.gallery{padding:40px}
.gallery__grid{
  max-width:1360px;margin-inline:auto;
  display:grid;grid-template-columns:repeat(2,1fr);
  column-gap:37px;row-gap:62px;      /* v3: the air belongs BETWEEN works */
}
.art{
  display:block;width:100%;background:none;border:0;padding:0;
  text-align:left;cursor:pointer;font:inherit;color:inherit;
}
.art__title{
  /* the works are named in the heading face, in full caps (Sigalia, Sept 2026).
     The box keeps its fixed height so every picture in a row starts on the same
     line even when one name wraps — but the name is pinned to the BOTTOM of it,
     so it reads as belonging to the picture under it, not floating between rows. */
  font-family:var(--serif);font-weight:600;font-size:26px;line-height:32px;
  color:var(--black);margin:0;
  display:flex;align-items:flex-end;
  height:44px;padding:0 0 12px;      /* one line at >=1001px, where nothing wraps */
  text-transform:uppercase;letter-spacing:.03em;
  /* Playfair's default figures sit at x-height; next to caps they read as small.
     lnum switches the font to lining figures, so PART 1 matches PART. */
  font-variant-numeric:lining-nums;font-feature-settings:"lnum" 1;
}
/* the wall label — medium and year. Nothing sits on the pictures in the grid:
   there the works are shown bare. The label appears only in the viewer, as a
   quiet line under the title. */
.lb__label{
  display:block;margin:0;
  font-family:var(--sans);font-weight:400;font-size:12px;line-height:1;
  letter-spacing:.04em;color:var(--ink);opacity:.75;
}
.art__frame{position:relative;overflow:hidden;aspect-ratio:1}
.art__frame img{
  width:100%;height:100%;object-fit:cover;
  transition:transform .4s ease;            /* live: transform .4s ease */
}
.art:hover .art__frame img,
.art:focus-visible .art__frame img{transform:scale(.985)}   /* live value */

/* ==========================================================================
   full-bleed image bands
   ========================================================================== */
.pair-band{display:grid;grid-template-columns:1fr 1fr}
.pair-band__half{position:relative;overflow:hidden;aspect-ratio:713/854}
.pair-band__half img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.pair-band__half img.is-alt{opacity:0}
.pair-band__half:hover img.is-alt{opacity:1}

/* ==========================================================================
   ABOUT — the 2026 manifesto
   One family only: Poppins. Playfair is a heading face here (the page title and
   the FAKE ART word) and never touches running text; every emphasis is a weight,
   never an italic and never a second family. Sizes come from Sigalia's 1366px
   artboard — Regular 23.3 for the lead and the questions, Bold 27.2 for the four
   statements, Regular 20.4 for the running text — expressed as ratios of --base
   so the proportions hold at every width. Three movements, separated by
   whitespace alone.
   ========================================================================== */
.manifesto{text-align:center;font-family:var(--serif)}
/* centred text with no hand-set line breaks orphans its last word; balance the
   lines instead of authoring breaks that would only hold at one width */
.m-lead,.m-q,.m-body,.m-quote{text-wrap:balance}
.manifesto__col{
  width:calc(var(--base) * 0.842105);            /* 1200px @1425 */
  margin-inline:auto;
}
.manifesto__col--narrow{width:calc(var(--base) * 0.701754)}   /* 1000px @1425 */

.manifesto--open{padding-top:28px}
.manifesto--open .manifesto__col:first-of-type{margin-top:calc(var(--base) * 0.0365)}
.manifesto--origin{margin-top:calc(var(--base) * 0.0745)}
.manifesto--after{
  margin-top:calc(var(--base) * 0.0745);
  padding-bottom:calc(var(--base) * 0.0421);
}

/* I — the questions */
.m-lead{
  font-weight:400;font-size:calc(var(--base) * 0.017057);    /* 23.3 @1366 */
  line-height:1.3;color:var(--ink);
}
.m-questions{margin-top:calc(var(--base) * 0.0365)}
.m-ask{
  font-weight:700;font-size:calc(var(--base) * 0.019912);    /* 27.2 @1366 */
  line-height:1.2;color:var(--black);
  margin-bottom:calc(var(--base) * 0.0175);
}
.m-q{
  font-weight:400;font-size:calc(var(--base) * 0.017057);    /* 23.3 @1366 */
  line-height:1.3;color:var(--ink);
}
.m-q + .m-q{margin-top:calc(var(--base) * 0.0119)}
.m-decide{
  font-weight:700;font-size:calc(var(--base) * 0.019912);    /* 27.2 @1366 */
  line-height:1.2;color:var(--black);
  margin-top:calc(var(--base) * 0.0393);
}

/* II — the origin */
.m-body{
  font-weight:400;font-size:calc(var(--base) * 0.014934);    /* 20.4 @1366 */
  line-height:1.35;color:var(--ink);
}
.m-body + .m-body{margin-top:calc(var(--base) * 0.0105)}
.m-beat{
  font-weight:700;font-size:calc(var(--base) * 0.019912);    /* 27.2 @1366 */
  line-height:1.2;color:var(--black);
  margin-top:calc(var(--base) * 0.0309);
}

/* III — the line the text ends on */
.m-quote{
  width:calc(var(--base) * 0.842105);margin:calc(var(--base) * 0.0393) auto 0;
  font-weight:700;font-size:calc(var(--base) * 0.024890);    /* 34 @1366 */
  line-height:1.2;color:var(--black);
}

/* ==========================================================================
   FOOTER — v2: just the studio credit and the rights line
   ========================================================================== */
.site-footer{
  display:flex;align-items:center;
  min-height:calc(var(--base) * 0.070175);       /* 100px @1425 */
  padding:22px 0;
}
.site-footer__inner{
  display:flex;flex-direction:column;align-items:center;gap:9px;
  width:100%;max-width:calc(100cqw - 80px);margin-inline:auto;text-align:center;
}
.site-footer a.footer-studio{
  font-weight:500;font-size:14px;line-height:1.4;color:var(--ink);
  border-bottom:1px solid transparent;transition:border-color .3s ease;
}
.site-footer a.footer-studio:hover{border-color:var(--ink)}
.footer-line{display:flex;align-items:baseline;gap:5px}
.footer-c{font-weight:300;font-size:12px;line-height:1.4;color:var(--ink);opacity:.7}

/* ==========================================================================
   lightbox
   ========================================================================== */
.lb{position:fixed;inset:0;z-index:90;display:none;background:#fff}
.lb.is-open{display:block}
.lb__stage{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:5vh 7vw}
.lb__figure{margin:0;display:flex;flex-direction:column;align-items:center;gap:14px;max-height:90vh}
.lb__frame{position:relative;display:flex;max-width:100%}
.lb__figure img{max-width:100%;max-height:78vh;width:auto;height:auto;object-fit:contain}
.lb__cap{display:flex;flex-direction:column;align-items:center;gap:9px;text-align:center}
.lb__title{
  font-family:var(--serif);font-weight:600;font-size:24px;line-height:1.35;color:var(--black);
  text-transform:uppercase;letter-spacing:.03em;
  /* Playfair's default figures sit at x-height; next to caps they read as small.
     lnum switches the font to lining figures, so PART 1 matches PART. */
  font-variant-numeric:lining-nums;font-feature-settings:"lnum" 1;
}
.lb__count{
  position:absolute;top:26px;left:28px;margin:0;
  font-weight:400;font-size:14px;line-height:1;color:var(--ink);opacity:.55;
  font-variant-numeric:tabular-nums;letter-spacing:.08em;
}
.lb__btn{position:absolute;top:50%;transform:translateY(-50%);width:54px;height:54px;border:0;background:none;cursor:pointer;font-size:38px;line-height:1;color:var(--ink)}
.lb__btn:hover{opacity:.55}
.lb__prev{left:1.4vw}
.lb__next{right:1.4vw}
.lb__close{position:absolute;top:22px;right:26px;width:44px;height:44px;border:0;background:none;cursor:pointer;font-size:30px;line-height:1;color:var(--ink)}
.lb__close:hover{opacity:.55}
body.lb-open{overflow:hidden}

@media (prefers-reduced-motion:reduce){
  .art__frame img,.btn,.to-top{transition:none}
}

/* ==========================================================================
   TABLET  751-1000px
   ========================================================================== */
@media (max-width:1000px){
  .hero{height:100vh}
  .hero__title{font-size:calc(var(--base-free) * 0.060914)}
  .statement{padding-top:90px}
  /* 751-1000px: a couple of the longer names wrap, so the box takes two lines —
     bottom-aligned, so the short names still sit right on their picture */
  .art__title{height:76px}
  .manifesto__col{width:calc(var(--base) * 0.86)}
  .manifesto__col--narrow{width:calc(var(--base) * 0.78)}
  .m-quote{width:calc(var(--base) * 0.86)}
  .site-footer{padding:24px 0}
  .site-footer__inner{max-width:calc(100cqw - 60px)}
}

/* ==========================================================================
   MOBILE  <=750px  — layout values measured on the live site at 375px
   ========================================================================== */
@media (max-width:750px){
  .hero{grid-template-columns:1fr;height:73.5vh}
  .hero--single{height:auto}
  .hero__half--hide-mobile{display:none}
  .hero__overlay{align-items:flex-end;padding-bottom:calc(100cqw * 0.192)}
  .hero__title{font-size:calc(100cqw * 0.15384);line-height:1.05}
  .hero__tagline{bottom:calc(100cqw * 0.082667);font-size:14px;line-height:1.4}

  .hero--about .hero__half{aspect-ratio:375/500}
  .hero--single .hero__overlay{padding-bottom:calc(100cqw * 0.085333)}
  .page-title{font-size:calc(100cqw * 0.128);line-height:1.4}

  .statement{padding-top:39px;padding-bottom:40px}
  .statement--tight{padding-bottom:22px}
  /* the opening block keeps the desktop proportions on a phone: both lines the
     same size, FAKE ART the only large thing, and its size tied to the width so
     it always lands on ONE line (0.165 x width == 64px at 390, 53px at 320). */
  .statement__line{font-size:20px;line-height:1.35;width:calc(100cqw * 0.84)}
  .fakeart-word{font-size:calc(100cqw * 0.165);line-height:1.1;width:calc(100cqw * 0.84)}
  .statement__line + .fakeart-word{margin-top:12px}
  .fakeart-word + .statement__line{margin-top:12px}

  .btn-row{height:57px}
  .btn-row--roomy{height:78px}
  .btn{width:220px;height:46px;font-size:16px;border-width:1px;padding:0 10px}
  .gallery-end{height:78px}
  .to-top{right:16px;bottom:16px;width:46px;height:46px}
  .to-top svg{width:18px;height:18px}

  .gallery{padding:26px 27.5px 0}
  /* the works stand apart from each other, and each title sits on its own picture:
     no fixed title box on a phone — it was reserving room for a second line that
     the works do not have */
  .gallery__grid{grid-template-columns:1fr;column-gap:0;row-gap:46px}
  .art__title{font-size:20px;line-height:25px;height:auto;padding-top:0;padding-bottom:10px}
  .lb__label{font-size:11px}
  .lb__count{top:18px;left:20px;font-size:13px}
  .lb__title{font-size:19px}

  /* ----- About: the manifesto on a phone ----- */
  .manifesto__col,.manifesto__col--narrow,.m-quote{width:calc(100cqw * 0.84)}
  .manifesto--open{padding-top:22px}
  .manifesto--open .manifesto__col:first-of-type{margin-top:20px}
  .manifesto--origin{margin-top:48px}
  .manifesto--after{margin-top:48px;padding-bottom:30px}
  .manifesto .fakeart-word{font-size:52px;width:calc(100cqw * 0.656)}
  .m-lead{font-size:19px;line-height:1.35}
  .m-questions{margin-top:26px}
  .m-ask{font-size:22px;margin-bottom:16px}
  .m-q{font-size:17px;line-height:1.4}
  .m-q + .m-q{margin-top:12px}
  .m-decide{font-size:22px;margin-top:30px}
  .m-body{font-size:16px;line-height:1.45}
  .m-body + .m-body{margin-top:11px}
  .m-beat{font-size:22px;margin-top:26px}
  .m-quote{font-size:26px;margin-top:30px}

  .pair-band{grid-template-columns:1fr;padding:35px 0}
  .pair-band__half{aspect-ratio:375/346}
  .pair-band__half:first-child{display:none}
  /* no hover on a phone, so the half shows the image she chose as the visible one */
  .pair-band__half img{opacity:1}
  .pair-band__half img.is-alt{opacity:0}

  .site-footer{padding:20px 0 26px}
  .site-footer__inner{width:calc(100cqw * 0.84);max-width:none;gap:8px}

  .lb__stage{padding:8vh 6vw}
  .lb__btn{width:42px;height:42px;font-size:30px}
  .lb__prev{left:2px}
  .lb__next{right:2px}
  .lb__cap{font-size:17px}
}

/* ==========================================================================
   SMALL TABLET  600-750px — the mobile layout, but the grid keeps two columns
   (at one column this page ran to 20,000px)
   ========================================================================== */
@media (min-width:600px) and (max-width:750px){
  .gallery{padding:22px 22px 0}
  .gallery__grid{grid-template-columns:repeat(2,1fr);column-gap:22px;row-gap:40px}
  /* two columns again, so the box is fixed (two lines) and bottom-aligned,
     otherwise a wrapped name pushes its picture below its neighbour's */
  .art__title{font-size:17px;line-height:21px;height:51px;padding:0 0 9px}
}
