/* ============================================================
   BOXALMATCH
   ============================================================ */

:root{
  color-scheme: dark;

  --ground:      #000000;
  --surface:     #0c0c0e;
  --surface-2:   #050506;
  --ink:         #ffffff;
  --ink-2:       #a8a8ae;
  --ink-3:       #86868b;
  /* hairlines are decorative; --hair-strong is for the edge of anything you can
     click or type into, where WCAG wants 3:1 against the page */
  --hair:        #2a2a2e;
  --hair-strong: #5a5a63;
  /* Tiles sit on pure black, so a flat near-black fill disappears into the
     page. These are frosted greys instead: a translucent white wash with a
     blur behind it and a lit top edge, which reads as a raised surface. */
  --glass:       rgba(255, 255, 255, 0.055);
  --glass-2:     rgba(255, 255, 255, 0.085);
  --glass-hair:  rgba(255, 255, 255, 0.13);
  --glass-blur:  blur(26px) saturate(150%);
  /* The brand green, sampled from wordmark.png: the logo runs a subtle
     gradient from #00AD17 to #00B81C and this is the flat fill. 7.9:1 on
     black, and 7.9:1 the other way for the black ink on a filled button.
     Hover goes lighter, not darker — the fill carries dark text. */
  --accent:      #00B81C;
  --accent-hov:  #00E623;
  --nav-bg:      rgba(0,0,0,0.72);
  --shadow:      0 4px 24px rgba(0,0,0,0.6);
  --shadow-lg:   0 24px 70px rgba(0,0,0,0.8);
  --r:           18px;
  --r-lg:        28px;
  --maxw:        1060px;
  --wide:        1440px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display",
          "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display: "Instrument Serif", "Iowan Old Style", Georgia,
          "Times New Roman", serif;
}

.tile,
.val, .vcard, .ecard, .ch, .m-tile, .m-event{
  background:var(--glass);
  backdrop-filter:var(--glass-blur);
  -webkit-backdrop-filter:var(--glass-blur);
  border:1px solid var(--glass-hair);
  box-shadow:0 1px 0 rgba(255,255,255,0.06) inset, var(--shadow);
}
.val:hover, .vcard:hover, .ecard:hover, .m-tile:hover, .m-event:hover{
  background:var(--glass-2);
  border-color:rgba(255,255,255,0.2);
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; scroll-padding-top:60px; -webkit-text-size-adjust:100%; }

