/* Carstax — scroll-scrubbed frame sequence
   Palette is the brand's: black, off-white, grey. No accent colour —
   the print is the only thing allowed to be colourful on this page.   */
:root{
  --bg:#0b0b0b;
  --ink:#efece6;
  --soft:#d6d2cb;
  --dim:#8a8782;
  --mute:#4f4d49;
  --edge:rgba(239,236,230,.14);
  --serif:Georgia,"Times New Roman",Times,serif;
  --sans:ui-sans-serif,-apple-system,"Helvetica Neue",Arial,sans-serif;
}
*{box-sizing:border-box}
html{scroll-behavior:auto}
body{
  margin:0;background:var(--bg);color:var(--ink);
  font-family:var(--sans);-webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
a{color:inherit}

/* ---------- language switch: both texts live in the HTML ---------- */
html[data-lang="ro"] [lang="en"]{display:none!important}
html[data-lang="en"] [lang="ro"]{display:none!important}
.lang{
  background:none;border:0;padding:0;cursor:pointer;color:var(--dim);
  font:inherit;font-size:11px;letter-spacing:.18em;
}
.lang span{transition:color .3s}
.lang__sep{margin:0 .35em;color:var(--mute)}
html[data-lang="ro"] .lang [data-l="ro"],
html[data-lang="en"] .lang [data-l="en"]{color:var(--ink)}

/* ---------- loader ---------- */
#loader{
  position:fixed;inset:0;z-index:200;background:var(--bg);
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:22px;
  transition:opacity .7s ease,visibility .7s ease;
}
#loader.is-done{opacity:0;visibility:hidden}
.loader__mark{width:56px;height:56px;filter:grayscale(1);opacity:.9}
.loader__bar{width:min(160px,44vw);height:1px;background:var(--edge);overflow:hidden}
#loaderFill{width:0;height:100%;background:var(--ink);transition:width .18s linear}

/* ---------- version strip (demo only) ---------- */
#versions{
  position:fixed;top:0;left:0;right:0;z-index:120;height:30px;
  display:flex;align-items:center;gap:14px;padding:0 clamp(12px,3vw,24px);
  background:rgba(11,11,11,.88);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);
  border-bottom:1px solid var(--edge);
  font-family:var(--sans);font-size:10px;letter-spacing:.14em;text-transform:uppercase;
}
.versions__label{color:var(--mute);white-space:nowrap}
.versions__tabs{display:flex;gap:2px}
.versions__tabs a{
  color:var(--dim);text-decoration:none;padding:4px 8px;border-radius:2px;
  white-space:nowrap;transition:color .2s,background .2s;
}
.versions__tabs a:hover{color:var(--ink)}
.versions__tabs a.is-current{color:var(--bg);background:var(--ink)}
.versions__note{
  color:var(--mute);letter-spacing:.06em;text-transform:none;min-width:0;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-left:auto;
}
@media (max-width:760px){
  .versions__label,.versions__note{display:none}
  #versions{gap:0;justify-content:center}
}

/* ---------- header ---------- */
#header{
  position:fixed;top:30px;left:0;right:0;z-index:100;
  display:flex;align-items:center;justify-content:flex-end;
  padding:20px clamp(16px,4vw,44px);
  transition:transform .45s cubic-bezier(.4,0,.2,1);
  mix-blend-mode:difference;
}
#header nav{display:flex;align-items:center;gap:clamp(14px,3vw,32px)}
.cta{
  color:var(--ink);text-decoration:none;font-size:11px;letter-spacing:.14em;
  border:1px solid var(--edge);padding:9px 16px;border-radius:999px;
  transition:border-color .3s;
}
.cta:hover{border-color:var(--ink)}

/* ---------- scene ---------- */
#scene{height:900vh;position:relative}   /* overridden per version in app.js */
/* Height must be the LARGEST viewport, not the smallest. iOS Safari grows the
   visual viewport when it hides its toolbar; at 100svh the pinned frame stays
   short and the black body shows through underneath (Sorin, iPhone, 2026-09-24).
   At 100lvh the only cost is a strip hidden behind the toolbar while it is up,
   which is invisible on a cover-drawn canvas.                                */
#sticky{position:sticky;top:0;height:100vh;height:100lvh;overflow:hidden}
#frames{display:block;width:100%;height:100%;object-fit:cover}
.vignette{
  position:absolute;inset:0;pointer-events:none;
  background:
    linear-gradient(to bottom,rgba(11,11,11,.55) 0%,rgba(11,11,11,0) 22%,rgba(11,11,11,0) 72%,rgba(11,11,11,.7) 100%),
    radial-gradient(80% 100% at 50% 50%,rgba(11,11,11,0) 34%,rgba(11,11,11,.28) 70%,rgba(11,11,11,.6) 100%);
}

