/* =========================================================================
   ORBITA STUDIO — design system v2.0
   Philosophy: Premium Restraint — dark/light hybrid
   Reference: Bending Spoons (dark) · Zest Group (structure)
   palette: Ink (#0A0A0F), Night (#0F1523), Electric (#0057FF),
            Plasma (#FF3D00), Lime (#C6FF00), White (#F5F5F0), Mist (#8A8FA8)
   type:    Syne (display) · DM Mono (UI/dati) · Fraunces (editoriale italic)
   ========================================================================= */

:root {
  /* --- Brand primitives (invariati) --- */
  --os-ink:        #0A0A0F;
  --os-night:      #0F1523;
  --os-surface:    #141C2E;
  --os-electric:   #0057FF;
  --os-electric-2: #2D7CFF;
  --os-plasma:     #FF3D00;
  --os-lime:       #C6FF00;
  --os-white:      #F5F5F0;
  --os-mist:       #8A8FA8;
  --os-rule:       rgba(245,245,240,.08);
  --os-rule-2:     rgba(245,245,240,.14);

  /* --- Light surface tokens (NUOVI) --- */
  --os-light-bg:          #EEEEE9;
  --os-light-surface:     #E4E4DF;
  --os-light-rule:        rgba(10,10,15,.08);
  --os-light-rule-2:      rgba(10,10,15,.15);
  --os-on-light:          #0A0A0F;
  --os-on-light-2:        rgba(10,10,15,.62);
  --os-on-light-mist:     rgba(10,10,15,.38);
  --os-electric-on-light: #0047DD;
  --os-plasma-on-light:   #CC3000;

  /* --- Semantic aliases (dark default) --- */
  --os-bg:       var(--os-ink);
  --os-bg-raised:var(--os-night);
  --os-bg-card:  var(--os-surface);
  --os-text:     var(--os-white);
  --os-text-2:   rgba(245,245,240,.72);
  --os-text-3:   var(--os-mist);
  --os-border:   rgba(245,245,240,.08);
  --os-border-2: rgba(245,245,240,.14);

  /* --- Shadows --- */
  --os-glow-e:            0 0 32px rgba(0,87,255,.24), 0 0 64px rgba(0,87,255,.10);
  --os-glow-p:            0 0 28px rgba(255,61,0,.20);
  --os-shadow-card:       0 4px 24px rgba(0,0,0,.28), 0 1px 4px rgba(0,0,0,.16);
  --os-shadow-sm:         0 1px 4px rgba(0,0,0,.14);
  --os-shadow-lg:         0 8px 40px rgba(0,0,0,.32), 0 2px 8px rgba(0,0,0,.18);
  --os-shadow-card-light: 0 2px 16px rgba(10,10,15,.10), 0 1px 4px rgba(10,10,15,.06);
  --os-focus-ring:        0 0 0 2px var(--os-ink), 0 0 0 4px var(--os-electric);
  --os-focus-ring-light:  0 0 0 2px var(--os-light-bg), 0 0 0 4px var(--os-electric-on-light);

  /* --- Fonts --- */
  --os-f-display:  'Syne', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --os-f-mono:     'DM Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --os-f-serif:    'Fraunces', 'Instrument Serif', Georgia, 'Times New Roman', serif;

  /* --- Typography scale (CORRETTA — clamp calibrati, niente sillabazione) --- */
  --os-type-hero:       clamp(48px, 9vw, 108px);
  --os-type-hero-lh:    .90;
  --os-type-hero-ls:    -0.03em;
  --os-type-section:    clamp(28px, 3.6vw, 52px);
  --os-type-section-lh: 1.00;
  --os-type-section-ls: -0.03em;
  --os-type-page:       clamp(36px, 5.5vw, 80px);
  --os-type-page-lh:    .93;
  --os-type-page-ls:    -0.03em;
  --os-type-subhead:    clamp(18px, 1.8vw, 26px);
  --os-type-lead:       clamp(15px, 1.4vw, 19px);

  /* --- Spacing scale (4px base) --- */
  --os-sp-1: 4px;   --os-sp-2: 8px;   --os-sp-3: 12px;  --os-sp-4: 16px;
  --os-sp-5: 24px;  --os-sp-6: 32px;  --os-sp-7: 48px;  --os-sp-8: 64px;
  --os-sp-9: 80px;  --os-sp-10: 96px; --os-sp-11: 128px; --os-sp-12: 160px;

  /* --- Layout --- */
  --os-pad-x:       clamp(20px, 5vw, 64px);
  --os-max:         1280px;
  --os-section-py:  clamp(80px, 10vw, 140px);
  --os-section-gap: clamp(48px, 6vw, 96px);

  /* --- Radii --- */
  --os-radius-sm: 2px;
  --os-radius:    4px;
  --os-radius-md: 8px;
  --os-radius-lg: 16px;

  /* --- Motion --- */
  --os-ease:        cubic-bezier(.22,.61,.36,1);
  --os-ease-in:     cubic-bezier(.55,.01,.78,0);
  --os-ease-out:    cubic-bezier(.0,.55,.45,1);
  --os-ease-bounce: cubic-bezier(.34,1.56,.64,1);
  --os-dur:         400ms;
  --os-dur-fast:    200ms;
  --os-dur-slow:    600ms;
}

/* ------- reset / base ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--os-ink);
  color: var(--os-white);
  font-family: var(--os-f-mono);
  font-size: 15px;
  line-height: 1.68;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1em; }
hr { border: 0; height: 1px; background: var(--os-rule); margin: 0; }
em { font-family: var(--os-f-serif); font-style: italic; font-weight: 400;
     font-optical-sizing: auto; color: var(--os-electric-2); }

/* ------- prevent text overflow on all headings ----------------------------- */
h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
  word-break: break-word;
}

::selection { background: var(--os-electric); color: var(--os-white); }

/* ------- scroll progress bar --------------------------------------------- */
#os-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 200;
  background: linear-gradient(to right, var(--os-electric), var(--os-plasma), var(--os-lime));
  transform-origin: left; transform: scaleX(0);
  pointer-events: none; opacity: 0;
  transition: opacity .3s;
}
#os-progress.is-visible { opacity: 1; }

/* Skip link */
.os-skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--os-electric); color: var(--os-white);
  padding: 8px 14px; font-family: var(--os-f-mono); font-size: 12px;
  z-index: 9999;
}
.os-skip-link:focus { left: 8px; }

body.is-locked { overflow: hidden; }

