/* ══════════════════════════════════════════════════════════════════
   MAST S.r.l. — Design System (light, editorial + digital wow)
   ══════════════════════════════════════════════════════════════════ */

:root {
  --paper:        #FBFAF7;
  --paper-2:      #F4F1EA;
  --paper-3:      #ECE8DE;
  --ink:          #14171C;
  --ink-2:        #2E343C;
  --ink-3:        #5A636E;
  --ink-4:        #676E78;
  --line:         #E1DCD0;
  --line-strong:  #C7C0AF;
  --signal:       #C2410C;
  --signal-deep:  #9A2F08;
  --signal-soft:  #FBE5D6;
  --indigo:       #1E3A8A;

  --sans:  "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: var(--sans);
  --mono:  "JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --t-mono: 12px; --t-sm: 14px; --t-base: 16px; --t-md: 18px; --t-lg: 22px;
  --t-xl: 28px; --t-2xl: 38px; --t-3xl: 56px; --t-4xl: 84px;
  --t-display: clamp(54px, 9vw, 124px);

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;

  --radius: 2px;
  --max: 1240px;
  --gutter: clamp(20px, 4vw, 48px);

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
*::selection { background: var(--ink); color: var(--paper); }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: var(--t-base);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

/* ── Typography ── */
.serif { font-family: var(--serif); }
.mono { font-family: var(--mono); }
.eyebrow {
  font-family: var(--mono); font-size: var(--t-mono);
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 500;
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ""; width: 18px; height: 1px;
  background: var(--signal); display: inline-block;
  animation: ruleGrow 1.2s var(--ease-out) both;
}
.eyebrow.alt::before { background: var(--ink); }

@keyframes ruleGrow { from { width: 0; } to { width: 18px; } }

h1, h2, h3, h4 {
  font-family: var(--serif); font-weight: 400;
  color: var(--ink); letter-spacing: -0.015em;
  line-height: 1.05; margin: 0;
}
.h-display { font-size: var(--t-display); line-height: 0.95; letter-spacing: -0.03em; }
.h-1 { font-size: clamp(40px, 6vw, var(--t-3xl)); line-height: 1.02; letter-spacing: -0.025em; }
.h-2 { font-size: clamp(30px, 4vw, var(--t-2xl)); line-height: 1.1; letter-spacing: -0.02em; }
.h-3 { font-size: var(--t-xl); line-height: 1.15; letter-spacing: -0.01em; }

p { margin: 0; }
.lede {
  font-size: clamp(18px, 1.7vw, var(--t-md));
  line-height: 1.55; color: var(--ink-2); max-width: 62ch;
}
.body { color: var(--ink-2); line-height: 1.65; }
.body p + p { margin-top: var(--s-4); }
.it { font-style: italic; color: var(--ink); }

/* ── Layout ── */
.page { width: 100%; }
.wrap {
  width: 100%; max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter); padding-right: var(--gutter);
  position: relative;
}
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ══════════════════════════════════════════════════════════════════
   ENTRY ANIMATIONS — transition-based, default state is FINAL
   Pre-state added via JS (.reveal-pre), then removed after rAF →
   element transitions to its natural visible state. If JS never
   runs, content is visible by default.
   ══════════════════════════════════════════════════════════════════ */
[data-reveal] {
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].reveal-pre { opacity: 0; transform: translateY(28px); }
[data-reveal="fade"].reveal-pre { transform: none; }
[data-reveal="scale"].reveal-pre { opacity: 0; transform: scale(0.96); }
[data-reveal="left"].reveal-pre { opacity: 0; transform: translateX(-30px); }

.split-word { display: inline-block; transition: opacity .8s var(--ease-out), transform .9s var(--ease-out); }
.split-word.split-pre { opacity: 0; transform: translateY(0.3em); }

