/* WrightGate IT Solutions - brand palette from the logo */
:root {
  --bg: #06070A;
  --bg-raised: #0B0E14;
  --bg-card: #10141D;
  --line: rgba(248, 247, 248, 0.08);
  --text: #F8F7F8;
  --muted: #A7ADBB;
  --blue: #196EDA;
  --blue-bright: #3B8BF0;
  --blue-soft: rgba(25, 110, 218, 0.14);
  --radius: 16px;
  --font-head: "Poppins", "Avenir Next", "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.15;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 700; }

h1 em {
  font-style: normal;
  background: linear-gradient(100deg, #3B8BF0, #8AC0FF);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }

p { margin: 0 0 1em; }

a { color: var(--blue-bright); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--blue-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--blue);
  color: #fff;
  border-radius: 8px;
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.78rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 24px rgba(25, 110, 218, 0.35);
}
.btn-primary:hover { background: var(--blue-bright); box-shadow: 0 10px 28px rgba(25, 110, 218, 0.45); }

.btn-ghost {
  color: var(--text);
  border-color: var(--line);
  background: rgba(248, 247, 248, 0.03);
}
.btn-ghost:hover { border-color: rgba(248, 247, 248, 0.25); background: rgba(248, 247, 248, 0.06); }

.btn-lg { padding: 1rem 2rem; font-size: 1.1rem; }

/* Scroll progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, var(--blue), var(--blue-bright));
  transform: scaleX(0);
  transform-origin: left;
  z-index: 60;
  pointer-events: none;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 7, 10, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  margin-right: auto;
}
.brand:hover { text-decoration: none; }

.brand-mark { width: 44px; height: auto; flex-shrink: 0; }

.brand-text {
  display: flex;
  flex-direction: column;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.brand-sub {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--blue-bright);
}

.site-nav { display: flex; gap: 1.6rem; }

.site-nav a {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.97rem;
  transition: color 0.15s;
}
.site-nav a:hover { color: var(--text); text-decoration: none; }

@media (min-width: 721px) {
  .site-nav a {
    position: relative;
  }
  .site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    border-radius: 2px;
    background: var(--blue-bright);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .site-nav a:hover::after,
  .site-nav a:focus-visible::after { transform: scaleX(1); }
}

.lang-switch {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(248, 247, 248, 0.03);
}
.lang-switch button {
  border: none;
  background: none;
  color: var(--muted);
  font: 600 0.72rem/1 var(--font-body);
  letter-spacing: 0.04em;
  padding: 0.42rem 0.6rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.lang-switch button:hover { color: var(--text); }
.lang-switch button[aria-pressed="true"] {
  background: var(--blue);
  color: #fff;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  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); }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 10vw, 7.5rem) 0 clamp(3.5rem, 8vw, 6.5rem);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60rem 34rem at 78% 20%, rgba(25, 110, 218, 0.16), transparent 60%),
    radial-gradient(40rem 26rem at 12% 90%, rgba(25, 110, 218, 0.07), transparent 60%),
    linear-gradient(transparent 0, transparent 100%);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(248, 247, 248, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(248, 247, 248, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(48rem 30rem at 70% 30%, rgba(0, 0, 0, 0.9), transparent 70%);
  -webkit-mask-image: radial-gradient(48rem 30rem at 70% 30%, rgba(0, 0, 0, 0.9), transparent 70%);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin-bottom: 1.1rem;
}

.lead {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--muted);
  max-width: 34em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.9rem;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  list-style: none;
  padding: 0;
  margin: 2.1rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.hero-points li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 10px rgba(25, 110, 218, 0.9);
}

.hero-art { display: grid; place-items: center; }

.hero-mark {
  width: min(380px, 80%);
  height: auto;
  filter: drop-shadow(0 18px 60px rgba(25, 110, 218, 0.35));
  animation: heroFloat 7s ease-in-out infinite;
  transition: filter 0.7s ease;
}

.hero-art {
  will-change: transform, opacity;
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0) scale(var(--sc, 1));
}

/* Gate door: at rest it stands open with light spilling out; on hover the
   JS morph swings it shut (path interpolation) and the light fades. */
/* The leaf swings out past the wall plane, so it must not be clipped. */
.hero-mark, .brand-mark { overflow: visible; }

.gate-light-pulse { animation: lightPulse 4.5s ease-in-out infinite; }
.gate-light {
  opacity: 0.9;
  filter: blur(calc(4px * var(--bloom, 1))) brightness(var(--bloom, 1));
  transition: opacity 0.45s ease;
}
.gate-closed .gate-light { opacity: 0; }

@keyframes lightPulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Sections */
.section {
  position: relative;
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}
.section > .container { position: relative; z-index: 1; }

/* Photographic backdrops
   The photos are already darkened and desaturated on disk; the scrim and the
   soft top and bottom edges keep them from ever fighting the copy. */
.sec-photo {
  position: absolute;
  inset: -14% 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.62;
  transform: translate3d(0, var(--py, 0px), 0);
  will-change: transform;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 20%, #000 76%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 20%, #000 76%, transparent);
}
.sec-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 7, 10, 0.88), rgba(6, 7, 10, 0.55) 45%, rgba(6, 7, 10, 0.9)),
    linear-gradient(90deg, rgba(6, 7, 10, 0.82), rgba(6, 7, 10, 0.25) 55%, rgba(6, 7, 10, 0.6));
}

