/* ==========================================================================
   Dione Technology — dionetechnology.com
   Single-stylesheet design system. No external dependencies.
   ========================================================================== */

:root {
  --red: #e8140e;          /* brand accent (wordmark red) */
  --red-deep: #c8100b;     /* text-safe red (AA on white) */
  --red-on-dark: #ff6a66;  /* text-safe red (AA on dark bands) */
  --ink: #1d2129;          /* near-black charcoal */
  --slate: #40454e;        /* body text */
  --muted: #6b7280;        /* secondary text */
  --bg: #ffffff;
  --bg-alt: #f6f7f9;
  --line: #e5e8ec;
  --dark: #15171c;         /* dark bands */
  --dark-2: #1e2128;
  --on-dark: #e8eaee;
  --on-dark-muted: #9aa1ad;
  --radius: 14px;
  --container: 1140px;
  --shadow: 0 10px 30px rgba(21, 23, 28, 0.08);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--slate);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; }

a { color: var(--red-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 800;
  letter-spacing: -0.02em;
}

p { margin: 0 0 1em; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* --------------------------------------------------------------------------
   Wordmark
   -------------------------------------------------------------------------- */

.wordmark {
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.wordmark .dione { color: var(--red); }
.wordmark .tech  { color: var(--ink); font-weight: 300; }
.wordmark:hover { text-decoration: none; opacity: 0.8; }

/* --------------------------------------------------------------------------
   Header / nav
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--slate);
  font-size: 0.95rem;
  font-weight: 600;
}
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-links a.btn-primary,
.nav-links a.btn-primary:hover { color: #fff; text-align: center; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.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;
  padding: 13px 26px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 6px 18px rgba(232, 20, 14, 0.28);
}
.btn-primary:hover { background: var(--red-deep); }

.btn-ghost {
  color: var(--ink);
  border: 1.5px solid var(--line);
  background: var(--bg);
}
.btn-ghost:hover { border-color: var(--ink); }

.btn-sm { padding: 9px 18px; font-size: 0.9rem; border-radius: 8px; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 72px;
  background:
    radial-gradient(700px 340px at 12% -10%, rgba(232, 20, 14, 0.07), transparent 60%),
    radial-gradient(560px 320px at 95% 8%, rgba(29, 33, 41, 0.05), transparent 55%),
    var(--bg);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(29, 33, 41, 0.08) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent 70%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent 70%);
  pointer-events: none;
}

.hero .container { position: relative; }

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red-deep);
  margin-bottom: 22px;
}
.hero-kicker::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--red);
}

.hero h1 {
  font-size: clamp(2.3rem, 5.2vw, 3.6rem);
  max-width: 17ch;
  margin-bottom: 22px;
}

.hero-sub {
  font-size: 1.2rem;
  max-width: 58ch;
  color: var(--muted);
  margin-bottom: 34px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 44px;
}

.hero-badge img { height: 46px; width: auto; display: block; }

/* --------------------------------------------------------------------------
   Client logo strip
   -------------------------------------------------------------------------- */

.clients {
  padding: 44px 0 52px;
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.clients-label {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
}

.clients-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 48px 64px;
}

.clients-row img {
  height: 44px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.62;
  mix-blend-mode: multiply; /* hides the opaque white boxes of the JPG logos on the gray band */
  transition: filter 0.2s ease, opacity 0.2s ease;
}
.clients-row img:hover { filter: none; opacity: 1; }
/* logos whose files carry heavy internal padding need a taller box */
.clients-row img.logo-padded { height: 64px; max-width: 220px; }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section { padding: 92px 0; }
.section-alt { background: var(--bg-alt); }

.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head.centered { margin-left: auto; margin-right: auto; text-align: center; }

.section-kicker {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red-deep);
  margin-bottom: 12px;
}

.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.section-head p  { color: var(--muted); font-size: 1.1rem; margin: 0; }

/* --------------------------------------------------------------------------
   Dark band — 2026 turning point
   -------------------------------------------------------------------------- */

.band-dark {
  background: linear-gradient(160deg, var(--dark) 0%, var(--dark-2) 100%);
  color: var(--on-dark);
  padding: 92px 0;
}
.band-dark h2, .band-dark h3 { color: #fff; }
.band-dark .section-head p { color: var(--on-dark-muted); }
.band-dark .section-kicker { color: var(--red-on-dark); }

.urgency-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.urgency-card {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius);
  padding: 30px 28px;
}

.urgency-card .num {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--red-on-dark);
  display: block;
  margin-bottom: 14px;
}

.urgency-card h3 { font-size: 1.18rem; margin-bottom: 10px; }
.urgency-card p { color: var(--on-dark-muted); font-size: 0.98rem; margin: 0; }
.urgency-card a { color: var(--red-on-dark); }

/* --------------------------------------------------------------------------
   Migration
   -------------------------------------------------------------------------- */

.migration-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  margin-bottom: 56px;
}

