/* ==========================================================================
   Soporte PR – static site styles
   ========================================================================== */

:root {
  --blue: #2573f9;
  --blue-light: #51b0ff;
  --blue-link: #2ea3f2;
  --orange: #ff8a3d;
  --amber: #ffa727;
  --gold: #e09900;
  --navy: #15314e;
  --grey: #f1f1f1;
  --text: #666;
  --heading: #333;
  --border: rgba(21, 49, 78, 0.18);
  --max: 1080px;
  --header-h: 99px;
  --font-body: "Open Sans", Helvetica, Arial, Lucida, sans-serif;
  --font-display: "Share Tech", Helvetica, Arial, Lucida, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.7em;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  padding-top: var(--header-h);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; color: var(--heading); font-weight: 500; line-height: 1.2em; }
p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }

.container { width: 90%; max-width: var(--max); margin: 0 auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Header ---------- */
.site-header {
  /* Fixed (like the original theme): resizing the header on scroll must never change the page layout,
     otherwise the scroll position and the header size keep re-triggering each other (the "shaking"). */
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.25s ease;
}
.site-header.is-scrolled { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
  transition: height 0.25s ease;
}
.site-header.is-scrolled .header-inner { height: 64px; }
.logo img { height: 66px; width: auto; transition: height 0.25s ease; }
.site-header.is-scrolled .logo img { height: 44px; }

.site-nav ul { display: flex; gap: 28px; }
.site-nav a {
  color: var(--blue-link); font-weight: 600; font-size: 16px;
  padding: 8px 0; display: inline-block;
}
.site-nav a { transition: opacity 0.4s ease-in-out; }
.site-nav a:hover { opacity: 0.7; text-decoration: none; }

.header-right { display: flex; align-items: center; gap: 22px; }

/* Language switch */
.lang-switch {
  display: inline-flex; border: 1px solid var(--blue-link); border-radius: 100px; overflow: hidden;
}
.lang-switch button {
  font: 700 13px/1 var(--font-body); letter-spacing: 1px;
  min-width: 42px; min-height: 36px; padding: 0 12px;
  background: #fff; color: var(--blue-link); border: 0; cursor: pointer;
  -webkit-appearance: none; appearance: none;
  transition: background-color 0.2s, color 0.2s;
}
.lang-switch button:hover { background: rgba(46, 163, 242, 0.12); }
.lang-switch button[aria-pressed="true"] { background: var(--blue-link); color: #fff; cursor: default; }
.lang-switch button:focus-visible, .nav-toggle:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.nav-toggle {
  display: none; background: none; border: 0; padding: 10px; cursor: pointer;
}
.nav-toggle span {
  display: block; width: 26px; height: 3px; margin: 5px 0;
  background: var(--blue-link); border-radius: 2px; transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  min-height: 400px; padding: 100px 5%;
  background: #06264b; overflow: hidden;
  text-align: center;
}
/* Artwork layer: taller than the hero so it can drift (parallax) without ever showing an edge */
.hero-art { position: absolute; left: 0; right: 0; top: -200px; bottom: 0; transform: translate3d(0, var(--py, 0px), 0); will-change: transform; }
.hero-art picture { display: contents; }
.hero-img, .hero-pulses { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; object-position: center calc(50% + 100px); }
.hero-offscreen .hero-pulses { display: none; }
.hero-overlay {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  /* soft dark pool behind the headline so it stays readable over the artwork */
  background: radial-gradient(ellipse 60% 85% at 50% 50%, rgba(3, 20, 45, 0.62) 0%, rgba(3, 20, 45, 0.28) 55%, rgba(3, 20, 45, 0) 100%);
}
.hero h1 {
  position: relative; z-index: 1; max-width: 800px;
  color: #fff; font-size: 60px; font-weight: 500; line-height: 1em;
}

/* ---------- Pill banners ---------- */
.pill-row {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  margin-top: -36px;
}
.pill {
  display: inline-block; padding: 20px 40px 12px;
  font-weight: 700; font-size: 14px; line-height: 2em;
  letter-spacing: 5px; text-transform: uppercase; color: #fff;
  white-space: nowrap;
}
.pill--fade-right {
  background: linear-gradient(90deg, #fff 0%, var(--blue) 100%);
  border-radius: 0 100px 100px 0; padding-left: 20vw; min-width: 36%;
  text-align: right;
}
.pill--fade-left {
  background: linear-gradient(90deg, var(--blue) 0%, #fff 100%);
  border-radius: 100px 0 0 100px; padding-right: 20vw; min-width: 36%;
}
.pill--blue, .pill--light-blue { padding: 23px 24px 21px; border-radius: 100px; line-height: 1.7em; }
.pill--blue { background: var(--blue); }
.pill--light-blue { background: var(--blue-light); }
.pill-row--top { padding-right: 5%; justify-content: space-between; }
.pill-row--top .pill--blue { margin-left: auto; }
.pill-row--top .pill--light-blue { margin-left: 8%; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 23px 24px 21px;
  border-radius: 100px; color: #fff; font-weight: 700; font-size: 14px;
  letter-spacing: 5px; text-transform: uppercase; line-height: 1.7em;
  transition: background-color 0.3s ease, letter-spacing 0.3s ease;
}
.btn:hover { text-decoration: none; letter-spacing: 6px; }
.btn--blue { background: var(--blue); }
.btn--blue:hover { background: #3980f9; }
.btn--light-blue { background: var(--blue-light); }
.btn--light-blue:hover { background: #6bbdff; }

/* ---------- Sections ---------- */
.section { padding: 100px 0 54px; }
.section-heading { position: relative; text-align: center; margin-bottom: 60px; }
.watermark {
  font-family: var(--font-display); font-size: 100px; line-height: 0.2em;
  color: rgba(0, 0, 0, 0.04); margin-bottom: 30px; user-select: none;
}
.section-heading h2 {
  position: relative; font-family: var(--font-display);
  font-size: 48px; line-height: 1.4em; font-weight: 400;
}

/* ---------- Service cards ---------- */
.card-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 30px 5.5%;
}
.card {
  padding: 40px 30px; font-size: 16px; line-height: 1.8em;
}
.card img { margin-bottom: 14px; }
.card h3 { font-size: 20px; line-height: 1.3em; margin-bottom: 10px; }
.card--orange  { background: var(--orange); color: #fff; }
.card--amber   { background: var(--amber);  color: #fff; }
.card--navy    { background: var(--navy);   color: #fff; }
.card--grey    { background: var(--grey); }
.card--outline { background: #fff; border: 1px solid var(--border); }
.card--orange h3, .card--amber h3, .card--navy h3 { color: #fff; }
.card--orange img, .card--grey img { margin-inline: auto; }
.card--orange img, .card--grey img, .card--outline img,
.card--navy img, .card--amber img { margin-left: auto; margin-right: auto; }

/* ---------- Technical services ---------- */
.section--tech { padding-top: 40px; }
.tech-grid { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 30px 5.5%; }
.tech {
  padding: 40px 30px; font-size: 16px; line-height: 2em; text-align: left;
}
.tech-icon {
  display: block; width: 60px; height: 60px; margin: 0 auto 14px;
  background: center / contain no-repeat;
}
.ti-board { background-image: url("../images/icon-board-white.svg"); }
.ti-upgrade { background-image: url("../images/icon-upgrade-grey.svg"); }
.ti-server { background-image: url("../images/icon-server-grey.svg"); }
.ti-router { background-image: url("../images/icon-router-white.svg"); }
.tech h3 { font-size: 18px; margin-bottom: 8px; }
.tech--orange  { background: var(--orange); color: #fff; }
.tech--navy    { background: var(--navy);   color: #fff; }
.tech--grey    { background: var(--grey); }
.tech--outline { background: #fff; border: 1px solid var(--border); }
.tech--orange h3, .tech--navy h3 { color: #fff; }

/* ---------- CTA banner ---------- */
.pill-row--cta { margin-top: 60px; margin-bottom: -36px; padding-left: 5%; }
.cta-buttons { display: flex; gap: 24px; }

/* ---------- Contact ---------- */
.contact {
  padding: 156px 0 120px;
  background:
    linear-gradient(140deg, #004872 0%, rgba(41, 17, 96, 0.8) 100%),
    url("../images/contact-bg.webp") center / cover no-repeat;
  color: #fff;
}
/* Below-the-fold photo is only requested when the section is near the viewport (see main.js) */
.js .contact:not(.bg-ready) { background: linear-gradient(140deg, #004872 0%, rgba(41, 17, 96, 0.8) 100%); }
.contact-grid {
  display: grid; grid-template-columns: 2fr 1.2fr 1.2fr; gap: 30px 4%;
}
.contact-col { display: flex; flex-direction: column; gap: 28px; }
.info { display: flex; align-items: flex-start; gap: 16px; font-size: 16px; line-height: 1.8em; }
.info-icon { flex: 0 0 28px; width: 28px; height: 28px; fill: var(--gold); margin-top: 4px; }
.info h3 { color: #fff; font-size: 18px; line-height: 1.4em; }
.info a { color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: #222; color: #666; padding: 18px 0; font-size: 14px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; }
.social svg { width: 22px; height: 22px; fill: #666; display: block; transition: fill 0.2s; }
.social:hover svg { fill: var(--blue-link); }

/* ---------- Scroll animations (as in the original site) ----------
   Elements with .reveal start hidden and animate once when they scroll into view.
   data-anim: (none) fade up | fold (unfolds, like the original cards) | from-left / from-right (slide in)
   Delays/distances are set from data-delay / data-dist by main.js. */
.js .reveal { opacity: 0; }
.js .reveal.is-visible { animation: revealUp 0.8s ease both; animation-delay: var(--d, 0ms); }
.js .reveal[data-anim="fold"].is-visible { animation: foldIn 1s ease-in-out both; animation-delay: var(--d, 0ms); }
.js .reveal[data-anim="from-left"].is-visible,
.js .reveal[data-anim="from-right"].is-visible { animation: slideIn 1s ease-in-out both; animation-delay: var(--d, 0ms); }
.js .reveal.reveal.is-visible.anim-done { opacity: 1; animation: none; }
@keyframes revealUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes foldIn {
  from { opacity: 0; transform: perspective(2000px) rotateY(-45deg); }
  to   { opacity: 1; transform: none; }
}
@keyframes slideIn { from { opacity: 0; transform: translate3d(var(--x, 0), 0, 0); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .reveal.is-visible,
  .js .reveal[data-anim], .js .reveal[data-anim].is-visible,
  .js .reveal[data-anim="fold"].is-visible,
  .js .reveal[data-anim="from-left"].is-visible,
  .js .reveal[data-anim="from-right"].is-visible { opacity: 1; animation: none; }
}
/* single-column phones: no staggered waiting */
@media (max-width: 767px) {
  .js .reveal[data-anim].is-visible { animation-delay: 0ms; }
}
/* slide-in pills must not widen the page while they animate */
.pill-row { overflow: hidden; overflow-x: clip; overflow-y: visible; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero h1 { font-size: 44px; }
  .card-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .pill-row { flex-wrap: wrap; justify-content: center; margin-top: -20px; }
  .pill--fade-right, .pill--fade-left { padding-left: 40px; padding-right: 40px; min-width: 0; text-align: center; }
  .pill-row--top .pill--blue, .pill-row--top .pill--light-blue { margin: 0; }
  .pill-row--cta { padding-left: 0; margin-bottom: -20px; }
  .watermark { font-size: 80px; }
}

@media (max-width: 767px) {
  :root { --header-h: 76px; }
  .logo img { height: 50px; }
  .nav-toggle { display: block; }
  .header-right { gap: 6px; }
  .nav-toggle { padding: 10px 6px; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
    max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
  }
  .site-nav.is-open { max-height: 260px; }
  .site-nav ul { flex-direction: column; gap: 0; padding: 8px 5% 16px; }
  .site-nav a { padding: 12px 0; width: 100%; }

  .hero { min-height: 320px; padding: 60px 5%; }
  .hero-art { top: 0; transform: none; will-change: auto; }
  .hero-img, .hero-pulses { object-position: center; }
  .contact { background-image: linear-gradient(140deg, #004872 0%, rgba(41, 17, 96, 0.8) 100%), url("../images/contact-bg-800.webp"); }
  .pill-row { flex-direction: column; align-items: center; gap: 14px; margin-top: -24px; padding: 0 5%; }
  .pill-row--top .pill, .pill-row--cta .pill { width: 100%; max-width: 360px; text-align: center; border-radius: 100px; }
  .pill--fade-right { background: linear-gradient(90deg, #fff 0%, var(--blue) 100%); }
  .pill--fade-right, .pill--fade-left { padding: 18px 20px 12px; border: 1px solid rgba(37,115,249,.25); }
  .pill--fade-right, .pill--fade-left { color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.35); }
  .pill--blue, .pill--light-blue { padding: 18px 20px; }
  .pill { font-size: 13px; letter-spacing: 3px; }
  .pill-row--cta { margin-top: 40px; margin-bottom: -24px; }
  .pill-row--cta .cta-buttons { width: 100%; max-width: 360px; }
  .pill-row--cta .btn { width: 100%; text-align: center; letter-spacing: 3px; padding: 18px 20px; }
  .hero h1 { font-size: 34px; }
  .pill { white-space: normal; }
  .section { padding: 70px 0 40px; }
  .watermark { font-size: 46px; }
  .section-heading h2 { font-size: 34px; }
  .card-grid, .tech-grid, .contact-grid { grid-template-columns: 1fr; }
  .cta-buttons { flex-direction: column; align-items: center; gap: 14px; }
  .contact { padding: 120px 0 80px; }
}

/* iPhone notch / landscape safe areas */
@supports (padding: max(0px)) {
  .container { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
  .site-footer { padding-bottom: max(18px, env(safe-area-inset-bottom)); }
}

/* ==========================================================================
   Detail pages (laptop/desktop, motherboard)
   ========================================================================== */
.center { text-align: center; }

/* Clickable cards on the home page */
.is-link { position: relative; transition: box-shadow 0.2s ease; }
.is-link:hover { box-shadow: 0 10px 26px rgba(0, 0, 0, 0.2); }
.card-link { color: inherit; text-decoration: none; }
.card-link:hover { text-decoration: none; }
.card-link::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
.card-link:focus-visible { outline: none; }
.card-link:focus-visible::after { outline: 3px solid var(--blue); outline-offset: 3px; }
.more {
  display: inline-block; margin-top: 14px;
  font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
}
.is-link:hover .more { text-decoration: underline; }
.card .more, .tech .more { color: inherit; }
.tech .more { display: block; }

/* Page banner */
.hero--page {
  flex-direction: column; gap: 14px; min-height: 300px; padding: 70px 5% 80px;
}
.hero--page h1 { font-size: 52px; }
.hero--page .lead {
  position: relative; z-index: 1; max-width: 720px;
  color: #fff; font-size: 18px; line-height: 1.7em;
}
.crumbs {
  position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: center;
  gap: 10px; font-size: 14px; color: rgba(255, 255, 255, 0.85);
}
.crumbs a { color: #fff; text-decoration: underline; }

/* Content sections */
.page-section { padding: 70px 0 10px; }
.page-section h2 {
  font-family: var(--font-display); font-size: 38px; line-height: 1.3em;
  font-weight: 400; margin-bottom: 18px;
}
.page-section .sub { font-size: 16px; margin: -4px 0 36px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 5.5%; align-items: start; }
.prose p { font-size: 16px; line-height: 1.9em; }

.check-list li {
  position: relative; padding: 13px 0 13px 40px; font-size: 16px; line-height: 1.6em;
  border-bottom: 1px solid var(--border);
}
.check-list li:first-child { border-top: 1px solid var(--border); }
.check-list li::before {
  content: ""; position: absolute; left: 4px; top: 16px;
  width: 22px; height: 22px; border-radius: 50%; background: var(--orange);
}
.check-list li::after {
  content: ""; position: absolute; left: 12px; top: 20px;
  width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}
.check-list a { color: var(--heading); text-decoration: underline; text-decoration-color: var(--orange); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 30px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px 3%; counter-reset: step; }
.step { counter-increment: step; padding: 28px 24px; background: var(--grey); }
.step::before {
  content: counter(step); display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-bottom: 14px; border-radius: 50%;
  background: var(--blue); color: #fff; font-weight: 700; font-size: 18px;
}
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { font-size: 15px; line-height: 1.7em; }

/* Photo gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 2.5%; }
.gallery figure { margin: 0; }
.shot {
  display: block; position: relative; height: 0; padding-bottom: 75%;
  overflow: hidden; background: var(--grey); cursor: zoom-in;
}
.shot img {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform 0.35s ease;
}
.shot:hover img { transform: scale(1.05); }
.shot:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.gallery figcaption { padding: 10px 2px 0; font-size: 15px; line-height: 1.5em; color: var(--heading); }

/* Lightbox */
.lightbox {
  border: 0; padding: 0; background: transparent; color: #fff;
  width: min(96vw, 1100px); max-width: 96vw; max-height: 96vh; overflow: visible;
}
.lightbox::backdrop { background: rgba(10, 20, 35, 0.9); }
.lb-figure { margin: 0; text-align: center; }
.lb-figure img {
  display: block; margin: 0 auto; max-width: 100%; max-height: 78vh; width: auto; height: auto;
  border-radius: 4px; background: #111;
}
.lb-figure figcaption { margin-top: 12px; font-size: 16px; line-height: 1.5em; }
.lb-btn {
  position: fixed; z-index: 2; width: 46px; height: 46px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, 0.18); color: #fff; font-size: 28px; line-height: 1; cursor: pointer;
  -webkit-appearance: none; appearance: none;
}
.lb-btn:hover { background: rgba(255, 255, 255, 0.32); }
.lb-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.lb-close { top: max(14px, env(safe-area-inset-top)); right: 14px; }
.lb-prev { top: 50%; left: 10px; transform: translateY(-50%); }
.lb-next { top: 50%; right: 10px; transform: translateY(-50%); }
html.lb-open { overflow: hidden; }

/* Closing call-to-action */
.page-cta {
  margin-top: 80px; padding: 70px 0 80px; text-align: center; color: #fff;
  background: linear-gradient(140deg, #004872 0%, rgba(41, 17, 96, 0.9) 100%);
}
.page-cta h2 { color: #fff; font-family: var(--font-display); font-size: 38px; font-weight: 400; margin-bottom: 10px; }
.page-cta p { font-size: 16px; }
.page-cta .cta-buttons { justify-content: center; margin-top: 28px; }
.page-cta .related { margin-top: 30px; }
.page-cta .related a { color: #fff; text-decoration: underline; }

@media (max-width: 980px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .hero--page h1 { font-size: 42px; }
}
@media (max-width: 767px) {
  .two-col { grid-template-columns: 1fr; }
  .hero--page { min-height: 240px; padding: 50px 5% 60px; }
  .hero--page h1 { font-size: 32px; }
  .hero--page .lead { font-size: 16px; }
  .page-section { padding-top: 50px; }
  .page-section h2, .page-cta h2 { font-size: 30px; }
  .page-cta .cta-buttons { flex-direction: column; align-items: center; }
  .page-cta .btn { width: 100%; max-width: 320px; text-align: center; letter-spacing: 3px; }
  .lb-prev { left: 4px; } .lb-next { right: 4px; }
}
@media (max-width: 520px) {
  .steps, .gallery { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Gaming additions
   ========================================================================== */
/* Brand chips (home cards). They sit above the card's stretched link so each one is clickable. */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; font-size: 12px; line-height: 1; }
.chip {
  position: relative; z-index: 1; display: inline-block; padding: 7px 12px 6px;
  border: 1px solid currentColor; border-radius: 100px; color: inherit;
  font-weight: 700; letter-spacing: 1px; text-transform: uppercase; text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}
.chip:hover { text-decoration: none; background: rgba(0, 0, 0, 0.12); }
.card--orange .chip:hover, .card--navy .chip:hover { background: rgba(255, 255, 255, 0.2); }

/* Console tiles on the gaming page */
.platforms { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px 2.5%; margin-top: 30px; }
.platform { padding: 26px 22px 28px; background: var(--grey); border-top: 4px solid var(--blue); }
.platform:nth-child(2) { border-top-color: var(--navy); }
.platform:nth-child(3) { border-top-color: var(--orange); }
.platform:nth-child(4) { border-top-color: var(--amber); }
.platform h3 { font-family: var(--font-display); font-size: 26px; font-weight: 400; margin-bottom: 8px; }
.platform p { font-size: 15px; line-height: 1.7em; }

.notice { max-width: 640px; margin: 26px auto 0; font-size: 12px; line-height: 1.6em; opacity: 0.75; }

/* 9 cards: keep the last row full when the grid drops to 2 columns */
@media (max-width: 980px) and (min-width: 768px) {
  .card-grid .card:last-child { grid-column: 1 / -1; }
  .platforms { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  .platforms { grid-template-columns: 1fr; }
}

/* ==========================================================================
   "Alive" touches (all switched off for people who prefer reduced motion)
   ========================================================================== */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none;
  background: linear-gradient(90deg, var(--blue), var(--blue-light), var(--orange));
  transform-origin: 0 50%; transform: scaleX(var(--sp, 0));
}
.watermark { transform: translate3d(var(--wx, 0px), 0, 0); }

/* headline entrance on page load */
.js .hero h1 { animation: heroIn 1s cubic-bezier(.2, .7, .2, 1) both; }
.js .hero .lead { animation: heroIn 1s cubic-bezier(.2, .7, .2, 1) 0.2s both; }
.js .hero .crumbs { animation: heroIn 0.8s ease 0.05s both; }
@keyframes heroIn { from { opacity: 0; transform: translateY(22px) scale(0.98); } to { opacity: 1; transform: none; } }

/* shine sweeping across the credential pills */
.pill { position: relative; overflow: hidden; }
.pill::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 45%;
  background: linear-gradient(105deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.38) 50%, rgba(255, 255, 255, 0) 100%);
  transform: translateX(-130%); animation: shine 7s ease-in-out infinite; pointer-events: none;
}
.pill--blue::after { animation-delay: 1.4s; }
.pill--light-blue::after { animation-delay: 2.8s; }
.pill--fade-left::after { animation-delay: 4.2s; }
@keyframes shine { 0%, 62% { transform: translateX(-130%); } 100% { transform: translateX(330%); } }

/* "Call Us" gently asks for a tap */
.btn--blue { position: relative; }
.btn--blue::after {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; border-radius: 100px;
  border: 2px solid rgba(37, 115, 249, 0.8); pointer-events: none; animation: ring 3s ease-out infinite;
}
@keyframes ring { 0% { transform: scale(1); opacity: 0.8; } 70%, 100% { transform: scale(1.08, 1.3); opacity: 0; } }

/* hover life (mouse devices only) */
@media (hover: hover) {
  .card, .tech, .platform, .step { transition: transform 0.3s ease, box-shadow 0.3s ease; }
  .card:hover, .tech:hover, .platform:hover, .step:hover { transform: translateY(-7px); box-shadow: 0 16px 32px rgba(0, 0, 0, 0.2); }
  .card > img, .tech-icon { transition: transform 0.35s cubic-bezier(.3, 1.6, .5, 1); }
  .card:hover > img { transform: translateY(-4px) scale(1.14) rotate(-4deg); }
  .tech:hover .tech-icon { transform: translateY(-3px) scale(1.15) rotate(4deg); }
  .more { transition: letter-spacing 0.3s ease; }
  .is-link:hover .more { letter-spacing: 2.6px; }
  .chip { transition: background-color 0.2s, color 0.2s, transform 0.2s; }
  .chip:hover { transform: translateY(-2px); }
  .info:hover .info-icon { animation: wiggle 0.6s ease; }
  .shot { transition: box-shadow 0.3s ease; }
  .shot:hover { box-shadow: 0 12px 26px rgba(0, 0, 0, 0.25); }
}
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-12deg) scale(1.1); } 60% { transform: rotate(9deg) scale(1.1); } }

@media (prefers-reduced-motion: reduce) {
  .hero-pulses, .scroll-progress { display: none; }
  .js .hero h1, .js .hero .lead, .js .hero .crumbs { animation: none; }
  .pill::after, .btn--blue::after { display: none; }
  .hero-art { transform: none !important; }
  .card, .tech, .platform, .step, .card > img, .tech-icon { transition: none; }
  .card:hover, .tech:hover, .platform:hover, .step:hover, .card:hover > img, .tech:hover .tech-icon { transform: none; }
}

.page-cta { overflow-x: clip; }