/* ══════════════════════════════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════════════════════════════ */
.hd {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,250,247,0.72);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.hd.is-scrolled {
  background: rgba(251,250,247,0.94);
  border-bottom-color: var(--line);
}
.hd-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--s-7); align-items: center; height: 72px;
}
.brand {
  display: inline-flex; align-items: baseline; gap: 12px;
  font-family: var(--serif); font-size: 22px;
  letter-spacing: 0.02em; color: var(--ink); font-weight: 500;
  position: relative;
}
.brand-mark {
  width: 10px; height: 10px;
  background: var(--signal); display: inline-block;
  transform: translateY(-2px);
  animation: brandPulse 2.6s ease-in-out infinite;
}
@keyframes brandPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(194,65,12,0.0); }
  50% { box-shadow: 0 0 0 4px rgba(194,65,12,0.18); }
}
.brand-meta {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.12em; color: var(--ink-4); text-transform: uppercase;
}
.nav { display: flex; gap: var(--s-6); justify-content: center; align-items: center; }
.nav a {
  font-size: var(--t-sm); color: var(--ink-2);
  position: relative; padding: 6px 0;
  transition: color .25s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px;
  height: 1px; background: var(--signal);
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .35s var(--ease-out);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
.nav a.is-active { color: var(--ink); }

.nav-cta {
  display: inline-flex; align-items: center; gap: 10px;
  height: 40px; padding: 0 18px;
  background: var(--ink); color: var(--paper);
  font-size: var(--t-sm); font-weight: 500;
  letter-spacing: 0.01em;
  position: relative; overflow: hidden;
  transition: background .3s var(--ease), transform .15s var(--ease);
}
.nav-cta::before {
  content: ""; position: absolute; inset: 0;
  background: var(--signal);
  transform: translateY(101%);
  transition: transform .35s var(--ease-out);
  z-index: 0;
}
.nav-cta:hover::before { transform: translateY(0); }
.nav-cta > * { position: relative; z-index: 1; }
.nav-cta .arr { font-family: var(--mono); transition: transform .3s var(--ease-out); }
.nav-cta:hover .arr { transform: translateX(4px); }

@media (max-width: 880px) {
  .hd-inner { grid-template-columns: auto auto; gap: var(--s-4); }
  .nav { display: none; }
}

/* ══════════════════════════════════════════════════════════════════
   BUTTONS — magnetic + sweep
   ══════════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  height: 56px; padding: 0 26px;
  font-family: var(--sans); font-size: var(--t-sm);
  font-weight: 500; letter-spacing: 0.02em;
  cursor: pointer; border: 1px solid transparent;
  background: transparent;
  position: relative; overflow: hidden;
  transition: color .3s var(--ease), border-color .3s var(--ease), transform .15s var(--ease);
  will-change: transform;
}
.btn > * { position: relative; z-index: 1; }
.btn::before {
  content: ""; position: absolute; inset: 0;
  transform: translateY(101%);
  transition: transform .4s var(--ease-out);
  z-index: 0;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary::before { background: var(--signal); }
.btn-primary:hover::before { transform: translateY(0); }
.btn-ghost { color: var(--ink); border: 1px solid var(--ink); }
.btn-ghost::before { background: var(--ink); }
.btn-ghost:hover { color: var(--paper); }
.btn-ghost:hover::before { transform: translateY(0); }
.btn .arr { font-family: var(--mono); transition: transform .3s var(--ease-out); }
.btn:hover .arr { transform: translateX(6px); }

/* ══════════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════════ */
.ft {
  background: var(--ink); color: var(--paper-3);
  padding: var(--s-9) 0 var(--s-6);
  margin-top: var(--s-10);
  position: relative; overflow: hidden;
  --ink-4: #B8B5AB;
}
.ft::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}
.ft > * { position: relative; }
.ft a { color: var(--paper-3); transition: color .25s var(--ease); }
.ft a:hover { color: var(--signal); }
.ft-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--s-7); padding-bottom: var(--s-8);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.ft-grid h3, .ft-grid h4 {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-4); margin-bottom: var(--s-4); font-weight: 500;
}
.ft-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.ft-col a { font-size: var(--t-sm); }
.ft-brand .brand { color: var(--paper); font-size: 28px; }
.ft-brand p { color: var(--ink-4); font-size: var(--t-sm); margin-top: var(--s-4); max-width: 38ch; line-height: 1.55; }
.ft-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s-3);
  padding-top: var(--s-5);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em;
  color: var(--ink-4); text-transform: uppercase;
}
@media (max-width: 880px) { .ft-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ft-grid { grid-template-columns: 1fr; } }

/* ══════════════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════════════ */
.hero {
  padding: var(--s-9) 0 var(--s-9);
  position: relative;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(20,23,28,0.10) 1px, transparent 0);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 100%);
}
.hero-aurora {
  position: absolute; pointer-events: none;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(194,65,12,0.18), transparent 60%);
  filter: blur(40px);
  top: -200px; right: -150px;
  animation: auroraDrift 14s ease-in-out infinite alternate;
}
.hero-aurora-2 {
  position: absolute; pointer-events: none;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(30,58,138,0.12), transparent 60%);
  filter: blur(50px);
  bottom: -200px; left: -100px;
  animation: auroraDrift 18s ease-in-out infinite alternate-reverse;
}
@keyframes auroraDrift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(60px, -40px) scale(1.15); }
}

.hero-grid { display: grid; grid-template-columns: 1fr; gap: var(--s-7); position: relative; }
.hero h1 {
  font-size: clamp(26px, 4.4vw, 50px);
  line-height: 0.50;
  letter-spacing: -0.025em;
  max-width: 22ch;
}
.hero h1 .it { color: var(--signal); position: relative; }
.hero h1 .it::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--signal);
  transform: scaleX(0); transform-origin: 0 50%;
  animation: underlineGrow 1.4s var(--ease-out) 1.2s both;
  opacity: 0.18;
}
@keyframes underlineGrow { to { transform: scaleX(1); } }

.hero-foot {
  display: grid; grid-template-columns: 1.4fr 1fr;
  align-items: end; gap: var(--s-7); margin-top: var(--s-7);
  position: relative;
}
.hero-foot .lede { max-width: 44ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.hero-meta {
  display: flex; flex-direction: column; gap: 6px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-4);
}
.hero-meta b { color: var(--ink); font-weight: 500; }

/* live ticker chip in hero */
.hero-ticker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3);
  border: 1px solid var(--line); padding: 8px 14px;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(8px);
}
.hero-ticker .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #00B86B; display: inline-block;
  box-shadow: 0 0 0 0 rgba(0,184,107,0.6);
  animation: livePulse 1.8s ease-out infinite;
}
@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(0,184,107,0.6); }
  100% { box-shadow: 0 0 0 12px rgba(0,184,107,0); }
}
.hero-ticker .tk-num {
  font-feature-settings: "tnum" 1; color: var(--ink); font-weight: 500;
}

@media (max-width: 720px) { .hero-foot { grid-template-columns: 1fr; } }

/* ══════════════════════════════════════════════════════════════════
   SECTIONS
   ══════════════════════════════════════════════════════════════════ */