.migration-card {
  display: block;
  color: inherit;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  position: relative;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.migration-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.migration-card:hover,
.migration-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
}
.migration-card:hover::before,
.migration-card:focus-visible::before { transform: scaleX(1); }

.card-more {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--red-deep);
}
.card-more::after {
  content: " \2192";
  display: inline-block;
  transition: transform 0.18s ease;
}
.migration-card:hover .card-more::after { transform: translateX(4px); }

.migration-card .num {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--red-deep);
  display: block;
  margin-bottom: 12px;
}

.migration-card h3 { font-size: 1.05rem; margin-bottom: 8px; }

/* ---- step animations (pure CSS on inline SVG; decorative only) ----------
   Defaults below are the SETTLED end states, so the illustrations are
   complete without JS and under prefers-reduced-motion. Motion only runs
   once the reveal system stamps .in on a card. */

.mg-anim { margin-bottom: 14px; }
.mg-anim svg { display: block; width: 100%; max-width: 150px; height: auto; }
.mg-anim rect, .mg-anim circle, .mg-anim path, .mg-anim g {
  transform-box: fill-box;
  transform-origin: center;
}

.ass-scan { opacity: 0; }
.sq-retire { opacity: 0.3; }
.rh-pkt { transform: translateX(42px); }
.co-knob, .co-dot { transform: translateX(32px); }
.co-dc { opacity: 0.35; }

