/* ============================================================
   Soundforge Acoustics — global stylesheet
   Hand-rolled, framework-free. Translates the prototype's
   Tailwind look into a small token-driven system.

   READABILITY RULE (binding):
   1. Opaque content surfaces — anything containing text uses a
      SOLID color from the surface ladder. No alpha, no image,
      no blend mode behind text.
   2. Elevation = lightness, not transparency or shadow.
   3. Decoration never overlaps text — the brand watermark
      (.logo-bg) lives only inside the hero, below hero content.
   4. Contrast verified on the rendered color: AA 4.5:1 body / 3:1 large.
   5. No `opacity` on a text container; any translucency (sticky
      header) sits over solid page bg and is contrast-tested.
   ============================================================ */

/* ---------- Fonts (self-hosted, Greek + Latin) ------------- */
/* Manrope — display / headings (variable 600–800) */
@font-face {
  font-family: 'Manrope'; font-style: normal; font-weight: 600 800;
  font-display: swap; src: url('../fonts/manrope-greek.woff2?v=2') format('woff2');
  unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF;
}
@font-face {
  font-family: 'Manrope'; font-style: normal; font-weight: 600 800;
  font-display: swap; src: url('../fonts/manrope-latin-ext.woff2?v=2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope'; font-style: normal; font-weight: 600 800;
  font-display: swap; src: url('../fonts/manrope-latin.woff2?v=2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* Inter — body / UI (variable 400–700) */
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 400 700;
  font-display: swap; src: url('../fonts/inter-greek.woff2?v=2') format('woff2');
  unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF;
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 400 700;
  font-display: swap; src: url('../fonts/inter-greek-ext.woff2?v=2') format('woff2');
  unicode-range: U+1F00-1FFF;
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 400 700;
  font-display: swap; src: url('../fonts/inter-latin-ext.woff2?v=2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 400 700;
  font-display: swap; src: url('../fonts/inter-latin.woff2?v=2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* ---------- Design tokens ---------------------------------- */
:root {
  /* surfaces — SOLID ladder. Elevation = lightness, never transparency.
     Readability rule: anything containing text uses a solid color from this ladder. */
  --black: #050505;
  --dark:  #0d0d0d;
  --panel: #151515;
  --surface-0: #050505;       /* page background */
  --surface-1: #0e0e0e;       /* alternating section band */
  --surface-1-deep: #080808;  /* second band (darker, for rhythm) */
  --surface-2: #141414;       /* cards */
  --surface-2-fill: #191919;  /* "filled" cards / hero boxes */
  --surface-3: #1c1c1c;       /* hover / emphasis */
  /* brand */
  --red:      #d71920;
  --red-bright: #f23842;
  /* text (warm-ish off-white instead of pure white to avoid halation) */
  --text:      #f4f4f5;
  --text-mid:  #d4d4d8;
  --text-dim:  #a8a8b0;
  --red-text:  #ff3b43; /* red used as text/label — brightened for AA on dark */
  /* lines & fills */
  --line:    rgba(255,255,255,.10);
  --line-2:  rgba(255,255,255,.16);
  --fill:    rgba(255,255,255,.035);
  --fill-2:  rgba(255,255,255,.06);
  /* effects */
  --glow:        0 0 38px rgba(215,25,32,.30);
  --shadow-soft: 0 24px 70px rgba(0,0,0,.45);
  --grid: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
          linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  /* type */
  --font-display: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  /* metrics */
  --maxw: 80rem;            /* 1280px */
  --gutter: clamp(1.25rem, 0.8rem + 2vw, 1.5rem);
  --radius-sm: 0.5rem;
  --radius:    1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
  --header-h: 4.25rem;
  --ease: cubic-bezier(.2, 0, 0, 1);
}

/* ---------- Reset / base ----------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html:focus-within { scroll-padding-top: calc(var(--header-h) + 1rem); }

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip; /* clip (not hidden) so it doesn't break the sticky hero */
}

img, picture, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: var(--red); color: #fff; }

/* Focus — visible ring on every interactive element */
:focus-visible {
  outline: 2px solid var(--red-bright);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Typography ------------------------------------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.28em;
  color: var(--red-text);
}

.h1 { font-size: clamp(2.25rem, 1.1rem + 4.6vw, 4.5rem); }
.h2 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem); }
.h3 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.6rem); }

