/* =========================================================
   ElettroDomotech S.r.l. — Modern Dark Editorial
   Dark theme · Photo backgrounds · Brand blue accents.
   ========================================================= */

:root {
  /* palette — dark editorial */
  --bg:        #0A0D14;          /* nero blu profondo */
  --bg-2:      #0F1320;          /* sezioni alternate */
  --bg-3:      #161B2A;          /* card */
  --bg-card:   #131826;
  --paper:     #1B2233;          /* paneling */

  --fg:        #E8ECF5;
  --fg-soft:   #B5BCCC;
  --muted:     #7A8398;
  --muted-2:   #555E73;
  --rule:      #1F2638;
  --rule-2:    #2A3149;

  /* brand blues — dal logo */
  --brand:        #5BB6E1;       /* azzurro chiaro = primario in dark */
  --brand-2:      #9FD5EC;       /* highlight chiaro */
  --brand-deep:   #1F6FA8;       /* per testi su chiaro */
  --brand-dark:   #16527E;
  --brand-soft:   rgba(91,182,225,.12);
  --brand-glow:   rgba(91,182,225,.35);

  /* type */
  --display: "Plus Jakarta Sans", "Helvetica Neue", system-ui, sans-serif;
  --body:    "Plus Jakarta Sans", "Helvetica Neue", system-ui, sans-serif;
  --serif:   "Newsreader", Georgia, "Times New Roman", serif;
  --mono:    "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --logo:    "Quicksand", sans-serif;

  /* layout */
  --pad-x: clamp(20px, 4vw, 64px);
  --pad-y: clamp(80px, 10vw, 160px);
  --max:   1320px;
  --radius: 10px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--brand); color: var(--bg); }

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
em { font-style: italic; }
b, strong { font-weight: 600; }

main, .site-header, .site-footer { position: relative; }

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 14px var(--pad-x);
  background: color-mix(in oklab, var(--bg) 70%, transparent);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--rule);
}

.brand-lozenge {
  display: inline-flex;
  align-items: center;
  background: var(--fg);
  padding: 7px 14px 5px;
  border-radius: 6px;
  border: 1px solid var(--fg);
  box-shadow: 0 6px 18px -10px rgba(0,0,0,.6);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
}
.brand:hover .brand-lozenge { transform: translateY(-1px); }
.brand-logo { height: clamp(30px, 3.4vw, 38px); width: auto; }

.brand-lozenge--lg { padding: 14px 20px 12px; }
.brand-lozenge--lg .footer-logo { height: clamp(56px, 6vw, 72px); }

.nav {
  display: flex;
  justify-content: center;
  gap: 26px;
  font-family: var(--body);
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-soft);
}
.nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  transition: color .2s ease;
}
.nav a .dot {
  width: 4px; height: 4px;
  background: var(--rule-2);
  border-radius: 50%;
  transition: background .2s ease, transform .3s ease;
}
.nav a:hover { color: var(--fg); }
.nav a:hover .dot { background: var(--brand); transform: scale(1.6); box-shadow: 0 0 8px var(--brand-glow); }

.cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  border: 1px solid var(--brand);
  background: var(--brand);
  color: var(--bg);
  border-radius: 999px;
  font-family: var(--body);
  font-size: 14px;
  font-weight: 600;
  transition: background .2s ease, transform .25s ease, box-shadow .25s ease;
  box-shadow: 0 4px 16px -6px var(--brand-glow);
}
.cta-pill:hover {
  background: var(--brand-2);
  border-color: var(--brand-2);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px -8px var(--brand-glow);
}
.cta-pill .cta-arrow { transition: transform .25s ease; }
.cta-pill:hover .cta-arrow { transform: translateX(3px); }

/* ===== HERO with photo bg ===== */
.hero {
  position: relative;
  min-height: 92vh;
  padding: clamp(80px, 10vw, 140px) var(--pad-x) clamp(120px, 14vw, 180px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: saturate(.85) contrast(1.05);
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,13,20,.55) 0%, rgba(10,13,20,.7) 60%, rgba(10,13,20,.96) 100%),
    radial-gradient(circle at 70% 30%, rgba(91,182,225,.18) 0%, transparent 50%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: clamp(24px, 3vw, 40px);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--body);
  font-size: 12px;
  font-weight: 500;
  padding: 6px 12px;
  border: 1px solid var(--rule-2);
  border-radius: 999px;
  color: var(--fg-soft);
  background: var(--bg-3);
}
.tag--ghost { background: transparent; border-style: dashed; }
.tag--dark {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.16);
  color: var(--fg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(54px, 9vw, 144px);
  line-height: .98;
  letter-spacing: -0.04em;
  margin: 0 0 clamp(28px, 3vw, 48px);
  color: var(--fg);
  text-shadow: 0 2px 30px rgba(0,0,0,.4);
}
.hero-title .line { display: block; }
.hero-title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--brand-2);
  letter-spacing: -0.03em;
}