/* Paths live here, not in a custom property: a url() inside a variable is
   resolved against this stylesheet, not the document. Small files first,
   full size only where the screen earns it. */
#para-quem .sec-photo { background-image: url("../img/photos/entrada-sm.jpg"); }
#servicos .sec-photo { background-image: url("../img/photos/datacenter-sm.jpg"); }
#metodo .sec-photo { background-image: url("../img/photos/mesa-sm.jpg"); }

@media (min-width: 721px) {
  #para-quem .sec-photo { background-image: url("../img/photos/entrada.jpg"); }
  #servicos .sec-photo { background-image: url("../img/photos/datacenter.jpg"); }
  #metodo .sec-photo { background-image: url("../img/photos/mesa.jpg"); }
}

.section-alt {
  background: var(--bg-raised);
  border-block: 1px solid var(--line);
}

.section-head { max-width: 44em; margin-bottom: clamp(2rem, 5vw, 3.2rem); }

.section-lead { color: var(--muted); font-size: 1.08rem; }

/* Cards */
.grid, .steps {
  perspective: 1100px;
}

.grid {
  display: grid;
  gap: 1.3rem;
}
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.6rem 1.4rem;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.card:hover:not(.tilt):not(.svc-card) {
  transform: translateY(-4px);
  border-color: rgba(25, 110, 218, 0.45);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.card-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue-bright);
  margin-bottom: 1.1rem;
}
.card-icon svg { width: 24px; height: 24px; }

.card-icon {
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s ease;
}
.card:hover .card-icon {
  transform: translateY(-3px) scale(1.07) rotate(-3deg);
  background: rgba(25, 110, 218, 0.24);
}

.card p { color: var(--muted); font-size: 0.99rem; margin: 0; }

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.3rem;
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0;
}

.step {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem 1.3rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.step:hover {
  transform: translateY(-4px);
  border-color: rgba(25, 110, 218, 0.45);
}

.step-num {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.9rem;
  color: transparent;
  -webkit-text-stroke: 1px var(--blue-bright);
  margin-bottom: 0.8rem;
}

.step h3 { font-size: 1.08rem; }
.step p { color: var(--muted); font-size: 0.96rem; margin: 0; }

/* Why */
.why-inner { max-width: 900px; }

.why-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.9rem;
}

