/* Sunrise Sound Collective — split layout */

@font-face{
  font-family: 'Teknaf';
  src: url('fonts/TeknafBold.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root{
  --bg: #08090a;
  --panel: #0c0d0e;
  --raised: #111314;
  --ink: #f4f3ef;
  --ink-2: rgba(244,243,239,.62);
  --ink-3: rgba(244,243,239,.38);
  --line: rgba(244,243,239,.12);
  --pink: #ee2a7b;
  --cyan: #00aeef;
  --font: 'Teknaf', 'Avenir Next', 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.2,.7,.2,1);
}

*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img{ display: block; max-width: 100%; }
a{ color: inherit; text-decoration: none; }
h1,h2,h3{ font-weight: 400; margin: 0; line-height: 1.05; }
p{ margin: 0; }
section{ scroll-margin-top: 0; }
/* motion blur: while the page moves, the sections on screen smear slightly in the direction of travel */
.fx-defs{ position: absolute; width: 0; height: 0; overflow: hidden; }
.is-moving .inview{ filter: url(#mblur); }
.lite-blur.is-moving .inview{ filter: blur(var(--mb, 0px)); }



.layout{ display: grid; grid-template-columns: minmax(340px, 33%) 1fr; }

/* ---------- fixed left panel ---------- */
.panel{
  position: sticky; top: 0;
  height: 100vh; height: 100dvh;
  display: flex; flex-direction: column;
  padding: 40px 40px 36px;
  background: var(--panel);
  border-right: 1px solid var(--line);
  z-index: 20;
}
.wordmark{ width: 100%; max-width: 290px; }
/* email + Instagram, right under the wordmark */
.top-contact{ display: flex; flex-direction: column; gap: 6px; margin-top: 16px; font-size: .82rem; color: var(--ink); }
.top-contact .ci-ico{ color: var(--ink); }
.top-contact a:hover{ color: var(--cyan); }
.top-contact a:hover .ci-ico{ color: var(--cyan); }
.hero-contact{ display: none; }
/* wordmark: a faint pink/cyan split drifts slowly around the white letters */
.wm{ position: relative; display: block; }
.wm img{ position: relative; z-index: 1; display: block; width: 100%; height: auto; }
.wm::before, .wm::after{
  content: ""; position: absolute; inset: 0;
  -webkit-mask: url('assets/wordmark-white.png') center / 100% 100% no-repeat;
  mask: url('assets/wordmark-white.png') center / 100% 100% no-repeat;
  opacity: 1; animation: wmDrift 9s linear infinite;
}
.wm::before{ background: var(--cyan); }
.wm::after{ background: var(--pink); animation-delay: -4.5s; }
@keyframes wmDrift{
  from{ transform: rotate(0deg) translateX(var(--wm-r, 4.5px)) rotate(0deg); }
  to{ transform: rotate(360deg) translateX(var(--wm-r, 4.5px)) rotate(-360deg); }
}
.mini-mark{ display: none; width: 28px; height: 28px; }

.panel-nav{ margin: auto 0; display: flex; flex-direction: column; gap: 4px; }
.panel-nav a{
  display: flex; align-items: center; gap: 14px;
  font-size: clamp(1.3rem, 1.9vw, 1.75rem); white-space: nowrap;
  color: var(--ink-3);
  padding: 4px 0;
  transition: color .25s var(--ease), transform .25s var(--ease);
}
.panel-nav a:hover{ color: var(--ink); transform: translateX(6px); }
.panel-nav a.active{ color: var(--ink); }
/* sidebar bottom: email list + booking pills */
.pill{
  display: inline-flex; align-items: center; padding: 8px 18px 9px; font-size: clamp(1rem, 1.3vw, 1.2rem); white-space: nowrap;
  color: var(--ink); border: 1px solid var(--pink); border-radius: 999px;
  transition: background .2s var(--ease), box-shadow .2s var(--ease);
}
.pill--book:hover{ background: var(--pink); box-shadow: 0 0 24px rgba(238,42,123,.35); }
.pill--list{ border-color: var(--cyan); }
.pill--list:hover{ background: var(--cyan); box-shadow: 0 0 24px rgba(0,174,239,.35); }
.panel-nav a.active::after{
  content: ""; height: 2px; width: 26px; margin-left: 4px;
  background: linear-gradient(90deg, var(--cyan), var(--pink));
}

.panel-contact{ display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: .85rem; color: var(--ink-2); }
.panel-contact a:not(.btn):hover{ color: var(--ink); }

.btn{
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 16px; padding: 12px 20px;
  background: var(--ink); color: var(--bg);
  font-size: .9rem; letter-spacing: .02em;
  transition: background .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover{ background: var(--pink); color: var(--ink); box-shadow: 0 0 24px rgba(238,42,123,.35); }

/* phone top bar: contact shortcut next to the menu button */
.bar-contact{ display: none; }
.nav-toggle{ display: none; width: 38px; height: 38px; padding: 0; background: none; border: 0; cursor: pointer; flex-direction: column; justify-content: center; gap: 7px; }
.nav-toggle span{ display: block; height: 1px; background: var(--ink); transition: transform .3s var(--ease); }

/* ---------- right column ---------- */
.content{ min-width: 0; }

.hero{
  position: relative;
  min-height: 100vh; min-height: 100dvh;
  display: grid; place-items: center;
  overflow: hidden;
}
.dots{
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(244,243,239,.10) 1px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 50%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 55% at 50% 50%, #000 20%, transparent 75%);
}
.hero-wordmark{ display: none; }

/* your logo, rebuilt live from the white mark */
.mark{
  position: relative;
  width: min(36vh, 38%);
  aspect-ratio: 1;
  animation: float 6s ease-in-out infinite alternate;
}
.mark.rise{ animation: rise 1s var(--ease) .15s both, float 6s ease-in-out 1.15s infinite alternate; }
/* with JS: keep the logo hidden (and its float/tilt parked) until its mask image is decoded, so the first frame is never a flash of colour */
.js .mark.rise:not(.ready){ animation: none; opacity: 0; }
.js .mark.rise:not(.ready) .mark-3d{ animation-play-state: paused; }
.rise{ animation: rise 1s var(--ease) both; }
@keyframes rise{ from{ opacity: 0; transform: translateY(28px); } to{ opacity: 1; transform: none; } }
.layer{
  position: absolute; inset: 0;
  -webkit-mask: url('assets/mark-lg.png') center / contain no-repeat;
  mask: url('assets/mark-lg.png') center / contain no-repeat;
}
/* depth tilt: the logo turns slowly in space; the colour layers sit behind the white mark
   at two depths, so they peel out from behind it on whichever side it tilts away from */
.mark{ --P: 1100; --dz: 38; perspective: calc(var(--P) * 1px); }
.mark-3d{ position: absolute; inset: 0; transform-style: preserve-3d; animation: tilt 14s linear infinite; will-change: transform; }
.layer--white{ background: var(--ink); transform: translateZ(0); }
.layer--cyan{ background: var(--cyan); transform: translateZ(calc(var(--dz) * -1px)) scale(calc((var(--P) + var(--dz)) / var(--P))); }
.layer--pink{ background: var(--pink); transform: translateZ(calc(var(--dz) * -2px)) scale(calc((var(--P) + var(--dz) * 2) / var(--P))); }
@keyframes tilt{
  0%{ transform: rotateY(18.00deg) rotateX(0.00deg); }
  12.5%{ transform: rotateY(12.73deg) rotateX(7.78deg); }
  25%{ transform: rotateY(0.00deg) rotateX(11.00deg); }
  37.5%{ transform: rotateY(-12.73deg) rotateX(7.78deg); }
  50%{ transform: rotateY(-18.00deg) rotateX(0.00deg); }
  62.5%{ transform: rotateY(-12.73deg) rotateX(-7.78deg); }
  75%{ transform: rotateY(-0.00deg) rotateX(-11.00deg); }
  87.5%{ transform: rotateY(12.73deg) rotateX(-7.78deg); }
  100%{ transform: rotateY(18.00deg) rotateX(-0.00deg); }
}
/* the float starts from rest (0) so it picks up exactly where the rise-in ends: no jump */
@keyframes float{ from{ translate: 0 0; } to{ translate: 0 -12px; } }


/* blocks */
.block{ padding: 10px 56px; }
.block-head{ display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.block-head h2{ font-size: clamp(1.8rem, 3vw, 2.4rem); }
.block-head p{ margin-left: auto; color: var(--ink-2); font-size: .82rem; transition: color 1.1s var(--ease); }
/* subtext lights up in its section's colour while you're in that section */
[data-accent="cyan"]{ --lit: var(--cyan); }
[data-accent="pink"]{ --lit: var(--pink); }
.lit .block-head p, .lit .about-copy{ color: var(--lit); }
/* "We are..." : the three dots fade in one after another, over and over */
/* "We are..." : the dots fade in one at a time left to right, hold, then fade out one at a time left to right */
.ell span{ opacity: 0; animation: 3s ease-in-out infinite; }
.ell span:nth-child(1){ animation-name: ell1; }
.ell span:nth-child(2){ animation-name: ell2; }
.ell span:nth-child(3){ animation-name: ell3; }
@keyframes ell1{ 0%{ opacity: 0; } 10%, 66%{ opacity: 1; } 74%, 100%{ opacity: 0; } }
@keyframes ell2{ 0%, 10%{ opacity: 0; } 20%, 74%{ opacity: 1; } 82%, 100%{ opacity: 0; } }
@keyframes ell3{ 0%, 20%{ opacity: 0; } 30%, 82%{ opacity: 1; } 90%, 100%{ opacity: 0; } }
.about-copy{ max-width: 620px; font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.5; color: var(--ink-2); transition: color 1.1s var(--ease); }

/* rig: stacked cluster + spec list */
.stack-wrap{ margin: 0 0 14px; }
/* crowd-size buttons, on the same line as "The System" */
.crowd{ display: inline-flex; align-items: center; gap: 6px; }
/* Clients, Artists and Book us get a little extra air between them */
.block{ padding-top: 24px; }   /* same gap above every section */
.crowd-label{ font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-right: 4px; }
.crowd button{
  font: inherit; font-size: .74rem; letter-spacing: .04em; line-height: 1; color: var(--ink-2);
  background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 6px 11px; cursor: pointer;
  transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.crowd button:hover{ color: var(--ink); border-color: var(--ink-3); }
.crowd button.on{ color: var(--ink); border-color: var(--cyan); background: rgba(0,174,239,.14); }
.crowd button:focus-visible{ outline: 1px dashed var(--ink-3); outline-offset: 2px; }
/* the person drawn for scale */
.stack .human{ opacity: .55; pointer-events: none; }
/* "DJ" written across the middle of the DJ table */
.stack .booth-t{ font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 150px; letter-spacing: .3em; fill: currentColor; opacity: .55; pointer-events: none; }
.stack .human-t{ font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 78px; letter-spacing: .1em; fill: currentColor; }
/* two system configurations share one frame and cross-fade (with a soft blur) every 7 seconds */
.cfgs{ display: grid; overflow: hidden; }
/* layout change: a quick left-to-right sweep. The outgoing drawing speeds off to the right while it stretches and blurs;
   the next one streaks in from the left and settles. Only transform, opacity and blur animate, so the browser can run it smoothly. */
.cfgs > .stack{ grid-area: 1 / 1; opacity: 0; pointer-events: none; will-change: transform, opacity, filter; transform-origin: 50% 50%; }
.cfgs > .stack.cfg-out{ animation: cfgOut .38s cubic-bezier(.6,0,1,.6) forwards; }
.cfgs > .stack.cfg-in{ animation: cfgIn .5s cubic-bezier(0,.5,.3,1) .12s both; }
@keyframes cfgOut{
  from{ opacity: 1; transform: none; filter: blur(0); }
  to{ opacity: 0; transform: translateX(150px) scaleX(1.35); filter: blur(16px); }
}
@keyframes cfgIn{
  from{ opacity: 0; transform: translateX(-150px) scaleX(1.35); filter: blur(16px); }
  60%{ opacity: 1; }
  to{ opacity: 1; transform: none; filter: blur(0); }
}
.cfgs > .stack.is-cur{ opacity: 1; pointer-events: auto; }
.cfgs > .stack:not(.is-cur) *{ pointer-events: none !important; }   /* hidden layouts must not catch the pointer */   /* the hidden layout must not catch the pointer */
.stack .stand{ opacity: .7; }
.stack .floor{ opacity: .6; }
.amps [opacity=".55"]{ opacity: .85; }
.stack{ display: block; width: 100%; height: auto; color: var(--ink); overflow: visible; }
.stack .grp{ cursor: pointer; transition: color .25s var(--ease), opacity .25s var(--ease); }
.stack .grp{ --acc: var(--cyan); }
.stack .grp[data-grp="ax88"], .stack .grp[data-grp="ib218"], .stack .grp[data-grp="dp226"], .stack .grp[data-grp="ffa10k"]{ --acc: var(--pink); }
.stack.is-hl .grp{ opacity: .65; }
.stack.is-hl .grp.on{ opacity: 1; color: var(--acc); }
/* amp rack */
.amp-wrap{ max-width: 760px; }
.amps .case{ opacity: .8; }
.amps .amp-t{ font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 4px; letter-spacing: .12em; fill: currentColor; opacity: .9; }
.amps .amp-model{ font-family: var(--font); font-size: 8px; letter-spacing: .02em; opacity: 1; }
.amps .amp-brand{ font-size: 3.4px; letter-spacing: .3em; }
.amps .amp-sig{ opacity: 0; }
.amps .grp.on .amp-sig{ opacity: 1; animation: sig 1.1s ease-in-out infinite alternate; }
@keyframes sig{ from{ opacity: .25; } to{ opacity: 1; } }

/* readout: one line under the drawing shows whichever unit you picked.
   It slides in from the left; the one it replaces slides out to the right. */
.readout{
  --slide: 28px;
  list-style: none; display: grid; position: relative; overflow: hidden;
  /* the clip box reaches past the text by the slide distance, so text glides in whole */
  margin: 0 calc(-1 * var(--slide)); padding: 0 var(--slide);
}
.readout::before, .readout::after{ content: ""; position: absolute; left: var(--slide); right: var(--slide); height: 1px; background: var(--line); }
.readout::before{ top: 0; }
.readout::after{ bottom: 0; }
.readout > li{
  --acc: var(--cyan);
  grid-area: 1 / 1;
  display: flex; align-items: baseline; column-gap: 14px;
  padding: 14px 0; min-width: 0;
  pointer-events: none;
}
.readout > li[data-grp="ax88"], .readout > li[data-grp="ib218"], .readout > li[data-grp="dp226"], .readout > li[data-grp="ffa10k"]{ --acc: var(--pink); }
.readout .rl-spec{ display: flex; align-items: baseline; gap: 14px; min-width: 0; white-space: nowrap; }
.readout .rl-name, .readout .rl-spec > span, .readout .rl-role, .ro-hint > span{
  display: inline-block;
  opacity: 0; transform: translateX(var(--slide));
  transition: opacity .3s var(--ease), transform .45s var(--ease);
}
.readout .rl-name{ font-size: 1.1rem; white-space: nowrap; color: var(--acc); }
.readout > li.open{ pointer-events: auto; touch-action: manipulation; }
.readout .rl-link{ text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; transition: text-decoration-color .2s var(--ease); }
.readout .rl-link:hover{ text-decoration-color: currentColor; }
.readout .rl-dash{ font-size: 1.1rem; color: var(--ink-3); }
.readout .rl-range{ font-size: 1.1rem; color: var(--acc); }
.readout .rl-role{ margin-left: auto; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.ro-hint{ align-items: center; }
.ro-hint > span{ font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.ro-tap{ display: none !important; }
@media (hover: none){ .ro-hover{ display: none !important; } .ro-tap{ display: inline-block !important; } }
/* coming in */
.readout > li.open .rl-name, .readout > li.open .rl-spec > span, .readout > li.open .rl-role,
.readout:not(.has-open) .ro-hint > span{ opacity: 1; transform: none; }
.readout > li.open .rl-name{ transition-delay: .12s; }
.readout > li.open .rl-dash{ transition-delay: .17s; }
.readout > li.open .rl-range{ transition-delay: .22s; }
.readout > li.open .rl-meta{ transition-delay: .29s; }
.readout > li.open .rl-role{ transition-delay: .34s; }
/* parked on the left, ready to come in */
.readout > li.prep .rl-name, .readout > li.prep .rl-spec > span, .readout > li.prep .rl-role{ transform: translateX(calc(-1 * var(--slide))); transition: none; }
.stack .grp{ outline: none; -webkit-tap-highlight-color: transparent; }
.stack .grp:focus-visible .hit{ stroke: var(--ink-3); stroke-dasharray: 4 4; stroke-width: 1px; vector-effect: non-scaling-stroke; }

/* clients */
.lead{ font-size: clamp(1.15rem, 1.9vw, 1.5rem); line-height: 1.35; max-width: 640px; }
.sr-only{ position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ticker{ display: grid; gap: 10px; margin: 0 -56px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker-row{ overflow: hidden; }
.ticker-track{ display: inline-flex; white-space: nowrap; font-size: clamp(1.3rem, 2.6vw, 2.2rem); line-height: 1.25; animation: tick 60s linear infinite; }
.ticker-row--rev .ticker-track{ animation-direction: reverse; animation-duration: 70s; }
/* with JS the lines are driven by script.js: they drift on their own, can be dragged or flicked, and only stop while held */
.js .ticker--one .ticker-track{ animation: none !important; will-change: transform; }
.js .ticker--one{ cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.js .ticker--one.is-held{ cursor: grabbing; }
.js .ticker--one a{ -webkit-user-drag: none; }
.ticker-track > *{ padding: 0 .4em; transition: color .2s var(--ease); }
.ticker-track .sep{ color: var(--ink-3); padding: 0; }
.ticker-track .c-cyan:hover{ color: var(--cyan); }
.ticker-track .c-pink:hover{ color: var(--pink); }
/* Clients line is all cyan, DJs line is all pink; hovering a name brightens it to white */
#clients .ticker-track a{ color: var(--cyan); }
#djs .ticker-track a{ color: var(--pink); }
/* little location tag, up and to the right of each artist name */
.ticker-track .loc{ font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .38em; letter-spacing: .1em; vertical-align: super; margin-left: .3em; color: var(--ink-2); line-height: 0; }
#clients .ticker-track a:hover, #djs .ticker-track a:hover{ color: var(--ink); }
/* Clients + DJs: one scrolling line each (Clients drifts right, DJs drifts left) */
#clients .ticker--one .ticker-track{ animation-duration: 90s; }
#djs .ticker--one .ticker-track{ animation-duration: 110s; }
@keyframes rollUp{ from{ transform: translateY(0); } to{ transform: translateY(-50%); } }
@keyframes tick{ from{ transform: translateX(0); } to{ transform: translateX(-50%); } }

/* inquiry form */
.inq{ display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px 28px; max-width: 760px; }
.inq-half{ grid-column: span 3; }
.inq-third{ grid-column: span 2; }
.inq-hp{ position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* date: browsers like iOS Safari show nothing in an empty date box, so draw our own placeholder */
.inq-date{ position: relative; display: block; }
.inq input[type="date"]{ -webkit-appearance: none; appearance: none; min-height: 2.6em; text-align: left; }
.inq input[type="date"]::-webkit-date-and-time-value{ text-align: left; }
.inq-date-ph{ position: absolute; left: 0; top: 50%; transform: translateY(-50%); color: var(--ph); pointer-events: none; font-size: 1rem; }
.inq-date input:focus + .inq-date-ph, .inq-date input.has-val + .inq-date-ph{ display: none; }

.inq-field{ display: grid; gap: 6px; min-width: 0; }
.inq .inq-wide{ grid-column: 1 / -1; }
.inq label{ font-size: .8rem; letter-spacing: .08em; color: var(--ink); }
.inq input, .inq select, .inq textarea{
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); color-scheme: dark;
  background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  padding: 8px 0; outline: none; transition: border-color .2s var(--ease);
}
.inq select{ -webkit-appearance: none; appearance: none; cursor: pointer;
  background: linear-gradient(45deg, transparent 50%, var(--ink) 50%) right 6px center / 6px 6px no-repeat,
              linear-gradient(-45deg, transparent 50%, var(--ink) 50%) right 0 center / 6px 6px no-repeat; padding-right: 24px; }
.inq select option{ background: var(--panel); color: var(--ink); }
.inq textarea{ resize: vertical; min-height: 96px; line-height: 1.5; }
/* placeholders (and the empty date / event-type fields) are grey and lowercase */
.inq{ --ph: #8a8a8a; }
.inq input::placeholder, .inq textarea::placeholder{ color: var(--ph); opacity: 1; text-transform: lowercase; }
.inq select:invalid, .inq input[type="date"]:invalid{ color: var(--ph); }
.inq input[type="date"]:invalid::-webkit-datetime-edit{ color: var(--ph); }
.inq select option[value=""]{ color: var(--ph); }
.inq-date input:not(:focus):not(.has-val){ color: transparent; }
.inq-date input:not(:focus):not(.has-val)::-webkit-datetime-edit{ color: transparent !important; }
.inq input:focus, .inq select:focus, .inq textarea:focus{ border-bottom-color: var(--cyan); }
.inq .bad{ border-bottom-color: var(--pink); }
.inq-send[disabled]{ opacity: .6; cursor: progress; }
.inq-foot{ display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 4px; }
.inq-send{ font: inherit; font-size: .9rem; letter-spacing: .08em; padding: 12px 22px; color: var(--bg); background: var(--ink); border: 0; cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease); }
.inq-send:hover{ background: var(--cyan); color: var(--ink); box-shadow: 0 0 24px rgba(0,174,239,.35); }
.inq-send:focus-visible{ outline: 1px dashed var(--ink-3); outline-offset: 3px; }
.inq-status{ font-size: .82rem; color: var(--ink); min-width: 0; flex: 1 1 260px; }
.inq-status a{ color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* contact */
.block--last{ border-bottom: 0; }
/* desktop: the contact details live in the sidebar, so the bottom contact block is phone-only */
@media (min-width: 901px){ #contact{ display: none; } }
.panel-contact.ping a:not(.btn){ animation: ping 1.8s var(--ease); }
@keyframes ping{ 0%, 100%{ color: var(--ink-2); } 25%, 60%{ color: var(--cyan); } }
/* little line icons in front of each contact detail */
.ci{ display: inline-flex; align-items: center; gap: .55em; }
.ci-ico{ width: 1.05em; height: 1.05em; flex: none; color: var(--ink-3); transition: color .2s var(--ease); }
.ci:hover .ci-ico{ color: var(--pink); }
.contact-email{
  font-size: clamp(1.15rem, 2.4vw, 2rem);
  line-height: 1.15;
}
.contact-email .ci-ico{ width: .8em; height: .8em; }
.contact-email span{
  word-break: break-word;
  background: linear-gradient(90deg, var(--cyan), var(--pink)) left bottom / 0 2px no-repeat;
  padding-bottom: 4px;
  transition: background-size .4s var(--ease);
}
.contact-email:hover span{ background-size: 100% 2px; }
.contact-row{ display: flex; gap: 28px; flex-wrap: wrap; margin-top: 18px; color: var(--ink-2); }
.contact-row a:hover{ color: var(--ink); }
.foot{ display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding: 22px 56px 30px; font-size: .75rem; color: var(--ink-3); }
.foot-logo{ width: 64px; }
.foot-logo img{ display: block; width: 100%; height: auto; }

/* reveal */
/* only hidden when JavaScript is running to fade it in (phone file previewers open pages with JS off) */
.js .reveal{ opacity: 0; transform: translateY(48px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible{ opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 900px){
  .layout{ display: block; }
  .panel{
    height: 60px;
    flex-direction: row; align-items: center; justify-content: space-between;
    padding: 0 20px;
    background: rgba(8,9,10,.86);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-right: 0; border-bottom: 1px solid var(--line);
  }
  .wordmark, .panel > .top-contact, .panel-contact{ display: none; }
  .mini-mark{ display: block; }
  .nav-toggle{ display: flex; }
  .bar-contact{
    display: inline-flex; align-items: center; margin-right: 14px;
    padding: 8px 12px; border: 1px solid var(--pink); color: var(--ink); white-space: nowrap;
    font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; line-height: 1;
    transition: background .2s var(--ease);
  }
  .bar-list{ margin-left: auto; margin-right: 8px; border-color: var(--cyan); }
  .bar-list:active{ background: var(--cyan) !important; }
  @media (hover: hover){ .bar-list:hover{ background: var(--cyan) !important; } }
  .bar-contact{ border-radius: 999px; }
  .bar-contact:active{ background: var(--pink); }
  @media (hover: hover){ .bar-contact:hover{ background: var(--pink); } }
  .panel-nav{
    position: absolute; top: 60px; left: 0; right: 0; margin: 0;
    background: var(--panel); border-bottom: 1px solid var(--line);
    padding: 10px 20px 20px;
    transform: translateY(-110%); opacity: 0; pointer-events: none; z-index: -1;
    transition: transform .35s var(--ease), opacity .3s var(--ease);
  }
  .panel-nav.open{ transform: none; opacity: 1; pointer-events: auto; }
  .panel-nav a{ font-size: 1.5rem; }
  .nav-toggle.open span:first-child{ transform: translateY(4px) rotate(45deg); }
  .nav-toggle.open span:last-child{ transform: translateY(-4px) rotate(-45deg); }
  section{ scroll-margin-top: 60px; }

  .hero{
    min-height: auto;
    display: flex; flex-direction: column; align-items: flex-start; gap: 22px;
    padding: 28px 20px 30px;
  }
  .hero-wordmark{ display: block; width: min(100%, 360px); }
  .hero-contact{ display: flex; margin-top: -10px; font-size: .9rem; }
  .mark{ width: min(50vw, 220px); align-self: center; --P: 800; --dz: 25; }
  .block{ padding: 24px 20px 8px; }
  .ticker{ margin: 0 -20px; }
  .ticker-track{ font-size: 1.4rem; animation-duration: 45s; }
  #clients .ticker--one .ticker-track{ animation-duration: 70s; }
  #djs .ticker--one .ticker-track{ animation-duration: 85s; }
  .ticker-row--rev .ticker-track{ animation-duration: 52s; }
  .foot{ padding: 18px 20px 24px; }
  .foot-logo{ width: 56px; }
  .block-head p{ margin-left: 0; flex-basis: 100%; }
  .inq{ grid-template-columns: 1fr; gap: 16px; }
  .inq > .inq-field{ grid-column: 1 / -1; }
  /* phones: "Crowd size" sits above the three buttons */
  #system .crowd{ display: grid; grid-template-columns: repeat(3, auto); row-gap: 6px; }
  .crowd-label{ grid-column: 1 / -1; justify-self: end; margin: 0; }
  #system .crowd{ margin-left: auto; }          /* same line as "The System", pushed to the right */
  #system .block-head h2{ white-space: nowrap; }
  .crowd button{ padding: 6px 9px; }
}

@media (max-width: 560px){
  .panel{ padding: 0 16px; }
  .bar-contact{ padding: 8px 10px; letter-spacing: .08em; }
  .bar-book{ margin-right: 12px; }
  .readout{ --slide: 18px; }
  .readout > li{ column-gap: 10px; padding: 12px 0; }
  .readout .rl-spec{ gap: 10px; }
  .readout .rl-name, .readout .rl-range, .readout .rl-dash{ font-size: .95rem; }
  #amps .rl-role{ display: none; }   /* "2 ×" / "4 ×" already says it */
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
}

@media (max-width: 345px){ .bar-our{ display: none; } }   /* very narrow phones: "Join Email List" */