.lead { font-size: clamp(1.05rem, 1rem + .4vw, 1.2rem); color: var(--text-mid); line-height: 1.75; }
.muted { color: var(--text-dim); }

/* ---------- Layout ----------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(4rem, 2.5rem + 7vw, 7rem); background: var(--surface-0); }
.section--line { border-top: 1px solid var(--line); }
.section--alt  { background: var(--surface-1); border-block: 1px solid var(--line); }
.section--alt-2 { background: var(--surface-1-deep); border-top: 1px solid var(--line); }

.section-head { max-width: 56rem; margin-inline: auto; margin-bottom: clamp(2.5rem, 1.5rem + 4vw, 3.75rem); text-align: center; }
.section-head .eyebrow { margin-bottom: 1rem; }
.section-head .lead { margin-top: 1.25rem; }
.section-head--split { display: grid; gap: 1.5rem; text-align: left; max-width: none; }
@media (min-width: 1024px) {
  .section-head--split { grid-template-columns: .8fr 1.2fr; align-items: end; }
  .section-head--split .lead { margin-top: 0; }
}

.grid { display: grid; gap: 1.25rem; }
@media (min-width: 768px)  { .md-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .lg-3 { grid-template-columns: repeat(3, 1fr); }
                              .lg-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1280px) { .xl-3 { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Buttons ---------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-body); font-weight: 600; font-size: .95rem;
  padding: .85rem 1.5rem; border-radius: var(--radius-sm);
  transition: transform .15s var(--ease), background .15s var(--ease), box-shadow .15s var(--ease), border-color .15s var(--ease);
  border: 1px solid transparent;
}
.btn-primary { background: var(--red); color: #fff; box-shadow: var(--glow); }
.btn-primary:hover { background: var(--red-bright); }
.btn-primary:active { transform: scale(.98); }
.btn-ghost { border-color: var(--line-2); color: var(--text); background: var(--fill); }
.btn-ghost:hover { border-color: var(--red); color: #fff; }
.btn-ghost:active { transform: scale(.98); }
.btn-lg { padding: 1rem 1.9rem; font-size: 1.05rem; }

/* ---------- Brand watermark (hero-scoped, decorative) ------ */
/* Lives ONLY inside the hero, never behind body text. Sits below hero content. */
.logo-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.logo-bg::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at center, rgba(215,25,32,.06), transparent 42%);
}
.logo-bg img {
  position: absolute; left: 50%; top: 50%; width: min(64vw, 720px); max-width: none;
  transform: translate(-50%, -50%); opacity: .08;
  filter: grayscale(.25) contrast(1.1) brightness(.8);
  mix-blend-mode: screen;
}
@media (max-width: 640px) { .logo-bg img { width: 120vw; opacity: .07; } }

/* ---------- Header / nav ----------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(5,5,5,.8);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.site-header__inner {
  max-width: var(--maxw); margin-inline: auto; padding: .65rem var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { display: inline-flex; align-items: center; gap: .75rem; }
.brand__mark { width: 38px; height: 38px; border-radius: 9px; }
.brand__name { line-height: 1; }
.brand__name strong { display: block; font-family: var(--font-display); font-weight: 800; font-size: .95rem; text-transform: uppercase; letter-spacing: .2em; }
.brand__name span { display: block; margin-top: .25rem; font-size: .6rem; font-weight: 600; text-transform: uppercase; letter-spacing: .38em; color: var(--text-dim); }

.nav { display: none; align-items: center; gap: 1.75rem; }
.nav a { font-size: .92rem; color: var(--text-mid); transition: color .15s var(--ease); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"] { color: var(--red-text); }

.header-actions { display: flex; align-items: center; gap: 1rem; }
/* On mobile the header bar shows only brand + hamburger; lang & CTA live in the sheet */
.header-actions > .lang, .header-actions > .btn { display: none; }

/* language toggle */
.lang { display: inline-flex; align-items: center; gap: .15rem; font-size: .82rem; font-weight: 600; letter-spacing: .04em; }
.lang a { color: var(--text-dim); padding: .25rem .35rem; border-radius: 4px; transition: color .15s var(--ease); }
.lang a[aria-current="true"] { color: var(--text); }
.lang a:hover { color: var(--red-text); }
.lang span { color: var(--line-2); }

