/* ============================================================
   EventEntertainment.ie - "MAINSTAGE"
   Cinematic + bento · Bricolage Grotesque · ink/bone + electric coral
   Dark default / light option · variable hooks kept (--pop = accent)
   ============================================================ */

/* Registered so the accent can ANIMATE (transition) when the drum machine
   runs colours through it. Falls back to instant change where unsupported. */
@property --pop { syntax: '<color>'; inherits: true; initial-value: #ff5a3c; }
@property --pop-text { syntax: '<color>'; inherits: true; initial-value: #ff6a4d; }
html { transition: --pop .12s linear, --pop-text .12s linear; }

:root {
  --pop: #ff5a3c;            /* electric coral (animates with the beat) */
  --pop-ink: #0a0a0c;
  --pop-base: #ff5a3c;       /* static accent for the drum machine (never animates) */

  /* DARK (default) */
  --bg:    #0a0a0c;
  --bg-2:  #0f0f12;
  --elev:  #141418;
  --line:  #26262e;
  --line-2:#1b1b21;
  --text:  #f3efe6;
  --muted: #8b8b95;
  --pop-text: #ff6a4d;

  --r: 16px;
  --maxw: 1320px;
  --gut: clamp(18px, 4.5vw, 70px);
  --ease: cubic-bezier(.2,.8,.2,1);
  --slow: cubic-bezier(.16,1,.3,1);

  --disp: 'Bricolage Grotesque', system-ui, sans-serif;
  --mono: 'Space Mono', ui-monospace, monospace;
}
:root[data-theme="light"] {
  --bg:    #f1ede3;
  --bg-2:  #e8e2d4;
  --elev:  #fbf8f1;
  --line:  #d8d1c1;
  --line-2:#e3ddce;
  --text:  #15130d;
  --muted: #6c6555;
  --pop-text: #d8401d;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; animation-iteration-count: 1 !important; } }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.55; overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background .5s var(--slow), color .5s var(--slow);
}
body.locked { overflow: hidden; height: 100vh; }
.btn, .seq-btn, .cue, .pad, .step, .seq-expand, .nav-cta, .nav-toggle, .theme-toggle, .fab, .nav-links a, .seq-swatch, .theme-swatch, button { touch-action: manipulation; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--pop); color: var(--pop-ink); }
.pop { color: var(--pop-text); }
.muted { color: var(--muted); }
.lbl { font-family: var(--mono); font-size: .72rem; letter-spacing: .2em; color: var(--pop-text); margin-bottom: 16px; }

.grain { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .025; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--pop); z-index: 200; }

/* ============================================================ PRELOADER */
.preloader { position: fixed; inset: 0; z-index: 1000; background: var(--bg); display: grid; place-items: center; transition: opacity .6s var(--slow), visibility .6s; }
.preloader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.pl-inner { display: grid; justify-items: center; gap: 16px; width: min(86vw, 480px); }
.pl-tag { font-family: var(--mono); font-size: .72rem; letter-spacing: .32em; color: var(--muted); }
.pl-big { font-family: var(--disp); font-weight: 800; font-size: clamp(3.4rem, 14vw, 8rem); line-height: .9; letter-spacing: -.03em; }
.pl-line { width: 100%; height: 3px; background: var(--line); overflow: hidden; border-radius: 3px; }
.pl-line i { display: block; height: 100%; width: 0; background: var(--pop); }
.pl-pct { font-family: var(--mono); font-size: .82rem; color: var(--muted); letter-spacing: .1em; }
.pl-skip { position: absolute; bottom: 24px; right: 24px; background: none; border: none; color: var(--muted); font-family: var(--mono); font-size: .78rem; letter-spacing: .1em; cursor: pointer; }
.pl-skip:hover { color: var(--pop-text); }

/* ============================================================ NAV */
.nav { position: fixed; inset: 0 0 auto; z-index: 100; display: flex; align-items: center; justify-content: space-between;
  padding: 16px var(--gut); border-bottom: 1px solid transparent; transition: padding .35s var(--slow), background .35s, border-color .35s; }