/* ------- header ----------------------------------------------------------- */
.os-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,10,15,.78);
  backdrop-filter: saturate(140%) blur(16px);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  border-bottom: 1px solid var(--os-rule);
  transition: background .3s var(--os-ease), border-color .3s var(--os-ease);
}
.os-header.is-scrolled {
  background: rgba(10,10,15,.96);
  border-bottom-color: var(--os-rule-2);
}
.os-header__inner {
  max-width: var(--os-max); margin: 0 auto;
  padding: 16px var(--os-pad-x);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.os-logo { display: inline-flex; align-items: center; gap: 10px; }
.os-logo svg { transition: transform .8s var(--os-ease); }
.os-logo:hover svg { transform: rotate(35deg); }
.os-logo__name { display: inline-flex; flex-direction: column; line-height: 1; letter-spacing: -0.01em; }
.os-logo__primary { font-family: var(--os-f-display); font-weight: 800; font-size: 14px;
                    color: var(--os-white); letter-spacing: 0.06em; }
.os-logo__secondary { font-family: var(--os-f-mono); font-size: 9px; color: var(--os-mist);
                      letter-spacing: 0.28em; margin-top: 2px; }

.os-nav { display: flex; align-items: center; gap: 2px; }
.os-nav__link {
  font-family: var(--os-f-mono); font-size: 12px; color: rgba(245,245,240,.65);
  padding: 8px 13px; position: relative; transition: color .2s; letter-spacing: 0.02em;
}
.os-nav__link::after {
  content: ''; position: absolute; left: 13px; right: 13px; bottom: 4px;
  height: 1px; background: var(--os-electric); transform-origin: left;
  transform: scaleX(0); transition: transform .3s var(--os-ease);
}
.os-nav__link:hover { color: var(--os-white); }
.os-nav__link:hover::after, .os-nav__link.is-active::after { transform: scaleX(1); }
.os-nav__link.is-active { color: var(--os-white); }

.os-header__end { display: flex; align-items: center; gap: 12px; }
.os-header__cta {
  font-family: var(--os-f-mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--os-white);
  padding: 10px 18px;
  border: 1px solid rgba(0,87,255,.5);
  background: rgba(0,87,255,.12);
  position: relative; overflow: hidden;
  transition: border-color .25s, background .25s, transform .25s var(--os-ease), box-shadow .25s;
}
.os-header__cta:hover {
  border-color: var(--os-electric);
  background: rgba(0,87,255,.26);
  transform: translateY(-1px);
  box-shadow: var(--os-glow-e);
}

/* Auth link nel menu — stesso stile degli altri nav link, differenziato per stato */
.os-nav__link--auth { color: var(--os-mist); }
.os-nav__link--auth:hover { color: var(--os-white); }
.os-nav__link--auth::after { display: none; } /* nessuna sottolineatura hover */
.os-nav__link--in { color: var(--os-lime) !important; }
.os-nav__link--in:hover { color: var(--os-lime) !important; }

.os-burger {
  display: none; width: 38px; height: 38px;
  background: transparent; border: 1px solid var(--os-rule-2);
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  padding: 0;
}
.os-burger span {
  display: block; width: 18px; height: 1.5px; background: var(--os-white);
  transition: transform .28s var(--os-ease), opacity .2s;
}
body.is-locked .os-burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
body.is-locked .os-burger span:nth-child(2) { opacity: 0; transform: scaleX(0); }

@media (max-width: 1024px) {
  .os-nav, .os-header__cta { display: none; }
  .os-burger { display: inline-flex; }
}

/* Drawer */
.os-drawer {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(10,10,15,.98);
  backdrop-filter: blur(24px);
  padding: 88px var(--os-pad-x) 40px;
  transform: translateY(-100%);
  transition: transform .5s var(--os-ease);
  display: flex; flex-direction: column; gap: 36px;
  overflow-y: auto;
}
.os-drawer.is-open { transform: translateY(0); }
.os-drawer__close {
  position: absolute; top: 22px; right: var(--os-pad-x);
  width: 40px; height: 40px;
  background: transparent; border: 1px solid var(--os-rule-2);
  color: var(--os-white);
  display: flex; align-items: center; justify-content: center;
  transition: border-color .2s, background .2s;
}
.os-drawer__close:hover { border-color: var(--os-plasma); background: rgba(255,61,0,.06); }
.os-drawer__nav { display: flex; flex-direction: column; gap: 4px; }
.os-drawer__link {
  font-family: var(--os-f-display); font-weight: 700;
  font-size: clamp(28px, 7vw, 48px);
  letter-spacing: -0.025em; color: var(--os-white);
  padding: 10px 0; border-bottom: 1px solid var(--os-rule);
  transition: color .2s, padding-left .25s var(--os-ease);
}
.os-drawer__link:hover { color: var(--os-electric-2); padding-left: 12px; }
.os-drawer__link--auth { color: var(--os-mist); font-size: clamp(20px, 5vw, 32px); }
.os-drawer__link--auth:hover { color: var(--os-white); }
.os-drawer__link--in { color: var(--os-lime) !important; }
.os-drawer__link--in:hover { color: var(--os-lime) !important; }
.os-drawer__sep {
  border: 0; height: 1px; background: var(--os-rule-2); margin: 8px 0;
}
.os-drawer__link--secondary {
  font-size: clamp(20px, 5vw, 32px);
  color: var(--os-mist) !important;
}
.os-drawer__link--secondary:hover { color: var(--os-white) !important; }
.os-drawer__footer {
  margin-top: auto; display: flex; flex-direction: column; gap: 16px;
  padding-top: 24px; border-top: 1px solid var(--os-rule);
}
.os-drawer__cta { font-family: var(--os-f-mono); font-size: 14px; color: var(--os-electric-2); letter-spacing: 0.05em; }
.os-drawer__tag { font-family: var(--os-f-serif); font-style: italic; font-size: 18px; color: var(--os-mist); margin: 0; }

/* ------- typography utilities -------------------------------------------- */
.os-eyebrow {
  display: inline-block;
  font-family: var(--os-f-mono); font-size: 10px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--os-electric); margin: 0 0 14px;
}
.os-eyebrow--mist  { color: var(--os-mist); }
.os-eyebrow--red   { color: var(--os-plasma); }
.os-eyebrow--light { color: rgba(245,245,240,.5); }

/* ------- buttons --------------------------------------------------------- */
.os-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--os-f-mono); font-size: 12px; letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 24px; border: 1px solid transparent;
  background: transparent; color: var(--os-white);
  position: relative; overflow: hidden;
  transition: transform .3s var(--os-ease), background .25s, color .25s,
              border-color .25s, box-shadow .25s;
}
.os-btn:active { transform: translateY(1px) !important; }
.os-btn span { position: relative; z-index: 3; pointer-events: none; }

.os-btn--primary { background: var(--os-electric); border-color: var(--os-electric); color: var(--os-white); }
.os-btn--primary::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(135deg, var(--os-plasma), var(--os-electric));
  transform: translateX(-100%); transition: transform .45s var(--os-ease);
}
.os-btn--primary:hover { transform: translateY(-2px); box-shadow: var(--os-glow-e); }
.os-btn--primary:hover::before { transform: translateX(0); }
.os-btn--primary span,
.os-btn--primary > * { position: relative; z-index: 4; color: var(--os-white); }

.os-btn--ghost { border-color: var(--os-rule-2); color: var(--os-white); }
.os-btn--ghost:hover {
  border-color: var(--os-electric);
  background: rgba(0,87,255,.08);
  transform: translateY(-1px);
}

.os-btn--ghost-light { border-color: rgba(10,10,15,.18); color: var(--os-ink); }
.os-btn--ghost-light:hover { border-color: var(--os-ink); background: rgba(10,10,15,.05); }

.os-btn--ghost-plasma { border-color: rgba(255,61,0,.40); color: var(--os-white); }
.os-btn--ghost-plasma:hover {
  border-color: var(--os-plasma);
  background: rgba(255,61,0,.10);
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(255,61,0,.15);
}

.os-btn--lime {
  background: var(--os-lime); border-color: var(--os-lime);
  color: var(--os-ink); font-weight: 600;
}
.os-btn--lime span { color: var(--os-ink); z-index: 2; }
.os-btn--lime:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 28px rgba(198,255,0,.30), 0 4px 16px rgba(0,0,0,.20);
  background: #d4ff1a; border-color: #d4ff1a;
}

/* ------- HERO (home) — v2.0 single column, SVG atmosferico -------------- */
.os-hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: clamp(100px, 14vw, 180px) var(--os-pad-x) clamp(80px, 10vw, 140px);
  overflow: hidden;
  background:
    radial-gradient(ellipse at 80% 15%, rgba(0,87,255,.18), transparent 52%),
    radial-gradient(ellipse at 18% 88%, rgba(255,61,0,.10), transparent 52%),
    var(--os-ink);
  border-bottom: 1px solid var(--os-rule);
}
/* noise grain */
.os-hero__noise {
  position: absolute; inset: 0; pointer-events: none; opacity: .22;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* dot grid — sfondo destro */
.os-hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: radial-gradient(circle, rgba(245,245,240,.045) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at 72% 50%, black 20%, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse at 72% 50%, black 20%, transparent 65%);
}
/* SVG orbit — atmosferico, destra */
.os-hero__svg {
  position: absolute; right: -4%; top: 50%;
  transform: translateY(-50%);
  width: clamp(360px, 48vw, 680px); height: auto;
  opacity: .13; pointer-events: none; z-index: 0;
}
.os-ring-eq  { animation: os-spin 26s linear infinite; transform-origin: 200px 200px; }
.os-ring-inc { animation: os-spin 38s linear infinite reverse; transform-origin: 200px 200px; }
@keyframes os-spin { to { transform: rotate(360deg); } }