@keyframes mg-pop {
  from { opacity: 0; transform: scale(0.6); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes mg-scan {
  0%   { transform: translateX(2px); opacity: 0; }
  8%   { opacity: 0.55; }
  92%  { opacity: 0.55; }
  100% { transform: translateX(116px); opacity: 0; }
}
@keyframes mg-retire {
  from { opacity: 1; }
  to   { opacity: 0.3; }
}
@keyframes mg-draw {
  from { stroke-dashoffset: 30; }
  to   { stroke-dashoffset: 0; }
}
@keyframes mg-draw-16 {
  from { stroke-dashoffset: 16; }
  to   { stroke-dashoffset: 0; }
}
@keyframes mg-packet {
  0%   { transform: translateX(0); opacity: 0; }
  12%  { opacity: 1; }
  80%  { transform: translateX(42px); opacity: 1; }
  100% { transform: translateX(42px); opacity: 0; }
}
@keyframes mg-dash { to { stroke-dashoffset: -18; } }
@keyframes mg-slide {
  from { transform: translateX(0); }
  to   { transform: translateX(32px); }
}
@keyframes mg-dim {
  from { opacity: 1; }
  to   { opacity: 0.35; }
}

/* Assess: grid pops in, then a scan line sweeps; one square fades to retired */
.js .migration-card.in .ass-grid rect { animation: mg-pop 0.4s ease both; }
.js .migration-card.in .ass-grid rect:nth-child(1)  { animation-delay: 0.05s; }
.js .migration-card.in .ass-grid rect:nth-child(2)  { animation-delay: 0.10s; }
.js .migration-card.in .ass-grid rect:nth-child(3)  { animation-delay: 0.15s; }
.js .migration-card.in .ass-grid rect:nth-child(4)  { animation-delay: 0.20s; }
.js .migration-card.in .ass-grid rect:nth-child(5)  { animation-delay: 0.25s; }
.js .migration-card.in .ass-grid rect:nth-child(6)  { animation-delay: 0.30s; }
.js .migration-card.in .ass-grid rect:nth-child(7)  { animation-delay: 0.35s; }
.js .migration-card.in .ass-grid rect:nth-child(8)  { animation-delay: 0.40s; }
.js .migration-card.in .ass-grid rect:nth-child(9)  { animation-delay: 0.45s; }
.js .migration-card.in .ass-grid rect:nth-child(10) { animation-delay: 0.50s; }
.js .migration-card.in .ass-grid rect:nth-child(11) { animation-delay: 0.55s; }
.js .migration-card.in .ass-grid rect:nth-child(12) { animation-delay: 0.60s; }
.js .migration-card.in .ass-grid rect.sq-retire {
  animation: mg-pop 0.4s ease 0.5s both, mg-retire 0.5s ease 1.6s forwards;
}
/* finite sweep: ends at opacity 0, which is the settled default */
.js .migration-card.in .ass-scan { animation: mg-scan 4.5s ease-in-out 1s 4; }

/* Evidence: lines draw in sequence, seal stamps on */
.js .migration-card.in .ev-l1 { stroke-dasharray: 30; animation: mg-draw 0.35s ease 0.2s both; }
.js .migration-card.in .ev-l2 { stroke-dasharray: 30; animation: mg-draw 0.35s ease 0.5s both; }
.js .migration-card.in .ev-l3 { stroke-dasharray: 30; animation: mg-draw 0.35s ease 0.8s both; }
.js .migration-card.in .ev-seal { animation: mg-pop 0.35s cubic-bezier(0.5, 1.6, 0.4, 1) 1.15s both; }

/* Rehearse: a packet travels DC -> cloud on marching dashes, repeatedly */
.js .migration-card.in .rh-pkt { animation: mg-packet 2.8s ease-in-out 0.4s infinite backwards; }
.js .migration-card.in .rh-path { animation: mg-dash 1.4s linear infinite; }

/* pause the ambient loops while the section is offscreen (class set by JS);
   the id keeps this above the .in animation shorthands, which reset play-state */
#migration.mg-off .ass-scan,
#migration.mg-off .rh-pkt,
#migration.mg-off .rh-path { animation-play-state: paused; }

/* Cut over: the switch slides once, DC dims, the check draws — one-way */
.js .migration-card.in .co-knob,
.js .migration-card.in .co-dot { animation: mg-slide 0.6s cubic-bezier(0.6, 0, 0.3, 1.4) 0.5s both; }
.js .migration-card.in .co-dc { animation: mg-dim 0.5s ease 0.9s both; }
.js .migration-card.in .co-check { stroke-dasharray: 16; animation: mg-draw-16 0.35s ease 1.2s both; }

.migration-card p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* --------------------------------------------------------------------------
   Step sub-pages (/migration/<step>/)
   -------------------------------------------------------------------------- */

.page-hero {
  padding: 64px 0 40px;
  background:
    radial-gradient(560px 280px at 10% -10%, rgba(232, 20, 14, 0.06), transparent 60%),
    var(--bg);
}
.breadcrumb {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 18px;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--ink); text-decoration: none; }
.page-hero .section-kicker { margin-bottom: 10px; }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); max-width: 24ch; }
.page-hero .standfirst { font-size: 1.15rem; color: var(--muted); max-width: 62ch; margin: 0; }

.step-article { padding: 56px 0 72px; }
.step-article .container { max-width: 820px; }
.step-article h2 { font-size: 1.45rem; margin: 40px 0 12px; }
.step-article h2:first-child { margin-top: 0; }
.step-article ul { padding-left: 22px; margin: 0 0 1em; }
.step-article li { margin-bottom: 6px; }