.nav.scrolled { padding-top: 11px; padding-bottom: 11px; background: color-mix(in srgb, var(--bg) 84%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark { font-family: var(--disp); font-weight: 800; font-size: .9rem; width: 34px; height: 34px; display: grid; place-items: center; background: var(--pop); color: var(--pop-ink); border-radius: 9px; flex: none; }
.brand-word { font-family: var(--disp); font-weight: 700; font-size: 1rem; letter-spacing: -.01em; }
.brand-word i { color: var(--pop-text); font-style: normal; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: .85rem; font-weight: 500; color: var(--muted); transition: color .25s; }
.nav-links a b { font-family: var(--mono); font-size: .62rem; color: var(--pop-text); margin-right: 5px; font-weight: 400; }
.nav-links a:hover { color: var(--text); }
.nav-cta { color: var(--text) !important; border: 1.5px solid var(--text); padding: 8px 18px; border-radius: 50px; transition: background .25s, color .25s, border-color .25s; }
.nav-cta:hover { background: var(--pop); border-color: var(--pop); color: var(--pop-ink) !important; }
.nav-tools { display: flex; align-items: center; gap: 10px; }
.theme-toggle, .nav-toggle { width: 38px; height: 38px; border: 1.5px solid var(--line); border-radius: 10px; background: none; color: var(--text); cursor: pointer; display: grid; place-items: center; transition: border-color .25s, transform .25s; }
.theme-toggle:hover { border-color: var(--pop); transform: rotate(-12deg); }
.theme-toggle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .ic-moon { display: none; }
:root[data-theme="light"] .theme-toggle .ic-sun { display: none; }
:root[data-theme="light"] .theme-toggle .ic-moon { display: block; }
.nav-toggle { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.nav-toggle span { width: 17px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ============================================================ BUTTONS */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; font: inherit; font-weight: 600; font-size: .92rem;
  padding: 15px 28px; border: 1.5px solid transparent; border-radius: 50px; cursor: pointer; transition: transform .3s var(--ease), background .25s, color .25s, border-color .25s; }
.btn-pop { background: var(--pop); color: var(--pop-ink); }
.btn-pop:hover { background: var(--text); color: var(--bg); }
.btn-line { border-color: var(--text); color: var(--text); }
.btn-line:hover { background: var(--text); color: var(--bg); }

/* ============================================================ LAYOUT */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(70px, 10vw, 150px) var(--gut); }
.sec-head { margin-bottom: clamp(40px, 6vw, 80px); }
.sec-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.sec-title { font-family: var(--disp); font-weight: 700; font-size: clamp(2.4rem, 7vw, 5.4rem); line-height: .95; letter-spacing: -.035em; }
.sec-intro { color: var(--muted); max-width: 60ch; margin-top: 16px; font-size: 1rem; }
.sec-intro kbd { font-family: var(--mono); font-size: .72rem; background: var(--elev); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; color: var(--text); }
.head-link { font-family: var(--mono); font-size: .82rem; color: var(--muted); transition: color .25s; }
.head-link:hover { color: var(--pop-text); }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--slow), transform .9s var(--slow); }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================ HERO */
.hero { min-height: 90svh; display: flex; flex-direction: column; justify-content: center; padding: 128px var(--gut) 56px; position: relative; isolation: isolate; max-width: var(--maxw); margin: 0 auto; }
.hero-fx { position: absolute; top: 0; bottom: 0; left: 50%; transform: translateX(-50%); width: 100vw; overflow: hidden; pointer-events: none; z-index: 0; }
.hero-fx #wave { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .35; }
.spotlight { position: absolute; width: 46vw; height: 46vw; max-width: 640px; max-height: 640px; border-radius: 50%; left: 50%; top: 40%; transform: translate(-50%,-50%); background: radial-gradient(circle, color-mix(in srgb, var(--pop) 24%, transparent), transparent 62%); filter: blur(34px); will-change: transform; }
.hero > *:not(.hero-fx) { position: relative; z-index: 1; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 26px; font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; color: var(--muted); margin-bottom: clamp(24px, 4vw, 44px); }
.hero-meta .blink { color: var(--pop-text); }
.blink { animation: blink 2.8s ease-in-out infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.hero-title { font-family: var(--disp); font-weight: 800; line-height: .82; letter-spacing: -.05em; font-size: clamp(3.6rem, 16vw, 15rem); text-transform: uppercase; }
.hero-title .row { display: block; overflow: hidden; }
.hero-title .up { display: inline-block; transform: translateY(108%); transition: transform 1.1s var(--slow); }
.hero-title.in .up { transform: none; }
.hero-title .pop { display: inline-block; animation: wghtpulse 4.5s ease-in-out infinite; }
@keyframes wghtpulse { 0%, 100% { font-weight: 800; } 50% { font-weight: 400; } }
.m-break { display: none; }   /* only splits ENTERTAINMENT on small screens */
.hero-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; margin-top: clamp(30px, 5vw, 58px); }
.hero-sub { max-width: 460px; color: var(--muted); font-size: clamp(.98rem, 1.4vw, 1.12rem); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ============================================================ TRUSTED BY (static) */
.trusted { max-width: var(--maxw); margin: 0 auto; padding: clamp(30px, 4vw, 52px) var(--gut); display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: clamp(20px, 4vw, 60px); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.trusted-label { font-family: var(--mono); font-size: .68rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.trusted-list { list-style: none; display: flex; align-items: center; flex-wrap: wrap; gap: clamp(22px, 4vw, 52px); }
.client { font-family: var(--disp); font-weight: 700; font-size: clamp(1.1rem, 2.3vw, 1.55rem); letter-spacing: -.01em; color: var(--text); opacity: .92; }
.client.ph { color: var(--muted); opacity: .45; font-weight: 600; }

/* ============================================================ BENTO */
.bento-section { padding-top: clamp(40px, 6vw, 80px); }
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(130px, auto); gap: 12px; }
.cell { background: var(--elev); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; display: flex; flex-direction: column; position: relative; overflow: hidden; transition: transform .35s var(--ease), border-color .35s; }
.cell:hover { border-color: color-mix(in srgb, var(--pop) 50%, var(--line)); }
.bento > .cell:nth-child(1) { grid-column: span 2; grid-row: span 2; }   /* lead */
.bento > .cell:nth-child(4) { grid-column: span 2; grid-row: span 2; justify-content: space-between; } /* act */
.bento > .cell:nth-child(7) { grid-column: span 2; }                      /* ig */
.bento-statement { font-family: var(--disp); font-weight: 500; font-size: clamp(1.4rem, 2.6vw, 2.3rem); line-height: 1.16; letter-spacing: -.02em; margin-top: auto; }
.cell-stat { justify-content: flex-end; }
.im-num { font-family: var(--disp); font-weight: 800; font-size: clamp(2.6rem, 5vw, 4rem); letter-spacing: -.04em; line-height: 1; }
.cell-label { font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; color: var(--muted); margin-top: 10px; }
.cell-act { justify-content: space-between; background: var(--text); color: var(--bg); border-color: var(--text); }
.cell-act .lbl { color: var(--pop); }
.cell-act-name { font-family: var(--disp); font-weight: 800; font-size: clamp(2rem, 4.5vw, 3.4rem); letter-spacing: -.03em; line-height: .95; margin-top: auto; }
.cell-act-role { font-family: var(--mono); font-size: .8rem; color: color-mix(in srgb, var(--bg) 55%, var(--text)); margin-top: 6px; }
.cell-act .cell-go, .cell-ig .cell-go { position: absolute; top: 24px; right: 24px; font-size: 1.3rem; transition: transform .3s var(--ease); }
.cell-act:hover .cell-go { transform: translate(4px,-4px); }
.cell-ig { justify-content: flex-end; }
.cell-ig-top { display: flex; align-items: center; justify-content: space-between; }
.cell-live { font-family: var(--mono); font-size: .66rem; color: var(--pop-text); }
.cell-ig-handle { font-family: var(--disp); font-weight: 700; font-size: clamp(1.3rem, 2.6vw, 2rem); letter-spacing: -.02em; margin-top: 8px; }
.cell-ig:hover .cell-go { transform: translate(4px,-4px); }

/* ============================================================ SERVICES (bento cards) */
.svc-bento { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; gap: 12px; }
.svc { background: var(--elev); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(22px, 2.6vw, 34px); display: flex; flex-direction: column; min-height: 200px; position: relative; overflow: hidden; transition: transform .35s var(--ease), border-color .35s; }
.svc:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--pop) 45%, var(--line)); }
.svc-tall { grid-row: span 2; }
.svc-wide { grid-column: span 2; }
.svc-no { font-family: var(--mono); font-size: .8rem; color: var(--muted); transition: color .25s; }
.svc:hover .svc-no { color: var(--pop-text); }
.svc h3 { font-family: var(--disp); font-weight: 700; font-size: clamp(1.4rem, 2.6vw, 2.2rem); letter-spacing: -.025em; margin: auto 0 12px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.svc p { color: var(--muted); max-width: 52ch; font-size: .96rem; }
.svc-pill { font-family: var(--mono); font-size: .58rem; letter-spacing: .12em; background: var(--pop); color: var(--pop-ink); padding: 4px 9px; border-radius: 50px; }
.svc.feature { border-color: color-mix(in srgb, var(--pop) 40%, var(--line)); }

/* ============================================================ FEATURED ACT */
.act-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.act-photo { aspect-ratio: 4/5; border: 1px solid var(--line); border-radius: var(--r); position: relative; overflow: hidden; background: var(--bg-2); display: grid; place-items: center; will-change: transform; transition: transform .25s var(--ease); }
.act-mono { font-family: var(--disp); font-weight: 800; font-size: clamp(5rem, 14vw, 11rem); letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1.5px var(--line); }
.act-tape { position: absolute; bottom: 0; left: 0; right: 0; padding: 10px 16px; background: var(--pop); color: var(--pop-ink); font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; }
.act-lead { font-family: var(--disp); font-weight: 600; font-size: clamp(1.5rem, 3.2vw, 2.4rem); line-height: 1.12; letter-spacing: -.02em; margin-bottom: 22px; }
.act-copy > p { color: var(--muted); margin-bottom: 16px; max-width: 56ch; }
.act-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 30px 0; }
.act-specs > div { background: var(--elev); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.act-specs dt { font-family: var(--mono); font-size: .62rem; letter-spacing: .14em; color: var(--muted); margin-bottom: 6px; }
.act-specs dd { font-weight: 600; }
.act-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ============================================================ THE SET / MACHINE */
/* The machine keeps fixed colours: pin its accent so the beat animation
   (which drives --pop site-wide) does not recolour the sequencer. */
.machine { --pop: var(--pop-base); --pop-text: var(--pop-base); border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-2); overflow: hidden; }
.machine-head { display: flex; align-items: center; gap: 16px; padding: 12px 18px; border-bottom: 1px solid var(--line); background: var(--text); color: var(--bg); font-family: var(--mono); font-size: .72rem; letter-spacing: .16em; }
.machine-head span:nth-child(2) { opacity: .55; }
.machine-dot { margin-left: auto; color: var(--pop); }
.pads { display: grid; grid-template-columns: repeat(8, 1fr); gap: 1px; background: var(--line); border-bottom: 1px solid var(--line); }
@media (max-width: 680px) { .pads { grid-template-columns: repeat(4, 1fr); } }
.pad { aspect-ratio: 1.4; border: none; background: var(--bg); color: var(--text); cursor: pointer; font: inherit; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; position: relative; transition: background .08s, color .08s; user-select: none; }
.pad span { font-family: var(--disp); font-weight: 700; font-size: .8rem; letter-spacing: .03em; }
.pad kbd { font-family: var(--mono); font-size: .62rem; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; }
.pad:hover { background: var(--elev); }
.pad.hit { background: var(--voice, var(--pop)); color: var(--pop-ink); }
.pad.hit kbd { color: var(--pop-ink); border-color: var(--pop-ink); }
.sequencer { padding: clamp(16px, 2.5vw, 26px); }
.seq-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.seq-btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: .74rem; letter-spacing: .06em; font-weight: 700; padding: 10px 16px; border: 1.5px solid var(--text); border-radius: 50px; background: var(--pop); color: var(--pop-ink); cursor: pointer; transition: transform .2s var(--ease), background .2s, color .2s; }
.seq-btn:hover { transform: translateY(-2px); }
.seq-btn.ghost { background: transparent; color: var(--text); }
.seq-btn.ghost:hover { background: var(--text); color: var(--bg); }
.seq-btn .ic-stop { display: none; }
.seq-btn.playing .ic-play { display: none; }
.seq-btn.playing .ic-stop { display: inline; }
.tempo { display: flex; align-items: center; gap: 8px; margin-left: auto; font-family: var(--mono); font-size: .74rem; color: var(--muted); }
.tempo input[type=range] { accent-color: var(--pop); width: 100px; }
.tempo output { color: var(--text); min-width: 30px; }
.seq-grid { display: grid; gap: 8px; }
.seq-row { display: grid; grid-template-columns: 24px 50px 1fr; align-items: center; gap: 10px; }
.seq-row-label { font-family: var(--mono); font-size: .72rem; color: var(--muted); letter-spacing: .06em; }