body{
  margin:0;
  background:var(--ground);
  color:var(--ink);
  font-family:var(--font);
  font-size:17px;
  line-height:1.47;
  letter-spacing:-0.012em;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

img{ max-width:100%; display:block; }

a{ color:var(--accent); text-decoration:none; }
a:hover{ text-decoration:underline; }

:focus-visible{ outline:2px solid var(--accent); outline-offset:3px; border-radius:6px; }

h1,h2,h3{
  margin:0;
  font-weight:600;
  letter-spacing:-0.025em;
  line-height:1.06;
  text-wrap:balance;
}

p{ margin:0; }

.wrap{ max-width:var(--maxw); margin:0 auto; padding:0 22px; }
.wrap-wide{ max-width:var(--wide); margin:0 auto; padding:0 22px; }

/* language switching */
[data-lang="it"] [lang="en"]{ display:none !important; }
[data-lang="en"] [lang="it"]{ display:none !important; }

/* ============================================================
   NAV
   ============================================================ */
.nav{
  position:sticky; top:0; z-index:9000;
  height:48px;
  background:var(--nav-bg);
  backdrop-filter:saturate(180%) blur(20px);
  -webkit-backdrop-filter:saturate(180%) blur(20px);
  border-bottom:1px solid var(--hair);
}
.nav-in{
  max-width:1024px; margin:0 auto; height:100%;
  padding:0 22px;
  display:flex; align-items:center; justify-content:space-between; gap:16px;
}
.nav-logo{
  display:flex; align-items:center; gap:8px;
  font-size:16px; font-weight:600; letter-spacing:-0.02em;
  color:var(--ink);
}
.nav-logo:hover{ text-decoration:none; }
.nav-logo img{ height:15px; width:auto; }

.nav-links{ display:flex; align-items:center; gap:30px; }
.nav-links a{
  font-size:15px; font-weight:400; letter-spacing:-0.01em;
  color:var(--ink); opacity:.85;
}
.nav-links a:hover{ opacity:1; text-decoration:none; }

.nav-right{ display:flex; align-items:center; gap:14px; }

.lang{
  display:inline-flex; align-items:center;
  border:1px solid var(--hair-strong); border-radius:980px;
  overflow:hidden;
}
.lang button{
  border:0; background:transparent; cursor:pointer;
  font-family:inherit; font-size:11px; font-weight:500;
  letter-spacing:.02em;
  color:var(--ink-2);
  padding:4px 10px;
  transition:background .2s,color .2s;
}
.lang button.on{ background:var(--ink); color:var(--ground); }

.burger{
  display:none; background:none; border:0; cursor:pointer;
  width:30px; height:30px; padding:0;
  color:var(--ink);
}
.burger span{
  display:block; width:16px; height:1px; background:currentColor;
  margin:4px auto; transition:transform .3s, opacity .3s;
}
.burger.on span:nth-child(1){ transform:translateY(5px) rotate(45deg); }
.burger.on span:nth-child(2){ opacity:0; }
.burger.on span:nth-child(3){ transform:translateY(-5px) rotate(-45deg); }

/* ============================================================
   SECTION RHYTHM
   ============================================================ */
.sec{ padding:100px 0; }
.sec-tight{ padding:64px 0; }
.sec-head{ text-align:center; margin-bottom:44px; }
.sec-head h2{ font-size:clamp(32px,4.6vw,54px); }
.sec-head p{
  margin-top:14px; font-size:19px; color:var(--ink-2);
  max-width:620px; margin-left:auto; margin-right:auto;
  letter-spacing:-0.01em;
}
.eyebrow{
  display:block;
  font-size:13px; font-weight:600; letter-spacing:.02em;
  color:var(--accent);
  margin-bottom:10px;
}

/* ============================================================
   HERO
   ============================================================ */
.hero{
  min-height:calc(100svh - 48px);
  display:flex; flex-direction:column;
  align-items:center; justify-content:center;
  text-align:center;
  padding:clamp(40px,7vh,78px) 22px clamp(28px,5vh,56px);
  position:relative;
  overflow:hidden;
}
.hero-logo{
  width:clamp(78px,11vw,116px);
  margin:0 auto 30px;
  opacity:0;
  animation:rise .9s cubic-bezier(.2,.7,.3,1) .05s forwards;
}
.hero h1{
  font-size:clamp(44px,8vw,104px);
  font-weight:500;
  letter-spacing:-0.035em;
  line-height:1.02;
  max-width:16ch;
  opacity:0;
  animation:rise .9s cubic-bezier(.2,.7,.3,1) .18s forwards;
}
/* the display serif, set in the soft green, is the whole signature of this
   layout - it needs the optical size bump and the tighter leading to sit on
   the same baseline rhythm as the grotesque around it */
.hero h1 em{
  font-family:var(--font-display);
  font-style:italic;
  font-weight:400;
  color:var(--accent);
  font-size:1.06em;
  letter-spacing:-0.015em;
}
.hero .sub{
  margin-top:22px;
  font-size:clamp(18px,2.1vw,23px);
  color:var(--ink-2);
  max-width:38ch;
  letter-spacing:-0.015em;
  line-height:1.35;
  opacity:0;
  animation:rise .9s cubic-bezier(.2,.7,.3,1) .3s forwards;
}
.hero-cta{
  margin-top:30px;
  display:flex; gap:26px; align-items:center; flex-wrap:wrap; justify-content:center;
  opacity:0;
  animation:rise .9s cubic-bezier(.2,.7,.3,1) .42s forwards;
}

/* ------------------------------------------------------------
   HERO FAN
   A row of event cards turned in 3D so the outer ones recede and
   bleed off both edges. The rotation is decoration only: every card
   is a plain link with a visible name, the row keeps DOM order, and
   hover/focus flattens the card it lands on so nothing is ever read
   at an angle.
   ------------------------------------------------------------ */
.fan{
  margin-top:clamp(30px,5vh,54px);
  width:100vw;
  margin-left:calc(50% - 50vw);
  padding:0 clamp(10px,3vw,40px);
  display:flex; justify-content:center; align-items:center;
  gap:clamp(6px,0.9vw,14px);
  perspective:1500px;
  perspective-origin:50% 50%;
  opacity:0;
  animation:rise 1.1s cubic-bezier(.2,.7,.3,1) .55s forwards;
}
.fan-card{
  position:relative;
  flex:0 0 auto;
  width:clamp(160px,19.5vw,296px);
  aspect-ratio:4/5;
  border-radius:clamp(14px,1.4vw,22px);
  overflow:hidden;
  background:var(--surface);
  box-shadow:var(--shadow-lg);
  transform-style:preserve-3d;
  transition:transform .5s cubic-bezier(.2,.7,.3,1), box-shadow .5s;
}
.fan-card:hover{ text-decoration:none; }
/* The posters are pre-composed at 4:5 (see tools that build
   img/events/portrait): the artwork is whole and the frame around it is grown
   from the image itself, so the card can simply cover with nothing cropped. */
.fan-card img{
  width:100%; height:100%;
  object-fit:cover;
}
.fan-card::after{
  content:"";
  position:absolute; inset:0;
  background:linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,.55) 26%, rgba(0,0,0,0) 58%);
}
.fan-name{
  position:absolute; left:0; right:0; bottom:0;
  z-index:1;
  padding:0 14px 15px;
  font-size:clamp(13px,1.15vw,17px);
  font-weight:600; letter-spacing:-0.02em; line-height:1.2;
  color:#fff;
  text-wrap:balance;
}
.fan-card:nth-child(1){ transform:rotateY(40deg)  translateZ(-40px) scale(.92); z-index:1; }
.fan-card:nth-child(2){ transform:rotateY(22deg)  translateZ(-12px) scale(.97); z-index:2; }
.fan-card:nth-child(3){ transform:none;                                         z-index:3; }
.fan-card:nth-child(4){ transform:rotateY(-22deg) translateZ(-12px) scale(.97); z-index:2; }
.fan-card:nth-child(5){ transform:rotateY(-40deg) translateZ(-40px) scale(.92); z-index:1; }