.hero-lede {
  font-size: clamp(16px, 1.2vw, 20px);
  line-height: 1.55;
  color: var(--fg-soft);
  max-width: 56ch;
  margin: 0 0 clamp(28px, 3vw, 40px);
}
.hero-lede em {
  font-family: var(--body);
  font-style: normal;
  font-weight: 600;
  color: var(--fg);
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: var(--brand);
  color: var(--bg);
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid var(--brand);
  box-shadow: 0 12px 30px -10px var(--brand-glow);
  transition: transform .25s ease, box-shadow .25s ease, background .2s ease;
}
.btn-primary:hover { transform: translateY(-2px); background: var(--brand-2); border-color: var(--brand-2); box-shadow: 0 18px 40px -12px var(--brand-glow); }
.btn-primary span { transition: transform .25s ease; }
.btn-primary:hover span { transform: translateX(4px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 14px 22px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.04);
  color: var(--fg);
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background .2s ease, border-color .2s ease, transform .25s ease;
}
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.4); transform: translateY(-2px); }

.hero-stats-strip {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(10,13,20,.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--rule-2);
  border-bottom: 1px solid var(--rule);
}
.hero-stats-strip .stat {
  padding: 22px 24px;
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
}
.hero-stats-strip .stat:last-child { border-right: 0; }
.stat-num {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--brand-2);
}
.stat-lab {
  font-family: var(--body);
  font-size: 12px;
  letter-spacing: 0;
  color: var(--muted);
  margin-top: 6px;
}

/* ===== MARQUEE ===== */
.marquee {
  background: var(--bg-2);
  color: var(--fg);
  border-block: 1px solid var(--rule);
  overflow: hidden;
  position: relative;
}
.marquee-head {
  position: absolute;
  inset: 8px 0 auto 0;
  text-align: center;
  z-index: 2;
}
.marquee-head .tag {
  background: var(--bg);
  color: var(--muted);
}
.marquee-track {
  display: inline-flex;
  white-space: nowrap;
  gap: 18px;
  padding: 38px 0 22px;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(20px, 2vw, 30px);
  letter-spacing: -0.01em;
  animation: marquee 60s linear infinite;
  will-change: transform;
}
.marquee-track .sep { color: var(--rule-2); font-weight: 400; }
.marquee-track > span { color: var(--fg-soft); }
.marquee:hover .marquee-track { animation-play-state: paused; }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ===== SECTION META ===== */
.sec-num {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--brand);
  font-weight: 500;
}
.sec-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin: 0;
  color: var(--fg);
}
.sec-title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--brand);
  letter-spacing: -0.025em;
}
.sec-title--invert { color: var(--fg); }
.sec-title--light  { color: var(--fg); }

/* ===== MANIFESTO ===== */
.manifesto {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(20px, 5vw, 80px);
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--pad-y) var(--pad-x);
  border-bottom: 1px solid var(--rule);
}
.manifesto-aside {
  position: sticky; top: 90px; align-self: start;
}
.manifesto-body { max-width: 64ch; }

.big-prose {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.4;
  letter-spacing: -0.015em;
  color: var(--fg);
  margin: 0 0 28px;
}
.big-prose em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--brand-2);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--body);
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
  border-bottom: 1px solid var(--brand);
  padding-bottom: 4px;
}
.link-arrow span {
  display: inline-block;
  transition: transform .3s ease;
  color: var(--brand);
}
.link-arrow:hover span { transform: translateX(5px); }
.link-arrow--invert { color: var(--brand-2); border-color: var(--brand-2); }
.link-arrow--invert span { color: var(--brand-2); }

