/* Pixie Beam — night-black gallery wall, the old site's aqua + lime pills, honeycomb galleries */
:root {
  --ink: #050508;        /* page */
  --panel: #0e1016;      /* raised surfaces */
  --line: #222632;
  --fg: #e8f6f6;
  --muted: #93a7ab;
  --aqua: #89f0f0;       /* from the Wix buttons */
  --lime: #92ff5f;       /* active / call to action */
  --magenta: #ff52d9;    /* glitch offset */
  --purple: #c45cff;     /* the Pixie Beam name, everywhere */
  --display: "Avenida", "Federo", "Avenir Next Condensed", "Arial Narrow", sans-serif;
  --body: var(--display);
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--fg); font: 400 1.0625rem/1.65 var(--body); }
img, video { max-width: 100%; display: block; }
a { color: var(--aqua); text-underline-offset: 3px; }
a:hover { color: var(--lime); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.1; text-wrap: balance; margin: 0; }
.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--lime); color: #000; padding: 8px 14px; border-radius: 999px; z-index: 50; }
.skip:focus { left: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- header ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 21; background: var(--ink); }
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgb(5 5 8 / .82); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border-bottom: 1px solid var(--line); }
.head-inner { max-width: 1280px; margin-inline: auto; padding: 14px var(--gutter-r) 16px var(--gutter); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.brand { font-family: var(--display); font-size: clamp(1.7rem, 3vw, 2.2rem); letter-spacing: .04em; color: var(--purple); text-decoration: none; white-space: nowrap; text-shadow: 0 0 18px rgb(196 92 255 / .45); }
.brand:hover { color: #dd9bff; }
.site-head .social { margin-right: auto; }
.site-nav { order: 3; width: 100%; }
.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; margin: 0; padding: 0; }
.site-nav ul a {
  display: block; padding: 6px 18px; border-radius: 999px; text-decoration: none; white-space: nowrap;
  font-family: var(--display); font-size: 1.05rem; letter-spacing: .05em; color: #04161a;
  background: linear-gradient(180deg, #d9ffff 0%, var(--aqua) 48%, #5fd6d8 52%, #9ff7f7 100%);
  box-shadow: inset 0 -1px 0 rgb(0 0 0 / .25), 0 0 0 1px rgb(137 240 240 / .25);
  transition: transform .15s, box-shadow .2s;
}
.site-nav ul a:hover { transform: translateY(-1px); box-shadow: 0 0 18px rgb(137 240 240 / .45); color: #04161a; }
.site-nav ul a[aria-current="page"] { background: linear-gradient(180deg, #e6ffd6 0%, var(--lime) 48%, #6fe23a 52%, #b5ff8f 100%); }
.menu-btn { display: none; background: none; border: 1px solid var(--aqua); color: var(--aqua); border-radius: 999px; padding: 5px 16px; font: 400 .95rem var(--display); letter-spacing: .08em; cursor: pointer; }

@media (max-width: 940px) {
  .menu-btn { display: block; position: relative; z-index: 31; }
  .site-nav { position: fixed; inset: 0; z-index: 30; display: flex; flex-direction: column; justify-content: center;
    padding: calc(80px + env(safe-area-inset-top, 0px)) var(--gutter-r) calc(40px + env(safe-area-inset-bottom, 0px)) var(--gutter);
    background: rgb(5 5 8 / .97); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
  .site-nav.open { opacity: 1; visibility: visible; }
  .site-nav ul { flex-direction: column; align-items: center; gap: 12px; }
  .site-nav ul a { font-size: 1.25rem; padding: 8px 26px; min-width: 220px; text-align: center; }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 420px) { .brand { font-size: 1.45rem; } .site-head .social { gap: 6px; } .site-head .social a { width: 34px; height: 34px; } }

/* ---------- glitch headline (the one loud move) ---------- */
.glitch-title { position: relative; display: inline-block; color: var(--aqua); letter-spacing: .03em; }
.glitch-title::before, .glitch-title::after { content: attr(data-text); position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; }
.glitch-title::before { color: var(--magenta); transform: translate(-2px, 0); opacity: .7; clip-path: inset(0 0 55% 0); }
.glitch-title::after { color: var(--lime); transform: translate(2px, 0); opacity: .55; clip-path: inset(58% 0 0 0); }
@media (prefers-reduced-motion: no-preference) {
  .glitch-title::before { animation: slice 3.2s steps(1) 1 both; }
  .glitch-title::after { animation: slice2 3.2s steps(1) 1 both; }
  .glitch-title:hover::before { animation: slice 1.2s steps(1) infinite; }
  .glitch-title:hover::after { animation: slice2 1.2s steps(1) infinite; }
}
@keyframes slice { 0% { clip-path: inset(10% 0 70% 0); transform: translate(-6px, 0); } 10% { clip-path: inset(60% 0 12% 0); transform: translate(5px, 0); } 20% { clip-path: inset(30% 0 45% 0); transform: translate(-3px, 0); } 30%, 100% { clip-path: inset(0 0 55% 0); transform: translate(-2px, 0); } }
@keyframes slice2 { 0% { clip-path: inset(70% 0 5% 0); transform: translate(6px, 0); } 12% { clip-path: inset(20% 0 60% 0); transform: translate(-5px, 0); } 24% { clip-path: inset(48% 0 30% 0); transform: translate(3px, 0); } 32%, 100% { clip-path: inset(58% 0 0 0); transform: translate(2px, 0); } }

/* ---------- page heads ---------- */
.page-head { padding-top: clamp(28px, 6vw, 64px); padding-bottom: clamp(18px, 3vw, 32px); text-align: center; }
.page-head h1 { font-size: clamp(2rem, 6vw, 3.6rem); }
.lede { max-width: 60ch; margin: 14px auto 0; color: var(--fg); font-size: 1.15rem; letter-spacing: .02em; }

/* ---------- honeycomb ----------
   A grid of 4 × cols quarter-columns; each hexagon spans four. cols is the most hexagons a row
   can hold at this width. site.js packs each gallery into tight, interlocking rows (no stragglers). */
.honey { container-type: inline-size; padding-bottom: clamp(24px, 4vw, 48px); }
.honey-inner {
  --cols: 2; --gap: 5px;
  --hex-w: calc(100cqw / var(--cols) - var(--gap));
  display: grid; grid-template-columns: repeat(calc(var(--cols) * 4), minmax(0, 1fr));
  grid-auto-rows: calc(var(--hex-w) * 1.1547 * .75 + var(--gap) * .866);
  padding-bottom: calc(var(--hex-w) * 1.1547 * .25);
}
.honey-inner > * { grid-column: span 4; }
@container (min-width: 560px) { .honey-inner { --cols: 3; } }
@container (min-width: 880px) { .honey-inner { --cols: 4; } }
@container (min-width: 1150px) { .honey-inner { --cols: 5; } }
.home-honey .honey-inner { --gap: 7px; }
@container (min-width: 1150px) { .home-honey .honey-inner { --cols: 4; } }
.hex {
  position: relative; display: block; justify-self: center;
  width: var(--hex-w); height: calc(var(--hex-w) * 1.1547);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 86.6 100' preserveAspectRatio='none'%3E%3Cpath d='M37.24 3.50Q43.3 0 49.36 3.50L80.54 21.50Q86.6 25 86.60 32.00L86.60 68.00Q86.6 75 80.54 78.50L49.36 96.50Q43.3 100 37.24 96.50L6.06 78.50Q0 75 0.00 68.00L0.00 32.00Q0 25 6.06 21.50Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 86.6 100' preserveAspectRatio='none'%3E%3Cpath d='M37.24 3.50Q43.3 0 49.36 3.50L80.54 21.50Q86.6 25 86.60 32.00L86.60 68.00Q86.6 75 80.54 78.50L49.36 96.50Q43.3 100 37.24 96.50L6.06 78.50Q0 75 0.00 68.00L0.00 32.00Q0 25 6.06 21.50Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  background: var(--c, var(--panel)); overflow: hidden; cursor: zoom-in;
}
.hex img, .hex video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1), filter .3s, opacity .4s; }
.hex video { opacity: 0; }
.hex video.playing { opacity: 1; }
.hex:hover img, .hex:hover video, .hex:focus-visible img { transform: scale(1.06); filter: saturate(1.15) brightness(1.06); }
.hex:focus-visible { outline: none; }
.hex:focus-visible::after { content: ""; position: absolute; inset: 0; background: rgb(146 255 95 / .28); }
.home-honey .hex, .vhex { cursor: pointer; }
.vhex.sound-on::after { content: ""; position: absolute; left: 50%; bottom: 9%; width: 26px; height: 26px; translate: -50% 0; border-radius: 50%; background: rgb(0 0 0 / .55) center / 16px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2392ff5f' stroke-width='2.2'%3E%3Cpath d='M4 9h4l5-4v14l-5-4H4z'/%3E%3Cpath d='M16.5 8.5a5 5 0 0 1 0 7M19 6a8.5 8.5 0 0 1 0 12'/%3E%3C/svg%3E"); }
.hex-label { position: absolute; inset: auto 0 22% 0; text-align: center; font-family: var(--display); font-size: clamp(1rem, 2.4cqw, 1.4rem); letter-spacing: .05em; color: #fff; text-shadow: 0 1px 2px #000, 0 0 14px rgb(0 0 0 / .9); padding: 0 12%; z-index: 2; }
.home-honey .hex::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(transparent 45%, rgb(0 0 0 / .65)); }

/* ---------- lightbox ---------- */
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgb(3 3 6 / .97); color: var(--fg); }
.lightbox::backdrop { background: rgb(0 0 0 / .8); }
.lightbox[open] { display: grid; place-items: center; }
.lb-figure { margin: 0; display: grid; justify-items: center; gap: 10px; padding: calc(56px + env(safe-area-inset-top, 0px)) var(--gutter-r) calc(56px + env(safe-area-inset-bottom, 0px)) var(--gutter); }
.lb-img { max-width: min(94vw, 2560px); max-height: calc(100dvh - 150px); width: auto; height: auto; object-fit: contain; background: var(--c, transparent); transition: opacity .2s; }
.lb-img.loading { opacity: .35; }
.lb-cap { color: var(--muted); font-size: .95rem; text-align: center; max-width: 60ch; }
.lb-cap:empty { display: none; }
.lb-count { position: absolute; top: calc(16px + env(safe-area-inset-top, 0px)); left: calc(var(--gutter) + 4px); margin: 0; color: var(--muted); font-size: .8rem; letter-spacing: .14em; font-variant-numeric: tabular-nums; }
.lb-btn { position: absolute; background: rgb(14 16 22 / .7); color: var(--aqua); border: 1px solid var(--line); width: 48px; height: 48px; border-radius: 50%; font: 300 1.9rem/1 var(--body); cursor: pointer; display: grid; place-items: center; }
.lb-btn:hover { color: var(--ink); background: var(--aqua); }
.lb-close { top: calc(10px + env(safe-area-inset-top, 0px)); right: calc(var(--gutter-r) + 2px); }
.lb-prev { left: calc(var(--gutter) + 2px); top: 50%; translate: 0 -50%; }
.lb-next { right: calc(var(--gutter-r) + 2px); top: 50%; translate: 0 -50%; }
@media (max-width: 640px) { .lb-prev, .lb-next { top: auto; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); translate: none; } }

/* ---------- videos ---------- */
.sound-hint { text-align: center; color: var(--muted); font-size: .9rem; margin: -8px 0 18px; }
.lb-video { max-width: min(96vw, 1600px); max-height: calc(100dvh - 130px); width: auto; height: auto; background: #000; border-radius: 10px; }

/* ---------- home ---------- */
.hero { position: relative; overflow: hidden; display: grid; min-height: min(82vh, 820px); align-items: end; }
.hero-bg { position: absolute; inset: 0; width: 100%; max-width: none; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgb(5 5 8 / .1), rgb(5 5 8 / .25) 70%, var(--ink)); }
.hero-inner { position: relative; z-index: 1; text-align: center; padding-block: 72px 10vh; }
.hero-title { font-size: clamp(3.4rem, 15vw, 9.5rem); color: var(--purple); -webkit-text-stroke: 2px #12001c; paint-order: stroke fill; text-shadow: 0 2px 0 #12001c, 0 0 30px rgb(0 0 0 / .55); }
.hero-sub { font-size: clamp(1.3rem, 3vw, 1.85rem); color: #fff; -webkit-text-stroke: 1px #05000a; paint-order: stroke fill; max-width: 34ch; margin: 14px auto 28px; text-shadow: 0 1px 2px #000, 0 0 14px rgb(0 0 0 / .85); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 0; }
.section-h { font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--aqua); text-align: center; padding-block: 48px 20px; }

/* ---------- buttons ---------- */
.btn { display: inline-block; padding: 11px 26px; border-radius: 999px; background: var(--lime); color: #071300; border: 1px solid var(--lime); text-decoration: none; font: 400 1.05rem var(--display); letter-spacing: .07em; cursor: pointer; transition: box-shadow .2s, transform .15s; }
.btn:hover { color: #071300; box-shadow: 0 0 22px rgb(146 255 95 / .55); transform: translateY(-1px); }
.btn.ghost { background: rgb(5 5 8 / .45); color: var(--aqua); border-color: var(--aqua); }
.btn.ghost:hover { background: var(--aqua); color: #04161a; box-shadow: 0 0 22px rgb(137 240 240 / .5); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(24px, 5vw, 64px); padding-block: 56px 80px; align-items: start; }
.contact > * { min-width: 0; }
.contact h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--aqua); margin-bottom: 14px; }
.contact-copy p { max-width: 42ch; }
.social { display: inline-flex; gap: 12px; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--aqua); border: 1px solid rgb(137 240 240 / .35); transition: color .2s, background .2s, box-shadow .2s; }
.social a:hover { color: #04161a; background: var(--aqua); box-shadow: 0 0 16px rgb(137 240 240 / .45); }
.social svg { width: 20px; height: 20px; }
.contact-form { display: grid; gap: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: clamp(18px, 3vw, 30px); }
.contact-form label { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
.contact-form input, .contact-form textarea, .contact-form select { width: 100%; font: inherit; color: var(--fg); background: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { outline: none; border-color: var(--aqua); box-shadow: 0 0 0 3px rgb(137 240 240 / .2); }
.contact-form .btn { justify-self: start; margin-top: 14px; }
.contact-form .hp { display: none; }
.form-status { margin: 4px 0 0; min-height: 1.5em; font-size: .95rem; }
.form-status.ok { color: var(--lime); }
.form-status.err { color: #ff9b9b; }
@media (max-width: 760px) { .contact { grid-template-columns: 1fr; } }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(24px, 5vw, 64px); align-items: center; padding-block: clamp(32px, 7vw, 88px); }
.about:not(:has(.about-img)) { grid-template-columns: minmax(0, 46rem); justify-content: center; }
.about-img { width: 100%; height: auto; border-radius: 18px; max-height: 80vh; object-fit: cover; }
.about h1 { font-size: clamp(2.2rem, 6vw, 3.8rem); }
.eyebrow { color: var(--lime); font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; margin: 8px 0 20px; }
.about-text p:not(.eyebrow) { font-size: 1.15rem; max-width: 62ch; letter-spacing: .02em; }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); background: var(--panel); }
.foot-inner { max-width: 1240px; margin-inline: auto; padding: 28px var(--gutter-r) calc(28px + env(safe-area-inset-bottom, 0px)) var(--gutter); display: flex; flex-wrap: wrap; gap: 10px 32px; align-items: center; color: var(--muted); font-size: .9rem; }
.foot-inner p { margin: 0; }
.foot-brand { font-family: var(--display); font-size: 1.4rem; color: var(--purple); }
.foot-copy { margin-left: auto !important; }
@media (max-width: 640px) { .foot-copy { margin-left: 0 !important; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