.step-check {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
  margin: 36px 0;
}
.step-check h2 { font-size: 1.1rem; margin: 0 0 14px; }
.step-check ul { list-style: none; padding: 0; margin: 0; }
.step-check li {
  padding-left: 30px;
  position: relative;
  margin-bottom: 10px;
  color: var(--slate);
}
.step-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 15px;
  height: 15px;
  border: 1.5px solid var(--muted);
  border-radius: 4px;
}

.step-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  margin-top: 44px;
  padding-top: 24px;
  font-weight: 700;
}
.step-nav .prev::before { content: "\2190 "; }
.step-nav .next::after { content: " \2192"; }

.step-cta {
  background: linear-gradient(160deg, var(--dark) 0%, var(--dark-2) 100%);
  color: var(--on-dark);
  padding: 56px 0;
  text-align: center;
}
.step-cta h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 12px; }
.step-cta p { color: var(--on-dark-muted); max-width: 54ch; margin: 0 auto 26px; }
.step-cta .btn-primary { margin-bottom: 14px; }
.step-cta .step-cta-alt { font-size: 0.95rem; color: var(--on-dark-muted); }
.step-cta .step-cta-alt a { color: var(--red-on-dark); }

.touch { margin-bottom: 56px; }
.touch h3 { font-size: 1.3rem; }
.touch-intro { color: var(--muted); margin-bottom: 24px; }

.touch-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 44px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.touch-grid li {
  color: var(--muted);
  font-size: 0.95rem;
  padding-left: 22px;
  position: relative;
}
.touch-grid li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 10px;
  height: 2px;
  background: var(--red);
}
.touch-grid b { color: var(--ink); }

.offer-card {
  position: relative;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px 30px;
  max-width: 820px;
}
.offer-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--red);
}
.offer-card h3 { font-size: 1.3rem; }
.offer-card p { color: var(--muted); margin-bottom: 22px; }

/* --------------------------------------------------------------------------
   Service cards
   -------------------------------------------------------------------------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.service-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  position: relative;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(232, 20, 14, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}
.service-icon svg { width: 26px; height: 26px; stroke: var(--red-deep); }

.service-card h3 { font-size: 1.3rem; }
.service-card p { color: var(--muted); font-size: 1rem; margin-bottom: 0; }
.service-card ul {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  color: var(--slate);
  font-size: 0.95rem;
}
.service-card li {
  padding-left: 22px;
  position: relative;
  margin-bottom: 8px;
}
.service-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 10px;
  height: 2px;
  background: var(--red);
}

/* --------------------------------------------------------------------------
   Why Dione
   -------------------------------------------------------------------------- */

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.why-item {
  padding: 6px 0 0;
}
.why-item h3 {
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 12px;
}
.why-item h3::before {
  content: "";
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--red);
}
.why-item p { color: var(--muted); font-size: 0.98rem; }

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

.about-text p { font-size: 1.08rem; }

.about-panel {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
}
.about-panel .stat { margin-bottom: 24px; }
.about-panel .stat:last-child { margin-bottom: 0; }
.about-panel .stat b {
  display: block;
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.about-panel .stat span { color: var(--muted); font-size: 0.95rem; }

/* --------------------------------------------------------------------------
   FAQ — native <details>, no JS required
   -------------------------------------------------------------------------- */

.faq-list { max-width: 820px; }

.faq-item {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 14px;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  content: "+" / ""; /* alt-text form keeps the glyph out of the accessible name */
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--red-deep);
}
.faq-item[open] summary::after { content: "\2212"; content: "\2212" / ""; }

.faq-item p {
  margin: 0;
  padding: 0 22px 20px;
  color: var(--muted);
}

.faq-more { margin: 28px 0 0; color: var(--muted); }

/* --------------------------------------------------------------------------
   Contact / final CTA
   -------------------------------------------------------------------------- */

