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

:root {
  --bg: #080b10;
  --bg2: #0d1117;
  --surface: #111822;
  --surface-2: rgba(17, 24, 34, 0.78);
  --border: rgba(255,255,255,0.07);
  --accent: #00e5ff;
  --accent2: #7c3aed;
  --text: #e8edf5;
  --muted: #6b7a90;
  --font-display: 'Manrope', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  /* clip (not hidden) hides horizontal overflow WITHOUT creating a scroll
     container — keeps position:sticky working for the process cards */
  overflow-x: clip;
}

body.menu-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
main { min-height: 70vh; }

.container {
  width: min(1100px, calc(100% - 48px));
  margin: 0 auto;
}

.site-shell { overflow-x: clip; }

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  pointer-events: none;
}

.site-header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 20px;
  background: rgba(8,11,16,0.72);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 22px;
  pointer-events: auto;
}

.brand-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
}

.nav-links a,
.mobile-nav-links a,
.footer-links a,
.text-link,
.contact-details a {
  color: var(--muted);
  transition: color .2s ease, opacity .2s ease, transform .2s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"],
.mobile-nav-links a:hover,
.mobile-nav-links a[aria-current="page"],
.footer-links a:hover,
.text-link:hover,
.contact-details a:hover { color: var(--text); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .02em;
  padding: 14px 26px;
  border-radius: 10px;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 0 24px rgba(0,229,255,.16);
  transition: opacity .2s ease, transform .2s ease, box-shadow .2s ease;
}

.nav-cta:hover,
.btn:hover {
  opacity: .92;
  transform: translateY(-2px);
  box-shadow: 0 0 36px rgba(0,229,255,.24);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: none;
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform .25s ease, opacity .25s ease;
}

.menu-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-active span:nth-child(2) { opacity: 0; }
.menu-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3,6,16,.56);
  backdrop-filter: blur(4px);
  z-index: 94;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}

.mobile-nav {
  position: fixed;
  top: 104px;
  left: 50%;
  transform: translateX(-50%) translateY(-10px) scale(.98);
  width: min(560px, calc(100% - 24px));
  z-index: 95;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(8,11,16,.98);
  box-shadow: 0 24px 60px rgba(0,0,0,.34);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.mobile-nav.is-open { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0) scale(1); }
.mobile-nav-backdrop.is-open { opacity: 1; pointer-events: auto; }
.mobile-nav-inner { padding: 18px; }
.mobile-nav-links { display: grid; gap: 6px; }
.mobile-nav-links a { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.06); font-weight: 600; }
.mobile-nav-cta { width: 100%; margin-top: 18px; }

.hero,
.page-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 140px 0 80px;
}

.hero-home { min-height: 100vh; }
.page-hero { min-height: 78vh; }

#canvas-container {
  position: absolute;
  inset: 0;
  z-index: 0;
}
#hero-canvas,
#assembly-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,229,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-content { position: relative; z-index: 2; }
.hero-grid,
.split-grid,
.about-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  gap: 36px;
  align-items: center;
}
.about-layout {
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
  align-items: start;
}
.align-start { align-items: start; }

.eyebrow,
.mini-label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  padding: 6px 14px;
  border: 1px solid rgba(0,229,255,0.25);
  border-radius: 100px;
  background: rgba(0,229,255,0.05);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  line-height: 1.12;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.35rem);
  font-weight: 800;
  margin-bottom: 24px;
}
h1 span,
.hero h1 em { color: var(--accent); font-style: normal; }

h2 {
  font-size: clamp(1.8rem, 3.2vw, 3rem);
  font-weight: 800;
}

h3 { font-size: 1.3rem; font-weight: 700; }

p,
li,
label,
input,
select,
textarea { font-family: var(--font-body); }

.lead,
.section-head p,
.hero p {
  font-size: 1.08rem;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.75;
}
.narrow { max-width: 720px; }