/* whichever card you point at or tab to comes square-on and to the front,
   so its name is never read through a perspective skew */
.fan-card:hover,
.fan-card:focus-visible{
  transform:translateZ(40px) scale(1.02);
  z-index:9;
}
.fan-card:focus-visible{ outline:2px solid var(--accent); outline-offset:4px; }

@media (max-width:820px){
  /* below the fold width the fan squashes into slivers - drop the 3D and
     let it be an honest scroll rail instead */
  .fan{
    perspective:none;
    justify-content:flex-start;
    overflow-x:auto;
    scroll-snap-type:x mandatory;
    gap:12px;
    padding:4px clamp(16px,6vw,40px) 10px;
    scrollbar-width:none;
  }
  .fan::-webkit-scrollbar{ display:none; }
  .fan-card,
  .fan-card:nth-child(1),.fan-card:nth-child(2),.fan-card:nth-child(3),
  .fan-card:nth-child(4),.fan-card:nth-child(5){
    transform:none;
    width:min(58vw,240px);
    scroll-snap-align:center;
  }
  .fan-card:hover,.fan-card:focus-visible{ transform:none; }
}

@media (prefers-reduced-motion:reduce){
  .fan{ perspective:none; flex-wrap:wrap; }
  .fan-card,
  .fan-card:nth-child(1),.fan-card:nth-child(2),.fan-card:nth-child(3),
  .fan-card:nth-child(4),.fan-card:nth-child(5),
  .fan-card:hover,.fan-card:focus-visible{
    transform:none;
    transition:none;
  }
}