.os-hero__inner { max-width: var(--os-max); margin: 0 auto; position: relative; z-index: 2; width: 100%; }

/* copy — max-width per non toccare l'SVG */
.os-hero__copy {
  max-width: min(680px, 58%);
}
@media (max-width: 900px) { .os-hero__copy { max-width: 100%; } }
@media (max-width: 768px) {
  .os-hero { min-height: 80vh; }
  .os-hero__svg { width: clamp(280px, 72vw, 420px); right: 50%; top: 0;
                  transform: translate(50%, -30%); opacity: .08; }
}

.os-hero__eyebrow { margin-bottom: 28px; }
.os-hero__title {
  font-family: var(--os-f-display); font-weight: 800;
  font-size: var(--os-type-hero);
  line-height: var(--os-type-hero-lh); letter-spacing: var(--os-type-hero-ls);
  margin: 0 0 32px; color: var(--os-white);
  hyphens: none; -webkit-hyphens: none;
}
.os-hero__title em { display: block; }
.os-hero__lead {
  font-family: var(--os-f-serif); font-style: italic; font-weight: 400;
  font-size: var(--os-type-lead); line-height: 1.56;
  color: rgba(245,245,240,.78); max-width: 56ch; margin: 0 0 36px;
}
.os-hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* hero title responsive */
@media (max-width: 768px) {
  .os-hero__title { font-size: clamp(40px, 10vw, 72px); }
}


/* ------- generic section -------------------------------------------------- */
.os-section { padding: clamp(72px, 9vw, 130px) var(--os-pad-x); position: relative; }
.os-section--ink    { background: var(--os-ink); }
.os-section--night  { background: var(--os-night); }
.os-section--border { border-top: 1px solid var(--os-rule); }
.os-section__inner  { max-width: var(--os-max); margin: 0 auto; }
.os-section__head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 32px; margin-bottom: clamp(40px, 5vw, 64px);
}
@media (max-width: 768px) { .os-section__head { flex-direction: column; align-items: flex-start; } }
/* FIX — overflow prevention on large titles (hyphens: none risolve il bug sillabazione) */
.os-section__title, .os-page-hero__title, .os-hero__title {
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
  -webkit-hyphens: none;
}
.os-section__title {
  font-family: var(--os-f-display); font-weight: 800;
  font-size: var(--os-type-section); line-height: var(--os-type-section-lh);
  letter-spacing: var(--os-type-section-ls); margin: 0 0 18px; color: var(--os-white);
}
/* em inside section titles → Fraunces italic (matches hero + manifesto treatment) */
.os-section__title em {
  font-family: var(--os-f-serif); font-style: italic; font-weight: 400;
  letter-spacing: -0.01em;
}
.os-section--ink    .os-section__title em,
.os-section--night  .os-section__title em { color: var(--os-electric-2); }
.os-section--light  .os-section__title em { color: var(--os-electric-on-light); }
.os-section__lead {
  font-family: var(--os-f-serif); font-style: italic; font-weight: 400;
  font-size: clamp(16px, 1.6vw, 19px); line-height: 1.55;
  color: rgba(245,245,240,.7); max-width: 52ch; margin: 0;
}
.os-section__more {
  font-family: var(--os-f-mono); font-size: 12px;
  color: var(--os-electric); letter-spacing: 0.04em;
  display: inline-flex; gap: 6px; align-items: center;
  transition: color .25s, letter-spacing .3s;
}
.os-section__more:hover { color: var(--os-electric-2); letter-spacing: 0.07em; }


/* ------- ECOSYSTEM (3 audiences) ----------------------------------------- */
.os-ecosystem {
  padding: clamp(72px, 9vw, 130px) var(--os-pad-x);
  background: var(--os-ink);
  border-top: 1px solid var(--os-rule);
}
.os-ecosystem__head { max-width: var(--os-max); margin: 0 auto clamp(40px, 5vw, 64px); }
.os-ecosystem__head h2 {
  font-family: var(--os-f-display); font-weight: 800;
  font-size: var(--os-type-section); line-height: var(--os-type-section-lh);
  letter-spacing: var(--os-type-section-ls); margin: 0; color: var(--os-white);
  hyphens: none; -webkit-hyphens: none;
}
.os-ecosystem__grid {
  max-width: var(--os-max); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--os-rule); border: 1px solid var(--os-rule);
}
@media (max-width: 1024px) { .os-ecosystem__grid { grid-template-columns: 1fr; } }
.os-audience {
  background: var(--os-night); padding: 40px 34px;
  display: flex; flex-direction: column; gap: 14px;
  transition: background .3s; position: relative; overflow: hidden;
}
.os-audience::before {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(to right, var(--os-electric), transparent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .42s var(--os-ease);
}
.os-audience::after {
  content: '→'; position: absolute; top: 38px; right: 34px;
  font-family: var(--os-f-display); font-size: 22px; color: var(--os-electric);
  opacity: 0; transform: translateX(-10px);
  transition: opacity .3s, transform .3s var(--os-ease);
}
.os-audience:hover { background: rgba(0,87,255,.05); }
.os-audience:hover::before { transform: scaleX(1); }
.os-audience:hover::after { opacity: 1; transform: translateX(0); }
.os-audience__num { font-family: var(--os-f-mono); font-size: 11px; color: var(--os-mist); letter-spacing: 0.18em; }
.os-audience__label {
  font-family: var(--os-f-mono); font-size: 11px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--os-electric); margin: 0;
}
.os-audience h3 {
  font-family: var(--os-f-display); font-weight: 700;
  font-size: clamp(22px, 2.4vw, 28px); line-height: 1.15;
  letter-spacing: -0.02em; color: var(--os-white); margin: 4px 0 8px;
}
.os-audience p {
  font-family: var(--os-f-mono); font-size: 13px; line-height: 1.72;
  color: rgba(245,245,240,.62); margin: 0;
}

/* ------- PROCESS (4 steps) ----------------------------------------------- */
.os-process {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--os-rule); border: 1px solid var(--os-rule);
}
@media (max-width: 1024px) { .os-process { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px)  { .os-process { grid-template-columns: 1fr; } }
.os-step {
  background: var(--os-night); padding: 34px 28px;
  display: flex; flex-direction: column; gap: 14px; min-height: 280px;
  transition: background .3s; position: relative; overflow: hidden;
}
.os-step::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(255,61,0,.07), transparent 65%);
  opacity: 0; transition: opacity .4s;
}
.os-step:hover { background: rgba(255,61,0,.025); }
.os-step:hover::after { opacity: 1; }
.os-step:hover .os-step__badge { border-color: var(--os-plasma); color: var(--os-plasma); }
.os-step__badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid var(--os-electric); color: var(--os-electric);
  font-family: var(--os-f-display); font-weight: 800; font-size: 14px;
  transition: border-color .3s, color .3s; position: relative; z-index: 1;
}
.os-step__num { letter-spacing: -0.02em; }
.os-step__phase { font-family: var(--os-f-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--os-mist); margin: 0; position: relative; z-index: 1; }
.os-step__title { font-family: var(--os-f-display); font-weight: 700; font-size: 18px; line-height: 1.2; color: var(--os-white); margin: 4px 0 8px; letter-spacing: -0.01em; position: relative; z-index: 1; }
.os-step__body { font-family: var(--os-f-mono); font-size: 13px; line-height: 1.72; color: rgba(245,245,240,.6); margin: 0; position: relative; z-index: 1; }