/* Colour swatches (per-voice) + master theme picker */
.seq-swatch, .theme-swatch { -webkit-appearance: none; appearance: none; border: none; padding: 0; cursor: pointer; background: none; }
.seq-swatch { width: 24px; height: 24px; }
.theme-swatch { width: 26px; height: 26px; }
.seq-swatch::-webkit-color-swatch-wrapper, .theme-swatch::-webkit-color-swatch-wrapper { padding: 0; }
.seq-swatch::-webkit-color-swatch, .theme-swatch::-webkit-color-swatch { border: 1.5px solid var(--line); border-radius: 7px; }
.seq-swatch::-moz-color-swatch, .theme-swatch::-moz-color-swatch { border: 1.5px solid var(--line); border-radius: 7px; }
.seq-swatch:hover::-webkit-color-swatch, .theme-swatch:hover::-webkit-color-swatch { border-color: var(--text); }
.palette-ctl { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: .72rem; color: var(--muted); letter-spacing: .06em; }

/* Hot-cue groove presets */
.cue-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.cue-label { font-family: var(--mono); font-size: .66rem; letter-spacing: .16em; color: var(--muted); margin-right: 2px; }
.cue { font-family: var(--mono); font-size: .72rem; font-weight: 700; letter-spacing: .03em; padding: 9px 14px; border: 1.5px solid var(--line); border-radius: 50px; background: var(--bg); color: var(--text); cursor: pointer; display: inline-flex; align-items: center; gap: 7px; transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease); }
.cue b { color: var(--pop-text); }
.cue:hover { border-color: var(--pop); transform: translateY(-2px); }
.cue.active { background: var(--pop); color: var(--pop-ink); border-color: var(--pop); }
.cue.active b { color: var(--pop-ink); }