.hero-shot{
  margin-top:58px;
  width:min(940px,100%);
  border-radius:var(--r-lg);
  box-shadow:var(--shadow-lg);
  opacity:0;
  animation:rise 1.1s cubic-bezier(.2,.7,.3,1) .55s forwards;
}

@keyframes rise{
  from{ opacity:0; transform:translateY(22px); }
  to{ opacity:1; transform:none; }
}

/* buttons */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  font-family:inherit; font-size:17px; font-weight:400;
  letter-spacing:-0.01em;
  padding:11px 22px;
  border-radius:980px;
  border:1px solid transparent;
  cursor:pointer;
  transition:background .22s, color .22s, border-color .22s;
}
.btn:hover{ text-decoration:none; }
/* white on the brand green is 1.9:1 - the fill takes black ink */
.btn-fill{ background:var(--accent); color:#000; font-weight:500; }
.btn-fill:hover{ background:var(--accent-hov); }
.btn-line{ border-color:var(--accent); color:var(--accent); background:transparent; }
/* Black ink on the fill, for the same reason .btn-fill takes it:
   white on the brand green is 2.7:1, under the 4.5:1 floor. */
.btn-line:hover{ background:var(--accent); color:#000; }

.lnk{
  font-size:17px; color:var(--accent);
  display:inline-flex; align-items:center; gap:3px;
}
.lnk:hover{ text-decoration:underline; }
.lnk::after{ content:"›"; font-size:1.25em; line-height:1; transform:translateY(-1px); }

/* ============================================================
   ABOUT / STATEMENT
   ============================================================ */
.statement{
  background:var(--surface-2);
}
.statement .big{
  font-size:clamp(26px,3.7vw,44px);
  font-weight:600;
  letter-spacing:-0.028em;
  line-height:1.16;
  max-width:26ch;
  margin:0 auto;
  text-align:center;
}
.statement .big em{
  font-style:normal;
  color:var(--ink-3);
}

.vals{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(210px,1fr));
  gap:14px;
  margin-top:56px;
}
.val{
  border-radius:var(--r);
  padding:26px 24px;
}
.val h3{ font-size:19px; letter-spacing:-0.02em; margin-bottom:7px; }
.val p{ font-size:15px; color:var(--ink-2); line-height:1.45; }

/* ============================================================
   CAROUSEL (shared)
   ============================================================ */
.carousel{ position:relative; }
.rail{
  display:flex; gap:20px;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  scroll-behavior:smooth;
  padding:4px 22px 26px;
  margin:0 -22px;
  -ms-overflow-style:none; scrollbar-width:none;
}
.rail::-webkit-scrollbar{ display:none; }
.rail > *{ scroll-snap-align:center; flex:0 0 auto; }

.arrows{
  display:flex; gap:14px; justify-content:center; align-items:center;
  padding:0 22px; margin-top:2px;
}
.arrow:disabled{ opacity:.3; cursor:default; }

/* Instagram-style position dots. A live control, not decoration: each dot is
   a button that scrolls its slide into view, and the group is a tablist so it
   is reachable from the keyboard. Rails longer than the window show a sliding
   set with the outer dots shrinking, rather than a 12-dot centipede. */
.dots{
  --dot-slot:14px;
  overflow:hidden;
  margin:0 4px;
  max-width:calc(var(--dot-slot) * 7);
}
.dots-track{
  display:flex; align-items:center;
  transition:transform .3s cubic-bezier(.2,.7,.3,1);
}
.dot{
  /* the 14px slot is width + margins, not flex-basis: a basis wider than the
     height would stretch each dot into a pill */
  flex:0 0 7px;
  width:7px; height:7px; padding:0;
  border:0; border-radius:50%;
  background:rgba(255,255,255,0.26);
  cursor:pointer;
  margin:0 3.5px;
  transition:background .25s, transform .25s, opacity .25s;
}
.dot:hover{ background:rgba(255,255,255,0.45); }
.dot.on{ background:var(--accent); transform:scale(1.25); }
.dot.near{ transform:scale(.72); opacity:.75; }
.dot.far{ transform:scale(.45); opacity:.5; }
.dot:focus-visible{ outline:2px solid var(--accent); outline-offset:3px; }
.arrow{
  width:36px; height:36px; border-radius:50%;
  border:0; cursor:pointer;
  background:var(--surface-2);
  color:var(--ink);
  font-size:15px; line-height:1;
  display:flex; align-items:center; justify-content:center;
  transition:background .2s,opacity .2s;
}
.arrow:hover{ background:var(--hair); }
.arrow:disabled{ opacity:.32; cursor:default; }

/* video card */
.vcard{
  width:min(560px,84vw);
  border-radius:var(--r);
  overflow:hidden;
}
.vframe{
  position:relative;
  aspect-ratio:16/9;
  background:#000;
  cursor:pointer;
  overflow:hidden;
}
.vframe img{
  width:100%; height:100%; object-fit:cover;
  transition:transform .6s cubic-bezier(.2,.7,.3,1), opacity .3s;
}
.vframe:hover img{ transform:scale(1.04); }
.vframe iframe{
  position:absolute; inset:0; width:100%; height:100%; border:0;
}
.play{
  position:absolute; inset:0; margin:auto;
  width:66px; height:66px; border-radius:50%;
  background:rgba(0,0,0,.55);
  backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px);
  border:1px solid rgba(255,255,255,.28);
  display:flex; align-items:center; justify-content:center;
  transition:transform .25s, background .25s;
  pointer-events:none;
}
.vframe:hover .play{ transform:scale(1.08); background:rgba(0,0,0,.68); }
.play::before{
  content:""; margin-left:4px;
  border-style:solid;
  border-width:11px 0 11px 18px;
  border-color:transparent transparent transparent #fff;
}
.vmeta{ padding:18px 22px 22px; }
.vmeta .yr{
  font-size:12px; font-weight:600; letter-spacing:.03em;
  color:var(--ink-3);
}
.vmeta h3{ font-size:21px; letter-spacing:-0.022em; margin:5px 0 7px; }
.vmeta p{ font-size:15px; color:var(--ink-2); line-height:1.45; }
.vmeta .links{ margin-top:13px; display:flex; gap:18px; flex-wrap:wrap; }
.vmeta .links a{ font-size:15px; }