/* hamburger */
.nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; align-items: center; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); transition: transform .2s var(--ease), opacity .2s var(--ease); }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile sheet */
.mobile-nav {
  position: fixed; inset: 0; z-index: 49; display: flex; flex-direction: column;
  padding: calc(var(--header-h) + 2rem) var(--gutter) 2rem;
  background: rgba(5,5,5,.98); backdrop-filter: blur(8px);
  transform: translateX(100%); transition: transform .28s var(--ease);
  visibility: hidden;
}
.nav-open .mobile-nav { transform: translateX(0); visibility: visible; }
.mobile-nav a { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.mobile-nav a[aria-current="page"] { color: var(--red-text); }
.mobile-nav .lang { margin-top: 2rem; font-size: 1rem; }
.mobile-nav .btn { margin-top: 2rem; align-self: flex-start; font-size: 1.05rem; padding: .9rem 1.8rem; border-bottom: 1px solid transparent; }
.mobile-nav .lang a { font-size: 1.05rem; padding: .35rem .5rem; border-bottom: 0; }

@media (min-width: 900px) {
  .nav { display: flex; }
  .nav-toggle { display: none; }
  .mobile-nav { display: none; }
  .header-actions > .lang, .header-actions > .btn { display: inline-flex; }
}

/* ---------- Page shell ------------------------------------- */
main { display: block; }
.page-top { height: var(--header-h); }

/* ---------- Hero ------------------------------------------- */
/* Hero base — mobile/tablet: normal document flow */
.hero { position: relative; overflow: hidden; padding-top: var(--header-h); }

/* Scroll-over reveal (desktop only, where the two-column hero fits one screen):
   the hero becomes a full-height layer pinned to the top, and the content below
   rises and slides over it as you scroll. Pure CSS via position:sticky. */
@media (min-width: 1024px) {
  .hero {
    position: sticky; top: 0; z-index: 0;
    min-height: 100vh; min-height: 100svh;
    display: flex; flex-direction: column; justify-content: center;
    padding: var(--header-h) 0 0;
  }
  .hero ~ section { position: relative; z-index: 1; } /* sections ride above the pinned hero */
  .site-footer { position: relative; z-index: 1; }
  .hero + section { box-shadow: 0 -28px 55px rgba(0,0,0,.55); } /* sells the overlap */
}
.hero__grid-bg { position: absolute; inset: 0; background-image: var(--grid); background-size: 44px 44px; opacity: 1; }
.hero__glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(215,25,32,.28), transparent 34%),
    radial-gradient(circle at 78% 10%, rgba(255,255,255,.08), transparent 28%),
    linear-gradient(180deg, rgba(0,0,0,.1), var(--black) 92%);
}
.hero__fade { position: absolute; inset: auto 0 0 0; height: 11rem; background: linear-gradient(to top, var(--black), transparent); }
.hero__inner {
  position: relative; z-index: 1; max-width: var(--maxw); margin-inline: auto; padding: clamp(1.25rem,2.5vw,2rem) var(--gutter) clamp(2.5rem,5vw,3.5rem);
  display: grid; gap: 3rem; align-items: center;
}
@media (min-width: 1024px) { .hero__inner { grid-template-columns: 1.05fr .95fr; } }

.tag {
  display: inline-block; margin-bottom: 1.75rem;
  border-left: 2px solid var(--red); background: var(--surface-2);
  padding: .55rem 1rem; font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .25em; color: var(--text-mid);
}
.hero h1 { max-width: 16ch; }
.hero h1 .accent { display: block; color: var(--red-text); }
.hero__lead { margin-top: 1.75rem; max-width: 42rem; }

.hero__points { margin-top: 2.5rem; display: grid; gap: 1rem; }
@media (min-width: 560px) { .hero__points { grid-template-columns: repeat(3, 1fr); } }
.point { border-left: 1px solid color-mix(in srgb, var(--red) 70%, transparent); background: var(--surface-2); padding: 1.1rem 1.25rem; }
.point p { display: flex; align-items: flex-start; gap: .65rem; font-size: .9rem; font-weight: 600; line-height: 1.45; }
.point .check { color: var(--red-text); flex: none; font-weight: 800; }