/* Expand / collapse extra voices */
.seq-expand { display: inline-flex; margin-top: 14px; font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; font-weight: 700; padding: 9px 16px; border: 1.5px dashed var(--line); border-radius: 50px; background: none; color: var(--muted); cursor: pointer; transition: color .2s, border-color .2s; }
.seq-expand:hover { color: var(--pop-text); border-color: var(--pop); }
.seq-grid:not(.expanded) .seq-row.extra { display: none; }
.seq-steps { display: grid; grid-template-columns: repeat(16, 1fr); gap: 4px; }
.step { aspect-ratio: 1; border: 1px solid var(--line); border-radius: 5px; background: var(--bg); cursor: pointer; padding: 0; transition: background .1s, transform .1s, border-color .1s; }
.step:nth-child(4n+1) { border-color: var(--muted); }
.step.on { background: var(--voice, var(--pop)); border-color: var(--voice, var(--pop)); }
.step.playhead { outline: 2px solid var(--text); outline-offset: 1px; }
@media (hover:hover) { .step:hover { transform: scale(1.12); border-color: var(--voice, var(--pop)); } }

/* ============================================================ WORK */
.work-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.work-tile { position: relative; aspect-ratio: 4/5; overflow: hidden; border-radius: var(--r); background: var(--bg-2); border: 1px solid var(--line); will-change: transform; transition: transform .25s var(--ease), border-color .35s; }
.work-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; transition: transform .5s var(--slow), filter .35s; filter: grayscale(.2); }
.work-tile:hover img { transform: scale(1.06); filter: grayscale(0); }
.work-tile:hover { border-color: color-mix(in srgb, var(--pop) 40%, var(--line)); }
.wt-num { position: absolute; top: 14px; left: 16px; z-index: 2; font-family: var(--mono); font-size: .64rem; letter-spacing: .1em; color: var(--muted); transition: color .3s; }
.wt-cap { position: absolute; left: 16px; bottom: 16px; right: 14px; z-index: 2; font-family: var(--disp); font-weight: 700; font-size: .9rem; }
.work-tile:hover .wt-num { color: var(--pop-text); }
.wt-play { position: absolute; top: 50%; left: 50%; z-index: 2; width: 48px; height: 48px; transform: translate(-50%,-50%); border: 1.5px solid var(--muted); border-radius: 50%; transition: border-color .3s; }
.wt-play::after { content: ''; position: absolute; top: 50%; left: 54%; transform: translate(-50%,-50%); border-style: solid; border-width: 6px 0 6px 11px; border-color: transparent transparent transparent var(--text); }
.work-tile:hover .wt-play { border-color: var(--pop-text); }
.work-grid .instagram-media { min-width: 0 !important; width: 100% !important; margin: 0 !important; }