/* ------- PAPER CARD ------------------------------------------------------- */
.os-paper-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1px; background: var(--os-rule); border: 1px solid var(--os-rule);
}
.os-paper-card {
  background: var(--os-night); padding: 26px;
  display: flex; flex-direction: column; gap: 16px;
  transition: background .3s, box-shadow .3s; position: relative;
}
.os-paper-card::before {
  content: ''; position: absolute; left: 0; top: 0; width: 2px; height: 0;
  background: linear-gradient(to bottom, var(--os-electric), var(--os-plasma));
  transition: height .4s var(--os-ease);
}
.os-paper-card:hover { background: rgba(0,87,255,.04); box-shadow: inset 0 0 0 1px rgba(0,87,255,.12); }
.os-paper-card:hover::before { height: 100%; }
.os-paper-card__bar { display: flex; justify-content: space-between; gap: 12px; font-family: var(--os-f-mono); font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; }
.os-paper-card__type   { color: var(--os-electric); }
.os-paper-card__status { color: var(--os-mist); }
.os-paper-card__status--pub { color: var(--os-lime); }
.os-paper-card__status--rev { color: var(--os-electric-2); }
.os-paper-card__status--wip { color: var(--os-plasma); }
.os-paper-card__body { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.os-paper-card__sector { font-family: var(--os-f-mono); font-size: 10px; color: var(--os-mist); letter-spacing: 0.1em; text-transform: uppercase; }
.os-paper-card__title { font-family: var(--os-f-display); font-weight: 700; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.25; color: var(--os-white); margin: 0; letter-spacing: -0.015em; }
.os-paper-card__abs { font-family: var(--os-f-mono); font-size: 12.5px; line-height: 1.72; color: rgba(245,245,240,.56); margin: 0; }
.os-paper-card__footer { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; padding-top: 14px; border-top: 1px solid var(--os-rule); margin-top: auto; }
.os-paper-card__meta { font-family: var(--os-f-mono); font-size: 10px; color: var(--os-mist); display: flex; flex-wrap: wrap; gap: 6px; }
.os-paper-card__read { font-family: var(--os-f-mono); font-size: 11px; color: var(--os-electric); letter-spacing: 0.06em; transition: letter-spacing .2s; }
.os-paper-card:hover .os-paper-card__read { letter-spacing: 0.10em; }

/* ------- MANIFESTO ------------------------------------------------------- */
.os-manifesto {
  padding: clamp(90px, 13vw, 180px) var(--os-pad-x);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(0,87,255,.16), transparent 60%),
    radial-gradient(ellipse at 80% 100%, rgba(255,61,0,.07), transparent 50%),
    var(--os-ink);
  border-top: 1px solid var(--os-rule); border-bottom: 1px solid var(--os-rule);
  text-align: center; position: relative; overflow: hidden;
}
.os-manifesto::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: radial-gradient(circle, rgba(245,245,240,.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 68%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 68%);
}
.os-manifesto__inner { max-width: 980px; margin: 0 auto; position: relative; z-index: 1; }
.os-manifesto__quote {
  font-family: var(--os-f-display); font-weight: 800;
  font-size: clamp(32px, 5vw, 68px); line-height: 1.05;
  letter-spacing: -0.03em; color: var(--os-white); margin: 0 0 32px;
}
.os-manifesto__sub {
  font-family: var(--os-f-serif); font-style: italic;
  font-size: clamp(17px, 1.7vw, 22px);
  color: rgba(245,245,240,.65); max-width: 60ch; margin: 0 auto 28px;
}
.os-link {
  font-family: var(--os-f-mono); font-size: 12px; color: var(--os-electric);
  letter-spacing: 0.04em; border-bottom: 1px solid currentColor; padding-bottom: 2px;
  transition: color .2s, letter-spacing .2s;
}
.os-link--white { color: var(--os-white); }
.os-link:hover { color: var(--os-electric-2); letter-spacing: 0.07em; }


/* ------- PAGE HERO (interior pages) -------------------------------------- */
.os-page-hero {
  padding: clamp(72px, 10vw, 148px) var(--os-pad-x) clamp(56px, 7vw, 88px);
  background:
    radial-gradient(ellipse at 80% 0%, rgba(0,87,255,.13), transparent 52%),
    radial-gradient(ellipse at 10% 100%, rgba(255,61,0,.07), transparent 48%),
    var(--os-ink);
  border-bottom: 1px solid var(--os-rule);
  position: relative; overflow: hidden;
}
/* dot grid atmosphere */
.os-page-hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: radial-gradient(circle, rgba(245,245,240,.05) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at 60% 0%, black 25%, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse at 60% 0%, black 25%, transparent 65%);
}
.os-page-hero__inner {
  max-width: var(--os-max); margin: 0 auto;
  display: flex; flex-direction: column;
  gap: clamp(22px, 3vw, 36px);
  position: relative; z-index: 1;
}
.os-page-hero__num {
  font-family: var(--os-f-mono); font-size: 10px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--os-mist); display: block; margin-bottom: 14px;
}
.os-page-hero__title {
  font-family: var(--os-f-display); font-weight: 800;
  font-size: var(--os-type-page); line-height: var(--os-type-page-lh);
  letter-spacing: var(--os-type-page-ls); color: var(--os-white); margin: 0;
  hyphens: none; -webkit-hyphens: none;
}
.os-page-hero__title em { display: block; }
.os-page-hero__lead {
  font-family: var(--os-f-serif); font-style: italic;
  font-size: var(--os-type-lead); line-height: 1.56;
  color: rgba(245,245,240,.72);
  max-width: 68ch; margin: 0;
}
@media (max-width: 768px) {
  .os-page-hero__title { font-size: clamp(36px, 11vw, 72px); }
}
@media (max-width: 540px) {
  .os-page-hero__title { font-size: clamp(32px, 10vw, 56px); }
  .os-page-hero__lead  { font-size: 15px; }
}

/* ------- PAGE BODY (long-form) ------------------------------------------- */
.os-page-body { padding: clamp(60px, 7vw, 100px) var(--os-pad-x); background: var(--os-ink); }
.os-page-body__inner {
  max-width: var(--os-max); margin: 0 auto;
  display: grid; grid-template-columns: 220px 1fr;
  gap: clamp(32px, 5vw, 72px); align-items: start;
}
@media (max-width: 1024px) { .os-page-body__inner { grid-template-columns: 1fr; } }
.os-page-aside {
  position: sticky; top: 90px;
  display: flex; flex-direction: column; gap: 18px;
  padding: 20px; border: 1px solid var(--os-rule);
  background: rgba(245,245,240,.015);
}
.os-page-aside__label { font-family: var(--os-f-mono); font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--os-mist); }
.os-page-aside__nav { display: flex; flex-direction: column; gap: 8px; }
.os-page-aside__nav a {
  font-family: var(--os-f-mono); font-size: 12px; color: rgba(245,245,240,.65);
  padding: 6px 0 6px 10px; border-left: 2px solid transparent;
  transition: border-color .2s, color .2s;
}
.os-page-aside__nav a:hover { color: var(--os-white); }
.os-page-aside__nav a.is-active { border-left-color: var(--os-electric); color: var(--os-white); }
.os-page-aside__meta { font-family: var(--os-f-mono); font-size: 10px; color: var(--os-mist); line-height: 1.7; padding-top: 14px; border-top: 1px solid var(--os-rule); }

.os-page-content { font-family: var(--os-f-mono); font-size: 14px; line-height: 1.78; color: rgba(245,245,240,.82); max-width: 72ch; }
.os-page-content h2 { font-family: var(--os-f-display); font-weight: 700; font-size: clamp(26px, 3.2vw, 38px); line-height: 1.15; letter-spacing: -0.025em; color: var(--os-white); margin: 56px 0 16px; }
.os-page-content h2:first-child { margin-top: 0; }
.os-page-content h3 { font-family: var(--os-f-display); font-weight: 600; font-size: clamp(18px, 2vw, 22px); color: var(--os-white); margin: 32px 0 10px; letter-spacing: -0.015em; }
.os-page-content p { margin: 0 0 1.1em; }
.os-page-content strong { color: var(--os-white); font-weight: 500; }
.os-page-content ul { margin: 0 0 1.2em; padding-left: 0; display: flex; flex-direction: column; gap: 10px; }
.os-page-content li { font-size: 13.5px; line-height: 1.7; padding-left: 22px; position: relative; }
.os-page-content li::before { content: '→'; position: absolute; left: 0; color: var(--os-electric); font-weight: 500; }

