.hero.ensamble {
  min-height: max(710px, calc(100svh - 12px));
  padding: clamp(40px, 6vw, 90px) 0 0;
  background: #0d0e10;
}

.hero.ensamble::before {
  background:
    radial-gradient(ellipse at 78% 42%, #27282a, transparent 46%),
    linear-gradient(120deg, #101114, #0b0c0e 73%);
}

.ensamble .hero-layout {
  grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
  gap: clamp(24px, 4vw, 76px);
  padding: 0 0 clamp(30px, 4vw, 58px);
}

.ensamble h1 {
  font-size: clamp(3.375rem, 6.05vw, 7.375rem);
  line-height: .91;
  letter-spacing: -.071em;
}

.ensamble h1 em {
  color: #ff7857;
  font-style: normal;
  font-weight: inherit;
}

.ensamble .hero-lead {
  max-width: 29em;
  margin-top: clamp(21px, 2.3vw, 34px);
  color: #cfcdc7;
  font-size: clamp(1.0625rem, 1.45vw, 1.375rem);
  line-height: 1.47;
}

.ensamble .hero-actions { margin-top: clamp(23px, 2.8vw, 38px); }
.ensamble .hero-presence { margin-top: clamp(25px, 3.5vw, 48px); color: #b4b5b8; }

.brand-intro {
  --cover-ink: #0b0b0e;
  min-height: max(520px, 94svh);
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  justify-items: center;
  align-items: center;
  padding: var(--header-height) 0 clamp(72px, 13svh, 145px);
  background: var(--cover-ink);
  border-bottom: 1px solid #f3f1eb26;
  position: relative;
  overflow: clip;
}

.brand-intro-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 48%, #222126 0%, #141419 35%, transparent 66%),
    linear-gradient(134deg, #1b1b20, #0c0c10 48%, #151318);
}

.brand-intro-art::before,
.brand-intro-art::after {
  content: "";
  position: absolute;
  inset: 0;
}

.brand-intro-art::before {
  background:
    linear-gradient(128deg, #0a0a0e 12%, #2a292e 49%, #7e7480 50%, #111014 50.2%, #0d0d10 75%) center / 100% 100% no-repeat;
  opacity: .38;
  mask-image: radial-gradient(ellipse at 49% 50%, #000, transparent 82%);
}

.brand-intro-art::after {
  background:
    repeating-linear-gradient(0deg, transparent 0 3px, #b5aec005 3px 4px),
    radial-gradient(ellipse at 62% 69%, #b35d3626, transparent 40%);
  mask-image: radial-gradient(ellipse at 55% 56%, #000 20%, transparent 85%);
}

.brand-intro-light {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 45%;
  width: clamp(440px, 70vw, 1200px);
  height: clamp(230px, 48svh, 560px);
  opacity: 0;
  background: radial-gradient(ellipse at 48% 46%, #ffdbb774 0%, #e6a77b47 16%, #ce785235 32%, #86504316 53%, transparent 71%);
}

.brand-intro-center {
  grid-row: 2;
  position: relative;
  text-align: center;
}

.brand-intro-wordmark { width: min(76vw, 1130px); aspect-ratio: 1530 / 180; }
.brand-intro-flight { position: relative; z-index: 101; transform-origin: left top; }

.brand-intro-flight img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 8px #ffdcbb32);
}

.brand-intro-flight::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(125deg, transparent 41%, #ffc99545 46%, #fff3dddf 49%, #fff 51%, #ffeccebb 55%, transparent 60%) 100% 0 / 260% 100% no-repeat;
  mask: url("/assets/lear-digital-refined.svg") center / contain no-repeat;
}

.brand-intro.is-docked .brand-intro-flight, .menu-open .brand-intro-flight { visibility: hidden; }
.site-header[inert] { visibility: hidden; }

.brand-intro-descriptor {
  margin: clamp(25px, 4vw, 50px) 0 0;
  color: #cfcbc7;
  font: 500 clamp(.6875rem, 1.15vw, .9rem)/1.6 var(--mono);
  text-transform: uppercase;
  letter-spacing: .18em;
}

.brand-intro-next {
  grid-row: 3;
  align-self: end;
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: #eab79e;
  border: 1px solid #eab79e3d;
  border-radius: 12px;
  background: #14111540;
  transition: color .2s, border-color .2s;
}

.brand-intro-next:hover, .brand-intro-next:focus-visible { color: var(--paper); border-color: currentColor; }

.brand-intro-next span {
  position: relative;
  width: 1px;
  height: 16px;
  background: currentColor;
}

.brand-intro-next span::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 8px;
  height: 8px;
  border: solid currentColor;
  border-width: 0 1px 1px 0;
  transform: translateX(-50%) rotate(45deg);
}

@media (prefers-reduced-motion: no-preference) {
  .brand-intro-flight img { animation: brand-cut-in 1.05s cubic-bezier(.3, .75, .2, 1) both; }
  .brand-intro-light { animation: brand-stage-light 2.65s .36s ease-in-out both; }
  .brand-intro-flight::after { animation: brand-reflection 2.65s .36s ease-in-out both; }
  .brand-intro-descriptor { animation: brand-descriptor .6s .36s ease-out both; }
  .ensamble-route:has(> .is-visible)::after { animation: ensamble-pulse 1.4s .24s linear both; }
  .ensamble-route > .is-visible { animation: ensamble-arrive .58s 1.55s ease-out forwards; }
}

@keyframes brand-cut-in {
  0% { clip-path: inset(49% 0 51%); opacity: .55; }
  55% { opacity: 1; }
  100% { clip-path: inset(0); opacity: 1; }
}

@keyframes brand-descriptor {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@keyframes brand-reflection {
  0% { opacity: 0; background-position: 100% 0; }
  21%, 77% { opacity: 1; }
  100% { opacity: 0; background-position: 0 0; }
}

@keyframes brand-stage-light {
  0% { opacity: 0; transform: translate(-50%, -50%) translate(-65vw, -39svh) rotate(-23deg); }
  23%, 72% { opacity: .85; }
  100% { opacity: 0; transform: translate(-50%, -50%) translate(66vw, 34svh) rotate(-23deg); }
}

.whatsapp-float {
  gap: 9px;
  min-height: 52px;
  padding: 6px 14px 6px 7px;
  border: 1px solid #626861;
  border-radius: 15px;
  background: #131719;
  color: #f4f1ec;
  box-shadow: 0 10px 26px #0007, inset 0 1px #ffffff12;
  font: 600 .8125rem/1 var(--display);
  white-space: nowrap;
}

.whatsapp-float svg {
  flex: none;
  width: 34px;
  height: 34px;
  padding: 5px;
  border: 1px solid #90dda34a;
  border-radius: 9px;
  background: #25382e;
  fill: #a1ecb2;
}

.whatsapp-float:hover, .whatsapp-float:focus-visible {
  background: #1b2320;
  border-color: #a1ecb2;
}

.ensamble-figure {
  container-type: inline-size;
  min-width: 0;
  margin: 0;
  padding: clamp(15px, 2.4vw, 34px);
  border: 1px solid #e4dbd824;
  background:
    radial-gradient(ellipse at 50% 58%, #352620 0%, transparent 68%),
    linear-gradient(131deg, #1a1b1e, #0e0f12 74%);
}

.ensamble-scene {
  --flow-gap: 6%;
  --node-origin: calc((100% - 2 * var(--flow-gap)) / 6);
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--flow-gap);
  padding-block: clamp(14px, 2.3vw, 30px) 31px;
  background:
    linear-gradient(#f3f1eb0a 1px, transparent 1px) 0 0 / 27px 27px,
    linear-gradient(90deg, #f3f1eb0a 1px, transparent 1px) 0 0 / 27px 27px;
}

.ensamble-pane {
  position: relative;
  display: grid;
  align-content: space-between;
  min-width: 0;
  min-height: clamp(156px, 15.5vw, 222px);
  gap: 15px;
  padding: clamp(10px, 1.25vw, 19px);
  border: 1px solid #c6bdaf3b;
  background: linear-gradient(151deg, #26282d, #16171a 76%);
  box-shadow: 0 13px 27px #0006, inset 0 1px #f3f1eb12;
}

.ensamble-pane::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  width: 1px;
  height: 19px;
  background: #9c624e;
}

.ensamble-pane--hub {
  border-color: #d28c6770;
  background: linear-gradient(151deg, #362b29, #201b1c 76%);
}

.ensamble-pane-copy strong {
  display: block;
  color: var(--paper);
  font-size: clamp(.875rem, 1.28vw, 1.25rem);
  line-height: 1.15;
  letter-spacing: -.035em;
}

.ensamble-pane-copy span {
  display: block;
  margin-top: 6px;
  color: #cbc0b8;
  font: 500 clamp(.6875rem, .88vw, .8125rem)/1.32 var(--mono);
}

.ensamble-pane--ops .ensamble-pane-copy span { color: #aadebd; }

.ensamble-pane-art {
  display: grid;
  align-content: center;
  min-width: 0;
  min-height: clamp(63px, 7.5vw, 100px);
}

.ensamble-mini-web {
  min-height: 58px;
  display: grid;
  grid-template-columns: .8fr 1fr;
  grid-template-rows: 9px minmax(16px, 1fr) 10px;
  gap: 6px;
  aspect-ratio: 1.48;
  padding: 7px;
  border: 1px solid #8f939a;
  background: #111317;
  box-shadow: 3px 5px 0 #09090bd9;
}

.ensamble-mini-web i:first-child {
  grid-column: 1 / -1;
  background:
    radial-gradient(circle, #bdc0c5 30%, transparent 36%) 0 0 / 6px 6px repeat-x,
    linear-gradient(#3f4248, #3f4248) left bottom / 100% 1px no-repeat;
  background-clip: content-box, border-box;
  padding-right: calc(100% - 20px);
}

.ensamble-mini-web i:nth-child(2) {
  grid-row: 2 / 4;
  background:
    linear-gradient(#985440, #985440) 37% 76% / 48% 11% no-repeat,
    repeating-linear-gradient(#dfd3c8, #dfd3c8 2px, transparent 2px 6px) 63% 32% / 58% 34% no-repeat,
    linear-gradient(145deg, #766052, #4e3530);
}

.ensamble-mini-web i:last-child {
  grid-row: 2 / 4;
  background: repeating-linear-gradient(#777883 0 2px, transparent 2px 8px);
  opacity: .68;
}

.ensamble-mini-hub {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 94%;
  margin-inline: auto;
  min-height: 58px;
  background: linear-gradient(90deg, #7a5446, #f0906d 51%, #7a5446) center / calc(100% - 12px) 1px no-repeat;
}

.ensamble-mini-hub i {
  width: 12px;
  height: 12px;
  border: 1px solid #c1876d;
  border-radius: 50%;
  background: #382721;
}

.ensamble-mini-hub i:nth-child(2) {
  width: clamp(22px, 3vw, 42px);
  height: clamp(22px, 3vw, 42px);
  border-radius: 3px;
  background: linear-gradient(135deg, #a0543d, #4f2d27);
  box-shadow: inset 0 0 0 4px #2c2425b5, 0 0 18px #ff754f35;
  transform: rotate(45deg);
}

.ensamble-mini-ops {
  display: grid;
  gap: 5px;
  padding: 7px;
  border: 1px solid #989da85e;
  background: #111417;
  box-shadow: 3px 5px 0 #09090bd9;
}

.ensamble-mini-ops i {
  display: block;
  min-height: 12px;
  background:
    linear-gradient(#737982, #737982) 28% 50% / 39% 2px no-repeat,
    linear-gradient(#737982, #737982) 87% 50% / 14% 2px no-repeat,
    #272b32;
}

.ensamble-mini-ops i:nth-child(2) {
  background:
    linear-gradient(#aadebd, #aadebd) 28% 50% / 39% 2px no-repeat,
    linear-gradient(#aadebd, #aadebd) 87% 50% / 14% 2px no-repeat,
    #253a30;
}

.ensamble-route {
  position: absolute;
  inset: auto var(--node-origin) 12px;
  height: 1px;
  background: linear-gradient(90deg, #a25b42, #ef9a77 50%, #a25b42);
}

.ensamble-route i, .ensamble-route::after {
  position: absolute;
  top: 0;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.ensamble-route i {
  border: 1px solid #ff9b76;
  background: #46302b;
}

.ensamble-scene .ensamble-route .reveal {
  opacity: 1;
  transform: translate(-50%, -50%);
  transition: none;
}

.ensamble-route i:nth-child(2) { left: 50%; }
.ensamble-route i:nth-child(3) { left: 100%; }

.ensamble-route::after {
  content: "";
  opacity: 0;
  background: #fff0db;
  box-shadow: 0 0 5px 2px #ffb080, 0 0 14px 4px #f67049ae;
}

@keyframes ensamble-pulse {
  0% { opacity: 0; left: 0; top: 0; }
  9%, 91% { opacity: 1; }
  100% { opacity: 0; left: var(--signal-end-x, 100%); top: var(--signal-end-y, 0); }
}

@keyframes ensamble-arrive {
  from { background: #fff1db; box-shadow: 0 0 14px 4px #ff8f69a0; }
  to { background: #bf765c; box-shadow: 0 0 0 transparent; }
}

.ensamble-legend {
  margin-top: clamp(14px, 2vw, 23px);
  padding-top: 11px;
  border-top: 1px solid #f3f1eb3b;
  color: #c7c6c3;
  font: 500 .6875rem/1.3 var(--mono);
  letter-spacing: .095em;
  text-transform: uppercase;
}

.ensamble-example {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: clamp(22px, 3.5vw, 60px);
  padding: 23px 0 28px;
  border-top: 1px solid var(--line-strong);
}

.ensamble-kicker {
  margin: 0 0 7px;
  color: #ff9d81;
  font: 500 .72rem/1.4 var(--mono);
  letter-spacing: .11em;
  text-transform: uppercase;
}

.ensamble-example h2 {
  margin: 0;
  font-size: clamp(1.125rem, 1.7vw, 1.65rem);
  line-height: 1.1;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.ensamble-example > a { color: var(--paper); white-space: nowrap; }
.ensamble-example > a:hover { color: var(--orange-soft); }

.ensamble-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #e0dcd6;
  font: 500 clamp(.65rem, .86vw, .79rem)/1.4 var(--mono);
}

.ensamble-flow li { display: flex; align-items: center; }

.ensamble-flow li + li::before {
  content: "";
  width: clamp(12px, 2.15vw, 32px);
  height: 1px;
  margin-inline: clamp(7px, 1vw, 15px);
  background: var(--orange);
  transform-origin: left;
}

.ensamble-flow.is-visible li + li::before { animation: ensamble-connect .5s .12s ease-out both; }
.ensamble-flow.is-visible li:last-child::before { animation-delay: .25s; }

@keyframes ensamble-connect {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@media (max-width: 980px) {
  .hero.ensamble { min-height: auto; }
  .ensamble .hero-layout { grid-template-columns: 1fr 1fr; gap: 22px; }
  .ensamble h1 { font-size: clamp(2.625rem, 6.5vw, 4.25rem); }
  .ensamble .hero-actions { gap: 12px 22px; }
  .ensamble-example { grid-template-columns: minmax(0, 1fr) auto; gap: 15px 22px; }
  .ensamble-flow { grid-row: 2; grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .brand-intro { min-height: max(420px, 84svh); padding-bottom: clamp(68px, 15svh, 126px); }
  .brand-intro-wordmark { width: min(88vw, 590px); }
  .brand-intro-descriptor { margin-top: 19px; letter-spacing: .12em; }
  .hero.ensamble { padding-top: 39px; }
  .hero.ensamble::before { background: radial-gradient(ellipse at 50% 67%, #292929, transparent 55%); }
  .ensamble .hero-layout { grid-template-columns: 1fr; gap: 20px; padding-bottom: 26px; }
  .ensamble h1 { font-size: clamp(2.625rem, 10.6vw, 4.5rem); }
  .ensamble .hero-actions { flex-direction: row; align-items: center; gap: 8px 19px; }
  .ensamble .hero-actions .button { width: auto; padding-inline: 14px; gap: 11px; min-height: 49px; }
  .ensamble .hero-actions .text-link { margin: 0; }
  .ensamble .hero-presence { gap: 8px; margin-top: 19px; font-size: .625rem; letter-spacing: .045em; }
  .ensamble-figure { width: min(100%, 460px); margin-inline: auto; }
  .ensamble-example { padding-top: 18px; }
  .ensamble-example h2 { text-wrap: initial; }
}

@media (max-width: 640px) {
  .whatsapp-float { padding: 0; border-radius: 15px; }
  .whatsapp-float svg { width: 27px; height: 27px; padding: 0; border: 0; background: none; }
}

@container (max-width: 430px) {
  .ensamble-scene {
    --signal-end-x: 0;
    --signal-end-y: 100%;
    grid-template-columns: 1fr;
    grid-auto-rows: minmax(88px, 1fr);
    gap: 10px;
    padding: 0 0 0 20px;
  }
  .ensamble-pane { grid-template-columns: 1fr 84px; align-items: center; gap: 10px; min-height: 88px; }
  .ensamble-pane::after { top: 50%; left: auto; right: 100%; width: 13px; height: 1px; }
  .ensamble-pane-art { min-height: 0; }
  .ensamble-mini-web, .ensamble-mini-hub { min-height: 50px; }
  .ensamble-route { inset: 16% auto 16% 8px; width: 1px; height: auto; }
  .ensamble-route i:nth-child(2) { left: 0; top: 50%; }
  .ensamble-route i:nth-child(3) { left: 0; top: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .ensamble-flow.is-visible li + li::before { animation: none; }
}

/* Mobile refinement: comfortable reading, reachable navigation and safe areas. */
@media (max-width: 720px) {
  .brand-intro { min-height: clamp(360px, 62svh, 540px); padding-bottom: 48px; }
  .brand-intro-wordmark { width: min(84vw, 590px); }
  .brand-intro-descriptor { padding-inline: 18px; font-size: .6875rem; letter-spacing: .08em; }
  .brand-intro-flight { transform: none !important; }
  .brand-intro.is-docked .brand-intro-flight { visibility: visible; }
  .hero.ensamble { padding-top: 30px; }
  .ensamble h1 { font-size: clamp(2.125rem, 10vw, 3.75rem); line-height: .98; letter-spacing: -.055em; }
  .ensamble .hero-lead { font-size: 1rem; line-height: 1.6; margin-top: 20px; }
  .ensamble .hero-actions { flex-wrap: wrap; gap: 12px 20px; }
  .ensamble .hero-actions .text-link { min-height: 44px; }
  .ensamble .hero-presence { font-size: .6875rem; line-height: 1.7; letter-spacing: .025em; }
  .ensamble-example { grid-template-columns: 1fr; gap: 14px; }
  .ensamble-example > a { min-height: 44px; display: inline-flex; align-items: center; width: fit-content; }
  .ensamble-flow { grid-row: auto; grid-column: auto; font-size: .6875rem; gap: 10px 0; }
}
@media (max-width: 980px) {
  .main-nav { overflow-y: auto; overscroll-behavior: contain; padding-top: calc(var(--header-height) + 24px); padding-bottom: max(28px, env(safe-area-inset-bottom)); }
  .main-nav > a { flex-shrink: 0; }
  .main-nav.is-open .language-switch { display: none; }
  .menu-open .whatsapp-float { visibility: hidden; }
}
@media (max-width: 640px) {
  .section-title { font-size: clamp(2rem, 9.5vw, 2.625rem); line-height: 1.02; }
  .contact h2 { font-size: clamp(2.125rem, 10vw, 2.75rem); line-height: 1.02; }
  .contact-path-heading h2 { font-size: clamp(2rem, 9.5vw, 2.625rem); }
  .subpage-hero h1 { font-size: clamp(2rem, 10vw, 3rem); line-height: 1; overflow-wrap: break-word; }
  .subpage-cta h2, .case-solutions-heading h2, .detail-label h2 { font-size: clamp(2rem, 9.5vw, 2.625rem); line-height: 1.03; }
  .section-heading { gap: 24px; margin-bottom: 32px; }
  .case-brief { padding-inline: 20px; }
  .case-brief h3 { font-size: clamp(1.625rem, 7.7vw, 2rem); line-height: 1.08; overflow-wrap: break-word; }
  .contact-form input, .contact-form select, .contact-form textarea { font-size: 16px; max-width: 100%; }
  .contact-form .button { min-height: 48px; }
  .footer-bottom nav a, .footer-bottom nav button { min-height: 44px; display: inline-flex; align-items: center; }
  .footer-bottom { padding-bottom: 76px; }
  .whatsapp-float { right: max(14px, env(safe-area-inset-right)); bottom: max(14px, env(safe-area-inset-bottom)); }
  body:has(.cookie-banner.is-visible) .whatsapp-float { visibility: hidden; }
  .cookie-banner { bottom: max(10px, env(safe-area-inset-bottom)); max-height: calc(100dvh - 24px); overflow-y: auto; }
}
@media (max-height: 500px) and (max-width: 980px) {
  .main-nav > a { padding-block: 12px; font-size: 20px; }
  .main-nav .nav-cta { margin-top: 18px; }
}