.section { padding: var(--s-9) 0; position: relative; }
.section + .section { border-top: 1px solid var(--line); }
.section.tone-2 { background: var(--paper-2); }
.section.tone-ink {
  background: var(--ink); color: var(--paper-3);
  position: relative; overflow: hidden;
}
.section.tone-ink::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}
.section.tone-ink h1, .section.tone-ink h2, .section.tone-ink h3 { color: var(--paper); }
.section.tone-ink .eyebrow { color: var(--paper-3); }
.section.tone-ink .eyebrow::before { background: var(--signal); }
.section-head {
  display: grid; grid-template-columns: 1fr 1.3fr;
  gap: var(--s-7); align-items: end; margin-bottom: var(--s-8);
}
.section-head .col-meta { display: flex; flex-direction: column; gap: var(--s-4); }
.section-head .col-text .lede { margin-top: var(--s-4); }
@media (max-width: 880px) { .section-head { grid-template-columns: 1fr; align-items: start; } }

/* ══════════════════════════════════════════════════════════════════
   SERVICE LIST — animated row reveal + hover sweep
   ══════════════════════════════════════════════════════════════════ */
.svc-list { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
.svc {
  display: grid;
  grid-template-columns: 80px 1fr 1.6fr auto;
  gap: var(--s-7); align-items: center;
  padding: var(--s-7) 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none; color: inherit;
  position: relative;
  transition: background .35s var(--ease);
  overflow: hidden;
}
.svc::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: 0; background: var(--signal);
  transition: width .4s var(--ease-out);
}
.svc::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(194,65,12,0.05) 100%);
  opacity: 0; transition: opacity .4s var(--ease);
  pointer-events: none;
}
.svc:hover { background: var(--paper-2); }
.svc:hover::before { width: 4px; }
.svc:hover::after { opacity: 1; }
.svc-num {
  font-family: var(--mono); font-size: var(--t-sm);
  color: var(--ink-4); letter-spacing: 0.12em;
  transition: color .3s var(--ease), transform .3s var(--ease-out);
}
.svc:hover .svc-num { color: var(--signal); transform: translateX(8px); }
.svc-title {
  font-family: var(--serif); font-size: var(--t-xl);
  color: var(--ink); letter-spacing: -0.012em;
  transition: transform .35s var(--ease-out);
}
.svc:hover .svc-title { transform: translateX(4px); }
.svc-desc { font-size: var(--t-sm); color: var(--ink-3); max-width: 56ch; line-height: 1.55; }
.svc-arr {
  font-family: var(--mono); font-size: 18px; color: var(--ink);
  transition: transform .35s var(--ease-out), color .3s var(--ease);
}
.svc:hover .svc-arr { transform: translateX(10px); color: var(--signal); }

@media (max-width: 880px) {
  .svc { grid-template-columns: auto 1fr auto; gap: var(--s-3) var(--s-4); padding: var(--s-5) 0; }
  .svc-num { grid-row: 1; }
  .svc-title { grid-row: 1; grid-column: 2; font-size: var(--t-md); }
  .svc-arr { grid-row: 1; grid-column: 3; }
  .svc-desc { grid-column: 1 / -1; }
}

/* ══════════════════════════════════════════════════════════════════
   METHOD steps — staircase reveal
   ══════════════════════════════════════════════════════════════════ */
.method {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 1px; background: var(--line); border: 1px solid var(--line);
}
.method-step {
  background: var(--paper);
  padding: var(--s-6) var(--s-5);
  display: flex; flex-direction: column; gap: var(--s-3);
  min-height: 220px;
  transition: background .35s var(--ease), transform .35s var(--ease-out);
  position: relative;
}
.method-step::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0;
  height: 2px; background: var(--signal);
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .4s var(--ease-out);
}
.method-step:hover { background: var(--paper-2); }
.method-step:hover::after { transform: scaleX(1); }
.method-step .num {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em;
  color: var(--signal); text-transform: uppercase;
}
.method-step h3 {
  font-size: var(--t-md); font-family: var(--serif);
  color: var(--ink); letter-spacing: -0.005em;
}
.method-step p { font-size: var(--t-sm); color: var(--ink-3); line-height: 1.55; }
@media (max-width: 1080px) { .method { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .method { grid-template-columns: 1fr; } }

/* ══════════════════════════════════════════════════════════════════
   STATS — animated counters
   ══════════════════════════════════════════════════════════════════ */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  position: relative;
}
.stat {
  padding: var(--s-7) var(--s-5);
  display: flex; flex-direction: column; gap: var(--s-3);
  border-right: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.stat::before {
  content: ""; position: absolute; bottom: 0; left: 0; right: 0;
  height: 0; background: linear-gradient(to top, rgba(194,65,12,0.04), transparent);
  transition: height .5s var(--ease-out);
  pointer-events: none;
}
.stat:hover::before { height: 100%; }
.stat:last-child { border-right: 0; }
.stat-num {
  font-family: var(--serif);
  font-size: clamp(40px, 5vw, 64px);
  color: var(--ink); line-height: 1;
  letter-spacing: -0.025em;
  font-feature-settings: "tnum" 1;
}
.stat-num .unit { font-size: 0.5em; color: var(--ink-4); margin-left: 6px; vertical-align: 0.4em; }
.stat-lbl { font-size: var(--t-sm); color: var(--ink-3); line-height: 1.45; max-width: 30ch; }
.stat-tag {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--signal);
}
@media (max-width: 880px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
}

/* ══════════════════════════════════════════════════════════════════
   PULL QUOTE
   ══════════════════════════════════════════════════════════════════ */
.pull { display: grid; grid-template-columns: auto 1fr; gap: var(--s-7); align-items: start; }
.pull-mark {
  font-family: var(--serif); font-size: 120px;
  line-height: 0.8; color: var(--signal);
  animation: pullPulse 4s ease-in-out infinite;
}
@keyframes pullPulse {
  0%, 100% { opacity: 0.85; transform: rotate(0deg); }
  50% { opacity: 1; transform: rotate(-3deg); }
}
.pull-text {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.25; color: var(--ink);
  letter-spacing: -0.012em; max-width: 30ch;
}
.pull-sig {
  margin-top: var(--s-5);
  display: flex; gap: var(--s-3); align-items: center;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-4);
}

