/* ============================================================
   Invacuo — circuit solutions
   Palette: copper foil on warm paper, polyimide (Kapton) amber
   ============================================================ */

:root {
  /* copper */
  --copper: #b06f2e;
  --copper-deep: #8a5220;
  --copper-bright: #d08c4a;
  /* polyimide / Kapton amber */
  --kapton: #e8930c;
  --kapton-deep: #b96f04;
  --kapton-film: rgba(240, 154, 26, 0.14);
  /* neutrals — bright, warm */
  --paper: #fdfaf4;
  --paper-tint: #faf3e6;
  --card: #ffffff;
  --ink: #33261a;
  --muted: #7a6650;
  --line: #ecdfc9;
  /* dark footer */
  --espresso: #2c2013;

  --grad-copper: linear-gradient(135deg, #d08c4a 0%, #b06f2e 45%, #96591f 70%, #c98243 100%);
  --shadow-soft: 0 10px 30px rgba(138, 82, 32, 0.09);
  --shadow-lift: 0 16px 40px rgba(138, 82, 32, 0.16);
  --radius: 18px;

  --font-head: "Outfit", "Avenir Next", sans-serif;
  --font-body: "Inter", "Helvetica Neue", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; }

.container {
  width: min(1140px, 100% - 48px);
  margin-inline: auto;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 250, 244, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 24px rgba(138, 82, 32, 0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 16px;
}
.brand-logo { height: 52px; width: auto; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-nav a:not(.btn) {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  position: relative;
}
.site-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -6px;
  height: 2px;
  background: var(--copper);
  transition: right 0.25s;
}
.site-nav a:not(.btn):hover::after { right: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15.5px;
  text-decoration: none;
  padding: 13px 26px;
  border-radius: 999px;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
}
.btn-small { padding: 9px 20px; font-size: 14.5px; }
.btn-primary {
  background: var(--grad-copper);
  color: #fff;
  box-shadow: 0 6px 18px rgba(176, 111, 46, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(176, 111, 46, 0.45); }
.btn-ghost {
  color: var(--copper-deep);
  border: 1.5px solid var(--copper);
  background: transparent;
}
.btn-ghost:hover { background: var(--kapton-film); }
.btn-light { background: #fff; color: var(--copper-deep); }
.btn-light:hover { transform: translateY(-2px); }
.btn-outline-light { border: 1.5px solid rgba(255,255,255,0.7); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,0.12); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 500px at 85% -10%, var(--kapton-film), transparent 65%),
    var(--paper);
  padding-block: 72px 88px;
}
.hero-traces {
  position: absolute;
  top: 0; right: 0;
  width: 420px;
  opacity: 0.14;
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  position: relative;
}

.eyebrow {
  font-family: var(--font-head);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--kapton-deep);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--copper);
  box-shadow: 0 0 0 3px var(--kapton-film);
  flex: none;
}

.hero h1 {
  font-size: clamp(40px, 5.2vw, 62px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}
.copper-text {
  background: var(--grad-copper);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  font-size: 19px;
  color: var(--muted);
  max-width: 54ch;
  margin-bottom: 34px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }

.hero-facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 36px;
  border-top: 1px solid var(--line);
  padding-top: 26px;
}
.hero-facts li { display: flex; flex-direction: column; }
.hero-facts strong {
  font-family: var(--font-head);
  font-size: 15.5px;
  font-weight: 600;
}
.hero-facts span { font-size: 13.5px; color: var(--muted); }

/* hero timeline — big zig-zag years on a central spine; detail cards on hover.
   Cards are absolutely positioned so revealing one never reflows the page. */
.hero-timeline { position: relative; }
.timeline-caption {
  font-family: var(--font-head);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--kapton-deep);
  text-align: center;
  margin-bottom: 30px;
}
.timeline-caption span {
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
}
.timeline {
  list-style: none;
  position: relative;
  display: grid;
  gap: 34px;
}
.timeline-item { position: relative; min-height: 58px; }