/* ============================================================ PROCESS */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.steps li { background: var(--elev); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(24px, 3vw, 38px) clamp(20px, 2.2vw, 30px); transition: border-color .3s, transform .3s var(--ease); }
.steps li:hover { border-color: color-mix(in srgb, var(--pop) 50%, var(--line)); transform: translateY(-3px); }
.st-no { font-family: var(--mono); font-size: .78rem; color: var(--pop-text); letter-spacing: .1em; }
.steps h3 { font-family: var(--disp); font-weight: 700; font-size: 1.5rem; letter-spacing: -.02em; margin: 24px 0 10px; }
.steps p { color: var(--muted); font-size: .94rem; }

/* ============================================================ QUOTES */
.quote-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(22px, 3vw, 46px); }
.quote { background: var(--elev); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; }
.quote blockquote { font-family: var(--disp); font-weight: 500; font-size: clamp(1.15rem, 1.9vw, 1.45rem); line-height: 1.3; letter-spacing: -.01em; }
.quote blockquote::before { content: '“'; color: var(--pop-text); font-family: var(--disp); font-size: 2.4rem; line-height: 0; vertical-align: -.35em; margin-right: .05em; }
.quote figcaption { margin-top: 22px; font-family: var(--mono); font-size: .76rem; letter-spacing: .08em; }
.quote figcaption span { color: var(--muted); }