/* ══════════════════════════════════════════════════════════════════
   ISO row
   ══════════════════════════════════════════════════════════════════ */
.iso-row {
  display: flex; gap: var(--s-7); align-items: center; flex-wrap: wrap;
  padding: var(--s-6) 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.iso-row .lbl {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  color: var(--ink-3); text-transform: uppercase;
  margin-right: var(--s-4);
}
.iso-badge {
  display: flex; align-items: center; gap: var(--s-3);
  transition: transform .3s var(--ease-out);
}
.iso-badge:hover { transform: translateY(-3px); }
.iso-badge img { width: 56px; height: 56px; object-fit: contain; }
.iso-badge div { font-size: var(--t-sm); }
.iso-badge b { color: var(--ink); }
.iso-badge span { display: block; color: var(--ink-3); font-size: 12px; }

/* ══════════════════════════════════════════════════════════════════
   CTA — animated arrow + grid bg
   ══════════════════════════════════════════════════════════════════ */
.cta {
  background: var(--ink); color: var(--paper);
  padding: var(--s-9) 0;
  position: relative; overflow: hidden;
}
.cta::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}
.cta::after {
  content: "→"; font-family: var(--serif);
  position: absolute; right: -20px; bottom: -60px;
  font-size: 480px; color: rgba(194,65,12,0.18);
  line-height: 1; pointer-events: none;
  animation: ctaArrowDrift 8s ease-in-out infinite alternate;
}
@keyframes ctaArrowDrift {
  0% { transform: translateX(0); }
  100% { transform: translateX(-30px); }
}
.cta-inner {
  display: grid; grid-template-columns: 1.4fr 1fr;
  gap: var(--s-7); align-items: end; position: relative;
}
.cta h2 { color: var(--paper); font-size: clamp(36px, 5vw, 64px); line-height: 1; max-width: 14ch; }
.cta h2 .it { color: var(--signal); }
.cta p { color: var(--paper-3); max-width: 42ch; }
.cta .btn-primary { background: var(--signal); }
.cta .btn-primary::before { background: var(--paper); }
.cta .btn-primary:hover { color: var(--ink); }
.cta .btn-ghost { color: var(--paper); border-color: var(--paper-3); }
.cta .btn-ghost::before { background: var(--paper); }
.cta .btn-ghost:hover { color: var(--ink); }
@media (max-width: 880px) {
  .cta-inner { grid-template-columns: 1fr; align-items: start; }
  .cta::after { font-size: 280px; right: -40px; bottom: -80px; }
}

/* ══════════════════════════════════════════════════════════════════
   BREADCRUMB
   ══════════════════════════════════════════════════════════════════ */
.crumbs {
  padding: var(--s-5) 0;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-4);
}
.crumbs a { color: var(--ink-3); }
.crumbs a:hover { color: var(--signal); }
.crumbs .sep { margin: 0 10px; color: var(--line-strong); }
.crumbs [aria-current=page] { color: var(--ink); }

/* ══════════════════════════════════════════════════════════════════
   LEGAL
   ══════════════════════════════════════════════════════════════════ */
.legal { max-width: 720px; margin: 0 auto; padding: var(--s-9) 0; }
.legal h1 { font-size: var(--t-3xl); margin-bottom: var(--s-7); }
.legal h2 { font-size: var(--t-xl); margin-top: var(--s-7); margin-bottom: var(--s-3); }
.legal h3 { font-size: var(--t-md); margin-top: var(--s-6); margin-bottom: var(--s-3); font-family: var(--sans); font-weight: 600; color: var(--ink); }
.legal p, .legal li { font-size: var(--t-base); line-height: 1.7; color: var(--ink-2); }
.legal p + p, .legal ul + p, .legal p + ul { margin-top: var(--s-4); }
.legal ul { padding-left: var(--s-5); margin: 0; display: flex; flex-direction: column; gap: 8px; }
.legal a { color: var(--ink); border-bottom: 1px solid var(--line-strong); transition: color .25s var(--ease), border-color .25s var(--ease); }
.legal a:hover { color: var(--signal); border-color: var(--signal); }
.legal table { width: 100%; border-collapse: collapse; margin: var(--s-5) 0; font-size: var(--t-sm); }
.legal th, .legal td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal th { background: var(--paper-2); font-weight: 600; color: var(--ink); }

/* ══════════════════════════════════════════════════════════════════
   SVC HERO
   ══════════════════════════════════════════════════════════════════ */