/* central spine, built from dot-to-dot connector segments */
.timeline-item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: calc(100% + 34px);
  border-radius: 2px;
  background: var(--copper);
  opacity: 0.5;
}
.timeline-item:nth-last-child(2)::after {
  background: repeating-linear-gradient(180deg, var(--copper) 0 5px, transparent 5px 10px);
  opacity: 0.7;
}
/* node dot on the spine */
.timeline-item::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--copper);
  box-shadow: 0 0 0 3px var(--kapton-film);
  z-index: 2;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.timeline-item-future::before {
  background: var(--paper);
  border: 2.5px solid var(--copper);
}
.timeline-item:hover::before,
.timeline-item:focus-within::before {
  transform: translate(-50%, -50%) scale(1.25);
  box-shadow: 0 0 0 5px var(--kapton-film);
}

/* the big year — the only text shown by default; it is the hover trigger */
.timeline-year {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: none;
  cursor: pointer;
  font-family: var(--font-head);
  font-size: clamp(30px, 3.5vw, 46px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--copper-deep);
  transition: color 0.2s ease;
}
.timeline-item[data-side="left"] .timeline-year { right: 50%; margin-right: 26px; text-align: right; }
.timeline-item[data-side="right"] .timeline-year { left: 50%; margin-left: 26px; text-align: left; }
.timeline-item-future .timeline-year { color: var(--kapton-deep); }
.timeline-item:hover .timeline-year,
.timeline-item:focus-within .timeline-year { color: var(--kapton); }
.timeline-year:focus-visible { outline: 2px solid var(--copper); outline-offset: 4px; border-radius: 4px; }

/* detail card — hidden, revealed on the opposite side of the year on hover/focus */
.timeline-info {
  position: absolute;
  top: 50%;
  z-index: 30;
  width: 224px;
  max-width: calc(100% - 40px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-lift);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-50%) scale(0.94);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.timeline-item[data-side="left"] .timeline-info { left: 50%; margin-left: 26px; transform-origin: left center; }
.timeline-item[data-side="right"] .timeline-info { right: 50%; margin-right: 26px; transform-origin: right center; }
.timeline-item:hover .timeline-info,
.timeline-item:focus-within .timeline-info {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(-50%) scale(1);
}
.timeline-info img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  display: block;
  background: var(--paper-tint);
}
.timeline-info--text { border-top: 3px solid var(--copper); }
.timeline-info-body { padding: 13px 15px 15px; }
.timeline-info-body h3 {
  font-family: var(--font-head);
  font-size: 15.5px;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--ink);
}
.timeline-info-body p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
.timeline-info-body em { font-style: italic; }

/* ---------- sections ---------- */

.section { padding-block: 96px; }
.section-tinted {
  background:
    radial-gradient(900px 400px at 10% 0%, var(--kapton-film), transparent 60%),
    var(--paper-tint);
}

.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head h2 {
  font-size: clamp(30px, 3.6vw, 42px);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 18px;
}
.section-lead { color: var(--muted); font-size: 17.5px; }

/* ---------- cards ---------- */

.card-grid { display: grid; gap: 24px; }
.card-grid.three { grid-template-columns: repeat(3, 1fr); }
.card-grid.two { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 30px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: var(--copper-bright);
}
.card h3 {
  font-size: 21px;
  font-weight: 600;
  margin-bottom: 10px;
}
.card p { color: var(--muted); font-size: 15.5px; }

.card-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--kapton-film);
  color: var(--copper);
  display: grid;
  place-items: center;
  margin-bottom: 22px;
}
.card-icon svg { width: 28px; height: 28px; }

.tag {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--kapton-deep);
  background: var(--kapton-film);
  border-radius: 999px;
  padding: 5px 13px;
  margin-bottom: 18px;
}

.card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 18px;
}
.card-links a {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--copper-deep);
  text-decoration: none;
  border-bottom: 1.5px solid var(--copper-bright);
  padding-bottom: 1px;
}
.card-links a:hover { color: var(--kapton-deep); border-bottom-color: var(--kapton); }

/* ---------- publications ---------- */