.hero-actions,
.hero-inline-points {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.inline-pill {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,.03);
  color: var(--text);
  font-size: .92rem;
}

.hero-panel,
.brand-image-card,
.feature-box,
.about-highlight,
.about-note,
.contact-side-card,
.contact-form,
.step-card,
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.22);
}

.hero-panel {
  padding: 24px;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(17,24,34,.96), rgba(17,24,34,.72));
}

.hero-panel::before,
.service-card::before,
.feature-box::before,
.about-note::before,
.contact-form::before,
.contact-side-card::before,
.about-highlight::before,
.step-card::before,
.brand-image-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 0%, rgba(0,229,255,0.06), transparent 60%);
  opacity: .9;
  pointer-events: none;
}

.panel-card,
.main-panel { position: relative; z-index: 1; }
.main-panel { background: transparent; border: 0; box-shadow: none; padding: 0; }
.panel-label {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.brand-showcase-copy p { color: var(--muted); }
.brand-showcase-copy h3 { margin-bottom: 14px; }
.brand-showcase-image-wrap {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.06);
  background: #0b1017;
}
.brand-showcase-image-wrap img,
.card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  filter: brightness(.84) saturate(.86);
}
.hero-panel .brand-showcase-image-wrap img { height: 300px; }
.brand-showcase-copy { padding-top: 20px; }

.hero-side-panels {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.floating-note {
  padding: 18px 20px;
  border-radius: 16px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
}
.floating-note strong { display: block; margin-bottom: 6px; font-family: var(--font-display); }
.floating-note span { color: var(--muted); }

.scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.scroll-hint-static { bottom: 28px; }
.scroll-hint-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollpulse 2s ease-in-out infinite;
}
@keyframes scrollpulse {
  0%,100% { opacity: .3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}

.assembly-section {
  position: relative;
  height: 75vh;
  z-index: 1;
  background: linear-gradient(180deg, rgba(8,11,16,1) 0%, rgba(10,14,20,1) 100%);
}
.assembly-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 40%, rgba(0,229,255,0.08), transparent 34%),
    linear-gradient(rgba(0,229,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,255,0.03) 1px, transparent 1px);
  background-size: auto, 60px 60px, 60px 60px;
  pointer-events: none;
}
.assembly-section::after {
  content: "";
  position: absolute;
  left: 48px;
  right: 48px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: .24;
}
.assembly-sticky {
  position: sticky;
  top: 0;
  height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.assembly-sticky::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(124,58,237,0.10), transparent 42%);
  pointer-events: none;
}
.assembly-label {
  position: absolute;
  z-index: 10;
  bottom: 0%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  width: min(90%, 720px);
  pointer-events: none;
}
.assembly-label h2,
.assembly-label p {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s, transform .6s;
}
.assembly-label p {
  color: var(--muted);
  margin-top: 10px;
}
.assembly-label .visible { opacity: 1; transform: translateY(0); }

.section,
.services-section,
.cta-section { position: relative; z-index: 2; background: var(--bg); }
.section { padding: 110px 0; }
.services-section { padding: 120px 0; }
.cta-section { padding: 80px 0 120px; }
.muted-section { background: linear-gradient(180deg, rgba(13,17,23,.3), rgba(13,17,23,0)); }
.section-with-line::before,
.services-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 48px;
  right: 48px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: .3;
}

.section-head {
  text-align: center;
  margin-bottom: 64px;
}
.section-head h2,
.section-head h1 { margin-bottom: 20px; }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 24px;
}
.cards-grid-home { grid-template-columns: repeat(3, minmax(0,1fr)); }
.cards-grid-service { grid-template-columns: repeat(2, minmax(0,1fr)); }

.cards-grid-service.service-list-page {
  grid-template-columns: repeat(2, minmax(0,1fr));
  align-items: stretch;
}

.three-cols { grid-template-columns: repeat(3, minmax(0,1fr)); }

.card-link { display: block; }
.card-link .service-card { height: 100%; }