/* instagram card */
/* Four posts side by side, not a rail: nothing scrolls, so there is nothing
   to page through and no arrows or dots. */
.ig-grid{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:20px;
  align-items:start;      /* embeds differ in height; don't stretch them */
}
@media (max-width:1080px){ .ig-grid{ grid-template-columns:repeat(2, 1fr); } }
@media (max-width:600px){  .ig-grid{ grid-template-columns:1fr; max-width:400px; margin:0 auto; } }

.igcard{
  /* No tile of its own: the Instagram embed is an opaque card that sizes
     itself, so a glass tile behind it only ever showed as a mismatched frame
     around the edges. The card the visitor sees is the embed. No fixed height
     and no overflow clip either — Instagram sets the iframe height after the
     post loads, and constraining it here cut the caption off. */
  min-width:0;
  display:flex;
  flex-direction:column;
}

/* Instagram's embed is a white card with its own sizing. Its inline
   min-width:326px overflows a narrow column, and its default margin and
   border fight the grid, so those are overridden — the rest is left alone,
   since the iframe is cross-origin and cannot be themed. */
.igcard .instagram-media{
  min-width:0 !important;
  width:100% !important;
  max-width:100% !important;
  margin:0 !important;
  border:0 !important;
  border-radius:var(--r) !important;
  /* lift the white card off the black page rather than letting it float */
  box-shadow:0 10px 34px rgba(0,0,0,0.55) !important;
}