.os-callout { margin: 28px 0; padding: 22px 24px; border: 1px solid rgba(0,87,255,.22); background: linear-gradient(135deg, rgba(0,87,255,.08), rgba(0,87,255,.02)); position: relative; }
.os-callout__label { font-family: var(--os-f-mono); font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--os-electric); display: block; margin-bottom: 10px; }
.os-callout__body { font-family: var(--os-f-serif); font-style: italic; font-size: 16px; line-height: 1.6; color: rgba(245,245,240,.86); margin: 0; }
.os-page-cta-inline { margin: 36px 0; padding: 26px 28px; border: 1px solid var(--os-electric); background: rgba(0,87,255,.06); display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.os-page-cta-inline__title { font-family: var(--os-f-display); font-weight: 700; font-size: 18px; color: var(--os-white); margin: 0 0 4px; }
.os-page-cta-inline__sub { font-family: var(--os-f-mono); font-size: 11px; color: var(--os-mist); margin: 0; }

/* timeline */
.os-timeline { display: flex; flex-direction: column; border-left: 1px solid var(--os-rule); padding-left: 28px; }
.os-timeline__step { padding: 18px 0; position: relative; }
.os-timeline__step + .os-timeline__step { border-top: 1px solid var(--os-rule); }
.os-timeline__num { position: absolute; left: -52px; top: 18px; width: 44px; height: 44px; border: 1px solid var(--os-electric); color: var(--os-electric); display: flex; align-items: center; justify-content: center; font-family: var(--os-f-display); font-weight: 700; font-size: 12px; background: var(--os-ink); }
.os-timeline__content { padding-left: 8px; }
.os-timeline__date { font-family: var(--os-f-mono); font-size: 10px; color: var(--os-mist); letter-spacing: 0.18em; text-transform: uppercase; margin: 0 0 6px; }
.os-timeline__title { font-family: var(--os-f-display); font-weight: 700; font-size: 18px; color: var(--os-white); letter-spacing: -0.01em; margin: 0 0 6px; }
.os-timeline__desc { font-family: var(--os-f-mono); font-size: 12.5px; line-height: 1.7; color: rgba(245,245,240,.65); margin: 0; }

/* org chart */
.os-org { display: flex; flex-direction: column; gap: 14px; }
.os-org__row { display: grid; gap: 14px; }
.os-org__row--1 { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
.os-org__row--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 768px) { .os-org__row--3 { grid-template-columns: 1fr; } }
.os-org__node { padding: 20px; border: 1px solid var(--os-rule-2); background: var(--os-night); position: relative; transition: border-color .25s; }
.os-org__node:hover { border-color: rgba(0,87,255,.30); }
.os-org__node--active { border-color: var(--os-electric); background: linear-gradient(135deg, rgba(0,87,255,.12), transparent); }
.os-org__node-label { font-family: var(--os-f-mono); font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--os-electric); margin: 0 0 8px; }
.os-org__node-title { font-family: var(--os-f-display); font-weight: 700; font-size: 17px; color: var(--os-white); letter-spacing: -0.015em; margin: 0 0 6px; }
.os-org__node-desc { font-family: var(--os-f-mono); font-size: 11.5px; line-height: 1.7; color: rgba(245,245,240,.6); margin: 0; }

/* roles / tags */
.os-roles { display: flex; flex-direction: column; gap: 1px; background: var(--os-rule); border: 1px solid var(--os-rule); }
.os-role { background: var(--os-night); padding: 18px 22px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; transition: background .25s; }
.os-role:hover { background: rgba(0,87,255,.04); }
.os-role__pill { font-family: var(--os-f-mono); font-size: 11px; letter-spacing: 0.06em; padding: 6px 12px; border: 1px solid currentColor; }
.os-role__pill--junior  { color: var(--os-mist); }
.os-role__pill--analyst { color: var(--os-electric); }
.os-role__pill--senior  { color: var(--os-lime); }
.os-role__pill--lead    { color: var(--os-plasma); }
.os-role__req { font-family: var(--os-f-mono); font-size: 12px; color: rgba(245,245,240,.62); }

.os-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.os-tag { font-family: var(--os-f-mono); font-size: 11px; padding: 6px 10px; border: 1px solid var(--os-rule-2); color: rgba(245,245,240,.7); transition: border-color .2s, color .2s; }
.os-tag:hover { border-color: var(--os-rule); color: var(--os-white); }
.os-tag--blue   { color: var(--os-electric); border-color: rgba(0,87,255,.4); }
.os-tag--lime   { color: var(--os-lime); border-color: rgba(198,255,0,.4); }
.os-tag--mist   { color: var(--os-mist); }
.os-tag--plasma { color: var(--os-plasma); border-color: rgba(255,61,0,.4); }
.os-tag--filled { background: var(--os-white); color: var(--os-ink); border-color: var(--os-white); }

.os-mini-tag { font-family: var(--os-f-mono); font-size: 9px; padding: 4px 8px; border: 1px solid var(--os-rule-2); color: var(--os-mist); letter-spacing: 0.1em; text-transform: uppercase; }
.os-mini-tag--lime { color: var(--os-lime); border-color: rgba(198,255,0,.3); }
.os-mini-tag--blue { color: var(--os-electric); border-color: rgba(0,87,255,.3); }