.pub-list { display: grid; gap: 18px; margin-bottom: 28px; }
.pub {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--copper);
  border-radius: 14px;
  padding: 26px 30px;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.pub:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
  border-left-color: var(--kapton);
}
.pub-meta {
  display: block;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--kapton-deep);
  margin-bottom: 8px;
}
.pub-title {
  display: block;
  font-family: var(--font-head);
  font-size: 19.5px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.pub-authors { display: block; font-size: 14.5px; color: var(--muted); }

.press-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--kapton-film);
  border: 1px solid rgba(201, 119, 8, 0.25);
  border-radius: var(--radius);
  padding: 26px 30px;
  text-decoration: none;
  transition: transform 0.25s, box-shadow 0.25s;
}
.press-banner:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.press-label {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--kapton-deep);
}
.press-title {
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
  margin-top: 6px;
}
.press-sub { font-size: 14.5px; color: var(--muted); margin-top: 4px; }
.press-arrow {
  font-size: 26px;
  color: var(--copper);
  flex: none;
  transition: transform 0.25s;
}
.press-banner:hover .press-arrow { transform: translateX(6px); }

/* ---------- team ---------- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}
.person {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.person:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: var(--copper-bright);
}
.avatar {
  display: grid;
  place-items: center;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--grad-copper);
  color: #fff;
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 18px;
}
.person h3 { font-size: 19px; font-weight: 600; }
.person p { font-size: 14.5px; color: var(--muted); margin-top: 3px; }
.person-links { display: flex; gap: 16px; margin-top: 14px; }
.person-links a {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--copper-deep);
  text-decoration: none;
  border-bottom: 1.5px solid var(--copper-bright);
}
.person-links a:hover { color: var(--kapton-deep); border-bottom-color: var(--kapton); }

.team-photo {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lift);
}
.team-photo img { width: 100%; }
.team-photo figcaption {
  padding: 16px 24px;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- partners ---------- */

.partner-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.partner {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s, box-shadow 0.25s;
}
.partner:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.partner-logo {
  height: 84px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}
.partner-logo img {
  max-height: 76px;
  max-width: 150px;
  width: auto;
  object-fit: contain;
  border-radius: 8px;
}
.partner h3 { font-size: 16.5px; font-weight: 600; }
.partner p { font-size: 13.5px; color: var(--kapton-deep); font-weight: 500; margin-top: 4px; }

/* ---------- contact ---------- */

.contact-band {
  position: relative;
  overflow: hidden;
  background: var(--grad-copper);
  border-radius: 26px;
  padding: 72px 64px;
  color: #fff;
  box-shadow: 0 24px 60px rgba(138, 82, 32, 0.35);
}
.contact-traces {
  position: absolute;
  top: 0; right: 0;
  width: 300px;
  height: 100%;
  pointer-events: none;
}
.contact-traces svg { height: 100%; width: auto; float: right; }
.contact-band h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 16px;
  position: relative;
}
.contact-band p {
  max-width: 56ch;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 32px;
  position: relative;
}
.contact-actions { display: flex; flex-wrap: wrap; gap: 14px; position: relative; }

/* ---------- footer ---------- */

.site-footer {
  background: var(--espresso);
  color: #cbb99f;
  padding-top: 64px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr 1.1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-logo {
  height: 36px;
  width: auto;
  filter: invert(62%) sepia(38%) saturate(600%) hue-rotate(347deg) brightness(95%);
  margin-bottom: 18px;
}
.footer-brand p { font-size: 14.5px; line-height: 1.7; }
.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper-bright);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  color: #cbb99f;
  text-decoration: none;
  font-size: 14.5px;
  margin-bottom: 10px;
}
.footer-col a:hover { color: #fff; }
.footer-note { font-size: 13.5px; line-height: 1.7; margin-bottom: 12px; }
.footer-bottom {
  border-top: 1px solid rgba(203, 185, 159, 0.18);
  padding-block: 22px;
  font-size: 13.5px;
}

/* ---------- subpages ---------- */

.subpage-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 500px at 85% -10%, var(--kapton-film), transparent 65%),
    var(--paper);
  padding-block: 52px 64px;
}
.breadcrumb {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  color: var(--copper-deep);
  text-decoration: none;
  margin-bottom: 28px;
}
.breadcrumb:hover { color: var(--kapton-deep); }
.subpage-hero h1 {
  font-size: clamp(34px, 4.6vw, 54px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  max-width: 26ch;
}
.subpage-hero .lead { margin-bottom: 0; max-width: 62ch; }

.media-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.media-row > * { min-width: 0; }
.media-row .section-head { margin-bottom: 0; }

.figure-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-soft);
}
.figure-card img { margin-inline: auto; }
.figure-card figcaption {
  padding-top: 16px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  text-align: center;
}