.contact-band {
  background: linear-gradient(160deg, var(--dark) 0%, var(--dark-2) 100%);
  color: var(--on-dark);
  padding: 96px 0;
  text-align: center;
}

.contact-band h2 {
  color: #fff;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  max-width: 22ch;
  margin: 0 auto 16px;
}

.contact-band > .container > p {
  color: var(--on-dark-muted);
  max-width: 52ch;
  margin: 0 auto 36px;
  font-size: 1.1rem;
}

.contact-channels {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
}

.contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  overflow-wrap: anywhere;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--on-dark);
  font-weight: 600;
  font-size: 0.95rem;
}
.contact-chip:hover {
  border-color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  color: #fff;
}
.contact-chip svg { width: 17px; height: 17px; stroke: currentColor; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: #101216;
  color: var(--on-dark-muted);
  padding: 44px 0;
  font-size: 0.9rem;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-footer .wordmark { font-size: 1.2rem; }
.site-footer .wordmark .tech { color: #fff; }

.footer-badge img { height: 40px; width: auto; display: block; }

.footer-note { width: 100%; margin-top: 20px; }
.footer-note p { margin: 0 0 4px; }

.site-footer a { color: var(--on-dark); }

/* --------------------------------------------------------------------------
   Reveal on scroll
   -------------------------------------------------------------------------- */

/* Hidden state only applies when JS has stamped .js on <html>, so content
   stays visible if scripting is unavailable. */
.reveal { transition: opacity 0.55s ease, transform 0.55s ease; }
.js .reveal:not(.in) {
  opacity: 0;
  transform: translateY(18px);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal:not(.in) { opacity: 1; transform: none; }
  .reveal, .btn, .service-card, .service-card::before,
  .migration-card, .migration-card::before, .card-more::after,
  .clients-row img, .nav-toggle span { transition: none; }
  .mg-anim * { animation: none !important; }
  .mg-anim .ev-l1, .mg-anim .ev-l2, .mg-anim .ev-l3,
  .mg-anim .co-check { stroke-dasharray: none !important; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1000px) {
  .migration-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .services-grid, .urgency-grid, .why-grid { grid-template-columns: 1fr; }
  .migration-grid { grid-template-columns: 1fr; margin-bottom: 44px; }
  .touch-grid { grid-template-columns: 1fr; }
  .touch { margin-bottom: 44px; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .section { padding: 64px 0; }
  .band-dark, .contact-band { padding: 64px 0; }
  .hero { padding: 64px 0 52px; }
}

/* --------------------------------------------------------------------------
   Print — browsers drop backgrounds by default, so undo dark-band styling
   and force revealed content visible.
   -------------------------------------------------------------------------- */

@media print {
  .js .reveal:not(.in) { opacity: 1; transform: none; }
  .band-dark, .contact-band, .site-footer { background: none; color: var(--slate); }
  .band-dark h2, .band-dark h3, .contact-band h2,
  .site-footer .wordmark .tech { color: var(--ink); }
  .band-dark .section-head p, .urgency-card p,
  .contact-band > .container > p, .contact-chip { color: var(--slate); }
  .band-dark .section-kicker, .urgency-card .num,
  .urgency-card a { color: var(--red-deep); }
  .mg-anim * { animation: none !important; }
  .mg-anim .ev-l1, .mg-anim .ev-l2, .mg-anim .ev-l3,
  .mg-anim .co-check { stroke-dasharray: none !important; }
  .urgency-card { background: none; border-color: var(--line); }
  .contact-chip { border-color: var(--line); }
  .site-header { position: static; background: none; }
  .nav-toggle { display: none; }
}

/* 900px because the 7-link nav row needs ~882px before it wraps
   (measured; keep in sync if nav items change) */
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 16px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 0; font-size: 1.05rem; }
  .nav-cta { margin-top: 8px; }
  .clients-row { gap: 28px 40px; }
  .clients-row img { height: 34px; max-width: 130px; }
}