.why-list li {
  padding: 1.1rem 1.3rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: 12px;
  color: var(--muted);
}
.why-list strong { color: var(--text); }

/* CTA */
.cta { position: relative; overflow: hidden; }
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(40rem 24rem at 50% 110%, rgba(25, 110, 218, 0.18), transparent 65%);
  pointer-events: none;
}

.cta-inner {
  position: relative;
  text-align: center;
  max-width: 42em;
}

.cta-mark {
  width: 96px;
  margin: 0 auto 1.6rem;
  filter: drop-shadow(0 10px 30px rgba(25, 110, 218, 0.4));
}

.cta-actions { margin-top: 1.8rem; }

.cta-hint {
  margin-top: 1.4rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 3rem 0 2.5rem;
  background: var(--bg);
}

.footer-inner {
  display: grid;
  justify-items: center;
  gap: 1.4rem;
  text-align: center;
}

.footer-logo { width: 200px; height: auto; }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.4rem;
}
.footer-nav a { color: var(--muted); font-size: 0.95rem; }
.footer-nav a:hover { color: var(--text); text-decoration: none; }

.footer-copy { color: rgba(167, 173, 187, 0.6); font-size: 0.87rem; margin: 0; }

/* Scroll-driven motion
   Hidden states only apply once the engine is running, so the page stays
   readable with JavaScript off or motion turned down. */
.js-fx:not(.no-fx) .reveal,
.js-fx:not(.no-fx) .eyebrow,
.js-fx:not(.no-fx) .section-lead,
.js-fx:not(.no-fx) .lead,
.js-fx:not(.no-fx) .hero-actions,
.js-fx:not(.no-fx) .hero-points,
.js-fx:not(.no-fx) .cta-actions,
.js-fx:not(.no-fx) .cta-hint,
.js-fx:not(.no-fx) .card,
.js-fx:not(.no-fx) .step,
.js-fx:not(.no-fx) .why-list li { opacity: 0; }

.js-fx:not(.no-fx) .fx-in {
  animation: fxIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--i, 0) * 0.07s);
}

@keyframes fxIn {
  from { opacity: 0; transform: translate3d(0, 24px, 0); }
  to { opacity: 1; transform: none; }
}

/* Words rise out of their own mask */
.fx-w {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
}
.fx-wi { display: inline-block; will-change: transform; }

/* The colonnade you walk through */
.corridor {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  perspective: 1000px;
}
.corridor b {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 34vh;
  margin: -17vh 0 0 -8px;
  background: var(--text);
  opacity: 0;
  will-change: transform, opacity;
}
.corridor b.is-blue { background: var(--blue-bright); }

/* Content rides above the colonnade */
main, .site-footer { position: relative; z-index: 1; }
.section-alt { background: rgba(11, 14, 20, 0.88); }
.section-alt:has(.sec-photo) { background: rgba(11, 14, 20, 0.6); }

/* A threshold line drawing itself under each section title */
.section-head { position: relative; }
.section-head::after {
  content: "";
  display: block;
  height: 2px;
  width: 84px;
  margin-top: 1.4rem;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue-bright), rgba(25, 110, 218, 0));
  transform: scaleX(var(--line-p, 0));
  transform-origin: left;
}

/* Steps light up as you cross them */
.step::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue), rgba(25, 110, 218, 0));
  transform: scaleX(var(--lit, 0));
  transform-origin: left;
}
.step.is-lit .step-num {
  color: var(--blue-bright);
  -webkit-text-stroke-color: transparent;
}
.step-num { transition: color 0.5s ease, -webkit-text-stroke-color 0.5s ease; }

/* The gate ahead blooms as it opens */
.cta-inner .cta-mark .gate-light { opacity: calc(var(--bloom, 0) * 0.95); }
.cta::before { opacity: calc(0.35 + var(--bloom, 0) * 0.9); }

