/* ==========================================================
   Signals To Noise Lab – style.css
   ========================================================== */

:root {
  --bg: #000000;
  --bg-2: #0a0a0a;
  --bg-3: #111111;
  --line: #262626;
  --text: #ffffff;
  --muted: #a3a3a3;
  --red: #c10000;          /* original signalstonoise.com red */
  --red-dark: #8f0000;
  --red-text: #ff2a1f;     /* brighter red for small text on black */
  --yellow: #ffffff;
  --ink: #000000;
  --radius: 14px;
  --maxw: 1180px;
  --font: "Open Sans", "Helvetica Neue", Helvetica, Arial, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}


* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { line-height: 1.08; margin: 0 0 .5em; letter-spacing: -0.035em; font-weight: 800; }
h3 { font-weight: 700; letter-spacing: -0.015em; line-height: 1.2; }
h1 .thin, h2 .thin { font-weight: 300; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
.red { color: var(--red-text); }
.muted { color: var(--muted); }
.skip { position: absolute; left: -9999px; top: 0; background: var(--red); color: #fff; padding: .6em 1em; z-index: 200; }
.skip:focus { left: 1rem; top: 1rem; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.wrap { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; position: relative; }
.section--tight { padding: clamp(3rem, 6vw, 4.5rem) 0; }
.section--alt { background: var(--bg-2); }
.section--paper { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.eyebrow {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--red-text);
  display: inline-flex; align-items: center; gap: .6em;
  margin-bottom: 1.1rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.28rem); color: var(--muted); max-width: 46ch; }
.section-head { max-width: 760px; margin-bottom: clamp(2.2rem, 5vw, 3.5rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  padding: .9em 1.45em;
  border-radius: 999px;
  font-weight: 700; font-size: .95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-dark); }
.btn--ghost { border-color: rgba(255,255,255,.35); color: var(--text); }
.btn--ghost:hover { border-color: var(--text); }
.btn .arr { transition: transform .2s; }
.btn:hover .arr { transform: translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.link-arrow { color: var(--red-text); font-weight: 700; text-decoration: none; display: inline-flex; gap: .4em; align-items: center; }
.link-arrow:hover { text-decoration: underline; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: linear-gradient(180deg, rgba(40,40,40,.92), rgba(0,0,0,.92));
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 74px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; font-weight: 700; font-size: 1.08rem; letter-spacing: -.01em; white-space: nowrap; }
.brand img { width: 50px; height: auto; }
.brand .L { color: var(--red); }
.nav-links { display: flex; align-items: center; gap: .3rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  text-decoration: none; font-size: .92rem; font-weight: 600;
  padding: .5em .8em; border-radius: 8px; color: #d8d5cf;
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav-links a[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 var(--red); border-radius: 0; }
.nav-links .btn { padding: .6em 1.1em; color: #fff; margin-left: .4rem; }
.nav-links .btn:hover { background: var(--red-dark); }
.nav-tools { display: flex; align-items: center; gap: .6rem; }
.lang {
  display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden;
  font-family: var(--mono); font-size: .75rem;
}
.lang a {
  color: var(--muted); padding: .45em .75em; text-decoration: none; letter-spacing: .08em; display: inline-block;
}
.lang a:hover { color: #fff; }
.lang a[aria-current="true"] { background: var(--text); color: var(--bg); }
.burger { display: none; background: none; border: 0; color: var(--text); width: 42px; height: 42px; cursor: pointer; padding: 0; }
.burger span { display: block; width: 24px; height: 2px; background: currentColor; margin: 5px auto; transition: transform .25s, opacity .25s; }
.nav-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .burger span:nth-child(2) { opacity: 0; }
.nav-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1040px) {
  .burger { display: block; }
  .nav-links {
    position: fixed; inset: 74px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: .8rem 1.25rem 1.5rem;
    transform: translateY(-120%); transition: transform .3s ease;
    max-height: calc(100vh - 74px); overflow-y: auto;
  }
  .nav-open .nav-links { transform: none; }
  .nav-links a { padding: .9em .3em; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-links a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--red); padding-left: .8em; }
  .nav-links .btn { margin: 1rem 0 0; justify-content: center; border-bottom: 0; border-radius: 999px; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(4rem, 8vw, 6.5rem); background: #000 url(../img/bg-sampling.svg) 70% 50% / cover no-repeat; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.94) 0%, rgba(0,0,0,.78) 38%, rgba(0,0,0,.35) 70%, rgba(0,0,0,.55) 100%),
    linear-gradient(0deg, #000 0%, rgba(0,0,0,0) 30%);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { margin-bottom: .35em; }
.hero h1 .thin { font-weight: 300; display: block; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
.hero-visual { position: relative; }
.hero-visual img { border-radius: var(--radius); box-shadow: 0 30px 80px -20px rgba(0,0,0,.8); border: 1px solid rgba(255,255,255,.08); }
.hero-badge {
  position: absolute; left: -18px; bottom: -22px;
  background: var(--red); color: #fff; border-radius: 12px; padding: .9rem 1.1rem;
  font-family: var(--mono); font-size: .78rem; letter-spacing: .08em; line-height: 1.4;
  box-shadow: 0 16px 40px -10px rgba(193,0,0,.6);
}
.hero-badge strong { display: block; font-size: 1.6rem; font-family: var(--font); letter-spacing: -.02em; }
.wave { position: absolute; left: 0; right: 0; bottom: 0; height: 120px; opacity: .55; pointer-events: none; }
.wave path { fill: none; stroke-width: 1.5; }
.wave .w1 { stroke: var(--red); stroke-dasharray: 6 10; animation: flow 18s linear infinite; }
.wave .w2 { stroke: rgba(255,255,255,.25); stroke-dasharray: 2 6; animation: flow 26s linear infinite reverse; }
@keyframes flow { to { stroke-dashoffset: -600; } }
@media (prefers-reduced-motion: reduce) { .wave path { animation: none; } html { scroll-behavior: auto; } }

.page-hero { padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(2.5rem, 5vw, 4rem); position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: #000 url(../img/bg-sampling.svg) 85% 55% / cover no-repeat; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.95) 0%, rgba(0,0,0,.82) 45%, rgba(0,0,0,.4) 100%); pointer-events: none; }
.page-hero .wrap { position: relative; }
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 4rem); max-width: 18ch; }
.crumbs { font-family: var(--mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.4rem; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--text); }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 1.8rem 1.4rem; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -.03em; }
.stat span { font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } .stat:nth-child(2) { border-right: 0; } .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

/* ---------- cards ---------- */
.grid { display: grid; gap: 1.4rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--red); }
.card-img { aspect-ratio: 4 / 3; overflow: hidden; background: #000; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-img img { transform: scale(1.04); }
.card-body { padding: 1.4rem 1.4rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.card-body p { color: var(--muted); font-size: .96rem; }
.price { font-family: var(--mono); font-size: .82rem; letter-spacing: .04em; color: var(--red-text); margin: .2rem 0 .9rem; }
.card-body .link-arrow { margin-top: auto; }
a.card { text-decoration: none; }

.panel { background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem; }
.panel .num { font-family: var(--mono); color: var(--red-text); font-size: .8rem; letter-spacing: .12em; display: block; margin-bottom: .8rem; }
.panel p { color: var(--muted); margin: 0; font-size: .97rem; }

/* package list */
.pkg { display: grid; grid-template-columns: 1fr auto; gap: .4rem 1.5rem; align-items: start; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.pkg:first-child { border-top: 1px solid var(--line); }
.pkg h3 { margin: 0; }
.pkg p { grid-column: 1 / -1; color: var(--muted); margin: 0; max-width: 70ch; font-size: .97rem; }
.pkg .price { margin: 0; white-space: nowrap; font-size: .9rem; }

/* split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split--top { align-items: start; }
.split img { border-radius: var(--radius); }
@media (max-width: 860px) { .split, .hero-grid { grid-template-columns: 1fr; } .hero-badge { left: 12px; } }

.checks { list-style: none; padding: 0; margin: 1.2rem 0 0; }
.checks li { padding-left: 1.9em; position: relative; margin-bottom: .7em; }
.checks li::before { content: ""; position: absolute; left: 0; top: .55em; width: 14px; height: 8px; border-left: 2px solid var(--red); border-bottom: 2px solid var(--red); transform: rotate(-45deg); }

/* ---------- AI + NI ---------- */
.ai-band { background: #000 url(../img/bg-reverb.svg) 0% 50% / cover no-repeat; position: relative; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.formula { font-family: var(--mono); font-size: clamp(1.4rem, 3vw, 2.2rem); letter-spacing: .02em; margin: 0 0 1.2rem; }
.formula .ai { color: var(--muted); }
.formula .ni { color: #fff; font-weight: 700; }
.formula .eq { color: var(--red); }

/* ---------- testimonials ---------- */
.quotes { columns: 3 300px; column-gap: 1.4rem; }
.quote {
  break-inside: avoid; margin: 0 0 1.4rem;
  background: var(--bg-3); color: var(--text); border-radius: var(--radius); padding: 1.6rem 1.6rem 1.4rem;
  border: 1px solid var(--line); position: relative;
}
.quote::before { content: "\201D"; position: absolute; right: 1.1rem; top: .2rem; font-size: 4.5rem; line-height: 1; color: var(--red); font-family: Georgia, serif; opacity: .9; }
.quote blockquote { margin: 0 0 1.2rem; font-size: .98rem; line-height: 1.6; color: #e6e6e6; }
.quote figcaption { display: flex; align-items: center; gap: .8rem; }
.avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none; background: var(--red); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .95rem; }
.quote figcaption b { display: block; font-size: .98rem; }
.quote figcaption small { color: var(--muted); font-size: .82rem; line-height: 1.35; display: block; }
.quote--dark { background: var(--bg-3); color: var(--text); border-color: var(--line); }
.quote--dark figcaption small { color: var(--muted); }

/* ---------- blog ---------- */
.post-card { padding: 1.7rem; }
.post-meta { font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .8rem; }
.post-card h3 { font-size: 1.35rem; }
.tag { display: inline-block; font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; background: rgba(193,0,0,.2); color: var(--red-text); border-radius: 999px; padding: .3em .8em; margin-right: .4em; }

.article { max-width: 760px; margin-inline: auto; }
.article h2 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); margin-top: 2.4em; }
.article p, .article li { color: #dcd9d3; }
.article ul, .article ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.article li { margin-bottom: .5em; }
.article strong { color: #fff; }
.article hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
.article .tldr { border-left: 3px solid var(--red); padding: .4em 0 .4em 1.2em; font-size: 1.15rem; color: #fff; margin: 0 0 2em; }
.article .note { background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.4rem; font-size: .95rem; }
.table-wrap { overflow-x: auto; margin: 0 0 1.5em; }
.article table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.article th, .article td { text-align: left; padding: .7em .8em; border-bottom: 1px solid var(--line); vertical-align: top; }
.article th { font-family: var(--mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.article .src { font-size: .85rem; color: var(--muted); font-style: italic; }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.25rem 2.5rem 1.25rem 0; position: relative;
  font-weight: 700; font-size: 1.08rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .2rem; top: 50%; transform: translateY(-50%); font-size: 1.6rem; font-weight: 300; color: var(--red-text); transition: transform .25s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq .ans { padding: 0 0 1.4rem; color: var(--muted); max-width: 72ch; }

/* ---------- gear ---------- */
.gear { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.gear h3 { font-family: var(--mono); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--red-text); margin-bottom: .8rem; }
.gear ul { list-style: none; margin: 0; padding: 0; }
.gear li { padding: .45em 0; border-bottom: 1px dashed var(--line); font-size: .96rem; }
.gear li:last-child { border-bottom: 0; }
@media (max-width: 900px) { .gear { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .gear { grid-template-columns: 1fr; } }

.photo-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.photo-row img { border-radius: var(--radius); aspect-ratio: 1; object-fit: cover; width: 100%; }
@media (max-width: 640px) { .photo-row { grid-template-columns: 1fr 1fr; } .photo-row img:last-child { grid-column: 1 / -1; aspect-ratio: 16/9; } }

.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 1.6rem 1.6rem; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: .45em; width: 12px; height: 12px; border-radius: 50%; background: var(--red); }
.timeline b { font-family: var(--mono); color: var(--red-text); font-size: .85rem; display: block; letter-spacing: .06em; }
.timeline span { color: var(--muted); }

/* ---------- CTA band ---------- */
.cta {
  background: var(--red); color: #fff; border-radius: calc(var(--radius) + 6px);
  padding: clamp(2.2rem, 5vw, 3.8rem); display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: center;
  position: relative; overflow: hidden;
}
.cta::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; border: 40px solid rgba(255,255,255,.08); }
.cta h2 { margin-bottom: .3em; }
.cta p { margin: 0; opacity: .92; }
.cta .btn-row { justify-content: flex-end; margin: 0; position: relative; z-index: 1; }
.cta .btn--white { background: #fff; color: var(--ink); }
.cta .btn--ghost { border-color: rgba(255,255,255,.6); color: #fff; }
@media (max-width: 860px) { .cta { grid-template-columns: 1fr; } .cta .btn-row { justify-content: flex-start; } }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; margin: 0 0 1.6rem; padding: 0; }
.contact-list li { display: flex; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.contact-list .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--bg-3); border: 1px solid var(--line); display: grid; place-items: center; flex: none; color: var(--red-text); }
.contact-list small { display: block; font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.contact-list a { text-decoration: none; font-weight: 700; font-size: 1.08rem; }
.contact-list a:hover { color: var(--red-text); }

.form { background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.4rem); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: .86rem; font-weight: 700; margin-bottom: .4rem; }
.field input, .field select, .field textarea {
  width: 100%; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 10px;
  padding: .85em 1em; font: inherit; font-size: 1rem; transition: border-color .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .88rem; color: var(--muted); margin: .4rem 0 1.4rem; }
.check input { margin-top: .3em; accent-color: var(--red); width: 18px; height: 18px; flex: none; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.alert { border-radius: 10px; padding: 1rem 1.2rem; margin-bottom: 1.4rem; font-weight: 600; display: none; }
.alert--ok { background: rgba(0,208,132,.12); border: 1px solid rgba(0,208,132,.4); color: #7ff0c3; }
.alert--err { background: rgba(193,0,0,.15); border: 1px solid rgba(193,0,0,.6); color: #ff8f88; }
.alert.show { display: block; }

/* ---------- footer ---------- */
.site-footer { background: #000; border-top: 1px solid var(--line); padding: 4.5rem 0 2rem; font-size: .94rem; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }
.site-footer h4 { font-family: var(--mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .55rem; }
.site-footer a { text-decoration: none; color: #d8d5cf; }
.site-footer a:hover { color: var(--red-text); }
.site-footer .about { color: var(--muted); max-width: 34ch; margin-top: 1rem; }
.socials { display: flex; gap: .6rem; margin-top: 1.2rem; }
.socials a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: border-color .2s, background .2s; }
.socials a:hover { background: var(--red); border-color: var(--red); color: #fff; }
.socials svg { width: 18px; height: 18px; fill: currentColor; }
.foot-bottom { margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; color: var(--muted); font-size: .84rem; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* 404 */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.notfound .code { font-family: var(--mono); font-size: clamp(5rem, 16vw, 10rem); line-height: 1; color: var(--red-text); letter-spacing: -.04em; }

/* ---------- red band (as on the original site) ---------- */
.red-band { background: var(--red); color: #fff; }
.red-band .eyebrow { color: #fff; }
.red-band .lead { color: rgba(255,255,255,.85); }
/* modules (academy) */
.module { background: var(--bg-3); border: 1px solid var(--line); border-top: 3px solid var(--red); border-radius: var(--radius); padding: 1.8rem; }
.module .hours { font-family: var(--mono); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--red-text); }
.module ul { margin: .8rem 0 0; padding-left: 1.1em; color: var(--muted); font-size: .95rem; }
.module li { margin-bottom: .35em; }
.module h4 { font-size: .9rem; font-weight: 700; margin: 1.1rem 0 0; color: #fff; }

/* social channel cards */
.social-card {
  display: flex; align-items: center; gap: 1rem; text-decoration: none;
  background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.3rem 1.3rem; position: relative; transition: border-color .25s, transform .25s;
}
.social-card:hover { border-color: var(--red); transform: translateY(-3px); }
.social-card .si { width: 52px; height: 52px; border-radius: 50%; background: var(--red); display: grid; place-items: center; flex: none; color: #fff; }
.social-card .si svg { width: 24px; height: 24px; fill: currentColor; }
.social-card b { display: block; font-size: 1.05rem; }
.social-card small { display: block; color: var(--muted); font-family: var(--mono); font-size: .74rem; }
.social-card em { display: block; font-style: normal; font-size: .86rem; color: #cfcfcf; margin-top: .2rem; }
.social-card .go { position: absolute; top: .8rem; right: 1rem; color: var(--muted); }
.social-card:hover .go { color: #fff; }

/* ---------- price calculator ---------- */
.calc { display: grid; grid-template-columns: 1.35fr .9fr; gap: 1.6rem; align-items: start; }
@media (max-width: 960px) { .calc { grid-template-columns: 1fr; } }
.calc[data-svc="mix"] [data-for]:not([data-for~="mix"]),
.calc[data-svc="creative"] [data-for]:not([data-for~="creative"]),
.calc[data-svc="mm"] [data-for]:not([data-for~="mm"]),
.calc[data-svc="master"] [data-for]:not([data-for~="master"]),
.calc[data-svc="podcast"] [data-for]:not([data-for~="podcast"]),
.calc[data-svc="audiobook"] [data-for]:not([data-for~="audiobook"]) { display: none !important; }
.calc-form { background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.3rem, 3vw, 2rem); }
.calc-form fieldset { border: 0; margin: 0 0 1.6rem; padding: 0; }
.calc-form fieldset:last-child { margin-bottom: 0; }
.calc-form legend { font-weight: 700; font-size: 1rem; margin-bottom: .8rem; padding: 0; }
.pills { display: grid; gap: .6rem; }
.pills--2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .pills--2 { grid-template-columns: 1fr; } }
.pill { position: relative; display: block; cursor: pointer; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill > span {
  display: block; border: 1px solid var(--line); border-radius: 10px; padding: .75rem .95rem .75rem 2.4rem;
  background: var(--bg); transition: border-color .2s, background .2s; position: relative; height: 100%;
}
.pill > span::before {
  content: ""; position: absolute; left: .9rem; top: 1rem; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid #555; transition: border-color .2s, background .2s;
}
.pill input[type="checkbox"] + span::before { border-radius: 4px; }
.pill input:checked + span { border-color: var(--red); background: rgba(193,0,0,.12); }
.pill input:checked + span::before { border-color: var(--red); background: var(--red); box-shadow: inset 0 0 0 2px var(--bg); }
.pill input:focus-visible + span { outline: 2px solid #fff; outline-offset: 2px; }
.pill b { display: block; font-size: .95rem; font-weight: 600; }
.pill small { display: block; color: var(--muted); font-size: .8rem; font-family: var(--mono); margin-top: .15rem; }
.qty { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.qty input { width: 90px; text-align: center; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: .7em .5em; font: inherit; font-size: 1.1rem; font-weight: 700; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); color: #fff; font-size: 1.3rem; cursor: pointer; transition: border-color .2s, background .2s; }
.qty-btn:hover { border-color: var(--red); background: var(--red); }
.qty-unit { color: var(--muted); margin-left: .3rem; }
.calc-form textarea { width: 100%; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: .8em 1em; font: inherit; font-size: .95rem; resize: vertical; }
.calc-form textarea:focus { outline: none; border-color: var(--red); }

.calc-sum { position: sticky; top: 94px; }
.calc-sum-in { background: #0d0d0d; border: 1px solid var(--line); border-top: 3px solid var(--red); border-radius: var(--radius); padding: 1.6rem; }
.calc-code { font-family: var(--mono); font-size: .78rem; letter-spacing: .06em; color: var(--muted); margin-bottom: 1rem; }
.calc-code b { color: #fff; font-weight: 600; }
.calc-lines { list-style: none; margin: 0 0 1rem; padding: 0; }
.calc-lines li { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px dashed var(--line); font-size: .92rem; }
.calc-lines li span { color: #d6d6d6; }
.calc-lines li b { white-space: nowrap; font-weight: 600; }
.calc-total { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin: .4rem 0 .6rem; }
.calc-total span { font-family: var(--mono); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.calc-total b { font-size: clamp(1.7rem, 3vw, 2.2rem); font-weight: 700; letter-spacing: -.02em; }
.calc-note { color: var(--muted); font-size: .88rem; }
.calc-btn { width: 100%; justify-content: center; margin: .4rem 0 .9rem; }
.calc-small { color: var(--muted); font-size: .8rem; margin: 0; line-height: 1.5; }

/* panel as link */
a.panel--link { text-decoration: none; display: block; transition: border-color .25s, transform .25s; }
a.panel--link:hover { border-color: var(--red); transform: translateY(-3px); }
a.panel--link .link-arrow { margin-top: 1rem; }

/* references (text cards on the red band) */
.refs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 900px) { .refs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .refs { grid-template-columns: 1fr; } }
.ref-card { display: block; background: rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.18); border-radius: 12px; padding: 1.2rem 1.3rem; text-decoration: none; color: #fff; transition: background .2s, border-color .2s; }
a.ref-card:hover { background: rgba(0,0,0,.5); border-color: #fff; }
.ref-cat { display: block; font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; opacity: .8; margin-bottom: .45rem; }
.ref-card b { display: block; font-size: 1.08rem; line-height: 1.3; margin-bottom: .35rem; }
.ref-desc { display: block; font-size: .9rem; opacity: .9; line-height: 1.5; }
a.ref-card b::after { content: " \2197"; font-weight: 400; opacity: .7; }

.ai-band::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.85) 55%, rgba(0,0,0,.92) 100%); pointer-events: none; }
.ai-band > .wrap { position: relative; }

/* ---------- Holo-style visual card ---------- */
.holo-card {
  position: relative; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; background: #000;
  border: 1px solid rgba(255,255,255,.1); box-shadow: 0 40px 90px -30px rgba(193,0,0,.55), 0 30px 60px -20px rgba(0,0,0,.9);
  max-width: 440px; margin-left: auto;
}
.holo-card > img.photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.25) brightness(.5); }
.holo-card::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(70% 50% at 75% 35%, rgba(255,42,31,.45), transparent 70%),
    linear-gradient(0deg, rgba(0,0,0,.95) 0%, rgba(0,0,0,.55) 38%, rgba(0,0,0,0) 65%);
  mix-blend-mode: normal;
}
.holo-card .mark { position: absolute; top: 22px; left: 22px; width: 54px; z-index: 2; }
.holo-card .txt { position: absolute; left: 26px; right: 26px; bottom: 26px; z-index: 2; }
.holo-card .txt b { display: block; font-size: clamp(1.8rem, 3.2vw, 2.5rem); line-height: 1.02; letter-spacing: -.035em; font-weight: 800; }
.holo-card .txt span { display: block; margin-top: .55rem; color: #cfcfcf; font-size: .92rem; }
.holo-card .scope { position: absolute; left: 0; right: 0; top: 34%; height: 90px; z-index: 1; opacity: .9; }
.holo-card .scope path { fill: none; stroke: #ff2a1f; stroke-width: 2; stroke-dasharray: 5 7; animation: flow 14s linear infinite; filter: drop-shadow(0 0 6px rgba(255,42,31,.8)); }
@media (max-width: 860px) { .holo-card { margin: 0 auto; max-width: 380px; } }

/* service cards in the same mood */
.card-img { position: relative; }
.card-img img { filter: grayscale(.85) contrast(1.15) brightness(.62); }
.card-img::after { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 70% at 80% 20%, rgba(255,42,31,.38), transparent 70%), linear-gradient(0deg, rgba(0,0,0,.75), rgba(0,0,0,0) 60%); pointer-events: none; }
.card-img .mark { position: absolute; top: 14px; left: 14px; width: 38px; z-index: 2; opacity: .95; }
.card:hover .card-img img { filter: grayscale(.5) contrast(1.15) brightness(.75); }
.hero-visual { max-width: 440px; width: 100%; margin-left: auto; }
.hero-visual .holo-card { max-width: none; margin: 0; }
@media (max-width: 860px) { .hero-visual { margin: 1rem auto 0; max-width: 380px; } }
.hero-visual .hero-badge { left: auto; right: -18px; top: 70px; bottom: auto; z-index: 3; }
@media (max-width: 860px) { .hero-visual .hero-badge { right: 12px; top: -18px; } }
@media (max-width: 460px) { .brand > span { display: none; } }
/* small ∞ mark on service tiles – keep it a crisp white logo, not a photo */
.card-img img.mark, .card:hover .card-img img.mark {
  width: 38px; height: auto; inset: auto; top: 14px; left: 14px;
  object-fit: contain; filter: drop-shadow(0 2px 6px rgba(0,0,0,.6)); transform: none;
}
/* animated sine divider also on sub-page heroes */
.page-hero { padding-bottom: clamp(5rem, 9vw, 7rem); border-bottom: 0; }
.page-hero .wave { height: 100px; }

/* grid children may shrink below their content width (prevents horizontal scroll on phones) */
.split > *, .grid > *, .hero-grid > *, .contact-grid > *, .calc > *, .foot-grid > * { min-width: 0; }
.split img { max-width: 100%; }
h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; }
@media (max-width: 560px) {
  .pkg { grid-template-columns: 1fr; }
  .pkg .price { white-space: normal; }
}