/* form */
.os-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: clamp(24px, 4vw, 40px); background: var(--os-night); border: 1px solid var(--os-rule); }
@media (max-width: 540px) { .os-form { grid-template-columns: 1fr; } }
.os-form__field { display: flex; flex-direction: column; gap: 6px; }
.os-form__field--full { grid-column: 1 / -1; }
.os-form label { font-family: var(--os-f-mono); font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--os-mist); }
.os-form input, .os-form select, .os-form textarea {
  background: var(--os-ink); border: 1px solid rgba(0,87,255,.18); color: var(--os-white);
  padding: 12px 14px; font-family: var(--os-f-mono); font-size: 13px; width: 100%;
  -webkit-appearance: none; border-radius: 0; outline: 0;
  transition: border-color .2s, box-shadow .2s;
  min-height: 48px;
}
.os-form input:focus, .os-form select:focus, .os-form textarea:focus {
  border-color: var(--os-electric);
  box-shadow: 0 0 0 3px rgba(0,87,255,.12);
}
.os-form textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.os-form__hint { font-family: var(--os-f-mono); font-size: 10px; color: var(--os-mist); line-height: 1.5; }
.os-form__actions { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-top: 8px; border-top: 1px solid var(--os-rule); margin-top: 8px; }
.os-form__success { grid-column: 1 / -1; display: none; padding: 24px; border: 1px solid rgba(198,255,0,.4); background: rgba(198,255,0,.05); font-family: var(--os-f-mono); font-size: 13px; color: var(--os-white); line-height: 1.7; }
.os-form__success.is-visible { display: block; animation: os-fade-in .4s ease both; }
.os-form__success strong { color: var(--os-lime); }
.os-form__error { grid-column: 1 / -1; display: none; padding: 16px 20px; border: 1px solid rgba(255,61,0,.4); background: rgba(255,61,0,.06); font-family: var(--os-f-mono); font-size: 12px; color: var(--os-plasma); line-height: 1.6; }
.os-form__error.is-visible { display: block; animation: os-fade-in .4s ease both; }
@keyframes os-fade-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Highlights bar */
.os-hl { background: var(--os-night); border-bottom: 1px solid var(--os-rule); padding: 28px var(--os-pad-x); }
.os-hl__inner { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
@media (max-width: 768px) { .os-hl__inner { grid-template-columns: 1fr 1fr; gap: 1px; background: var(--os-rule); border: 1px solid var(--os-rule); } .os-hl__cell { background: var(--os-night); padding: 16px; border: 0 !important; } }
@media (max-width: 480px) { .os-hl__inner { grid-template-columns: 1fr; } }
.os-hl__cell { padding: 6px 28px 6px 0; border-right: 1px solid var(--os-rule); display: flex; flex-direction: column; gap: 4px; }
.os-hl__cell + .os-hl__cell { padding-left: 28px; padding-right: 28px; }
.os-hl__cell:last-child { border-right: 0; padding-right: 0; }
.os-hl__k { font-family: var(--os-f-mono); font-size: 9px; letter-spacing: 2px; text-transform: uppercase; color: var(--os-electric); }
.os-hl__v { font-family: var(--os-f-display); font-weight: 700; font-size: clamp(18px, 2vw, 24px); color: var(--os-white); letter-spacing: -0.01em; line-height: 1.1; }
.os-hl__d { font-family: var(--os-f-mono); font-size: 10px; color: var(--os-mist); margin-top: 2px; }

/* Filters */
.os-filters { background: var(--os-night); border-top: 1px solid var(--os-rule); border-bottom: 1px solid var(--os-rule); padding: 24px var(--os-pad-x); }
.os-filters__inner { max-width: var(--os-max); margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.os-filters__top { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.os-search { flex: 1; min-width: 260px; display: inline-flex; align-items: center; gap: 10px; background: var(--os-ink); border: 1px solid rgba(0,87,255,.18); padding: 10px 14px; transition: border-color .2s, box-shadow .2s; }
.os-search:focus-within { border-color: var(--os-electric); box-shadow: 0 0 0 3px rgba(0,87,255,.10); }
.os-search__icon { color: var(--os-mist); flex-shrink: 0; }
.os-search input { flex: 1; background: transparent; border: 0; color: var(--os-white); font-family: var(--os-f-mono); font-size: 13px; outline: 0; min-height: 28px; }
.os-search__clear { background: transparent; border: 0; color: var(--os-mist); display: none; padding: 4px; }
.os-search input:not(:placeholder-shown) ~ .os-search__clear { display: inline-flex; }
.os-search__shortcut { font-family: var(--os-f-mono); font-size: 10px; color: var(--os-mist); padding: 3px 7px; border: 1px solid var(--os-rule-2); letter-spacing: 0.06em; }
.os-sort { display: inline-flex; align-items: center; gap: 8px; font-family: var(--os-f-mono); font-size: 11px; color: var(--os-mist); }
.os-sort select { background: var(--os-ink); border: 1px solid var(--os-rule-2); color: var(--os-white); padding: 8px 10px; font-family: var(--os-f-mono); font-size: 12px; border-radius: 0; min-height: 40px; }
.os-filters__reset { background: transparent; border: 1px solid var(--os-rule-2); color: var(--os-plasma); padding: 8px 12px; font-family: var(--os-f-mono); font-size: 11px; display: inline-flex; align-items: center; gap: 6px; letter-spacing: 0.06em; transition: border-color .2s; }
.os-filters__reset:hover { border-color: var(--os-plasma); }
.os-facets { display: grid; grid-template-columns: 80px 1fr; gap: 12px 18px; align-items: center; }
@media (max-width: 768px) { .os-facets { grid-template-columns: 1fr; } }
.os-facets__label { font-family: var(--os-f-mono); font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--os-mist); }
.os-facets__group { display: flex; flex-wrap: wrap; gap: 6px; }
.os-filter-chip { background: transparent; border: 1px solid var(--os-rule-2); color: rgba(245,245,240,.6); padding: 7px 14px; font-family: var(--os-f-mono); font-size: 11px; letter-spacing: 0.04em; display: inline-flex; align-items: center; gap: 6px; transition: all .2s; min-height: 38px; }
.os-filter-chip:hover { color: var(--os-white); border-color: rgba(245,245,240,.25); }
.os-filter-chip.is-active { background: var(--os-electric); border-color: var(--os-electric); color: var(--os-white); }
.os-filter-chip__dot { display: inline-block; width: 6px; height: 6px; background: var(--os-electric); border-radius: 50%; }
.os-filters__row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.os-filters__label { font-family: var(--os-f-mono); font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--os-mist); margin-right: 8px; }
.os-filters__bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 8px; border-top: 1px solid var(--os-rule); flex-wrap: wrap; }
.os-filters__active { display: flex; gap: 6px; flex-wrap: wrap; }
.os-filters__count { font-family: var(--os-f-mono); font-size: 11px; color: var(--os-mist); }
.os-filters__count strong { color: var(--os-white); font-weight: 500; }

.os-archive { padding: clamp(48px, 6vw, 80px) var(--os-pad-x); background: var(--os-ink); }
.os-archive__inner { max-width: var(--os-max); margin: 0 auto; }
.os-archive__empty { text-align: center; padding: 80px 24px; font-family: var(--os-f-mono); font-size: 14px; color: var(--os-mist); }
.os-archive__empty strong { display: block; color: var(--os-white); font-size: 18px; margin-bottom: 8px; font-family: var(--os-f-display); }

/* Events */
.os-events-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1px; background: var(--os-rule); border: 1px solid var(--os-rule); }
.os-event-card { background: var(--os-night); padding: 26px; display: flex; flex-direction: column; gap: 14px; transition: background .3s; }
.os-event-card:hover { background: rgba(0,87,255,.04); }
.os-event-card__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.os-event-card__date { display: flex; flex-direction: column; line-height: 1; }
.os-event-card__day { font-family: var(--os-f-display); font-weight: 800; font-size: 40px; color: var(--os-white); letter-spacing: -0.03em; }
.os-event-card__month { font-family: var(--os-f-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--os-mist); margin-top: 4px; }
.os-event-card__pill { font-family: var(--os-f-mono); font-size: 9px; padding: 5px 10px; letter-spacing: 0.1em; text-transform: uppercase; border: 1px solid currentColor; }
.os-event-card__pill--open   { color: var(--os-lime); }
.os-event-card__pill--soon   { color: var(--os-electric); }
.os-event-card__pill--live   { color: var(--os-plasma); }
.os-event-card__pill--closed { color: var(--os-mist); }
.os-event-card__kind  { font-family: var(--os-f-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--os-electric); }
.os-event-card__title { font-family: var(--os-f-display); font-weight: 700; font-size: clamp(18px, 1.8vw, 22px); line-height: 1.2; color: var(--os-white); letter-spacing: -0.015em; margin: 0; }
.os-event-card__meta { display: flex; flex-direction: column; gap: 6px; padding-top: 14px; border-top: 1px solid var(--os-rule); margin-top: auto; }
.os-event-card__meta-row { display: flex; gap: 12px; font-family: var(--os-f-mono); font-size: 12px; color: rgba(245,245,240,.7); justify-content: space-between; }
.os-event-card__meta-k { color: var(--os-mist); }

/* ------- PAPER detail (single) ------------------------------------------- */
.os-ph { padding: clamp(72px, 9vw, 120px) var(--os-pad-x) clamp(48px, 6vw, 80px); background: var(--os-ink); border-bottom: 1px solid var(--os-rule); }
.os-ph__inner { max-width: 920px; margin: 0 auto; }
.os-ph__crumb { font-family: var(--os-f-mono); font-size: 11px; color: var(--os-mist); margin: 0 0 24px; }
.os-ph__crumb a { color: var(--os-electric); }
.os-ph__type { font-family: var(--os-f-mono); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--os-lime); display: block; margin-bottom: 16px; }
.os-ph__title { font-family: var(--os-f-display); font-weight: 800; font-size: clamp(34px, 5.5vw, 68px); line-height: 1.04; letter-spacing: -0.035em; color: var(--os-white); margin: 0 0 28px; }
.os-ph__divider { background: var(--os-electric); height: 2px; width: 60px; margin: 0 0 28px; border: 0; }
.os-ph__bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; padding-top: 28px; border-top: 1px solid var(--os-rule); }
.os-ph__authors { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 18px 24px; flex: 1; min-width: 280px; }
.os-ph__author-k { font-family: var(--os-f-mono); font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--os-mist); display: block; margin-bottom: 4px; }
.os-ph__author-v { font-family: var(--os-f-mono); font-size: 12.5px; color: var(--os-white); }