/* ===== SECTORS ===== */
.sectors {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--pad-y) var(--pad-x);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(20px, 2vw, 28px);
}
.sectors-head {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 220px 1fr 1fr;
  gap: clamp(20px, 4vw, 56px);
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.sectors-head .sec-num { display: block; margin-bottom: 6px; }
.sectors-lede {
  font-size: clamp(15px, 1vw, 17px);
  color: var(--fg-soft);
  margin: 0;
  max-width: 50ch;
  line-height: 1.55;
}

.sector {
  position: relative;
  grid-column: span 4;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .35s cubic-bezier(.4,0,.2,1), border-color .25s ease, box-shadow .25s ease;
}
.sector:hover {
  transform: translateY(-4px);
  border-color: var(--brand);
  box-shadow: 0 24px 48px -24px rgba(91,182,225,.28);
}
.sector--feature { grid-column: span 12; flex-direction: row; align-items: stretch; }
.sector--feature .sector-img { aspect-ratio: auto; flex: 1; min-height: 280px; }
.sector--feature .sector-body { flex: 1; padding: 36px 32px; }

.sector-img {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--bg-2);
}
.sector-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(.85) brightness(.78);
  transition: transform 1.2s cubic-bezier(.4,0,.2,1), filter .4s ease;
}
.sector:hover .sector-img img { transform: scale(1.05); filter: saturate(1) brightness(.92); }

.sector-badge {
  position: absolute;
  top: 14px; left: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .04em;
  padding: 4px 8px;
  background: rgba(10,13,20,.7);
  border: 1px solid rgba(255,255,255,.18);
  color: var(--brand-2);
  border-radius: 4px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.sector-body {
  padding: 24px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.sector-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(20px, 1.6vw, 26px);
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--fg);
}

.sector p {
  font-size: 14.5px;
  line-height: 1.55;
  margin: 0;
  color: var(--fg-soft);
}

.sector-list {
  list-style: none;
  padding: 0;
  margin: auto 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--body);
  font-size: 13px;
  color: var(--fg);
}
.sector-list li::before {
  content: "— ";
  color: var(--brand);
}

/* ===== PARALLAX QUOTE ===== */
.parallax {
  position: relative;
  overflow: hidden;
  min-height: 60vh;
  display: flex;
  align-items: center;
  border-block: 1px solid var(--rule);
}
.parallax-bg { position: absolute; inset: 0; z-index: 0; }
.parallax-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(.7) brightness(.55);
  transform: scale(1.05);
}
.parallax-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,13,20,.55) 0%, rgba(10,13,20,.85) 100%),
    radial-gradient(circle at 30% 50%, rgba(91,182,225,.18) 0%, transparent 60%);
}
.parallax-content {
  position: relative;
  z-index: 2;
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(80px, 9vw, 120px) var(--pad-x);
  text-align: center;
}
.parallax-quote {
  position: relative;
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(24px, 3vw, 44px);
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--fg);
  margin: 0;
  padding-top: 60px;
}
.quote-mark {
  position: absolute;
  top: -20px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--serif);
  font-size: 140px;
  line-height: 1;
  color: var(--brand);
  opacity: .55;
  font-style: italic;
}
.parallax-quote cite {
  display: block;
  margin-top: 24px;
  font-family: var(--mono);
  font-style: normal;
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--brand-2);
}

/* ===== SHOWCASE ===== */
.showcase {
  background: var(--bg-2);
  color: var(--fg);
  padding: var(--pad-y) var(--pad-x);
  border-block: 1px solid var(--rule);
}
.showcase-meta {
  max-width: var(--max);
  margin: 0 auto clamp(28px, 3vw, 44px);
  display: flex; align-items: baseline; gap: 16px;
}

.showcase-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(28px, 4vw, 60px);
  align-items: center;
}

.showcase-art { margin: 0; }
.showcase-art-frame {
  aspect-ratio: 8/7;
  width: 100%;
  border: 1px solid var(--rule);
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.5);
}
.showcase-art-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(.9);
  transition: transform 1.2s cubic-bezier(.4,0,.2,1);
}
.showcase-art:hover .showcase-art-frame img { transform: scale(1.04); }

.showcase-art figcaption {
  margin-top: 16px;
  display: flex; gap: 14px; flex-wrap: wrap; align-items: baseline;
  font-size: 13px;
}
.cap-tag { color: var(--brand); font-weight: 600; font-family: var(--mono); font-size: 11px; letter-spacing: .04em; }
.cap-text { color: var(--fg-soft); }

.showcase-text { align-self: center; }
.showcase-text p {
  margin: 22px 0 0;
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.6;
  color: var(--fg-soft);
  max-width: 56ch;
}

.kv-tech {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 32px;
  margin: 28px 0;
  padding: 0;
}
.kv-tech > div {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  border-bottom: 1px solid var(--rule);
  padding: 12px 0;
}
.kv-tech dt {
  font-family: var(--body);
  font-size: 13px;
  color: var(--muted);
}
.kv-tech dd {
  font-family: var(--body);
  font-weight: 600;
  font-size: 14px;
  margin: 0;
  text-align: right;
  color: var(--fg);
}