/* ============================================================ FAQ */
.faq-list { display: grid; gap: 12px; max-width: 840px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--r); background: var(--elev); overflow: hidden; transition: border-color .3s; }
.faq-item[open] { border-color: color-mix(in srgb, var(--pop) 45%, var(--line)); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; font-family: var(--disp); font-weight: 600; font-size: clamp(1.05rem, 2vw, 1.4rem); letter-spacing: -.01em; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-x { position: relative; width: 16px; height: 16px; flex: none; }
.faq-x::before, .faq-x::after { content: ''; position: absolute; background: var(--pop-text); border-radius: 2px; transition: transform .3s var(--ease); }
.faq-x::before { top: 7px; left: 0; width: 16px; height: 2px; }
.faq-x::after { left: 7px; top: 0; width: 2px; height: 16px; }
.faq-item[open] .faq-x::after { transform: scaleY(0); }
.faq-item p { padding: 0 24px 22px; color: var(--muted); max-width: 72ch; }
.faq-item p a { color: var(--pop-text); }

/* ============================================================ CONTACT */
.contact-title { font-family: var(--disp); font-weight: 800; font-size: clamp(2.6rem, 9vw, 7rem); line-height: .92; letter-spacing: -.04em; margin: 16px 0 28px; }
.contact-text { color: var(--muted); max-width: 50ch; margin-bottom: 40px; }
.contact-email { display: inline-block; max-width: 100%; overflow-wrap: anywhere; font-family: var(--disp); font-weight: 700; font-size: clamp(1.15rem, 4.5vw, 3rem); letter-spacing: -.02em; border-bottom: 3px solid var(--pop); padding-bottom: 6px; transition: color .25s; }
.contact-email:hover { color: var(--pop-text); }
.contact-meta { list-style: none; display: flex; gap: 48px; flex-wrap: wrap; margin-top: 48px; padding-top: 26px; border-top: 1px solid var(--line); }
.contact-meta li { display: flex; flex-direction: column; gap: 6px; }
.contact-meta span:first-child { font-family: var(--mono); font-size: .66rem; letter-spacing: .14em; color: var(--muted); }
.contact-meta a:hover { color: var(--pop-text); }

/* ============================================================ FAB */
.fab { position: fixed; right: 20px; bottom: 20px; z-index: 95; background: var(--pop); color: var(--pop-ink); font-family: var(--mono); font-weight: 700; font-size: .74rem; letter-spacing: .08em; padding: 14px 22px; border-radius: 50px; opacity: 0; transform: translateY(14px); pointer-events: none; transition: opacity .35s var(--ease), transform .35s var(--ease); }
.fab.show { opacity: 1; transform: none; pointer-events: auto; }
.fab:hover { background: var(--text); color: var(--bg); }

/* ============================================================ FOOTER */
.footer { border-top: 1px solid var(--line); padding: clamp(56px, 7vw, 100px) var(--gut) 32px; max-width: var(--maxw); margin: 0 auto; }
.footer-big { display: inline-flex; align-items: center; gap: .3em; font-family: var(--disp); font-weight: 800; font-size: clamp(2.4rem, 10vw, 8rem); line-height: .92; letter-spacing: -.04em; margin-bottom: clamp(46px, 6vw, 84px); transition: color .25s; }
.footer-big span { color: var(--pop-text); display: inline-block; }
.footer-big:hover { color: var(--pop-text); }
.footer-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 36px; border-bottom: 1px solid var(--line); }
.footer-brand { display: flex; gap: 16px; max-width: 440px; }
.footer-brand .brand-mark { flex: none; }
.footer-brand p { color: var(--muted); font-size: .92rem; }
.footer-nav { display: grid; gap: 10px; align-content: start; }
.footer-nav a { color: var(--muted); font-size: .92rem; transition: color .25s; }
.footer-nav a:hover { color: var(--pop-text); }
.footer-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 26px; font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; color: var(--muted); }
.footer-credit { margin-top: 18px; font-family: var(--mono); font-size: .74rem; letter-spacing: .06em; color: var(--muted); }
.footer-credit a { color: var(--text); border-bottom: 1px solid var(--pop); transition: color .25s; }
.footer-credit a:hover { color: var(--pop-text); }
.footer-credit .heart { color: var(--pop-text); }