.svc-hero {
  padding: var(--s-9) 0;
  border-bottom: 1px solid var(--line);
  position: relative; overflow: hidden;
}
.svc-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(20,23,28,0.08) 1px, transparent 0);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 100%);
  pointer-events: none;
}
.svc-hero > .wrap { position: relative; }
.svc-hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--s-8); align-items: end; }
.svc-hero h1 {
  font-size: clamp(48px, 7vw, 96px);
  letter-spacing: -0.03em;
  line-height: 1.05;
  max-width: 14ch;
}
.svc-hero h1 .it { color: var(--signal); }
.svc-hero .lede { margin-top: var(--s-7); }
.svc-hero .meta-card {
  border: 1px solid var(--line); padding: var(--s-6);
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(8px);
  position: relative;
  transition: transform .4s var(--ease-out), border-color .3s var(--ease);
}
.svc-hero .meta-card::before {
  content: ""; position: absolute; top: 0; left: 0;
  width: 24px; height: 1px; background: var(--signal);
}
.svc-hero .meta-card::after {
  content: ""; position: absolute; top: 0; left: 0;
  width: 1px; height: 24px; background: var(--signal);
}
.svc-hero .meta-card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.svc-hero .meta-card h4 {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em;
  color: var(--signal); text-transform: uppercase; font-weight: 500;
}
.svc-hero .meta-card ul { list-style: none; padding: 0; margin: var(--s-4) 0 0 0; display: flex; flex-direction: column; gap: 10px; }
.svc-hero .meta-card li {
  display: flex; align-items: baseline; gap: 10px;
  font-size: var(--t-sm); color: var(--ink-2); line-height: 1.45;
}
.svc-hero .meta-card li::before {
  content: ""; flex: 0 0 6px; width: 6px; height: 6px; background: var(--signal); transform: translateY(2px);
}
@media (max-width: 880px) { .svc-hero-grid { grid-template-columns: 1fr; } }

/* ══════════════════════════════════════════════════════════════════
   TWO COL
   ══════════════════════════════════════════════════════════════════ */
.two-col { display: grid; grid-template-columns: 1fr 1.3fr; gap: var(--s-8); }
.two-col .col-text > p + p { margin-top: var(--s-4); }
@media (max-width: 880px) { .two-col { grid-template-columns: 1fr; gap: var(--s-5); } }

/* ══════════════════════════════════════════════════════════════════
   CARDS — mouse-tracked spotlight
   ══════════════════════════════════════════════════════════════════ */
.cards {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--line); border: 1px solid var(--line);
}
.card {
  background: var(--paper);
  padding: var(--s-6);
  display: flex; flex-direction: column; gap: var(--s-3);
  min-height: 240px;
  transition: background .35s var(--ease);
  position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(
    circle 280px at var(--mx, 50%) var(--my, 50%),
    rgba(194,65,12,0.08), transparent 60%
  );
  opacity: 0; transition: opacity .4s var(--ease);
  pointer-events: none;
}
.card:hover { background: var(--paper-2); }
.card:hover::before { opacity: 1; }
.card .tag {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.16em; color: var(--ink-4); text-transform: uppercase;
}
.card h3 { font-family: var(--serif); font-size: var(--t-md); letter-spacing: -0.005em; color: var(--ink); position: relative; }
.card p { font-size: var(--t-sm); color: var(--ink-3); line-height: 1.55; position: relative; }
@media (max-width: 880px) { .cards { grid-template-columns: 1fr; } }

/* ══════════════════════════════════════════════════════════════════
   FAQ
   ══════════════════════════════════════════════════════════════════ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); transition: background .3s var(--ease); }
.faq details[open] { background: rgba(194,65,12,0.025); }
.faq summary {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: var(--s-5) var(--s-3) var(--s-5) 0;
  font-family: var(--serif); font-size: var(--t-md); color: var(--ink);
  cursor: pointer; list-style: none;
  letter-spacing: -0.005em;
  transition: color .25s var(--ease), padding .3s var(--ease);
}
.faq summary:hover { color: var(--signal); padding-left: var(--s-3); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-family: var(--mono); font-size: 24px; font-weight: 300; color: var(--signal);
  transition: transform .35s var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer {
  padding: 0 0 var(--s-5);
  font-size: var(--t-base); color: var(--ink-2); max-width: 70ch; line-height: 1.6;
  animation: answerIn .4s var(--ease-out);
}
@keyframes answerIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════════════════════════════
   FORMS
   ══════════════════════════════════════════════════════════════════ */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5) var(--s-5); }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 8px; position: relative; }
.field label {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-3);
  transition: color .25s var(--ease);
}
.field input, .field textarea, .field select {
  font-family: var(--sans); font-size: var(--t-base);
  background: transparent; border: 0;
  border-bottom: 1px solid var(--line-strong);
  padding: 10px 0; color: var(--ink);
  transition: border-color .3s var(--ease);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-bottom-color: var(--signal);
}
.field:focus-within label { color: var(--signal); }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-4); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: var(--t-sm); color: var(--ink-3); line-height: 1.5; }
.consent input { transform: translateY(3px); accent-color: var(--ink); }
.consent a { color: var(--ink); border-bottom: 1px solid var(--line-strong); }
@media (max-width: 720px) { .form-grid { grid-template-columns: 1fr; } }

.contact-info { display: flex; flex-direction: column; gap: var(--s-6); }
.contact-info .block h4 {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-4); font-weight: 500;
  margin-bottom: var(--s-3);
}
.contact-info .block p, .contact-info .block a {
  font-size: var(--t-md); color: var(--ink); line-height: 1.4; font-family: var(--serif);
  transition: color .25s var(--ease);
}
.contact-info .block a:hover { color: var(--signal); }

/* ══════════════════════════════════════════════════════════════════
   TAG ROW — marquee on overflow
   ══════════════════════════════════════════════════════════════════ */
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; padding: var(--s-4) 0; }
.tag-row .pill {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
  border: 1px solid var(--line-strong);
  padding: 6px 12px; color: var(--ink-2); background: var(--paper);
  transition: all .25s var(--ease);
  cursor: default;
}
.tag-row .pill:hover {
  border-color: var(--signal); color: var(--signal);
  transform: translateY(-2px);
  background: var(--signal-soft);
}

/* ── Marquee row (auto-scroll) ── */
.marquee {
  position: relative; overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  padding: var(--s-5) 0;
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex; gap: var(--s-7); align-items: center;
  width: max-content;
  animation: marqueeSlide 50s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3);
  white-space: nowrap;
}
.marquee-item .star {
  width: 6px; height: 6px;
  background: var(--signal); transform: rotate(45deg);
  display: inline-block;
}
@keyframes marqueeSlide {
  to { transform: translateX(-50%); }
}