/* ===== AI BLOCK with photo bg ===== */
.ai-block {
  position: relative;
  padding: var(--pad-y) var(--pad-x);
  overflow: hidden;
}
.ai-bg { position: absolute; inset: 0; z-index: 0; }
.ai-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(1.2) brightness(.45);
}
.ai-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,13,20,.85) 0%, rgba(10,13,20,.92) 100%),
    radial-gradient(circle at 80% 20%, rgba(91,182,225,.25) 0%, transparent 55%);
}
.ai-grid {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(36px, 5vw, 80px);
  align-items: start;
}
.ai-text .sec-title { margin: 14px 0 22px; }
.ai-text > p {
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.6;
  color: var(--fg-soft);
  max-width: 52ch;
  margin: 0 0 22px;
}

.ai-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column;
  gap: 10px;
}
.ai-list li {
  position: relative;
  padding: 14px 18px;
  border: 1px solid var(--rule-2);
  border-left: 3px solid var(--brand);
  border-radius: 6px;
  background: rgba(255,255,255,.03);
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--fg-soft);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.ai-list li b {
  font-weight: 600;
  color: var(--brand-2);
  margin-right: 6px;
}

.ai-card {
  align-self: stretch;
  background: rgba(19,24,38,.7);
  border: 1px solid var(--rule-2);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.6);
}
.ai-card-head {
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--rule-2);
  background: rgba(91,182,225,.06);
}
.ai-card-eyebrow {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--brand);
  margin-bottom: 6px;
}
.ai-card-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--fg);
}
.ai-card-list {
  list-style: none;
  margin: 0;
  padding: 6px 0;
}
.ai-card-list li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px 24px;
  border-bottom: 1px solid var(--rule);
}
.ai-card-list li:last-child { border-bottom: 0; }
.ai-card-list li > span {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--brand);
  padding-top: 2px;
}
.ai-card-list li > b {
  font-weight: 600;
  font-size: 15px;
  color: var(--fg);
  display: block;
  grid-column: 2 / 3;
}
.ai-card-list li > p {
  margin: 4px 0 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--fg-soft);
  grid-column: 2 / 3;
}

/* ===== ACADEMY ===== */
.academy {
  padding: var(--pad-y) var(--pad-x);
}
.academy-head {
  max-width: var(--max);
  margin: 0 auto clamp(36px, 4vw, 60px);
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(20px, 4vw, 56px);
  align-items: end;
}
.academy-head .sec-num { display: block; margin-bottom: 6px; }
.academy-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 1.6vw, 22px);
}
.course {
  position: relative;
  padding: 24px 22px 18px;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 200px;
  transition: transform .3s ease, border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.course:hover {
  transform: translateY(-3px);
  border-color: var(--brand);
  box-shadow: 0 18px 36px -22px rgba(91,182,225,.3);
}
.course--feature {
  background: linear-gradient(160deg, rgba(91,182,225,.14) 0%, var(--bg-card) 70%);
  border-color: var(--brand);
}
.course-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--brand);
  font-weight: 500;
}
.course h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(17px, 1.4vw, 20px);
  letter-spacing: -0.018em;
  margin: 0;
  color: var(--fg);
}
.course p {
  font-size: 13.5px;
  line-height: 1.5;
  margin: 0;
  color: var(--fg-soft);
}
.course-foot {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  font-family: var(--body);
  font-size: 12px;
  color: var(--muted);
}
.course-arrow {
  font-family: var(--display);
  font-size: 18px;
  color: var(--brand);
  transition: transform .3s ease;
}
.course:hover .course-arrow { transform: translate(4px, -2px); }

/* ===== CONTACT with bg ===== */
.contact {
  position: relative;
  padding: var(--pad-y) var(--pad-x);
  overflow: hidden;
  border-top: 1px solid var(--rule);
}
.contact-bg { position: absolute; inset: 0; z-index: 0; }
.contact-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(.7) brightness(.4);
}
.contact-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,13,20,.8) 0%, rgba(10,13,20,.95) 100%),
    radial-gradient(circle at 20% 80%, rgba(91,182,225,.2) 0%, transparent 60%);
}
.contact-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
}
.contact-inner > .sec-num { display: block; margin-bottom: 22px; }

.contact-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(60px, 11vw, 180px);
  line-height: .98;
  letter-spacing: -0.045em;
  margin: 0 0 28px;
  color: var(--fg);
}
.contact-title .line { display: block; }
.contact-title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--brand-2);
  letter-spacing: -0.03em;
}