/* what shows while embed.js loads, or if it is blocked outright */
.igcard .instagram-media > a{
  display:flex; align-items:center; justify-content:center;
  min-height:420px; padding:26px;
  border-radius:var(--r);
  background:var(--glass);
  backdrop-filter:var(--glass-blur);
  -webkit-backdrop-filter:var(--glass-blur);
  border:1px solid var(--glass-hair);
  text-align:center; font-size:15px; line-height:1.5;
  color:var(--ink-2);
}
.igcard .instagram-media > a:hover{ color:var(--ink); text-decoration:none; }

.ig-ph{
  text-align:center; padding:26px;
  color:var(--ink-3); font-size:14px; line-height:1.5;
}
.ig-ph .glyph{ font-size:30px; margin-bottom:10px; }

/* ============================================================
   EVENTS GRID
   ============================================================ */
.egrid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(320px,1fr));
  gap:22px;
}
.ecard{
  border-radius:var(--r-lg);
  overflow:hidden;
  display:flex; flex-direction:column;
  transition:transform .35s cubic-bezier(.2,.7,.3,1), box-shadow .35s;
}
.ecard:hover{ transform:translateY(-5px); box-shadow:var(--shadow-lg); }
.ecard .shot{ aspect-ratio:16/9; overflow:hidden; background:var(--surface-2); }
.ecard .shot img{
  width:100%; height:100%; object-fit:cover;
  transition:transform .6s cubic-bezier(.2,.7,.3,1);
}
.ecard:hover .shot img{ transform:scale(1.045); }
.ecard .body{ padding:22px 24px 26px; flex:1; display:flex; flex-direction:column; }
.ecard .yr{
  font-size:12px; font-weight:600; letter-spacing:.03em; color:var(--ink-3);
}
.ecard h3{ font-size:23px; letter-spacing:-0.024em; margin:6px 0 9px; }
.ecard p{ font-size:15px; color:var(--ink-2); line-height:1.47; flex:1; }
.ecard .links{ margin-top:16px; display:flex; gap:18px; flex-wrap:wrap; }
.ecard .links a{ font-size:15px; }

/* ============================================================
   CHANNELS
   ============================================================ */