/* ══════════════════════════════════════════════════════════════════
   ANIMATED HERO SCHEMATIC (right column)
   ══════════════════════════════════════════════════════════════════ */
.schematic {
  width: 100%; max-width: 460px;
  aspect-ratio: 1 / 1;
}
.schematic .node {
  fill: var(--paper); stroke: var(--ink); stroke-width: 1.2;
}
.schematic .node-accent { fill: var(--signal); stroke: var(--signal); }
.schematic .link { stroke: var(--ink); stroke-width: 1; opacity: 0.4; fill: none; }
.schematic .link-flow {
  stroke: var(--signal); stroke-width: 1.5;
  stroke-dasharray: 4 6;
  animation: dashFlow 1.6s linear infinite;
}
.schematic .pulse-ring {
  fill: none; stroke: var(--signal);
  animation: pulseRing 2.4s ease-out infinite;
  transform-origin: center;
}
.schematic .label {
  font-family: var(--mono); font-size: 9px;
  letter-spacing: 0.14em; fill: var(--ink-3); text-transform: uppercase;
}
@keyframes dashFlow { to { stroke-dashoffset: -20; } }
@keyframes pulseRing {
  0% { r: 6; opacity: 1; stroke-width: 2; }
  100% { r: 36; opacity: 0; stroke-width: 0; }
}

/* ══════════════════════════════════════════════════════════════════
   CURSOR CARET (typing effect)
   ══════════════════════════════════════════════════════════════════ */
.caret {
  display: inline-block; width: 3px; height: 0.85em;
  background: var(--signal); margin-left: 4px;
  vertical-align: -0.05em;
  animation: caretBlink 1s steps(2) infinite;
}
@keyframes caretBlink { 50% { opacity: 0; } }

/* ══════════════════════════════════════════════════════════════════
   CODE TICKER (terminal mini)
   ══════════════════════════════════════════════════════════════════ */