/* Edge scrims keep copy legible over bright daylight footage. Faded in
   and out by GSAP together with the panel on that side.                */
.scrim{position:absolute;top:0;bottom:0;width:64%;pointer-events:none;z-index:5;opacity:0}
.scrim--left{left:0;background:linear-gradient(to right,
  rgba(11,11,11,.92) 0%,rgba(11,11,11,.8) 30%,rgba(11,11,11,.45) 62%,rgba(11,11,11,0) 100%)}
.scrim--right{right:0;background:linear-gradient(to left,
  rgba(11,11,11,.92) 0%,rgba(11,11,11,.8) 30%,rgba(11,11,11,.45) 62%,rgba(11,11,11,0) 100%)}

/* The hero sits over bright daylight, so it needs a base too — but a boxed
   gradient behind the words reads as a visible blob. This one is full-bleed
   and has no edge inside the frame; it fades out with the hero copy.      */
.scrim--hero{
  left:0;width:100%;
  background:
    /* a soft full-width band behind the copy: no left/right edge to see,
       only a vertical fade — darker where the words sit over the sign    */
    linear-gradient(to bottom,
      rgba(11,11,11,0) 30%, rgba(11,11,11,.42) 44%,
      rgba(11,11,11,.42) 66%, rgba(11,11,11,0) 80%),
    linear-gradient(to bottom,
      rgba(11,11,11,.58) 0%, rgba(11,11,11,.44) 26%, rgba(11,11,11,.36) 50%,
      rgba(11,11,11,.44) 74%, rgba(11,11,11,.66) 100%);
}

/* ---------- panels ---------- */
.panel{
  position:absolute;top:50%;z-index:10;
  width:min(440px,80vw);will-change:transform,opacity;
}
.panel--left{left:clamp(16px,6vw,90px)}
.panel--right{right:clamp(16px,6vw,90px)}
.panel h2{
  font-family:var(--serif);font-weight:400;
  font-size:clamp(34px,4.8vw,58px);line-height:1;margin:0 0 18px;
  letter-spacing:-.01em;
  text-shadow:0 1px 2px rgba(11,11,11,.9),0 2px 18px rgba(11,11,11,.8);
}
.panel p{
  font-size:clamp(14px,1.15vw,16px);line-height:1.65;color:var(--soft);margin:0;
  text-shadow:0 1px 2px rgba(11,11,11,.95),0 1px 14px rgba(11,11,11,.85);
  max-width:38ch;
}
.panel__cta{
  display:inline-block;margin-top:24px;color:var(--ink);text-decoration:none;
  font-size:13px;letter-spacing:.14em;border-bottom:1px solid var(--dim);padding-bottom:4px;
  transition:border-color .3s;
}
.panel__cta:hover{border-color:var(--ink)}
.panel__ctas{display:flex;gap:26px}

/* hero */
.panel--hero{
  left:50%;top:40%;text-align:center;width:min(1100px,92vw);
  padding:0 clamp(16px,5vw,64px);
}
/* The mark is the hero; the line sits under it. */
.hero__mark{
  display:block;margin:0 auto;
  width:clamp(120px,min(18vw,22vh),220px);height:auto;   /* shrinks on short screens too */
  filter:drop-shadow(0 4px 28px rgba(11,11,11,.55));
}
.panel--hero h1{
  font-family:var(--serif);font-weight:400;
  font-size:clamp(30px,4.4vw,56px);line-height:1.05;margin:32px 0 0;letter-spacing:-.02em;
  text-shadow:0 2px 24px rgba(11,11,11,.6);
}
.panel--hero .hero__sub{
  margin:20px auto 0;max-width:44ch;color:var(--ink);
  font-size:clamp(15px,1.3vw,18px);line-height:1.55;
  text-shadow:0 1px 2px rgba(11,11,11,.95),0 2px 16px rgba(11,11,11,.9);
}
.hero__contact{margin-top:30px;display:flex;flex-direction:column;align-items:center;gap:12px}
.hero__label{font-size:11px;letter-spacing:.34em;text-transform:uppercase;color:var(--soft);padding-left:.34em;
  text-shadow:0 1px 2px rgba(11,11,11,.95),0 1px 12px rgba(11,11,11,.9)}