.contact-lede {
  max-width: 56ch;
  font-size: clamp(15px, 1.05vw, 18px);
  color: var(--fg-soft);
  margin: 0 0 clamp(36px, 4vw, 56px);
}
.contact-lede b { color: var(--fg); }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--rule-2);
  border-radius: var(--radius);
  background: rgba(19,24,38,.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
}
.contact-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
  padding: 32px 28px 26px;
  border-right: 1px solid var(--rule-2);
  position: relative;
  overflow: hidden;
  transition: background .3s ease;
}
.contact-card:last-child { border-right: 0; }
.contact-card-tag {
  grid-column: 1 / -1;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--muted);
  text-transform: lowercase;
}
.contact-card-val {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(17px, 1.4vw, 20px);
  letter-spacing: -0.015em;
  color: var(--fg);
}
.contact-card-arrow {
  font-family: var(--display);
  font-size: 26px;
  color: var(--brand);
  transition: transform .3s ease;
}
.contact-card:hover { background: rgba(91,182,225,.12); }
.contact-card:hover .contact-card-arrow { transform: translate(4px, -4px); }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--rule);
  padding: clamp(60px, 7vw, 100px) var(--pad-x) 24px;
}
.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(28px, 3vw, 56px);
}
.footer-pay {
  margin: 22px 0 0;
  font-size: 14px;
  color: var(--fg-soft);
  max-width: 38ch;
  line-height: 1.55;
}
.footer-col {
  display: flex; flex-direction: column; gap: 8px;
  font-size: 14px;
}
.footer-col h4 {
  font-family: var(--body);
  font-size: 12px;
  letter-spacing: .02em;
  color: var(--brand);
  margin: 0 0 10px;
  font-weight: 600;
}
.footer-col a, .footer-col span {
  color: var(--fg-soft);
  width: max-content;
  max-width: 100%;
  transition: color .2s ease;
}
.footer-col a:hover { color: var(--brand); }

.footer-rule {
  max-width: var(--max);
  margin: clamp(40px, 5vw, 56px) auto 18px;
  height: 1px;
  background: var(--rule);
}
.footer-bottom {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--body);
  font-size: 12px;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 12px;
}

/* ===== MOTION / REVEAL ===== */
[data-reveal],
[data-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .9s cubic-bezier(.2,0,.2,1), transform .9s cubic-bezier(.2,0,.2,1);
}
[data-reveal].in,
[data-reveal-stagger].in > * {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal-stagger].in > *:nth-child(1) { transition-delay: .05s; }
[data-reveal-stagger].in > *:nth-child(2) { transition-delay: .18s; }
[data-reveal-stagger].in > *:nth-child(3) { transition-delay: .31s; }
[data-reveal-stagger].in > *:nth-child(4) { transition-delay: .44s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0s !important;
    transition-duration: 0s !important;
  }
  [data-reveal], [data-reveal-stagger] > * { opacity: 1; transform: none; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .hero { min-height: 88vh; }
  .showcase-grid { grid-template-columns: 1fr; }
  .ai-grid { grid-template-columns: 1fr; }
  .academy-grid { grid-template-columns: repeat(2, 1fr); }
  .sector { grid-column: span 6; }
  .sector--feature { flex-direction: column; }
}
@media (max-width: 980px) {
  .nav { display: none; }
  .site-header { grid-template-columns: 1fr auto; }
  .manifesto { grid-template-columns: 1fr; }
  .manifesto-aside { position: static; display: flex; gap: 16px; }
  .sectors-head { grid-template-columns: 1fr; gap: 14px; }
  .academy-head { grid-template-columns: 1fr; gap: 14px; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-card { border-right: 0; border-bottom: 1px solid var(--rule-2); }
  .contact-card:last-child { border-bottom: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats-strip { grid-template-columns: repeat(2, 1fr); }
  .hero-stats-strip .stat:nth-child(2) { border-right: 0; }
  .hero-stats-strip .stat:nth-child(1),
  .hero-stats-strip .stat:nth-child(2) { border-bottom: 1px solid var(--rule); }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
  .academy-grid { grid-template-columns: 1fr; }
  .sector { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .kv-tech { grid-template-columns: 1fr; }
  .hero-title { font-size: clamp(44px, 12vw, 72px); }
  .contact-title { font-size: clamp(48px, 14vw, 72px); }
  .quote-mark { font-size: 100px; top: -10px; }
  .hero { padding-bottom: 200px; }
  .hero-stats-strip .stat { padding: 16px 18px; }
}