.service-card {
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
.service-card:hover,
.feature-box:hover,
.about-note:hover,
.step-card:hover,
.contact-form:hover,
.contact-side-card:hover,
.about-highlight:hover,
.brand-image-card:hover {
  border-color: rgba(0,229,255,.28);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,.4), 0 0 0 1px rgba(0,229,255,.08);
}
.card-body,
.text-card-body,
.feature-box,
.about-note,
.contact-side-card,
.contact-form,
.step-card,
.about-highlight { padding: 28px 32px 32px; }
.compact-card-body p,
.text-card-body p,
.step-card p,
.feature-box p,
.about-note p,
.contact-side-card span,
.contact-form p,
.about-highlight p { color: var(--muted); }
.card-body h2,
.card-body h3,
.compact-card-body h3,
.text-card-body h3,
.feature-box h3,
.step-card h3,
.about-note h3,
.about-highlight h2,
.contact-form h2 { margin-bottom: 16px; }

.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.check-list li {
  position: relative;
  padding-left: 20px;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.55;
}
.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.brand-image-card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, .95fr);
  gap: 32px;
  padding: 38px;
  align-items: center;
}
.brand-image-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: center;
  min-width: 0;
}
.brand-image-copy h2,
.brand-image-copy p {
  max-width: 560px;
}
.brand-image-copy p { color: var(--muted); margin-top: 20px; }
.brand-image-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  align-self: stretch;
  min-height: 100%;
  padding: 12px 24px;
}
.home-logo-large {
  display: block;
  width: min(100%, 340px);
  max-width: 340px;
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 0 30px rgba(0,229,255,.15));
}


.about-logo-divider {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: 48px;
}

.about-divider-logo {
  display: block;
  width: min(100%, 420px);
  max-width: 420px;
  height: auto;
  margin: 0 auto;
  opacity: 0.95;
  filter: brightness(0) invert(1) drop-shadow(0 0 40px rgba(255,255,255,.08));
}


.about-logo-stage {
  position: relative;
  height: 180vh;
  z-index: 1;
}

.about-logo-sticky {
  position: sticky;
  top: 0;
  height: 134vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.about-logo-scene {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(92vw, 1200px);
  min-height: 68vh;
}

.about-divider-logo-stage {
  width: min(78vw, 860px);
  max-width: 860px;
  opacity: 0.92;
  filter: brightness(0) invert(1) drop-shadow(0 0 44px rgba(255,255,255,.09));
  transform-origin: center center;
  will-change: transform, opacity, filter;
}

.about-logo-glow {
  position: absolute;
  inset: 50% auto auto 50%;
  width: min(82vw, 900px);
  height: min(82vw, 900px);
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(0,229,255,.14), rgba(124,58,237,.08) 36%, rgba(255,255,255,0) 70%);
  filter: blur(28px);
  pointer-events: none;
  opacity: .75;
}

.about-logo-stage-copy {
  position: absolute;
  left: 50%;
  bottom: 12%;
  transform: translateX(-50%) translateY(18px);
  width: min(90%, 760px);
  text-align: center;
  opacity: 0;
  transition: opacity .45s ease, transform .45s ease;
  pointer-events: none;
  z-index: 2;
}

.about-logo-stage-copy.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.about-logo-stage-copy h2 {
  font-size: clamp(1.8rem, 4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin: 12px 0 0;
}

.feature-box { align-self: stretch; }
.text-link { display: inline-block; margin-top: 20px; color: var(--accent); }

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 20px;
}