.hero__buttons{display:flex;flex-wrap:wrap;justify-content:center;gap:10px}
.hero__btn{
  color:var(--ink);text-decoration:none;font-size:13px;letter-spacing:.1em;
  border:1px solid rgba(239,236,230,.5);border-radius:999px;padding:12px 22px;
  background:rgba(11,11,11,.55);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);
  min-width:190px;text-align:center;
  transition:border-color .3s,background .3s;
}
.hero__btn:hover{border-color:var(--ink);background:rgba(11,11,11,.75)}
/* the scroll cue sits at the bottom of the frame, clear of the car */
.hero__scroll{
  position:absolute;left:0;right:0;bottom:clamp(20px,4vh,40px);z-index:10;text-align:center;
  font-size:11px;letter-spacing:.38em;color:var(--soft);
  animation:pulse 2.6s ease-in-out infinite;padding-left:.38em;text-transform:uppercase;
}
@keyframes pulse{0%,100%{opacity:.35}50%{opacity:1}}

/* ---------- prints (real, from the archive) ---------- */
/* ---------- end layers ----------------------------------------------
   The page never scrolls past the video. After the last frame (the table
   of prints) a dark veil comes up over it, then the past prints fade in,
   then give way to the footer — all inside the pinned scene, driven by
   the same timeline (app.js, "end layers").                             */
.scrim--end{left:0;width:100%;z-index:11;background:rgba(11,11,11,.86)}
.layer{
  position:absolute;inset:0;z-index:12;
  display:flex;flex-direction:column;justify-content:center;
  padding:clamp(96px,13vh,130px) clamp(16px,6vw,90px) clamp(28px,6vh,64px);
  opacity:0;visibility:hidden;
}
.prints__head{
  display:flex;align-items:flex-end;justify-content:space-between;gap:24px;
  margin:0 0 clamp(28px,3.5vw,48px);
}
.prints__head h2{
  font-family:var(--serif);font-weight:400;font-size:clamp(28px,4vw,48px);
  line-height:1.05;margin:0;letter-spacing:-.01em;
}
.prints__date{display:block;font-size:11px;letter-spacing:.34em;color:var(--dim);margin-top:18px;text-transform:uppercase}
.prints__nav{display:flex;gap:8px;flex:none}
.prints__btn{
  width:40px;height:40px;border-radius:50%;border:1px solid var(--edge);background:none;
  color:var(--dim);font-size:15px;cursor:pointer;transition:color .3s,border-color .3s,opacity .3s;
}
.prints__btn:hover{color:var(--ink);border-color:var(--dim)}
.prints__btn:disabled{opacity:.25;cursor:default}

/* One row, scrolled sideways. The row bleeds to the page edges; its padding
   lines the first card up with the heading.                               */
.prints__row{
  --gutter:clamp(16px,6vw,90px);
  display:flex;gap:clamp(18px,2.4vw,36px);
  overflow-x:auto;overscroll-behavior-x:contain;
  scroll-snap-type:x mandatory;scroll-padding-left:var(--gutter);
  margin:0 calc(-1 * var(--gutter));padding:6px var(--gutter) 30px;
  scrollbar-width:none;
}
.prints__row::-webkit-scrollbar{display:none}

/* Each photo as an Instax Mini: card 54 × 86 mm, image 46 × 62 mm —
   4 mm sides, 6.5 mm top, the thick 17.5 mm margin at the bottom where the
   caption sits. Every card is the same size; photos are cropped to fit.  */
.print{
  --w:clamp(200px,21vw,290px);           /* margins derive from this, not from %: */
  flex:0 0 auto;width:var(--w);margin:0;  /* % padding resolves against the row    */
  scroll-snap-align:start;
  background:var(--ink);
  /* 6.5 mm top · 4 mm sides · 17.5 mm bottom, as fractions of the 54 mm card */
  padding:calc(var(--w) * .12) calc(var(--w) * .074) calc(var(--w) * .324);
  box-shadow:0 1px 2px rgba(0,0,0,.45),0 14px 32px rgba(0,0,0,.4);
  cursor:zoom-in;outline:none;
  transition:transform .35s cubic-bezier(.2,.7,.2,1),box-shadow .35s;
}
.print:hover,.print:focus-visible{transform:translateY(-4px);
  box-shadow:0 1px 2px rgba(0,0,0,.45),0 20px 40px rgba(0,0,0,.5)}
.print:focus-visible{box-shadow:0 0 0 2px var(--dim),0 20px 40px rgba(0,0,0,.5)}
/* inside the pinned scene the whole section must fit one screen, so the
   card also shrinks with viewport height (450px ≈ heading + gaps + link + footer strip) */