.hero__visual { position: relative; }
.hero__visual::before { content: ""; position: absolute; inset: -2rem; border-radius: 3rem; background: rgba(215,25,32,.18); filter: blur(48px); }
.hero__panel { position: relative; overflow: hidden; border-radius: var(--radius-xl); border: 1px solid var(--line); background: #0b0b0b; padding: 1.25rem; box-shadow: var(--shadow-soft); }
.hero__panel img { width: 100%; height: auto; border-radius: var(--radius-lg); }

/* ---------- Sub-page header -------------------------------- */
.page-header { position: relative; overflow: hidden; padding-top: calc(var(--header-h) + clamp(2.5rem, 6vw, 4.5rem)); padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.page-header .container { max-width: 60rem; position: relative; }
.page-header h1 { margin-top: 1rem; }
.page-header .lead { margin-top: 1.5rem; max-width: 46rem; }

/* ---------- Contact details (details-only page) ------------ */
.contact-grid { display: grid; gap: 1.25rem; align-items: start; }
@media (min-width: 860px) { .contact-grid { grid-template-columns: 1.1fr .9fr; } }
.info-list { display: grid; gap: 1.75rem; }
.info-item { display: grid; gap: .3rem; }
.info-item h3 { font-family: var(--font-body); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .22em; color: var(--text-dim); }
.info-item a, .info-item p { font-size: 1.1rem; }
.info-item a { color: var(--text); transition: color .15s var(--ease); }
.info-item a:hover { color: var(--red-text); }
.info-item .socials { margin-top: .4rem; }

/* ---------- Cards ------------------------------------------ */
.card {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface-2); padding: clamp(1.5rem, 1rem + 1.5vw, 1.85rem);
  transition: transform .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.card--fill { background: var(--surface-2-fill); }
.card .eyebrow { font-size: .78rem; letter-spacing: .25em; }
.card h3 { margin-top: 1rem; }
.card p { margin-top: 1rem; color: var(--text-dim); line-height: 1.7; }
.card--link:hover { border-color: color-mix(in srgb, var(--red) 60%, var(--line)); background: var(--surface-3); transform: translateY(-2px); }
.card--link:active { transform: translateY(0); }

/* ---------- Contact / CTA ---------------------------------- */
.cta { text-align: center; }
.cta__inner { max-width: 56rem; margin-inline: auto; }
.cta .lead { margin-top: 1.75rem; }
.contact-line { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.email-link { font-weight: 600; color: var(--text); text-decoration: underline; text-decoration-color: rgba(215,25,32,.6); text-underline-offset: 4px; transition: color .15s var(--ease); }
.email-link:hover { color: var(--red-text); }

/* ---------- Forms ------------------------------------------ */
.form { max-width: 36rem; margin-inline: auto; text-align: left; display: grid; gap: 1.25rem; }
.field { display: grid; gap: .5rem; }
.field label { font-size: .85rem; font-weight: 600; color: var(--text-mid); }
.field label .opt { color: var(--text-dim); font-weight: 400; }
.field input, .field textarea, .field select {
  font: inherit; color: var(--text); background: var(--panel);
  border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: .8rem 1rem;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(215,25,32,.25); }
.field textarea { min-height: 8rem; resize: vertical; }

/* ---------- Footer ----------------------------------------- */
.site-footer { border-top: 1px solid var(--line); background: var(--dark); padding-block: clamp(3rem, 2rem + 4vw, 4.5rem) 2rem; }
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand .brand { margin-bottom: 1.25rem; }
.footer-brand p { color: var(--text-dim); max-width: 30rem; line-height: 1.7; }
.footer-col h4 { font-family: var(--font-body); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .2em; color: var(--text-dim); margin-bottom: 1.1rem; }
.footer-col li { margin-bottom: .7rem; }
.footer-col a { color: var(--text-mid); transition: color .15s var(--ease); }
.footer-col a:hover { color: var(--red-text); }
.socials { display: flex; gap: .75rem; margin-top: .25rem; }
.socials a { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border: 1px solid var(--line-2); border-radius: 50%; transition: border-color .15s var(--ease), color .15s var(--ease); }
.socials a:hover { border-color: var(--red); color: var(--red-text); }
.socials svg { width: 18px; height: 18px; }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; color: var(--text-dim); font-size: .82rem; }

/* ---------- Motion preferences ----------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* lock scroll when mobile nav open */
body.nav-open { overflow: hidden; }