.terminal {
  background: var(--ink); color: var(--paper-3);
  font-family: var(--mono); font-size: 12px;
  padding: 18px 20px; border-radius: 4px;
  line-height: 1.7; box-shadow: 0 30px 60px -20px rgba(20,23,28,0.4);
  position: relative;
}
.terminal::before {
  content: "● ● ●"; position: absolute; top: 10px; left: 14px;
  font-size: 8px; letter-spacing: 4px; color: rgba(255,255,255,0.25);
}
.terminal .t-line { display: block; padding-top: 4px; }
.terminal .t-line:first-child { padding-top: 18px; }
.terminal .t-prompt { color: var(--signal); }
.terminal .t-key { color: #FFD580; }
.terminal .t-val { color: #BFD7B5; }
.terminal .t-comment { color: var(--ink-4); }

/* ══════════════════════════════════════════════════════════════════
   FOCUS / motion
   ══════════════════════════════════════════════════════════════════ */
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ══════════════════════════════════════════════════════════════════
   STATUS DOCK — bottom-of-page system bar
   ══════════════════════════════════════════════════════════════════ */
.statusdock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: rgba(20,23,28,0.92); color: var(--paper-3);
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.1em; text-transform: uppercase;
  border-top: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  padding: 7px 18px;
  display: flex; gap: 22px; align-items: center;
  pointer-events: none;
  transform: translateY(100%);
  transition: transform .6s var(--ease-out);
}
.statusdock.visible { transform: translateY(0); }
.statusdock .sd-cell { display: inline-flex; gap: 8px; align-items: center; white-space: nowrap; }
.statusdock .sd-key { color: rgba(251,250,247,0.45); }
.statusdock .sd-val { color: var(--paper); font-feature-settings: "tnum" 1; }
.statusdock .sd-led {
  width: 6px; height: 6px; border-radius: 50%; background: #00D58A;
  box-shadow: 0 0 0 0 rgba(0,213,138,0.7);
  animation: ledPulse 1.8s ease-out infinite;
}
@keyframes ledPulse {
  0% { box-shadow: 0 0 0 0 rgba(0,213,138,0.7); }
  100% { box-shadow: 0 0 0 9px rgba(0,213,138,0); }
}
.statusdock .sd-spacer { flex: 1; }
.statusdock .sd-build { color: rgba(251,250,247,0.45); }
@media (max-width: 880px) {
  .statusdock { font-size: 10px; gap: 12px; padding: 6px 14px; }
  .statusdock .sd-cell:nth-child(n+5) { display: none; }
}

/* ══════════════════════════════════════════════════════════════════
   CONSOLE PANEL — fake operations control room
   Used in hero or in body to express "we run things in production"
   ══════════════════════════════════════════════════════════════════ */
.console {
  background: var(--ink);
  color: var(--paper-3);
  font-family: var(--mono);
  font-size: 11.5px;
  padding: 0;
  position: relative;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 30px 80px -20px rgba(20,23,28,0.35);
}
.console-bar {
  display: flex; align-items: center; gap: var(--s-3);
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(251,250,247,0.45);
}
.console-bar .led {
  width: 7px; height: 7px; border-radius: 50%;
  background: #00D58A;
  box-shadow: 0 0 8px rgba(0,213,138,0.6);
}
.console-bar .led.amber { background: #FFB347; box-shadow: 0 0 8px rgba(255,179,71,0.5); }
.console-bar .led.red { background: #E04B3C; }
.console-bar b { color: var(--paper); font-weight: 500; letter-spacing: 0.16em; }
.console-bar .sp { flex: 1; }
.console-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: rgba(255,255,255,0.06);
}
.console-cell {
  background: var(--ink); padding: 14px 16px;
  display: flex; flex-direction: column; gap: 4px;
}
.console-cell .k {
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(251,250,247,0.42);
}
.console-cell .v {
  font-family: var(--serif); font-size: 22px;
  color: var(--paper); letter-spacing: -0.01em; line-height: 1;
  font-feature-settings: "tnum" 1;
}
.console-cell .v .unit { font-size: 0.55em; color: var(--ink-4); margin-left: 4px; }
.console-cell .delta {
  font-size: 10px; color: #00D58A; letter-spacing: 0.06em;
}
.console-cell .delta.amber { color: #FFB347; }
.console-cell .spark {
  height: 24px; width: 100%; margin-top: 4px;
  display: block;
}
.console-cell .spark path {
  stroke: var(--signal); stroke-width: 1.4; fill: none;
  stroke-dasharray: 200; stroke-dashoffset: 200;
  animation: sparkDraw 2.2s var(--ease-out) forwards;
}
.console-cell .spark .area {
  fill: rgba(194,65,12,0.12); stroke: none;
}
@keyframes sparkDraw { to { stroke-dashoffset: 0; } }

.console-log {
  padding: 12px 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex; flex-direction: column; gap: 4px;
  font-size: 11px;
}
.console-log .lg-line { display: flex; gap: 12px; align-items: baseline; }
.console-log .lg-time { color: rgba(251,250,247,0.4); }
.console-log .lg-svc {
  color: #BFD7B5; min-width: 76px;
  font-size: 10px; letter-spacing: 0.08em;
}
.console-log .lg-msg { color: var(--paper-3); }
.console-log .lg-tag {
  font-size: 9px; padding: 1px 6px;
  border: 1px solid rgba(255,255,255,0.15);
  letter-spacing: 0.1em; color: rgba(251,250,247,0.6);
}

@media (max-width: 720px) {
  .console-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════════════
   TWO-COLUMN PILLARS — "Engineering × Management"
   ══════════════════════════════════════════════════════════════════ */
.pillars {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border: 1px solid var(--line);
}
.pillars > div {
  padding: var(--s-7) var(--s-6);
  border-right: 1px solid var(--line);
  position: relative;
  transition: background .4s var(--ease);
}
.pillars > div:last-child { border-right: 0; }
.pillars > div:hover { background: var(--paper-2); }
.pillars .px-tag {
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--signal); margin-bottom: var(--s-4);
  display: inline-flex; align-items: center; gap: 8px;
}
.pillars .px-tag::before {
  content: ""; width: 16px; height: 1px; background: var(--signal);
}
.pillars h3 {
  font-family: var(--serif); font-size: clamp(28px, 3vw, 40px);
  color: var(--ink); line-height: 1.05; letter-spacing: -0.015em;
  margin-bottom: var(--s-4);
}
.pillars p { font-size: var(--t-md); color: var(--ink-3); max-width: 42ch; line-height: 1.55; }
.pillars ul {
  list-style: none; padding: 0; margin: var(--s-5) 0 0;
  display: flex; flex-direction: column; gap: 6px;
}
.pillars li {
  font-family: var(--mono); font-size: var(--t-sm);
  color: var(--ink-2); padding-left: 18px; position: relative;
}
.pillars li::before {
  content: "›"; position: absolute; left: 0; top: 0;
  color: var(--signal); font-weight: 600;
}
@media (max-width: 880px) {
  .pillars { grid-template-columns: 1fr; }
  .pillars > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .pillars > div:last-child { border-bottom: 0; }
}

/* ══════════════════════════════════════════════════════════════════
   SECTORS GRID — "dove operiamo"
   ══════════════════════════════════════════════════════════════════ */
.sectors {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--line);
  border: 1px solid var(--line);
}
.sector {
  background: var(--paper); padding: var(--s-6) var(--s-5);
  position: relative; overflow: hidden;
  transition: background .35s var(--ease);
}
.sector:hover { background: var(--paper-2); }
.sector::before {
  content: ""; position: absolute; top: 0; left: 0; width: 0;
  height: 1px; background: var(--signal);
  transition: width .5s var(--ease-out);
}
.sector:hover::before { width: 100%; }
.sector .sct-id {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.18em; color: var(--ink-4);
  text-transform: uppercase; margin-bottom: var(--s-3);
  display: flex; justify-content: space-between;
}
.sector .sct-id b { color: var(--signal); font-weight: 500; }
.sector h3 {
  font-family: var(--serif); font-size: var(--t-lg);
  color: var(--ink); margin: 0 0 var(--s-3); letter-spacing: -0.012em;
  line-height: 1.15;
}
.sector p { font-size: var(--t-sm); color: var(--ink-3); line-height: 1.55; margin: 0; }
.sector .sct-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: var(--s-4);
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.sector .sct-tags span {
  border: 1px solid var(--line-strong);
  padding: 2px 8px; color: var(--ink-3);
}
@media (max-width: 880px) { .sectors { grid-template-columns: 1fr; } }

/* ══════════════════════════════════════════════════════════════════
   TESTIMONIALS
   ══════════════════════════════════════════════════════════════════ */
.testimonials {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6);
}
.testi {
  border: 1px solid var(--line);
  padding: var(--s-7) var(--s-6);
  background: var(--paper);
  position: relative;
  transition: transform .4s var(--ease-out), border-color .3s var(--ease);
}
.testi:hover { transform: translateY(-3px); border-color: var(--ink-3); }
.testi::before {
  content: """; position: absolute; top: 8px; left: 16px;
  font-family: var(--serif); font-size: 80px; line-height: 1;
  color: var(--signal); opacity: 0.18;
}
.testi blockquote {
  font-family: var(--serif); font-size: var(--t-lg);
  color: var(--ink); line-height: 1.45;
  margin: 0; letter-spacing: -0.005em;
  font-style: italic;
}
.testi .testi-meta {
  margin-top: var(--s-5); padding-top: var(--s-4);
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-3);
}
.testi .testi-meta b { color: var(--ink); font-weight: 500; }
@media (max-width: 880px) { .testimonials { grid-template-columns: 1fr; } }

/* ══════════════════════════════════════════════════════════════════
   DATA-FLOW DIAGRAM (between sections, full width)
   ══════════════════════════════════════════════════════════════════ */
.dataflow {
  display: grid; grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3);
  padding: 0;
}
.dataflow > div {
  padding: var(--s-5) var(--s-4); position: relative;
  display: flex; align-items: center; gap: 10px;
}
.dataflow > div + div { border-left: 1px dashed var(--line-strong); }
.dataflow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--signal);
  flex-shrink: 0;
  animation: flowPulse 2.4s ease-in-out infinite;
}
.dataflow > div:nth-child(2) .dot { animation-delay: .3s; }
.dataflow > div:nth-child(3) .dot { animation-delay: .6s; }
.dataflow > div:nth-child(4) .dot { animation-delay: .9s; }
.dataflow > div:nth-child(5) .dot { animation-delay: 1.2s; }
@keyframes flowPulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.4); }
}
.dataflow b { color: var(--ink); font-weight: 500; }
@media (max-width: 880px) {
  .dataflow { grid-template-columns: repeat(2, 1fr); }
  .dataflow > div + div { border-left: 0; border-top: 1px dashed var(--line-strong); }
}

/* ══════════════════════════════════════════════════════════════════
   HEADER STATUS PILL
   ══════════════════════════════════════════════════════════════════ */
.hd-status {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3); margin-right: var(--s-4);
}
.hd-status .led {
  width: 6px; height: 6px; border-radius: 50%;
  background: #00B86B;
  box-shadow: 0 0 0 0 rgba(0,184,107,0.5);
  animation: ledPulse 1.8s ease-out infinite;
}
@media (max-width: 880px) { .hd-status { display: none; } }

/* keep page content above the status dock */
body { padding-bottom: 36px; }
@media (max-width: 880px) { body { padding-bottom: 32px; } }

/* ══════════════════════════════════════════════════════════════════
   MOBILE RESPONSIVE OVERRIDES
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 880px) {
  /* hero stacking — overrides inline grid-template-columns */
  .hero-grid-top { grid-template-columns: 1fr !important; gap: var(--s-6) !important; }
  .hero { padding: var(--s-7) 0 var(--s-7); }
  .hero h1 { max-width: none; font-size: clamp(28px, 7vw, 44px); line-height: 1.05; }

  /* console panel */
  .console-grid { grid-template-columns: 1fr 1fr; }
  .console-cell .v { font-size: clamp(22px, 6vw, 32px); }
  .console-bar { font-size: 10px; flex-wrap: wrap; }
  .console-log .lg-line { flex-wrap: wrap; gap: 6px; }

  /* pillars stack */
  .pillars { grid-template-columns: 1fr; }
  .pillars > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .pillars > div:last-child { border-bottom: 0; }
  .pillars h3 { font-size: clamp(22px, 5vw, 28px); }

  /* dataflow — allow wrap, smaller */
  .dataflow { flex-wrap: wrap; gap: var(--s-3); padding: var(--s-4) var(--gutter); font-size: 11px; }
  .dataflow > div + div { border-left: 0; }
  .dataflow > div { padding: 4px 8px; }

  /* iso row stack */
  .iso-row { flex-direction: column; align-items: flex-start; gap: var(--s-4); }

  /* cta inner stack */
  .cta-inner { grid-template-columns: 1fr !important; gap: var(--s-5); }

  /* pull quote stack */
  .pull { grid-template-columns: 1fr; gap: var(--s-4); }
  .pull-mark { font-size: 64px; line-height: 0.8; }
  .pull-text { font-size: clamp(20px, 4.5vw, 28px); }

  /* status dock — compress, allow horizontal scroll */
  .statusdock {
    overflow-x: auto; flex-wrap: nowrap;
    font-size: 10px; padding: 6px var(--s-3);
    -webkit-overflow-scrolling: touch;
  }
  .statusdock .sd-spacer { display: none; }

  /* general typography */
  .h-1 { font-size: clamp(28px, 6vw, 40px); line-height: 1.1; }
  .h-2 { font-size: clamp(24px, 5vw, 34px); line-height: 1.15; }
  .lede { font-size: var(--t-sm); }

  /* buttons full-width on small */
  .hero-actions { flex-wrap: wrap; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }

  /* sectors stack and reduce padding */
  .section { padding: var(--s-7) 0; }
}

@media (max-width: 560px) {
  .console-grid { grid-template-columns: 1fr; }
  .ft-bottom { font-size: 10px; }
  .marquee-item { font-size: var(--t-sm); }
  .nav-cta { padding: 0 16px; height: 44px; font-size: var(--t-sm); }
  .btn { height: 48px; padding: 0 18px; }
  .brand { font-size: 22px; }
  h1, .h-1 { letter-spacing: -0.02em; }
  /* hide aurora blobs that can overflow on tiny screens */
  .hero-aurora, .hero-aurora-2 { opacity: 0.4; }
  /* hide dataflow bar on smartphones */
  .dataflow { display: none; }
}

/* prevent horizontal overflow site-wide on mobile */
html, body { overflow-x: hidden; }