#prints .print{--w:min(clamp(200px,21vw,290px), calc((100svh - 450px) * 54 / 86))}
.print__photo{aspect-ratio:46/62;overflow:hidden;background:#1c1b19}
.print__photo img{display:block;width:100%;height:100%;object-fit:cover;filter:saturate(.9)}

/* ---------- lightbox: one print, as large as the screen allows --------- */
#lightbox{
  position:fixed;inset:0;z-index:300;
  display:flex;align-items:center;justify-content:center;
  background:rgba(8,8,8,.94);cursor:zoom-out;
  opacity:0;transition:opacity .35s ease;
  overscroll-behavior:contain;touch-action:pan-y;
}
#lightbox[hidden]{display:none}
#lightbox.is-open{opacity:1}
.lightbox__stage .print{
  /* fit the whole card — border included — inside the viewport */
  --w:min(88vw, calc(88svh * 54 / 86));
  cursor:zoom-out;transform:scale(.96);transition:transform .45s cubic-bezier(.2,.7,.2,1);
  box-shadow:0 30px 80px rgba(0,0,0,.6);
}
.lightbox__stage .print:hover{transform:scale(.96)}
#lightbox.is-open .lightbox__stage .print{transform:none}
.lightbox__stage .print__photo img{filter:none}
.lightbox__close{
  position:absolute;top:clamp(12px,3vw,28px);right:clamp(12px,3vw,28px);
  width:44px;height:44px;border-radius:50%;border:1px solid var(--edge);background:none;
  color:var(--dim);font-size:24px;line-height:1;cursor:pointer;transition:color .3s,border-color .3s;
}
.lightbox__close:hover{color:var(--ink);border-color:var(--dim)}
.prints__more{
  display:inline-block;align-self:flex-start;margin-top:clamp(18px,2.4vw,28px);
  font-size:11px;letter-spacing:.14em;color:var(--dim);text-decoration:none;
  border-bottom:1px solid var(--edge);padding-bottom:3px;transition:color .3s,border-color .3s;
}
.prints__more span{margin-right:.4em}
.prints__more:hover{color:var(--ink);border-color:var(--dim)}

/* ---------- outro: a slim strip under the prints, same page ----------
   mark · line · meta on one row, the demo note underneath.             */
#end{justify-content:space-between;padding-bottom:clamp(16px,3vh,30px)}
#prints{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;justify-content:center}
.outro__inner{
  display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px 18px;
  border-top:1px solid var(--edge);padding-top:clamp(12px,2.2vh,20px);
}
.outro__mark{display:block;width:40px;height:40px;filter:grayscale(1);opacity:.92}
.outro__line{
  font-family:var(--serif);font-weight:400;margin:0;
  font-size:clamp(17px,1.6vw,22px);line-height:1.2;letter-spacing:-.01em;
}
.outro__meta{
  display:flex;gap:clamp(12px,2.2vw,32px);flex-wrap:wrap;justify-self:end;
  font-size:10px;letter-spacing:.22em;color:var(--dim);text-transform:uppercase;
}
.outro__meta a{text-decoration:none;text-transform:none}
.outro__meta a:hover{color:var(--ink)}
.outro__note{grid-column:1/-1;margin:0;font-size:10px;color:var(--mute);letter-spacing:.04em;line-height:1.5}
.outro__note a{color:var(--dim);text-decoration:none;border-bottom:1px solid var(--edge)}
.outro__note a:hover{color:var(--ink)}

/* ---------- progress ---------- */
#progress{position:fixed;left:0;right:0;bottom:0;height:1px;background:rgba(239,236,230,.08);z-index:110}
#progressFill{width:0;height:100%;background:var(--ink);opacity:.7}

/* ---------- mobile ---------- */
@media (max-width:760px){
  .panel{width:min(420px,86vw)}
  .panel--hero{top:42%;padding:0 16px}
  .hero__mark{width:clamp(120px,min(42vw,22vh),200px)}
  .panel--hero h1{font-size:clamp(30px,8vw,44px);margin-top:26px}
  .panel--left,.panel--right{left:clamp(16px,7vw,90px);right:auto}
  .panel p{max-width:none}
  .cta{display:none}
  .prints__nav{display:none}          /* swipe does the job on touch */
  #prints .print{--w:min(62vw, calc((100svh - 520px) * 54 / 86))}
  .outro__inner{grid-template-columns:auto 1fr;gap:8px 14px}
  .outro__meta{grid-column:1/-1;justify-self:start}
}
@media (prefers-reduced-motion:reduce){
  .hero__scroll{animation:none}
}

/* ?debug scroll readout */
#debug{position:fixed;left:12px;bottom:14px;z-index:9999;padding:6px 10px;border-radius:4px;
  background:rgba(0,0,0,.75);color:#fff;font:600 14px/1.2 ui-monospace,Menlo,monospace;pointer-events:none}