.channels{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:16px;
}
.ch{
  position:relative;
  border-radius:var(--r-lg);
  padding:38px 30px 34px;
  color:#fff;
  overflow:hidden;
  display:flex; flex-direction:column; gap:6px;
  min-height:190px;
  justify-content:flex-end;
  transition:transform .35s cubic-bezier(.2,.7,.3,1);
}
.ch:hover{ transform:translateY(-5px); text-decoration:none; }
.ch-yt{ background:linear-gradient(150deg,#ff5b5b,#c4302b); }
.ch-ig{ background:linear-gradient(150deg,#f9ce34,#ee2a7b 48%,#6228d7); }
.ch-tw{ background:linear-gradient(150deg,#a970ff,#6441a5); }
/* the brand gradients run through pale yellow and lilac, where the white label
   drops to ~1.6:1. A scrim under the text keeps every card's ink above 7:1
   without flattening the gradient that makes the card recognisable. */
.ch::after{
  content:"";
  position:absolute; inset:0;
  background:linear-gradient(to top, rgba(0,0,0,.72) 0%, rgba(0,0,0,.34) 46%, rgba(0,0,0,.14) 100%);
  pointer-events:none;
}
.ch > *{ position:relative; z-index:1; }
.ch .logo{
  width:34px; height:34px;
  margin-bottom:auto;
  color:#fff;
  filter:drop-shadow(0 2px 6px rgba(0,0,0,0.45));
}
.ch h3{ font-size:24px; letter-spacing:-0.022em; }
.ch span{ font-size:15px; color:rgba(255,255,255,.92); }

/* ============================================================
   JOIN
   ============================================================ */
.join{ background:var(--surface-2); }
.join-box{
  max-width:560px; margin:0 auto; text-align:center;
}
.join-box h2{ font-size:clamp(30px,4.2vw,48px); }
.join-box p{ margin-top:16px; font-size:18px; color:var(--ink-2); }
/* Contact form: two fields side by side, the message across both, the button
   on its own row. */
.jform{
  margin-top:32px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  text-align:left;
}
@media (max-width:560px){ .jform{ grid-template-columns:1fr; } }

.fld{ display:flex; flex-direction:column; gap:7px; }
.fld-wide{ grid-column:1 / -1; }
.fld-lbl{
  font-size:13px; font-weight:500; letter-spacing:-0.005em;
  color:var(--ink-2);
}

.jform input,
.jform textarea{
  width:100%;
  font-family:inherit; font-size:16px;
  padding:12px 16px;
  border-radius:14px;
  border:1px solid var(--hair-strong);
  color:var(--ink);
  background:var(--glass);
  backdrop-filter:var(--glass-blur);
  -webkit-backdrop-filter:var(--glass-blur);
}
.jform textarea{ resize:vertical; min-height:120px; line-height:1.5; }
.jform input::placeholder,
.jform textarea::placeholder{ color:var(--ink-3); }
.jform input:focus,
.jform textarea:focus{ outline:none; border-color:var(--accent); }

.jform .btn{ grid-column:1 / -1; justify-self:center; margin-top:4px; }

.jnote{
  margin-top:16px; font-size:13px; color:var(--ink-3);
  min-height:1.2em;
}

/* ============================================================
   FOOTER
   ============================================================ */
.foot{
  background:var(--surface-2);
  border-top:1px solid var(--hair);
  padding:44px 0 36px;
  font-size:12px; color:var(--ink-2);
}
.foot-in{ max-width:1024px; margin:0 auto; padding:0 22px; }
.foot-cols{
  display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr));
  gap:30px; padding-bottom:26px; border-bottom:1px solid var(--hair);
}
.foot h4{
  font-size:12px; font-weight:600; color:var(--ink); margin:0 0 11px;
  letter-spacing:-0.01em;
}
.foot ul{ list-style:none; margin:0; padding:0; }
.foot li{ margin-bottom:8px; }
.foot a{ color:var(--ink-2); }
.foot a:hover{ color:var(--ink); text-decoration:underline; }
.foot-bot{
  padding-top:20px;
  display:flex; justify-content:space-between; gap:14px; flex-wrap:wrap;
  color:var(--ink-3);
}

/* ============================================================
   LOGO THEME SWAP
   ============================================================ */
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]) .logo-light{ filter:invert(1) brightness(1.6); }
}
:root[data-theme="dark"] .logo-light{ filter:invert(1) brightness(1.6); }

/* ============================================================
   REVEAL ON SCROLL
   ============================================================ */
/* Everything rises a short way and fades as it comes into view. The curve is
   a hard ease-out — most of the travel happens immediately and it settles
   slowly — which is what reads as "fluid" rather than "sliding". --rv-delay
   is set per element by initReveal() so the items in a row arrive one after
   another instead of as a slab. */
.rv{
  opacity:0;
  transform:translateY(24px);
  will-change:opacity, transform;
}
.rv.in{
  opacity:1;
  transform:none;
  transition:opacity .9s cubic-bezier(.16,1,.3,1) var(--rv-delay,0s),
             transform .9s cubic-bezier(.16,1,.3,1) var(--rv-delay,0s);
}
/* once it has arrived, stop paying for the compositing hint */
.rv.done{ will-change:auto; }

/* cards carry a touch of scale as well — the same move, just more of it,
   because a card is a bigger object than a line of type */
.val.rv, .ecard.rv, .ch.rv, .vcard.rv, .igcard.rv, .partner.rv{
  transform:translateY(28px) scale(.985);
}
.val.rv.in, .ecard.rv.in, .ch.rv.in, .vcard.rv.in, .igcard.rv.in, .partner.rv.in{
  transform:none;
}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{
    animation-duration:.001ms !important;
    transition-duration:.001ms !important;
  }
  .rv, .rv.in{ opacity:1 !important; transform:none !important; }
  .hero-logo,.hero h1,.hero .sub,.hero-cta,.hero-shot{ opacity:1; animation:none; }
  html{ scroll-behavior:auto; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width:820px){
  .sec{ padding:76px 0; }
  /* A backdrop-filter on the bar makes it a backdrop root, and the menu panel
     nested inside it can then only sample content painted within the bar —
     which is nothing, so its blur silently did nothing and the page read
     straight through the menu. The bar goes opaque on mobile instead, giving
     the panel a real backdrop to blur. */
  .nav{
    background:rgba(8,8,10,0.97);
    backdrop-filter:none;
    -webkit-backdrop-filter:none;
  }
  .nav-links{
    position:fixed; inset:48px 0 auto 0;
    flex-direction:column; align-items:stretch; gap:0;
    background:rgba(10,10,12,0.72);
    backdrop-filter:blur(30px) saturate(180%);
    -webkit-backdrop-filter:blur(30px) saturate(180%);
    border-bottom:1px solid var(--glass-hair);
    box-shadow:0 1px 0 rgba(255,255,255,0.06) inset, 0 24px 48px rgba(0,0,0,0.6);
    padding:6px 22px 18px;
    display:none;
  }
  .nav-links.open{ display:flex; }
  .nav-links a{
    font-size:17px; padding:13px 0;
    border-bottom:1px solid var(--hair);
  }
  .nav-links a:last-child{ border-bottom:0; }
  .burger{ display:block; }
}

@media (max-width:520px){
  body{ font-size:16px; }
  .sec{ padding:62px 0; }
  .egrid{ grid-template-columns:1fr; }
  .hero{ min-height:auto; padding:52px 22px 64px; }
}

/* ============================================================
   PARTNERS
   One logo today, so the row simply centres it. Add a second
   .partner and initPartners() turns it into a rail with arrows
   and dots — the same carousel the rest of the page uses.
   ============================================================ */
.partners{
  display:flex;
  justify-content:center;
  align-items:stretch;
  gap:20px;
}
.partners.is-rail{
  justify-content:flex-start;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  scroll-behavior:smooth;
  padding:4px 2px 20px;
  scrollbar-width:none;
  -ms-overflow-style:none;
}
.partners.is-rail::-webkit-scrollbar{ display:none; }

.partner{
  flex:0 0 auto;
  width:min(320px,80vw);
  scroll-snap-align:center;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:6px;
  padding:34px 26px 26px;
  border-radius:var(--r-lg);
  text-align:center;
  background:var(--glass);
  backdrop-filter:var(--glass-blur);
  -webkit-backdrop-filter:var(--glass-blur);
  border:1px solid var(--glass-hair);
  box-shadow:0 1px 0 rgba(255,255,255,0.06) inset, var(--shadow);
  transition:transform .35s cubic-bezier(.2,.7,.3,1), background .35s, border-color .35s;
}
a.partner:hover{
  transform:translateY(-5px);
  background:var(--glass-2);
  border-color:rgba(255,255,255,0.2);
  text-decoration:none;
}

/* Shop logos arrive as black artwork on a white canvas. Inverting them here
   leaves a black rectangle on the card, and screen blending does not drop it
   out, because .partner has a backdrop-filter and that isolates the blend —
   so the transparency is baked into the file instead by
   tools/partner_logo.py, and such a logo is marked .plain-logo. The invert
   below is the fallback for a raw black-on-white file dropped straight in. */
.partner img{
  width:auto; max-width:100%; max-height:120px;
  margin-bottom:10px;
  filter:invert(1);
}
.partner.plain-logo img{ filter:none; }

.partner-name{
  font-size:19px; font-weight:600; letter-spacing:-0.02em;
  color:var(--ink);
}
.partner-kind{ font-size:14px; color:var(--ink-2); }

/* The name and kind are the fallback for a card with no logo file yet. When a
   logo does load they would just repeat what it already says, so they step
   aside — the img's alt carries the same words for anyone not seeing it. */
.partner img{ display:block; }
.partner.no-logo img{ display:none; }
.partner:not(.no-logo) .partner-name,
.partner:not(.no-logo) .partner-kind{ display:none; }
.partner.no-logo .partner-name{ font-size:26px; }
