/* Subsonic - Frequencies album launch. subsonic-frequencies.com (Louder, 1 Dec 2026).

   The artwork is rebuilt as the page, nothing boxed. Pieces come from the designer's layered PSDs
   (BANNER 3840x2160 + STORY 2160x3840): the portrait layer on black with its two Texture layers,
   graded to the flat by a fitted per-channel curve and every edge dissolved to black
   (/root/subsonic-art/tools/build_plate.py + build_site_images.py); the type lockup and the
   horizontal smear bars are the PSD's own layers.

   Palette, sampled from the graded plate:
     ground   #000000  (plate black, edges dissolve to it)
     glow     #E3E1F2  (the white of the light band; all text)
     violet   #B58BF0  (the hair trails, lifted until it carries text on black: 8.0:1)
     indigo   #2B3875  (the lower trails)
   Type: Jost (OFL), the nearest free face to the artwork's geometric caps. The art sets the
   venue light and wide-tracked and the city bold, so titles and show tiles do the same.

   Layouts:
     stacked (default)   phones, tablets, squarish windows: portrait on top, short lockup, panel
     two-up              >=1100 wide, >=5/4, taller than 520: lockup | portrait | panel
     landscape phones    >=640 wide, >=5/4, 520 or shorter: portrait + lockup left, panel right
*/

@font-face {
  font-family: "Jost";
  src: url("/assets/fonts/Jost-var.woff2?v=20261201-6") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ground: #000;
  --ink: #E3E1F2;
  --ink-2: rgba(227, 225, 242, .74);
  --line: rgba(227, 225, 242, .2);
  --violet: #B58BF0;
  --violet-deep: #7C4FC4;
  --indigo: #2B3875;
  --field: #0C0C14;             /* OPAQUE on purpose: the autofill rule paints this exact colour */
  --danger: #FFB48A;
  --gold-hi: var(--violet);      /* engine alias used by the phone-field block */
  --font: "Jost", "Century Gothic", "Avenir Next", Futura, "Helvetica Neue", Arial, sans-serif;
  --fig-w: min(132vw, 760px);
  --foot: 56px;
}

*, *::before, *::after { box-sizing: border-box; }

/* html carries the ground; body stays transparent (an opaque body would paint over the scene). */
/* overflow-x on the root as well as .page: phones could still pan sideways with .page alone
   (Adam, 1 Dec 2026). Root only, never body, or body becomes its own scroller. */
html { background: var(--ground); color: var(--ink); -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; }
[hidden] { display: none !important; }

.page {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-x: clip;
}

/* ================= SCENE (the portrait) ================= */
/* Phones: absolute, so the portrait scrolls away with the page and Safari's toolbar never
   shows a bar of ground under a fixed layer. The two-up switches it to fixed. */