/* ============================================================ SCRAMBLE CARET */

/* ============================================================ RESPONSIVE */
@media (max-width: 980px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento > .cell:nth-child(1) { grid-column: span 2; grid-row: span 1; }
  .bento > .cell:nth-child(4) { grid-column: span 2; grid-row: span 1; min-height: 220px; }
  .bento > .cell:nth-child(7) { grid-column: span 2; }
  .svc-bento { grid-template-columns: repeat(2, 1fr); }
  .svc-tall { grid-row: span 1; } .svc-wide { grid-column: span 2; }
  .act-grid { grid-template-columns: 1fr; }
  .act-visual { max-width: 400px; }
  .work-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .quote-row { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 720px) {
  .nav-links { position: fixed; inset: 0; flex-direction: column; align-items: flex-start; justify-content: center; gap: 26px; padding: 0 var(--gut); background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(28px) saturate(160%); -webkit-backdrop-filter: blur(28px) saturate(160%); transform: translateX(100%); transition: transform .4s var(--slow); z-index: 98; }
  .nav-links.open { transform: none; }
  .nav-links a { font-size: 1.7rem; color: var(--text); }
  .nav-links a b { font-size: .8rem; }
  .nav-cta { border-color: var(--pop); }
  .nav-toggle { display: inline-flex; position: relative; z-index: 101; }
  .hero-title { font-size: clamp(2.6rem, 14vw, 7rem); }
  .m-break { display: block; }
  .hero-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .hero-title { font-size: clamp(2.6rem, 16vw, 6.5rem); }
  .bento, .svc-bento { grid-template-columns: 1fr; }
  .bento > .cell:nth-child(1), .bento > .cell:nth-child(4), .bento > .cell:nth-child(7) { grid-column: span 1; }
  .cell { padding: 22px; }
  .cell-lead, .cell-act { min-height: 180px; }
  .svc-wide { grid-column: span 1; }
  .svc { min-height: 150px; }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }

  /* drum machine fits small screens */
  .machine-head { font-size: .62rem; gap: 10px; padding: 10px 13px; }
  .pads { grid-template-columns: repeat(4, 1fr); }
  .pad span { font-size: .72rem; }
  .sequencer { padding: 14px; }
  .seq-controls { gap: 8px; }
  .seq-btn { padding: 9px 13px; font-size: .68rem; }
  .tempo { margin-left: 0; }
  .seq-row { grid-template-columns: 20px 34px 1fr; gap: 6px; }
  .seq-swatch { width: 20px; height: 20px; }
  .seq-steps { gap: 2px; }

  .cue-bar { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 6px; }
  .cue-bar::-webkit-scrollbar { display: none; }
  .cue { flex: 0 0 auto; padding: 8px 12px; font-size: .66rem; }
  .cue-label { flex: 0 0 auto; }
  .seq-expand { width: 100%; justify-content: center; }
  .contact-meta { gap: 28px; }
  .footer-big { flex-wrap: wrap; }
}
@media (max-width: 400px) {
  .brand-word { display: none; }
}