.os-paper-body { padding: clamp(48px, 6vw, 80px) var(--os-pad-x); background: var(--os-white); color: var(--os-ink); }
.os-paper-body__inner { max-width: 760px; margin: 0 auto; font-family: var(--os-f-display); font-size: 17px; line-height: 1.75; color: var(--os-ink); }
.os-paper-body__abstract { font-family: var(--os-f-serif); font-style: italic; font-size: clamp(19px, 1.8vw, 24px); line-height: 1.55; color: rgba(10,10,15,.78); margin: 0 0 48px; padding: 28px; border-left: 3px solid var(--os-electric); background: rgba(0,87,255,.03); }
.os-paper-body h2 { font-family: var(--os-f-display); font-weight: 700; font-size: clamp(24px, 3vw, 34px); line-height: 1.2; letter-spacing: -0.025em; color: var(--os-ink); margin: 56px 0 18px; }
.os-paper-body h3 { font-family: var(--os-f-display); font-weight: 600; font-size: clamp(18px, 2vw, 22px); color: var(--os-ink); margin: 36px 0 12px; }
.os-paper-body p { margin: 0 0 1.15em; }
.os-paper-body strong { color: var(--os-ink); font-weight: 600; }
.os-paper-body ul { margin: 1em 0; padding-left: 0; display: flex; flex-direction: column; gap: 10px; }
.os-paper-body li { padding-left: 22px; position: relative; font-size: 16px; }
.os-paper-body li::before { content: '→'; position: absolute; left: 0; color: var(--os-electric); font-weight: 600; }
.os-paper-body__cite { font-family: var(--os-f-mono); font-size: 12px; line-height: 1.7; color: rgba(10,10,15,.55); padding: 16px 20px; background: rgba(10,10,15,.04); border-left: 2px solid var(--os-mist); margin: 28px 0; }
.os-paper-fig { margin: 36px 0; padding: 28px; background: rgba(10,10,15,.03); border: 1px solid rgba(10,10,15,.08); }
.os-paper-fig__label { font-family: var(--os-f-mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--os-electric); display: block; }
.os-paper-fig__caption { font-family: var(--os-f-mono); font-size: 11px; color: rgba(10,10,15,.55); margin-top: 18px; font-style: italic; }
.os-paper-meth { margin: 32px 0; padding: 24px; border: 1px solid rgba(10,10,15,.1); }
.os-paper-meth__label { font-family: var(--os-f-mono); font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--os-plasma); display: block; margin-bottom: 10px; }
.os-paper-meth p { font-family: var(--os-f-mono); font-size: 13px; line-height: 1.7; margin: 0; color: rgba(10,10,15,.72); }
.os-paper-actions { padding: 32px var(--os-pad-x); background: var(--os-white); border-top: 1px solid rgba(10,10,15,.08); border-bottom: 1px solid rgba(10,10,15,.08); }
.os-paper-actions__inner { max-width: 920px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; }


/* ------- FOOTER ---------------------------------------------------------- */
.os-footer {
  background: var(--os-night);
  border-top: 1px solid var(--os-rule);
  padding: clamp(60px, 8vw, 100px) var(--os-pad-x) 40px;
}
.os-footer__inner { max-width: var(--os-max); margin: 0 auto; }
.os-footer__statement { margin-bottom: 56px; }
.os-footer__statement p {
  font-family: var(--os-f-display); font-weight: 800;
  font-size: clamp(40px, 7vw, 96px);
  line-height: 1; letter-spacing: -0.03em; color: var(--os-white); margin: 0;
}
.os-footer__divider { height: 1px; background: var(--os-rule); margin-bottom: 48px; }
.os-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 56px; }
@media (max-width: 1024px) { .os-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; } .os-footer__col--brand { grid-column: 1 / -1; } }
@media (max-width: 540px) { .os-footer__grid { grid-template-columns: 1fr; } }
.os-footer__logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--os-f-display); font-weight: 700; font-size: 17px; color: var(--os-white); letter-spacing: -0.01em; margin-bottom: 18px; }
.os-footer__desc { font-family: var(--os-f-mono); font-size: 12px; line-height: 1.7; color: rgba(245,245,240,.55); max-width: 44ch; margin: 0 0 18px; }
.os-footer__email { font-family: var(--os-f-mono); font-size: 12px; color: var(--os-electric); border-bottom: 1px solid currentColor; padding-bottom: 1px; transition: color .2s; }
.os-footer__email:hover { color: var(--os-electric-2); }
.os-footer__heading { font-family: var(--os-f-mono); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--os-mist); margin: 0 0 16px; font-weight: 400; }
.os-footer__nav { display: flex; flex-direction: column; gap: 10px; }
.os-footer__link { font-family: var(--os-f-mono); font-size: 12.5px; color: rgba(245,245,240,.65); transition: color .2s, padding-left .2s; }
.os-footer__link:hover { color: var(--os-white); padding-left: 5px; }
.os-footer__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 28px; border-top: 1px solid var(--os-rule); }
.os-footer__copy { font-family: var(--os-f-mono); font-size: 10.5px; color: var(--os-mist); margin: 0; letter-spacing: 0.03em; }
.os-footer__badges { display: inline-flex; gap: 8px; flex-wrap: wrap; }

/* ------- accessibility ---------------------------------------------------- */
:where(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--os-electric); outline-offset: 3px;
}

/* ------- stagger reveal --------------------------------------------------- */
.os-stagger > * {
  opacity: 0; transform: translateY(20px);
  transition: opacity .6s var(--os-ease), transform .6s var(--os-ease);
}
.os-stagger.is-revealed > * { opacity: 1; transform: translateY(0); }
.os-stagger.is-revealed > *:nth-child(1) { transition-delay: .00s; }
.os-stagger.is-revealed > *:nth-child(2) { transition-delay: .08s; }
.os-stagger.is-revealed > *:nth-child(3) { transition-delay: .16s; }
.os-stagger.is-revealed > *:nth-child(4) { transition-delay: .24s; }
.os-stagger.is-revealed > *:nth-child(5) { transition-delay: .32s; }
.os-stagger.is-revealed > *:nth-child(6) { transition-delay: .40s; }

/* ------- utility: griglia 2 colonne responsive (usata nei template) ------- */
.os-values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--os-rule);
  border: 1px solid var(--os-rule);
  margin: 24px 0;
}
.os-values-grid__cell {
  background: var(--os-night);
  padding: 24px;
}
@media (max-width: 540px) {
  .os-values-grid { grid-template-columns: 1fr; }
}

/* griglia metriche 3 colonne nei paper (TAM/SAM/SOM, ecc.) */
.os-paper-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 28px;
}
@media (max-width: 540px) {
  .os-paper-metrics { grid-template-columns: 1fr; gap: 20px; }
}

/* ------- mobile fine-tuning (≤ 540px) ------------------------------------- */
@media (max-width: 540px) {
  :root { --os-pad-x: 18px; }
  .os-hero__title { font-size: clamp(44px, 13vw, 72px); }
  .os-footer__statement p { font-size: clamp(28px, 8.5vw, 40px); }
  .os-manifesto__quote { font-size: clamp(28px, 8vw, 44px); }
}


/* ------- FIX 7 — tap target size on mobile -------------------------------- */
@media (max-width: 768px) {
  .os-btn { min-height: 44px; min-width: 44px; }
  .os-nav__link, .os-footer__link { min-height: 44px; display: inline-flex; align-items: center; }
}

/* ── Classi helper aggiunte dai template fix ─────────────────────────────── */

/* home.php — paper empty state hint */
.os-papers-empty-hint {
  font-family: var(--os-f-mono);
  font-size: 13px;
  color: var(--os-mist);
  grid-column: 1 / -1;
  line-height: 1.65;
}
.os-papers-empty-hint a { color: var(--os-electric); }

/* home.php — live band: stili definiti in templates/home.php inline <style> */

/* paper.php — metriche TAM/SAM/SOM: .os-paper-metrics già definita sopra (riga 1053) */

.os-paper-metrics__item {
  background: var(--os-night);
  padding: 24px 20px;
  display: flex; flex-direction: column; gap: 8px;
}
.os-paper-metrics__label {
  font-family: var(--os-f-mono);
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--os-electric);
}
.os-paper-metrics__value {
  font-family: var(--os-f-display);
  font-weight: 700;
  font-size: clamp(20px, 3vw, 32px);
  color: var(--os-white);
  letter-spacing: -0.02em;
  line-height: 1;
}
.os-paper-metrics__value--accent { color: var(--os-electric); }
.os-paper-metrics__desc {
  font-family: var(--os-f-mono);
  font-size: 11px;
  color: var(--os-mist);
  line-height: 1.5;
}