/* Aurora backdrop */
.aurora {
  position: absolute;
  inset: -18%;
  overflow: hidden;
  pointer-events: none;
  filter: blur(70px);
  opacity: 0.5;
}
.aurora span {
  position: absolute;
  width: 46vw;
  height: 46vw;
  border-radius: 50%;
}
.aurora span:nth-child(1) {
  left: 4%; top: 8%;
  background: radial-gradient(closest-side, rgba(25, 110, 218, 0.5), transparent 70%);
  animation: auroraDrift 17s ease-in-out infinite alternate;
}
.aurora span:nth-child(2) {
  right: -6%; top: 30%;
  background: radial-gradient(closest-side, rgba(59, 139, 240, 0.34), transparent 70%);
  animation: auroraDrift 23s ease-in-out infinite alternate-reverse;
}
.aurora span:nth-child(3) {
  left: 34%; bottom: -12%;
  background: radial-gradient(closest-side, rgba(86, 176, 255, 0.2), transparent 70%);
  animation: auroraDrift 29s ease-in-out infinite alternate;
}
@keyframes auroraDrift {
  from { transform: translate3d(-6%, -4%, 0) scale(0.9); }
  to { transform: translate3d(7%, 6%, 0) scale(1.15); }
}

/* Portal rings orbiting the hero mark */
.portal { position: relative; display: grid; place-items: center; }
.portal .hero-mark { position: relative; z-index: 1; }
.portal-ring {
  position: absolute;
  width: 125%;
  aspect-ratio: 1;
  border-radius: 50%;
  padding: 1.5px;
  background: conic-gradient(from 20deg, transparent 0 12%, rgba(59, 139, 240, 0.75) 26%, transparent 40% 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: portalSpin 16s linear infinite;
  opacity: 0.8;
}
.portal-ring-2 {
  width: 148%;
  background: conic-gradient(from 200deg, transparent 0 6%, rgba(25, 110, 218, 0.5) 16%, transparent 26% 100%);
  animation-duration: 26s;
  animation-direction: reverse;
  opacity: 0.45;
}
@keyframes portalSpin { to { transform: rotate(360deg); } }

/* Capabilities marquee */
.marquee {
  border-block: 1px solid var(--line);
  padding: 1rem 0;
  overflow: hidden;
  position: relative;
  z-index: 1;
  background: rgba(11, 14, 20, 0.6);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 2.6rem;
  /* Flex gap sits only between items, so the track is one gap short of three
     periods; this trailing space makes the 33.3333% shift seamless. */
  padding-right: 2.6rem;
  width: max-content;
  animation: marqueeMove 34s linear infinite;
}
.marquee-track span {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.marquee-track .sep { color: var(--blue-bright); font-size: 0.6rem; letter-spacing: 0; }
@keyframes marqueeMove { to { transform: translate3d(-33.3333%, 0, 0); } }

/* 3D tilt cards with glare */
.tilt {
  transform: perspective(900px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg));
  transition: transform 0.18s ease-out, border-color 0.2s ease;
  will-change: transform;
  position: relative;
  overflow: hidden;
}
.tilt:hover { border-color: rgba(25, 110, 218, 0.5); }
.glare {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(340px at var(--gx, 50%) var(--gy, 50%), rgba(248, 247, 248, 0.1), transparent 60%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.tilt:hover .glare { opacity: 1; }
.tilt::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(240px at var(--gx, 50%) var(--gy, 50%), rgba(59, 139, 240, 0.9), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.tilt:hover::after { opacity: 1; }

/* Flip cards: front face spins away to reveal the description */
.svc-card {
  background: none;
  border: none;
  padding: 0;
  perspective: 1200px;
  min-height: 232px;
}
.svc-inner {
  position: relative;
  height: 100%;
  min-height: inherit;
  transform-style: preserve-3d;
  transition: transform 0.75s cubic-bezier(0.3, 0.9, 0.3, 1);
}
.svc-front, .svc-back {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.6rem 1.4rem;
}
.svc-front {
  min-height: inherit;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 0.2rem;
}
.svc-front .card-icon { width: 54px; height: 54px; margin-bottom: 1rem; }
.svc-front .card-icon svg { width: 28px; height: 28px; }
.svc-hint {
  position: absolute;
  right: 1.1rem;
  bottom: 0.85rem;
  color: var(--blue-bright);
  font-family: var(--font-head);
  font-size: 1.3rem;
  opacity: 0.7;
  transition: transform 0.3s ease;
}
.svc-back {
  position: absolute;
  inset: 0;
  transform: rotateY(180deg);
  display: grid;
  align-content: center;
  border-color: rgba(25, 110, 218, 0.4);
  background: linear-gradient(160deg, rgba(25, 110, 218, 0.12), var(--bg-card) 55%);
}
.svc-back p { color: var(--text); opacity: 0.92; }
@media (hover: hover) and (pointer: fine) {
  .svc-card:hover .svc-inner,
  .svc-card:focus-visible .svc-inner { transform: rotateY(180deg); }
  .svc-card:hover .svc-hint { transform: rotate(45deg); }
}
@media (hover: none), (pointer: coarse) {
  .svc-card { min-height: 0; }
  .svc-back { position: static; transform: none; border: none; background: none; padding: 0.4rem 1.6rem 1.4rem; }
  .svc-back p { color: var(--muted); }
  .svc-hint { display: none; }
  .svc-front { padding-bottom: 0.4rem; }
}

/* Method: monumental numbers with their own parallax */
.step-num {
  font-size: 3.1rem;
  -webkit-text-stroke: 1.5px var(--blue-bright);
  transform: translate3d(0, var(--pz, 0px), 0);
  will-change: transform;
}

/* Cursor spotlight and film grain */
.cursor-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(640px at var(--mx, 50%) var(--my, 40%), rgba(25, 110, 218, 0.07), transparent 65%);
}
.grain {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Buttons: light sweep on hover */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(248, 247, 248, 0.35) 50%, transparent 70%);
  transform: translateX(-110%);
  transition: transform 0.55s ease;
}
.btn-primary:hover::after { transform: translateX(110%); }

.why-list { perspective: 1100px; }

/* Responsive */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-mark { width: min(240px, 60%); }
}

@media (max-width: 720px) {
  .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .header-inner { gap: 0.8rem; }
  .lang-switch button { padding: 0.38rem 0.5rem; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(6, 7, 10, 0.97);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.25rem 1rem;
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a {
    padding: 0.85rem 0.25rem;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--line);
  }
  .site-nav a:last-child { border-bottom: none; }
}

@media (max-width: 900px) {
  .aurora { filter: blur(46px); opacity: 0.4; }
  .portal-ring-2 { display: none; }
  .cursor-glow { display: none; }
}

@media (max-width: 560px) {
  .grid-3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 auto; }
}

.no-fx .corridor { display: none; }

@media (prefers-reduced-motion: reduce) {
  .corridor { display: none; }
  .sec-photo { transform: none; }
  .aurora span, .portal-ring, .marquee-track { animation: none; }
  .cursor-glow { display: none; }
  .tilt { transform: none; }
  .svc-card:hover .svc-inner, .svc-card:focus-visible .svc-inner { transform: none; }
  .svc-card { min-height: 0; }
  .svc-back {
    position: static;
    transform: none;
    border: none;
    background: none;
    padding: 0.4rem 1.6rem 1.4rem;
  }
  .svc-back p { color: var(--muted); }
  .svc-front { padding-bottom: 0.4rem; }
  .svc-hint { display: none; }
  .btn-primary::after { display: none; }
  html { scroll-behavior: auto; }
  .hero-mark, .gate-light-pulse { animation: none; }
  .gate-light, .card-icon, .step, .site-nav a::after { transition: none; }
  .hero-art { transform: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card { transition: none; }
}
