/* Scorpion Studios — one stylesheet for every page. No build step. */

:root {
  --bg: #0d0d10;
  --bg-raised: #16161b;
  --bg-sunk: #09090b;
  --line: #2a2a33;
  --text: #ecebe8;
  --text-muted: #a3a1a8;
  --accent: #e8a33d;      /* amber, the scorpion's sting */
  --accent-strong: #ffb84d;
  --accent-ink: #1a1206;
  --video: #4fb3d9;
  --music: #b58cf2;
  --lights: #e8584a;
  --radius: 14px;
  --max: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: ui-rounded, "SF Pro Rounded", var(--font-sans);
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, iframe { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-strong); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.25rem, 6vw, 4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--text-muted); }
.eyebrow {
  font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .75rem; display: block;
}
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(13 13 16 / .85); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.brand img { width: 28px; height: 28px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 6px 10px; font: inherit; cursor: pointer; }
.site-nav ul { list-style: none; display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; }
.site-nav a { color: var(--text-muted); text-decoration: none; padding: 8px 12px; border-radius: 8px; font-size: .95rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); background: var(--bg-raised); }
.site-nav a.btn { color: var(--accent-ink); }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; }
  .site-nav a { display: block; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: var(--accent-ink); border: 0;
  padding: 12px 22px; border-radius: 999px; font: inherit; font-weight: 600;
  text-decoration: none; cursor: pointer; transition: background .15s;
}
.btn:hover { background: var(--accent-strong); color: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--bg-raised); color: var(--text); }
.site-nav .btn { padding: 8px 16px; }

/* Hero */
.hero { padding: clamp(64px, 12vw, 140px) 0 clamp(48px, 8vw, 96px); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(circle, rgb(232 163 61 / .18), transparent 60%);
  pointer-events: none;
}
.hero p.lead { font-size: clamp(1.1rem, 2vw, 1.35rem); color: var(--text-muted); max-width: 46ch; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero--service { padding-bottom: 48px; }
.hero--video::before { background: radial-gradient(circle, rgb(79 179 217 / .18), transparent 60%); }
.hero--music::before { background: radial-gradient(circle, rgb(181 140 242 / .18), transparent 60%); }
.hero--lights::before { background: radial-gradient(circle, rgb(232 88 74 / .2), transparent 60%); }

/* Sections */
section { padding: clamp(48px, 8vw, 96px) 0; }
section.alt { background: var(--bg-sunk); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 60ch; margin-bottom: 40px; }

/* Cards */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column;
}
.card p { color: var(--text-muted); }
.card .more { margin-top: auto; font-weight: 600; text-decoration: none; }
.card--service { border-top: 3px solid var(--accent); }
.card--video { border-top-color: var(--video); }
.card--video .more { color: var(--video); }
.card--music { border-top-color: var(--music); }
.card--music .more { color: var(--music); }
.card--lights { border-top-color: var(--lights); }
.card--lights .more { color: var(--lights); }
.card .icon { width: 40px; height: 40px; margin-bottom: 16px; }

.list-check { list-style: none; padding: 0; margin: 0 0 1em; }
.list-check li { padding-left: 28px; position: relative; margin-bottom: 8px; }
.list-check li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }

.split { display: grid; gap: 40px; grid-template-columns: 1fr 1fr; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.steps li { counter-increment: step; background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--accent); margin-bottom: 8px; }
.steps strong { display: block; margin-bottom: 4px; }
.steps span { color: var(--text-muted); font-size: .95rem; }

/* Video embeds: a placeholder until a video ID is set, then a click-to-load
   youtube-nocookie iframe so no third-party script runs on page load. */
.embed {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(135deg, #1d1d24, #101014); border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--text-muted); text-align: center;
}
.embed button {
  all: unset; cursor: pointer; position: absolute; inset: 0; display: grid; place-items: center;
  background-size: cover; background-position: center;
}
.embed button::after {
  content: ""; width: 72px; height: 72px; border-radius: 50%;
  background: rgb(0 0 0 / .6) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") center / 32px no-repeat;
  border: 2px solid rgb(255 255 255 / .8);
}
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed .placeholder { padding: 24px; font-size: .95rem; }

/* CTA band */
.cta-band { text-align: center; }
.cta-band p { color: var(--text-muted); max-width: 52ch; margin: 0 auto 24px; }

/* Forms */
form.contact { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .95rem; }
.field .hint { font-size: .85rem; color: var(--text-muted); }
input, select, textarea {
  font: inherit; color: var(--text); background: var(--bg-sunk);
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgb(232 163 61 / .2); }
textarea { min-height: 160px; resize: vertical; }
.row-2 { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) { .row-2 { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 14px 16px; border-radius: 10px; display: none; }
.form-status.ok { display: block; background: rgb(76 175 80 / .12); border: 1px solid rgb(76 175 80 / .4); }
.form-status.err { display: block; background: rgb(232 88 74 / .12); border: 1px solid rgb(232 88 74 / .4); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; color: var(--text-muted); font-size: .9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--text-muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }

/* Build diary cards and posts */
.card--build { padding: 0; overflow: hidden; text-decoration: none; color: var(--text); transition: border-color .15s, transform .15s; }
.card--build:hover { border-color: var(--lights); transform: translateY(-2px); color: var(--text); }
.card--build img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card--build > div { padding: 20px 24px 24px; }
.tags { font-size: .8rem; color: var(--lights); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }

.wrap.narrow { max-width: 760px; }
.post { padding: clamp(40px, 8vw, 80px) 0; }
.post p { font-size: 1.1rem; }
.post figure { margin: 32px 0; }
.post figure img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); }
.post figcaption { color: var(--text-muted); font-size: .9rem; margin-top: 8px; }
.back { display: inline-block; margin-bottom: 24px; color: var(--text-muted); text-decoration: none; }
.back:hover { color: var(--text); }

/* Captioned video grid (light shows showcase) */
.grid--video { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
figure.video { margin: 0; }
figure.video figcaption { color: var(--text-muted); font-size: .9rem; margin-top: 10px; }