/* paper.php — hero lead e actions */
.os-ph__lead {
  font-family: var(--os-f-serif);
  font-style: italic;
  font-size: clamp(16px, 1.7vw, 20px);
  line-height: 1.65;
  color: rgba(245,245,240,.72);
  max-width: 66ch;
  margin: 20px 0 0;
}
.os-ph__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* paper.php — actions footer */
.os-paper-actions__btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.os-paper-actions__meta {
  font-family: var(--os-f-mono);
  font-size: 11px;
  color: var(--os-mist);
  line-height: 1.5;
  margin-top: 8px;
}

/* link utility */
.os-link--electric { color: var(--os-electric); transition: opacity .2s; }
.os-link--electric:hover { opacity: .75; }

/* ------- missing utility classes — QA patch -------------------------------- */

/* os-hero__copy: text column inside hero layout grid */
.os-hero__copy {
  display: flex; flex-direction: column; justify-content: center;
}

/* os-ph__author: single author/meta row inside os-ph__authors grid */
.os-ph__author {
  display: flex; flex-direction: column; gap: 4px;
}

/* os-core / os-sat-l / os-sat-r: SVG decorative circles in the hero diagram — styled via SVG attributes */
.os-core,
.os-sat-l,
.os-sat-r {
  /* purely decorative SVG circles — styled via inline SVG fill/opacity attributes */
}

/* os-sort__label: text label preceding the sort <select> */
.os-sort__label {
  color: var(--os-mist); font-family: var(--os-f-mono); font-size: 11px; white-space: nowrap;
}

/* ------- reduced motion --------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .os-stagger > * { opacity: 1; transform: none; transition: none; }
}

/* =========================================================================
   SEZIONI LIGHT v2.0 — alternanza dark/light per ritmo e profondità
   Applicare .os-section--light alle sezioni su sfondo chiaro.
   ========================================================================= */
.os-section--light {
  background: var(--os-light-bg);
  color: var(--os-on-light);
}
.os-section--light .os-eyebrow {
  color: var(--os-on-light-2); /* 62% opacity → ~6.4:1 contrast on --os-light-bg ✓ AA */
}
.os-section--light .os-eyebrow--electric {
  color: var(--os-electric-on-light);
}
.os-section--light h2,
.os-section--light h3,
.os-section--light h4 {
  color: var(--os-on-light);
}
.os-section--light p {
  color: var(--os-on-light-2);
}
.os-section--light hr {
  background: var(--os-light-rule);
}
.os-section--light .os-section__title {
  color: var(--os-on-light);
}
.os-section--light .os-section__lead {
  color: var(--os-on-light-2);
}
.os-section--light .os-section__more {
  color: var(--os-electric-on-light);
}
.os-section--light .os-section__more:hover {
  color: var(--os-electric);
}
/* Card/audience su sfondo light */
.os-section--light .os-audience {
  border-color: var(--os-light-rule-2);
  background: var(--os-light-surface);
}
.os-section--light .os-audience__num {
  color: var(--os-on-light-mist);
}
.os-section--light .os-audience__label {
  color: var(--os-electric-on-light);
}
.os-section--light .os-audience h3 {
  color: var(--os-on-light);
}
.os-section--light .os-audience p {
  color: var(--os-on-light-2);
}
/* Step/process su sfondo light */
.os-section--light .os-step__badge {
  border-color: var(--os-light-rule-2);
  background: var(--os-light-surface);
}
.os-section--light .os-step__num {
  color: var(--os-electric-on-light);
}
.os-section--light .os-step__phase {
  color: var(--os-on-light-mist);
}
.os-section--light .os-step__title {
  color: var(--os-on-light);
}
.os-section--light .os-step__body {
  color: var(--os-on-light-2);
}
/* T12 — Step hover on light bg (visually distinct, no plasma glow) */
.os-section--light .os-step:hover {
  background: var(--os-light-rule-2); /* 15% opacity — perceptible on #EEEEE9 */
}
.os-section--light .os-step:hover .os-step__badge {
  border-color: var(--os-electric-on-light);
  color: var(--os-electric-on-light);
}

/* T12 — Light sections mobile: reduce card padding at ≤ 540px */
@media (max-width: 540px) {
  .os-section--light .os-audience { padding: 24px 18px; }
  .os-section--light .os-step     { padding: 28px 18px; min-height: auto; }
}

/* T13 — Focus rings on light sections (WCAG 2.1 §2.4.7) */
.os-section--light a:focus-visible,
.os-section--light button:focus-visible {
  outline: none;
  box-shadow: var(--os-focus-ring-light);
  border-radius: var(--os-radius-sm);
}

/* ------- CTA SINGLE (homepage) — moved from templates/home.php ----------- */
.os-cta-single {
  background: var(--os-night);
  border-top: 1px solid var(--os-rule);
  padding: clamp(80px, 10vw, 140px) var(--os-pad-x);
  text-align: center;
}
.os-cta-single__inner {
  max-width: 720px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 24px;
}
.os-cta-single__title {
  font-family: var(--os-f-display); font-weight: 800;
  font-size: var(--os-type-section); line-height: var(--os-type-section-lh);
  letter-spacing: var(--os-type-section-ls);
  color: var(--os-white); margin: 0;
  hyphens: none; -webkit-hyphens: none;
}
.os-cta-single__title em {
  font-family: var(--os-f-serif); font-style: italic; font-weight: 400;
  color: var(--os-lime); letter-spacing: -0.01em;
}
.os-cta-single__text {
  font-family: var(--os-f-mono); font-size: 13px;
  color: var(--os-mist); line-height: 1.7; max-width: 52ch; margin: 0;
}
.os-cta-single__btn { margin-top: 8px; }
.os-cta-single__secondary {
  font-family: var(--os-f-mono); font-size: 12px;
  color: var(--os-mist); margin: 0;
}
.os-cta-single__secondary a {
  color: var(--os-electric-2);
  transition: color var(--os-dur-fast) var(--os-ease);
}
.os-cta-single__secondary a:hover { color: var(--os-white); }

/* ------- FINAL CTA (pagine interne) --------------------------------------- */
.os-final-cta {
  background: var(--os-night);
  border-top: 1px solid var(--os-rule);
  padding: clamp(80px, 10vw, 140px) var(--os-pad-x);
  text-align: center;
}
.os-final-cta__inner {
  max-width: 720px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 24px;
}
.os-final-cta__title {
  font-family: var(--os-f-display); font-weight: 800;
  font-size: var(--os-type-section); line-height: var(--os-type-section-lh);
  letter-spacing: var(--os-type-section-ls);
  color: var(--os-white); margin: 0;
  hyphens: none; -webkit-hyphens: none;
}
.os-final-cta__title em {
  font-family: var(--os-f-serif); font-style: italic; font-weight: 400;
  color: var(--os-lime); letter-spacing: -0.01em;
}
.os-final-cta__text {
  font-family: var(--os-f-mono); font-size: 13px;
  color: var(--os-mist); line-height: 1.7; max-width: 52ch; margin: 0;
}
.os-final-cta__btns {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
  margin-top: 8px;
}
/* Email form variant — eventi.php */
.os-final-cta__form {
  display: flex; gap: 8px;
  max-width: 460px; width: 100%; margin-top: 8px;
}
@media (max-width: 480px) {
  .os-final-cta__form { flex-direction: column; }
}
.os-final-cta__input {
  flex: 1;
  background: var(--os-ink); border: 1px solid rgba(0,87,255,.25);
  color: var(--os-white); padding: 14px 16px;
  font-family: var(--os-f-mono); font-size: 12px;
  outline: 0; -webkit-appearance: none; border-radius: 0;
  transition: border-color .2s, box-shadow .2s;
}
.os-final-cta__input:focus {
  border-color: var(--os-electric);
  box-shadow: 0 0 0 3px rgba(0,87,255,.10);
}