.list-title {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
}
.check-list, .cross-list, .arrow-list {
  list-style: none;
  display: grid;
  gap: 10px;
}
.check-list li, .cross-list li, .arrow-list li {
  position: relative;
  padding-left: 30px;
  color: var(--muted);
  font-size: 15.5px;
}
.check-list li::before, .cross-list li::before, .arrow-list li::before {
  position: absolute;
  left: 0; top: 0;
  font-family: var(--font-head);
  font-weight: 700;
}
.check-list li::before { content: "✓"; color: var(--copper); }
.cross-list li::before { content: "✕"; color: #b3543f; }
.arrow-list li::before { content: "→"; color: var(--kapton-deep); }
.list-stack > * + .list-title { margin-top: 28px; }

.feature-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  margin-top: 52px;
}
.feature-list article {
  border-top: 2px solid var(--copper-bright);
  padding-top: 14px;
}
.feature-list h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}
.feature-list p { font-size: 14px; color: var(--muted); }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-soft);
}
.stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -0.01em;
  background: var(--grad-copper);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 4px;
}
.stat span { font-size: 13.5px; color: var(--muted); }

.pulse-compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 22px;
  align-items: center;
}
.pulse-arrow {
  font-size: 36px;
  color: var(--copper);
  font-family: var(--font-head);
}

.table-scroll { overflow-x: auto; }
.compare-table {
  width: 100%;
  min-width: 460px;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  font-size: 14.5px;
  line-height: 1.5;
}
.compare-table th {
  font-family: var(--font-head);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
  padding: 15px 20px;
}
.compare-table th:first-child { background: var(--paper-tint); color: var(--muted); }
.compare-table th:last-child { background: var(--kapton-film); color: var(--kapton-deep); }
.compare-table td {
  padding: 15px 20px;
  border-top: 1px solid var(--line);
  vertical-align: top;
  color: var(--muted);
}
.compare-table td + td, .compare-table th + th { border-left: 1px solid var(--line); }
.compare-table td strong { font-weight: 600; }
.compare-table td:first-child strong { color: #b3543f; }
.compare-table td:last-child strong { color: var(--copper-deep); }

.gap-diagram { width: 100%; height: auto; display: block; margin-top: 44px; }
.gap-diagram text { font-family: var(--font-body); }
.gap-diagram .gd-head { font-family: var(--font-head); font-weight: 600; }

/* ---------- reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- responsive ---------- */

@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-timeline { max-width: 560px; }
  .card-grid.three { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .partner-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .media-row { grid-template-columns: 1fr; gap: 40px; }
  .feature-list { grid-template-columns: 1fr 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .pulse-compare { grid-template-columns: 1fr; }
  .pulse-arrow { transform: rotate(90deg); justify-self: center; }
}

@media (max-width: 680px) {
  .section { padding-block: 68px; }
  .card-grid.three, .card-grid.two, .team-grid { grid-template-columns: 1fr; }
  .partner-grid { grid-template-columns: 1fr 1fr; }
  .contact-band { padding: 48px 28px; }
  .contact-traces { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding-block: 48px 64px; }
  .hero-traces { display: none; }

  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 12px 24px 20px;
    box-shadow: 0 20px 40px rgba(138, 82, 32, 0.12);
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 10px 0; font-size: 16px; }
  .nav-cta { margin-top: 10px; }
}

@media (max-width: 680px) {
  .feature-list { grid-template-columns: 1fr; }
}

@media (max-width: 440px) {
  .partner-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr; }
}

/* phones: the spine halves get too narrow for a side card — center it instead */
@media (max-width: 560px) {
  .timeline-item[data-side] .timeline-info {
    left: 50%;
    right: auto;
    margin: 0;
    width: min(260px, calc(100vw - 72px));
    transform-origin: center;
    transform: translate(-50%, -50%) scale(0.94);
  }
  .timeline-item[data-side]:hover .timeline-info,
  .timeline-item[data-side]:focus-within .timeline-info {
    transform: translate(-50%, -50%) scale(1);
  }
}