.scene {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: calc(var(--fig-w) * 1.02);
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.scene__fig {
  position: absolute;
  left: 50%;
  top: 0;
  width: var(--fig-w);
  aspect-ratio: 1600 / 1621;
  /* phones: the hair starts at the top of the page (Adam, 1 Dec 2026) */
  transform: translate(-50%, -16%);
}
.scene__img,
.scene__gl {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.scene__gl { opacity: 0; transition: opacity .9s ease; }
.scene__gl.is-live { opacity: 1; }
.scene__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 52%, rgba(0, 0, 0, .78) 82%, #000 100%);
}

/* Film grain, as on the artwork. Above everything, never interactive. */
.grain {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: url("/assets/images/grain.png?v=20261201-6") 0 0 / 160px 160px;
  opacity: .055;
}

/* ================= STAGE ================= */
.stage {
  position: relative;
  z-index: 1;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 16px 34px;
}

/* the chin ends at about .55 of the figure width once it is raised; the logo starts clear below it */
/* Full-bleed and clipped: the smear bars are wider than the lockup (116vw on a phone), so they
   are cut at the screen edge here instead of widening the page. */
.bill { margin: calc(var(--fig-w) * .60) -16px 0; width: calc(100% + 32px); display: flex; justify-content: center; overflow: hidden; }
.bill__lock { position: relative; width: min(78vw, 430px); }
.bill__h1 { margin: 0; position: relative; }
.bill__art { display: block; width: 100%; height: auto; }
.bill__art--full { display: none; }

/* The PSD's smear bars: wider than the lockup, as drawn. One image serves both lockups because
   it is pinned to the top and sized by width. */
.bill__smear {
  position: absolute;
  pointer-events: none;
  background: url("/assets/images/smear.webp?v=20261201-6") top center / 100% auto no-repeat;
}
.bill__smear {
  left: -24.9%;
  width: 148.5%;
  top: 0;
  height: 100%;
  opacity: .36;
  transform-origin: 50% 50%;
}

/* ================= PANEL ================= */
.signup { width: 100%; max-width: 440px; margin-top: 26px; }

.panel {
  position: relative;
  isolation: isolate;
  background: rgba(3, 3, 7, .68);
  -webkit-backdrop-filter: blur(22px) saturate(1.25);
          backdrop-filter: blur(22px) saturate(1.25);
  border: 1px solid rgba(227, 225, 242, .16);
  border-radius: 3px;
  box-shadow: 0 34px 90px -34px rgba(0, 0, 0, .95), 0 0 70px -30px rgba(124, 79, 196, .55);
}
.panel__inner { position: relative; padding: 30px 26px 28px; }

.panel__state { display: none; }
.panel[data-form-state="idle"] .panel__idle,
.panel[data-form-state="otp"] .panel__otp,
.panel[data-form-state="success"] .panel__success { display: block; }

/* Title: the artwork's own hierarchy. First line light and wide (as NUMBER 90),
   second bold (as LONDON). */
.panel__title {
  margin: 0 0 14px;
  font-size: clamp(25px, 6.6vw, 31px);
  line-height: 1.14;
  font-weight: 300;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-wrap: balance;
  color: var(--ink);
}
.panel__title em { font-style: normal; font-weight: 700; letter-spacing: .17em; color: #fff; }

.panel__lede { margin: 0 0 18px; font-size: 15.5px; line-height: 1.5; color: var(--ink-2); max-width: 44ch; }
.panel__lede--small { font-size: 13.5px; }
.panel__success-note { margin: 0 0 12px; font-size: 14px; color: var(--violet); }

/* the artwork's dotted rule, between the words and the form */
.form { margin: 0; padding-top: 18px; border-top: 2px dotted rgba(181, 139, 240, .5); }

/* ---- show picker ---- */
.shows { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
.shows__legend {
  padding: 0;
  margin: 0 0 9px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink);
}
.shows__legend span { margin-left: 6px; font-weight: 400; letter-spacing: .01em; text-transform: none; font-size: 13.5px; color: var(--ink-2); }
.shows__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.show { position: relative; display: block; min-width: 0; }
.show__box {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}
.show__face {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  height: 100%;
  padding: 15px 8px 13px;
  text-align: center;
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 2px;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.show__city { font-size: 16px; font-weight: 700; letter-spacing: .2em; margin-right: -.2em; text-transform: uppercase; color: #fff; }
.show__date { font-size: 13.5px; font-weight: 500; letter-spacing: .05em; color: var(--ink); }
.show__venue { font-size: 11px; font-weight: 400; letter-spacing: .16em; margin-right: -.16em; text-transform: uppercase; color: var(--ink-2); }
.show__tick {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 15px;
  height: 15px;
  border: 1px solid rgba(227, 225, 242, .42);
  border-radius: 50%;
}
.show:hover .show__face { border-color: rgba(227, 225, 242, .5); }
.show__box:checked + .show__face {
  border-color: var(--violet);
  background: linear-gradient(180deg, rgba(150, 96, 214, .36), rgba(43, 56, 117, .4)) var(--field);
  box-shadow: 0 0 0 1px var(--violet), 0 0 30px -6px rgba(181, 139, 240, .85);
}
.show__box:checked + .show__face .show__tick {
  border-color: #fff;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15 15'%3E%3Cpath d='M3.6 7.8l2.5 2.5 5.2-5.6' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.show__box:focus-visible + .show__face { outline: 2px solid #fff; outline-offset: 3px; }
.shows.is-invalid .show__face { border-color: var(--danger); }

/* ---- fields ---- */
.form__row { margin: 0 0 12px; }
.form__label { display: block; margin: 0 0 5px; font-size: 12.5px; letter-spacing: .04em; color: var(--ink-2); }
.form__input {
  display: block;
  width: 100%;
  margin: 0;
  padding: 13px 14px;
  font: 400 16px/1.25 var(--font);
  color: var(--ink);
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 2px;
  -webkit-appearance: none;
          appearance: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form__input::placeholder { color: rgba(227, 225, 242, .5); opacity: 1; }
.form__input:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(181, 139, 240, .3); }
.form__input--otp { text-align: center; font-size: 24px; font-weight: 600; letter-spacing: .42em; padding-left: calc(14px + .42em); }

/* Chrome paints autofilled inputs pale lavender and IGNORES background on
   :-webkit-autofill; a huge inset box-shadow is the only override. It must be the
   field's exact colour, which is why --field is opaque. */
.form__input:-webkit-autofill,
.form__input:-webkit-autofill:hover,
.form__input:-webkit-autofill:focus,
.form__input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #0C0C14 inset !important;
          box-shadow: 0 0 0 1000px #0C0C14 inset !important;
  -webkit-text-fill-color: #E3E1F2 !important;
  caret-color: #E3E1F2;
  transition: background-color 9999s ease-in-out 0s;
}

.form__error { margin: 7px 0 0; font-size: 13px; color: var(--danger); }
.form__error--global { margin-top: 14px; }

/* Honeypot. display:none ONLY: off-screen positioning stays an autofill
   target in Chrome/Edge and silently blocks real sign-ups. */
.hp-row { display: none !important; }

.form__row--check { margin: 16px 0 18px; }
.form__check { display: flex; align-items: flex-start; gap: 11px; font-size: 13.5px; line-height: 1.45; color: var(--ink); cursor: pointer; }
.form__check input { flex: 0 0 auto; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--violet); cursor: pointer; }
.form__note { margin: 9px 0 0 29px; font-size: 12.5px; line-height: 1.5; color: var(--ink-2); }
.form__note a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.form__note a:hover { color: var(--violet); }

.form__resend { margin: 14px 0 0; font-size: 13.5px; color: var(--ink-2); text-align: center; }
.form__resend-btn {
  padding: 0;
  font: inherit;
  color: var(--ink);
  background: none;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.form__resend-btn:hover { color: var(--violet); }
.form__resend-btn:disabled { color: var(--ink-2); cursor: default; text-decoration: none; }

/* ---- buttons ---- */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  padding: 10px 18px;
  font: 600 15px/1.2 var(--font);
  letter-spacing: .24em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color .15s ease, box-shadow .2s ease, transform .1s ease;
}
.btn__text { margin-right: -.24em; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: default; }
.btn--primary { color: #050508; background: #EFEDFA; }
.btn--primary:hover:not(:disabled),
.btn--primary:focus-visible { color: #050508; background: #fff; box-shadow: 0 0 38px -4px rgba(181, 139, 240, .95); }
.btn:focus { outline: none; }
.btn:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }
.form__resend-btn:focus-visible,
.form__check input:focus-visible,
.form__note a:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }

.wa-hook { margin: 20px 0 10px; padding-top: 18px; border-top: 2px dotted rgba(181, 139, 240, .5); font-size: 14.5px; color: var(--ink); }
.btn--whatsapp { color: #04220F; background: #2BD46A; letter-spacing: .12em; font-size: 14px; }
.btn--whatsapp .btn__text { margin-right: -.12em; }
.btn--whatsapp .btn__icon { flex: 0 0 auto; width: 22px; height: 22px; }
.btn--whatsapp:hover,
.btn--whatsapp:focus-visible { color: #04220F; background: #53E48A; }

/* ---- intl-tel-input ---- */
.iti { width: 100%; display: block; }
.iti input.form__input { padding-left: calc(52px + .7rem); }
.iti__country-container { z-index: 3; }
.iti--inline-dropdown .iti__dropdown-content { z-index: 50; }
/* hidden state lives in the vendor sheet; without this the list flashes open on first paint */
.iti__dropdown-content.iti__hide { display: none !important; }
.iti__dropdown-content {
  background: #0B0B12;
  border: 1px solid rgba(227, 225, 242, .24);
  border-radius: 2px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .7);
  overflow: hidden;
}
/* keep the vendor's horizontal padding: it clears the search and clear icons */
.iti__search-input {
  padding: 10px 30px 10px 32px;
  font: 400 15px var(--font);
  color: var(--ink);
  background: #12121C;
  border: 0;
  border-bottom: 1px solid rgba(227, 225, 242, .16);
  border-radius: 0;
}
.iti__search-input::placeholder { color: rgba(227, 225, 242, .55); }
.iti__search-input:focus { outline: none; }
.iti__search-icon-svg, .iti__search-clear-svg { color: rgba(227, 225, 242, .6); }
.iti__country-list { background: #0B0B12; max-height: 240px; }
.iti__country { padding: 9px 12px; font-family: var(--font); font-size: 14px; color: var(--ink); }
.iti__country:hover,
.iti__country.iti__highlight { background: rgba(181, 139, 240, .22); }
.iti__dial-code { color: var(--ink-2); }
.iti__country-name { color: var(--ink); font-weight: 500; }
.iti__selected-country { border-radius: 2px 0 0 2px; }
.iti__selected-country:hover,
.iti__selected-country-primary:hover { background: rgba(255, 255, 255, .06); }
.iti__selected-dial-code { color: var(--ink); font-family: var(--font); font-size: 15px; padding-right: 2px; }
.iti__arrow { border-top-color: var(--violet); }
.iti__arrow--up { border-bottom-color: var(--violet); }

.signup__logos { display: block; width: 190px; height: auto; margin: 26px auto 0; opacity: .92; }

/* ================= FOOTER (house footer, credit in a pill) ================= */
.foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 24px;
  min-height: var(--foot);
  padding: 11px clamp(16px, 3.4vw, 72px);
  font-size: 12.5px;
  color: var(--ink-2);
  background: rgba(0, 0, 0, .6);
  border-top: 1px solid rgba(227, 225, 242, .1);
}
.foot p { margin: 0; }
.foot__right { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 20px; }
.foot__links a { margin-right: 18px; color: var(--ink-2); text-decoration: none; }
.foot__links a:last-child { margin-right: 0; }
.foot__links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.foot a:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }
.site-built a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  color: var(--ink-2);
  text-decoration: none;
  border: 1px solid rgba(227, 225, 242, .2);
  border-radius: 999px;
  transition: border-color .15s ease, color .15s ease;
}
.site-built a:hover { color: #fff; border-color: var(--violet); }
.site-built img { display: block; width: 64px; height: 14px; opacity: .9; }
@media (max-width: 479px) {
  .foot { flex-direction: column; justify-content: center; text-align: center; padding-top: 16px; padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
  .foot__right { flex-direction: column; }
}

/* ================= TWO-UP: lockup | portrait | panel ================= */
@media (min-width: 1100px) and (min-aspect-ratio: 5/4) and (min-height: 521px) {
  :root {
    --zone: clamp(300px, 29vw, 560px);
    --panel-w: clamp(380px, 28vw, 440px);
    --gut: clamp(24px, 3.4vw, 72px);
    --fig-w: min(122vh, 76vw);
  }
  .scene { position: fixed; inset: 0; height: auto; }
  /* centred in the window left between the lockup and the panel */
  .scene__fig {
    left: calc(var(--gut) + var(--zone) + (100vw - var(--zone) - var(--panel-w) - 2 * var(--gut)) / 2);
    top: calc(50% - var(--foot) / 2);
    transform: translate(-50%, -50%);
  }
  /* as on the banner: the left of the frame is held dark so the type reads, the light stays right */
  .scene__shade {
    background:
      linear-gradient(90deg, #000 0, rgba(0, 0, 0, .9) calc(var(--gut) + var(--zone) * .72), rgba(0, 0, 0, 0) calc(var(--gut) + var(--zone) * 1.34)),
      linear-gradient(180deg, rgba(0, 0, 0, 0) 78%, rgba(0, 0, 0, .7) 100%);
  }
  .stage {
    display: grid;
    grid-template-columns: var(--zone) minmax(0, 1fr) var(--panel-w);
    align-items: center;
    min-height: calc(100vh - var(--foot));
    padding: 26px var(--gut);
  }
  .bill { grid-column: 1; margin: 0; width: 100%; overflow: visible; }
  /* lockup is 1100x1157: cap its width so its height always fits the window */
  .bill__lock { width: min(100%, calc((100vh - var(--foot) - 120px) * .95)); }
  .bill__art--full { display: block; }
  .bill__art--head { display: none; }
  .signup { grid-column: 3; margin: 0; max-width: none; width: 100%; }
  .signup__logos { display: none; }
  .panel__title { font-size: clamp(26px, 2.05vw, 32px); }
  .foot { background: rgba(0, 0, 0, .72); }
}
/* short laptops: tighten the panel so it clears the fold where it can */
@media (min-width: 1100px) and (min-aspect-ratio: 5/4) and (min-height: 521px) and (max-height: 800px) {
  .stage { padding-top: 16px; padding-bottom: 16px; }
  .panel__inner { padding: 22px 24px 20px; }
  .panel__title { font-size: 25px; margin-bottom: 10px; }
  .panel__lede { font-size: 14.5px; margin-bottom: 13px; }
  .form { padding-top: 13px; }
  .shows { margin-bottom: 10px; }
  .show__face { padding: 12px 8px 10px; }
  .form__row { margin-bottom: 9px; }
  .form__label { margin-bottom: 3px; }
  .form__input { padding-top: 11px; padding-bottom: 11px; }
  .form__row--check { margin: 11px 0 12px; }
  .form__check { font-size: 13px; }
  .btn { min-height: 48px; }
}

/* ================= LANDSCAPE PHONES ================= */
/* After the two-up so it wins at equal specificity. */
@media (min-width: 640px) and (min-aspect-ratio: 5/4) and (max-height: 520px) {
  :root { --fig-w: 150vh; }
  .scene { position: fixed; inset: 0; height: auto; }
  .scene__fig { left: 27%; top: 44%; transform: translate(-50%, -50%); }
  .scene__shade { background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .8) 100%); }
  .stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr) min(390px, 50vw);
    align-items: start;
    gap: 0 20px;
    padding: 14px max(18px, env(safe-area-inset-right)) 18px max(18px, env(safe-area-inset-left));
  }
  .bill {
    grid-column: 1;
    position: sticky;
    top: 14px;
    margin: 0;
    width: 100%;
    height: calc(100vh - 28px);
    align-items: flex-end;
  }
  .bill__lock { width: min(84%, 320px); margin-bottom: 8px; }
  .signup { grid-column: 2; margin: 0; max-width: none; }
  .panel__inner { padding: 20px 18px 18px; }
  .panel__title { font-size: 22px; margin-bottom: 8px; }
  .panel__lede { font-size: 14px; margin-bottom: 12px; }
  .form { padding-top: 12px; }
  .form__row { margin-bottom: 9px; }
  .form__input { padding-top: 11px; padding-bottom: 11px; }
  .btn { min-height: 48px; }
  .signup__logos { width: 150px; margin-top: 16px; }
}

/* small phones */
@media (max-width: 360px) {
  .panel__inner { padding: 24px 18px 22px; }
  .show__city { font-size: 14.5px; letter-spacing: .16em; margin-right: -.16em; }
  .show__venue { font-size: 10px; letter-spacing: .1em; margin-right: -.1em; }
  .btn { letter-spacing: .18em; }
}

/* ================= MOTION ================= */
/* One load moment: the bars sweep in, the lockup tunes in from a horizontal smear, the panel
   follows. Opacity and transform only (a held `visibility` keyframe is unreliable). After that
   the only movement is the light veins on the face, drawn by scene.js. */
@keyframes sf-sweep { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes sf-tune {
  0%   { opacity: 0; transform: scaleX(1.22); filter: blur(12px); }
  60%  { opacity: 1; }
  100% { opacity: 1; transform: none; filter: none; }
}
@keyframes sf-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

html.motion .bill__smear { animation: sf-sweep .9s cubic-bezier(.2, .7, .1, 1) both; }
html.motion .bill__h1 { animation: sf-tune 1.05s .12s cubic-bezier(.2, .7, .1, 1) both; }
html.motion .panel { animation: sf-rise .7s .3s cubic-bezier(.2, .7, .1, 1) both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .scene__gl { display: none; }
}