/* "Come lavoriamo" — RiteFlow-style sticky stacking cards */
.process-stack {
  position: relative;
  max-width: 620px;
  margin: 0 auto;
}
.process-stack-cards {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.sticky-card {
  width: 100%;
  /* solid background so stacked cards cleanly cover the ones beneath */
  background: linear-gradient(180deg, #131c28, #0f1620);
}

/* Stacking-card effect. Each card sticks a little lower than the previous
   one, so they pile up like a deck as you scroll, leaving a thin sliver of
   each card visible. Enabled on all sizes — mobile uses smaller offsets to
   clear the shorter mobile header. */
.sticky-card {
  position: sticky;
  /* mobile header is ~86px tall — stick just below it */
  top: 96px;
  /* single, lighter shadow — large blurred shadows on sticky elements
     repaint every scroll frame and add jank */
  box-shadow: 0 14px 40px rgba(0,0,0,.38);
}
.process-stack-cards .sticky-card:nth-child(2) { top: 110px; }
.process-stack-cards .sticky-card:nth-child(3) { top: 124px; }
.process-stack-cards .sticky-card:nth-child(4) { top: 138px; }
/* breathing room inside the sticky containing block so the finished
   stack lingers a moment before the section scrolls away */
.process-stack-cards { padding-bottom: 20vh; }

@media (min-width: 768px) {
  .sticky-card { top: 116px; }
  .process-stack-cards .sticky-card:nth-child(2) { top: 138px; }
  .process-stack-cards .sticky-card:nth-child(3) { top: 160px; }
  .process-stack-cards .sticky-card:nth-child(4) { top: 182px; }
  .process-stack-cards { padding-bottom: 32vh; }
}
.step-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.step-card-top .step-badge { margin-bottom: 0; }
.step-pill {
  display: inline-block;
  padding: 6px 14px;
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .02em;
  border-radius: 10px;
  color: var(--accent);
  background: linear-gradient(180deg, rgba(0,229,255,.16), rgba(124,58,237,.16));
  border: 1px solid rgba(0,229,255,.2);
}
.sticky-card h3 { margin: 24px 0 0; }
.step-divider {
  width: 100%;
  height: 1px;
  margin: 16px 0;
  background: linear-gradient(90deg, rgba(0,229,255,.45), rgba(124,58,237,.3), transparent);
}
.sticky-card p { color: var(--muted); margin: 0; }
.process-end { height: 1px; }
.step-badge,
.card-icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  margin-bottom: 18px;
  color: var(--bg);
  background: var(--accent);
  font-family: var(--font-display);
  font-weight: 800;
}

.about-image-wrap img { height: 240px; }
.about-bottom-grid { gap: 24px; }
.about-note,
.contact-side-card { min-height: 100%; }

.about-highlight {
  width: 100%;
  max-width: 440px;
  justify-self: end;
  align-self: start;
}

.about-highlight .about-image-wrap {
  margin-top: 20px;
}

.about-highlight .about-image-wrap img {
  width: 100%;
  height: auto;
  max-height: 240px;
  object-fit: cover;
}

.contact-layout { align-items: start; }
.contact-details {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}
.contact-details a { color: var(--text); font-weight: 500; }
.contact-form {
  display: grid;
  gap: 18px;
  width: 100%;
  max-width: 620px;
  justify-self: center;
  align-self: start;
}
.form-head p,
.form-note { color: var(--muted); }


.contact-form .form-head {
  text-align: center;
}

.contact-form .form-head p {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.services-hero .section-head .lead.narrow {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.contact-form label {
  display: grid;
  gap: 10px;
  color: var(--text);
  font-weight: 500;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  color: var(--text);
  padding: 14px 16px;
  font-size: 1rem;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: rgba(0,229,255,.38);
  box-shadow: 0 0 0 3px rgba(0,229,255,.1);
}
.contact-form textarea { resize: vertical; min-height: 150px; }
.form-feedback {
  padding: 14px 16px;
  border-radius: 12px;
  font-size: .95rem;
}
.is-success { background: rgba(63, 185, 80, .12); color: #9ae6a4; border: 1px solid rgba(63,185,80,.22); }
.is-error { background: rgba(255, 99, 132, .12); color: #ffb3c1; border: 1px solid rgba(255,99,132,.22); }

.cta-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 58px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  position: relative;
  overflow: hidden;
}
.cta-box::after {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(124,58,237,0.15), transparent 70%);
  pointer-events: none;
}
.cta-text p { color: var(--muted); max-width: 460px; margin-top: 14px; }

.site-footer {
  padding: 0 0 42px;
  background: var(--bg);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 36px;
  padding: 42px 0 28px;
  border-top: 1px solid var(--border);
}
.footer-text { max-width: 430px; color: var(--muted); margin-top: 18px; }
.footer-nav-contact {
  display: grid;
  grid-template-columns: repeat(2, minmax(170px, auto));
  gap: 36px;
}
.footer-column h4 { font-size: 1rem; margin-bottom: 12px; }
.footer-links { display: grid; gap: 10px; }
.footer-bottom { padding-top: 22px; border-top: 1px solid rgba(255,255,255,.06); color: var(--muted); }
.social-link { display: inline-flex; align-items: center; gap: 10px; }
.social-icon { width: 18px; height: 18px; }

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-2 { transition-delay: .1s; }
.reveal-3 { transition-delay: .2s; }
.reveal-4 { transition-delay: .3s; }

/* When GSAP drives the motion, hand over reveal control entirely:
   GSAP sets inline opacity/transform/filter each frame, so the CSS
   transition must be off to avoid a double, laggy animation.
   (No persistent will-change here — keeping it on every reveal would
   force standing compositor layers and actually hurt scroll smoothness.) */
.motion-ready .reveal { transition: none; }

/* Lenis smooth scrolling — recommended base styles.
   Overrides html { scroll-behavior: smooth } so Lenis owns the easing. */
html.lenis,
html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  .motion-ready .reveal { will-change: auto; }
}

@media (max-width: 1100px) {
  .cards-grid-home { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .process-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 900px) {
  .site-header { padding: 16px 0; }
  .site-header-inner { min-height: 70px; padding: 12px 16px; }
  .nav-desktop, .nav-cta { display: none; }
  .menu-toggle { display: inline-flex; }
  .container { width: min(1100px, calc(100% - 24px)); }
  .hero, .page-hero { padding: 120px 0 64px; min-height: auto; }
  .hero-grid, .split-grid, .about-layout, .brand-image-card {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .hero-panel { min-height: auto; }
  .hero-panel .brand-showcase-image-wrap img { height: 220px; }
  .cards-grid, .cards-grid-home, .three-cols, .process-grid, .footer-grid { grid-template-columns: 1fr; }
  /* keep the two footer columns side by side on mobile too */
  .footer-nav-contact { grid-template-columns: 1fr 1fr; gap: 20px; }
  .cards-grid-service,
  .cards-grid-service.service-list-page { grid-template-columns: 1fr; align-items: stretch; }

  .section, .services-section { padding: 80px 0; }
  .cta-section { padding: 64px 0 90px; }
  .cta-box { flex-direction: column; align-items: flex-start; padding: 40px 28px; gap: 26px; }
  .brand-image-card { padding: 30px; }
  .brand-image-visual { padding: 8px 0 0; }
  .assembly-label { bottom: 0%; width: min(92%, 520px); }
  .scroll-hint { bottom: 24px; }
}


@media (max-width: 700px) {
  .cards-grid-service { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  h1 { font-size: clamp(2.2rem, 10vw, 3rem); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn, .btn-secondary { width: 100%; }
  .card-body, .text-card-body, .feature-box, .about-note, .contact-side-card, .contact-form, .step-card, .about-highlight { padding: 24px 22px 24px; }
  .brand-image-card { padding: 22px; }
  .about-logo-divider { padding-bottom: 32px; }
  .about-logo-stage { height: 160vh; }
  .about-logo-stage-copy { bottom: 7%; }
  .about-logo-scene { min-height: 54vh; }
  .about-divider-logo-stage { width: min(84vw, 620px); }
  .about-divider-logo { max-width: 300px; }
  .footer-grid { padding-top: 32px; }
}
