/* ============================================================
   RED · Comunicaciones Integradas
   Design language: bold minimalism · red / gray / black
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Abril+Fatface&family=Lato:wght@300;400;700;900&display=swap');

:root {
  /* Brand */
  --red: #E11D2A;
  --red-dark: #B3141F;
  --red-soft: #FBE7E8;

  /* Ink / neutrals */
  --black: #0B0B0C;
  --ink: #121214;
  --gray-900: #1C1C1F;
  --gray-700: #3A3A3F;
  --gray-500: #6B6B72;
  --gray-400: #8E8E96;
  --gray-300: #C9C9CF;
  --gray-200: #E4E4E8;
  --gray-100: #F1F1F3;
  --gray-50:  #F8F8F9;
  --white: #FFFFFF;

  /* Semantic */
  --bg: #FFFFFF;
  --bg-alt: #F8F8F9;
  --text: #121214;
  --text-muted: #6B6B72;
  --border: #E4E4E8;

  /* System */
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-sm: 0 1px 2px rgba(11,11,12,.06);
  --shadow-md: 0 10px 30px -12px rgba(11,11,12,.18);
  --shadow-lg: 0 30px 60px -20px rgba(11,11,12,.28);

  --font-display: 'Abril Fatface', Georgia, 'Times New Roman', serif;
  --font-body: 'Lato', system-ui, sans-serif;
  --font-brand: 'Lato', system-ui, sans-serif;
  --brand-gray: #9A9CA0;
}

/* ----------------------------- Reset ----------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: hidden; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }
::selection { background: var(--red); color: #fff; }

/* Stop iOS Safari from auto-styling phone/email/address text as blue tap-links */
a[href^="tel:"], a[href^="mailto:"], a[x-apple-data-detectors] {
  color: inherit; text-decoration: inherit; -webkit-text-decoration-color: inherit;
}
h1, h2, h3, h4, h5, h6 { -webkit-touch-callout: none; }
h1 a, h2 a, h3 a, h4 a, h5 a, h6 a { color: inherit; }

/* Stop iOS Safari from rendering <button> text as system blue, and kill the blue tap flash */
button {
  color: inherit;
  -webkit-appearance: none; appearance: none;
  font: inherit;
}
a, button, [role="button"], .acc__head, .nav__toggle {
  -webkit-tap-highlight-color: transparent;
}
.nav__toggle, .nav__toggle svg { color: var(--ink); }
.acc__head, .acc__title, .acc__teaser { color: var(--ink); }

/* ----------------------------- Accessibility ----------------------------- */
.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 10001;
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 8px;
  font-weight: 700; font-size: .95rem; transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }
a:focus-visible, button:focus-visible, .acc__head:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--red); outline-offset: 2px;
}

/* ----------------------------- Layout ----------------------------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.section { padding: 110px 0; }
.section--tight { padding: 80px 0; }
.bg-alt { background: var(--bg-alt); }

.dark {
  background: var(--black);
  color: #EDEDEF;
}
.dark .eyebrow { color: #9A9AA2; }
.dark .section-title { color: #fff; }
.dark .lead { color: #B5B5BC; }

/* ----------------------------- Typography ----------------------------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.08; letter-spacing: 0; color: var(--text); }

.display {
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.005em;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3.25rem);
  letter-spacing: 0;
}
.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 60ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  max-width: 100%;
  gap: 6px 10px;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray-500);
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: var(--red);
  display: inline-block;
  flex-shrink: 0;
}
.eyebrow--dot::before { width: 8px; height: 8px; border-radius: 50%; }

.text-red { color: var(--red); }
.breadcrumb { font-size: .85rem; color: var(--gray-500); letter-spacing: .02em; margin-bottom: 28px; }
.breadcrumb a:hover { color: var(--red); }

/* ----------------------------- Buttons ----------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px;
  border-radius: 100px;
  font-weight: 600;
  font-size: .95rem;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-dark); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--gray-100); }
.btn--lg { padding: 17px 30px; font-size: 1rem; }

/* ----------------------------- Brand logo (RED) ----------------------------- */
.brand { display: inline-flex; align-items: center; gap: .3em; line-height: 1; }
.brand__word { font-family: var(--font-brand); font-weight: 800; letter-spacing: -.02em; color: var(--brand-gray); }
.brand--white .brand__word { color: #fff; }
.sq {
  display: inline-block; width: .82em; height: .82em; border-radius: .07em;
  background: linear-gradient(135deg, #F4313A 0%, #E10E17 52%, #AE050F 100%);
  position: relative; overflow: hidden; flex-shrink: 0;
  box-shadow: inset 0 0 0 .5px rgba(0,0,0,.06);
}
.sq::before { content:""; position:absolute; inset:0; background: linear-gradient(128deg, rgba(255,255,255,.40) 0%, rgba(255,255,255,.06) 34%, rgba(255,255,255,0) 50%); }
.sq::after { content:""; position:absolute; right:-30%; top:-30%; width:90%; height:90%; border-radius:50%; background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.22), rgba(255,255,255,0) 60%); }
.brand__img { height: 44px; width: auto; display: block; }
.brand__img--footer { height: 56px; }

/* ----------------------------- Navbar (Formance-style) ----------------------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.78);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(228,228,232,.7);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav .brand { font-size: 1.75rem; }
.nav__links { display: flex; align-items: center; gap: 8px; }
.nav__links a { font-size: .95rem; font-weight: 500; color: var(--gray-700); padding: 8px 16px; border-radius: 100px; transition: color .2s var(--ease), background .2s var(--ease); }
.nav__links a:hover { color: var(--text); background: var(--gray-100); }
.nav__links a.active { color: var(--text); background: var(--gray-100); }
.nav__cta { display: flex; align-items: center; gap: 14px; }
.btn--pill { background: #fff; color: var(--ink); border: 1px solid var(--gray-200); box-shadow: 0 1px 2px rgba(11,11,12,.05); }
.btn--pill:hover { border-color: var(--ink); box-shadow: 0 6px 18px -8px rgba(11,11,12,.3); }
.btn--pill .arr { transform: rotate(-45deg); }
.btn--pill:hover .arr { transform: rotate(-45deg) translateX(3px); }
.nav__toggle { display: none; background: none; border: none; width: 42px; height: 42px; align-items: center; justify-content: center; }
.nav__toggle svg { width: 24px; height: 24px; }

/* ----------------------------- Hero (centered + dynamic) ----------------------------- */
.hero { padding: 120px 0 130px; position: relative; overflow: hidden; text-align: center; }
.hero__inner { position: relative; z-index: 1; max-width: 1000px; margin: 0 auto; will-change: transform, opacity; }
.hero__logo { display: block; height: clamp(64px, 7vw, 110px); width: auto; margin: 0 auto 28px; }
.hero .eyebrow { justify-content: center; }
.hero__title { margin: 28px auto 26px; font-size: clamp(2.8rem, 7.6vw, 6.4rem); line-height: 1.02; letter-spacing: -.01em; }
.hero__line { display: block; will-change: transform, opacity; }
.hero__line--2 { margin-top: .12em; }
.hero__line--1 { animation: heroZoom 1.3s cubic-bezier(.2,.7,.2,1) .5s both; transform-origin: 50% 50%; }
.hero__line--2 { animation: heroZoom 1.3s cubic-bezier(.2,.7,.2,1) .65s both; transform-origin: 50% 50%; }
@keyframes heroZoom {
  0%   { transform: scale(1.6); opacity: 0; filter: blur(6px); }
  25%  { opacity: 1; filter: blur(0); }
  100% { transform: scale(1);   opacity: 1; filter: blur(0); }
}

/* Intro curtain — full red overlay on first paint, fades away while the headline zooms out */
.intro-curtain {
  position: fixed; inset: 0; z-index: 9998;
  background: var(--red); pointer-events: none;
  animation: introCurtain 1.4s cubic-bezier(.55,0,.3,1) forwards;
}
@keyframes introCurtain {
  0%   { transform: translateY(0);     opacity: 1; }
  35%  { transform: translateY(0);     opacity: 1; }
  100% { transform: translateY(-100%); opacity: 1; visibility: hidden; }
}
@media (prefers-reduced-motion: reduce){
  .intro-curtain { display: none; }
  .hero__line--1, .hero__line--2 { animation: none; }
}
.hero .lead { margin: 0 auto; max-width: 64ch; font-size: clamp(1.1rem, 1.6vw, 1.35rem); }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 40px; justify-content: center; }
.hero__scroll { position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%); z-index: 1; width: 26px; height: 42px; border: 2px solid var(--gray-300); border-radius: 16px; display: flex; justify-content: center; padding-top: 7px; transition: opacity .3s var(--ease); }
.hero__scroll span { width: 4px; height: 8px; border-radius: 4px; background: var(--red); animation: scrollDot 1.6s var(--ease) infinite; }
@keyframes scrollDot { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* ----------------------------- Ambient background blobs ----------------------------- */
.has-ambient { position: relative; overflow: hidden; }
.ambient { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.ambient .blob { position: absolute; border-radius: 50%; filter: blur(64px); opacity: .9; will-change: transform; }
.blob--1 { width: 600px; height: 600px; top: -160px; left: -120px; background: radial-gradient(circle, rgba(225,29,42,.55), rgba(225,29,42,0) 66%); animation: floatA 20s ease-in-out infinite; }
.blob--2 { width: 660px; height: 660px; top: -90px; right: -180px; background: radial-gradient(circle, rgba(255,90,95,.48), rgba(255,90,95,0) 66%); animation: floatB 24s ease-in-out infinite; }
.blob--3 { width: 560px; height: 560px; bottom: -240px; left: 38%; background: radial-gradient(circle, rgba(225,29,42,.45), rgba(225,29,42,0) 68%); animation: floatA 26s ease-in-out infinite reverse; }

@keyframes floatA { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(40px,30px) scale(1.08); } }
@keyframes floatB { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-50px,40px) scale(1.1); } }

/* ----------------------------- Narrative ----------------------------- */
.narrative { text-align: center; max-width: 820px; margin: 0 auto; }
.narrative h2 {
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  line-height: 1.18; letter-spacing: -.02em; font-weight: 500;
}
.narrative h2 .mute { color: var(--gray-300); }
.narrative p { margin-top: 22px; color: var(--text-muted); font-size: 1.1rem; }

/* Narrative scroll square: big red block crosses the text; text inverts beneath it */
.narrative-sec { position: relative; overflow: hidden; isolation: isolate; background: #fff; }
/* z-index:auto cancels .container's z-index:1 so .narrative does NOT form its own
   stacking context — that keeps it in the section's group so the text's mix-blend-mode
   can blend with the square (tree order still paints the text above the square). */
.narrative-sec .narrative { position: relative; z-index: auto; }
.narrative-sec .narrative h2,
.narrative-sec .narrative p { color: #fff; mix-blend-mode: difference; }
.narrative-sec .narrative .text-red { color: #1ee2d5; } /* complement of --red so it reads red over white, inverts over the square */
.np-square {
  position: absolute; top: 50%; left: 0;
  width: clamp(240px, 44vh, 440px); aspect-ratio: 1 / 1;
  background: var(--red); border-radius: 0;
  transform: translate(-150%, -50%);
  pointer-events: none; will-change: transform;
}
@media (max-width: 720px){
  /* On mobile the square must be small enough to pass *through* the text, not cover it */
  .np-square { width: min(180px, 48vw); }
}
@media (prefers-reduced-motion: reduce){ .np-square { display: none; } }

/* ----------------------------- Section head ----------------------------- */
.head { max-width: 720px; margin-bottom: 56px; }
.head--center { margin-left: auto; margin-right: auto; text-align: center; }
.head .section-title { margin: 16px 0 14px; }

/* ----------------------------- Service cards (home grid) ----------------------------- */
.cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 48px;
}
.card {
  border: none; background: none; padding: 0;
  display: flex; flex-direction: column;
}
.card__art { width: 60px; height: 60px; margin-bottom: 26px; color: var(--red); transition: transform .35s var(--ease); }
.card__art svg { width: 100%; height: 100%; overflow: visible; }
.card:hover .card__art { transform: rotate(-8deg) scale(1.06); }
.card h3 { font-size: clamp(1.4rem, 2vw, 1.9rem); letter-spacing: -.02em; line-height: 1.1; padding-top: 22px; border-top: 1px solid var(--border); transition: color .2s var(--ease); }
.card:hover h3 { color: var(--red); }
.card p { color: var(--text-muted); font-size: 1.02rem; margin-top: 12px; flex: 1; }
.card__link { margin-top: 18px; font-size: .9rem; font-weight: 600; color: var(--red-dark); display: inline-flex; gap: 6px; align-items: center; }
.card__link .arr { transition: transform .25s var(--ease); }
.card:hover .card__link .arr { transform: translateX(4px); }

/* ----------------------------- Why / numbered grid ----------------------------- */
.why { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 64px; }
.why__item { display: grid; grid-template-columns: auto 1fr; gap: 22px; padding: 28px 0; border-top: 1px solid var(--border); }
.why__num { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--red); line-height: 1; }
.why__item h3 { font-size: 1.18rem; margin-bottom: 8px; }
.why__item p { color: var(--text-muted); font-size: .98rem; }

/* ----------------------------- Methodology / process (serpentine loop) ----------------------------- */
.method__head { max-width: 720px; margin-bottom: 48px; }
.process { position: relative; }
.process__track { display: none; }
.process__base { fill: none; stroke: rgba(255,255,255,.18); stroke-width: 1; vector-effect: non-scaling-stroke; }
/* Arrow markers travelling along the racetrack — line + chevron tip */
.process__arrow {
  stroke: var(--red);
  stroke-width: 3.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 4px rgba(225,29,42,.55));
}
@media (prefers-reduced-motion: reduce){
  .process__track use { animation: none; }
}
.process__row { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 44px; }
.prow { display: grid; grid-template-columns: repeat(2, 1fr); gap: 44px 26px; }
.pstep { text-align: center; }
.pnode {
  width: 64px; height: 64px; border-radius: 50%;
  background: #17110f; border: 2px solid var(--red); color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 0 0 6px rgba(225,29,42,.10), 0 0 22px -2px rgba(225,29,42,.55);
  transition: transform .3s var(--ease), background .3s var(--ease);
}
.pstep:hover .pnode { transform: translateY(-4px); background: var(--red); }
.pnode svg { width: 28px; height: 28px; }
.pstep h4 { color: #fff; font-size: clamp(1.2rem, 1.5vw, 1.5rem); letter-spacing: -.01em; margin-bottom: 8px; }
.pstep p { color: #9A9AA2; font-size: .92rem; line-height: 1.5; max-width: 22ch; margin: 0 auto; }

@media (min-width: 1025px){
  .process { aspect-ratio: 27 / 13; height: auto; }
  .process__track { display: block; position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
  .process__row { display: block; height: 100%; }
  .prow { position: absolute; left: 0; right: 0; gap: 0; }
  .prow--top { top: 0; grid-template-columns: repeat(4, 1fr); padding: 0 7%; }
  .prow--bottom { top: 50%; padding: 0 18%; grid-template-columns: repeat(3, 1fr); }
  .pstep { padding-top: 16px; }
}

/* ----------------------------- CTA band ----------------------------- */
.ctaband { text-align: center; }
.ctaband .section-title { max-width: 16ch; margin: 16px auto 18px; }
.ctaband .lead { margin: 0 auto 34px; }

/* ----------------------------- About ----------------------------- */
.about__split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.about__visual { border-radius: 20px; background: var(--black); aspect-ratio: 4/5; overflow: hidden; box-shadow: var(--shadow-lg); position: sticky; top: 100px; }
.about__visual svg { width: 100%; height: 100%; }
.about__body h3 { font-size: 1.5rem; margin-bottom: 16px; }
.about__body p { color: var(--text-muted); margin-bottom: 18px; font-size: 1.02rem; }
.about__body .hl { color: var(--text); font-weight: 700; }
.about__split--anim { align-items: center; gap: 56px; }
.about-anim-wrap { display: flex; justify-content: center; padding: 6px 0 24px; }
.about-anim { width: min(440px, 80vw); height: auto; }
.conn-illu { overflow: visible; }
@keyframes avZoom { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.about__body--center { max-width: 800px; margin: 0 auto; text-align: center; }
.about__body--center h3 { font-size: clamp(1.6rem, 2.4vw, 2.2rem); margin-bottom: 20px; }
.about__body--center p { font-size: 1.08rem; line-height: 1.7; }

.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.mv__card {
  border: 1px solid rgba(225,29,42,.22); border-radius: var(--radius); padding: 36px 32px;
  background:
    radial-gradient(125% 145% at 0% 0%, rgba(225,29,42,.11) 0%, rgba(225,29,42,.035) 34%, rgba(255,255,255,0) 64%),
    #fff;
}
.mv__card--dark {
  background:
    radial-gradient(125% 145% at 0% 0%, rgba(225,29,42,.11) 0%, rgba(225,29,42,.035) 34%, rgba(255,255,255,0) 64%),
    #fff;
  color: var(--text); border-color: rgba(225,29,42,.22);
}
.mv__card .eyebrow { margin-bottom: 16px; }
.mv__card--dark .eyebrow { color: var(--gray-500); }
.mv__card p { font-size: 1.12rem; line-height: 1.5; letter-spacing: -.01em; }
.mv__card--dark p { color: var(--text); }
.mv__card .accent { color: var(--red); }

.persp { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.persp__card { border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px; background: #fff; transition: border-color .25s var(--ease), transform .25s var(--ease); }
.persp__card:hover { border-color: var(--gray-300); transform: translateY(-3px); }
.persp__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.persp__icon svg { width: 22px; height: 22px; }
.persp__card h3 { font-size: .95rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }
.persp__card p { color: var(--text-muted); font-size: .92rem; }

/* ----------------------------- Services marquee ----------------------------- */
.marquee { overflow: hidden; padding: 30px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); user-select: none; }
.marquee__track { display: flex; align-items: center; gap: 44px; width: max-content; will-change: transform; animation: marquee 28s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee .word { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.6rem, 8vw, 7rem); letter-spacing: 0; line-height: 1; color: var(--ink); white-space: nowrap; }
.marquee .word--outline { color: transparent; -webkit-text-stroke: 1.5px var(--gray-300); }
.marquee .dot { width: clamp(16px, 2.2vw, 38px); height: clamp(16px, 2.2vw, 38px); border-radius: 50%; background: var(--red); flex-shrink: 0; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Footer marquee variant (¡Hablemos!) */
.marquee--footer { display: block; border: none; padding: 6px 0 14px; cursor: pointer; }
.marquee--footer .marquee__track { animation-duration: 22s; gap: 36px; }
.marquee--footer .word { color: #fff; font-size: clamp(3.4rem, 13vw, 12rem); letter-spacing: -.01em; transition: color .3s var(--ease); }
.marquee--footer .word--outline { color: transparent; -webkit-text-stroke: 1.6px rgba(255,255,255,.45); }
.marquee--footer:hover .word--outline { -webkit-text-stroke-color: var(--red); }
.marquee--footer .dot { background: var(--red); }

/* ----------------------------- Services list / accordion (Formance-style) ----------------------------- */
.acc { display: flex; flex-direction: column; gap: 14px; }
.acc__item {
  border: 1px solid var(--gray-200);
  border-radius: 22px;
  overflow: hidden;
  background:
    radial-gradient(125% 145% at 0% 0%, rgba(225,29,42,.11) 0%, rgba(225,29,42,.035) 34%, rgba(255,255,255,0) 64%),
    #fff;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease), background .3s var(--ease);
}
.acc__item:hover { border-color: rgba(225,29,42,.35); transform: translateY(-2px); box-shadow: 0 18px 40px -24px rgba(225,29,42,.45); }
.acc__item.open {
  border-color: rgba(225,29,42,.5);
  box-shadow: 0 26px 60px -28px rgba(225,29,42,.5);
  transform: none;
  background:
    radial-gradient(120% 130% at 0% 0%, rgba(225,29,42,.18) 0%, rgba(225,29,42,.06) 40%, rgba(255,255,255,0) 72%),
    #fff;
}
.acc__head {
  width: 100%; background: none; border: none; text-align: left; cursor: pointer;
  display: grid; grid-template-columns: 1.05fr 1fr auto; align-items: center; gap: 36px;
  padding: 36px 38px;
}
.acc__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.5rem, 2.4vw, 2.4rem); letter-spacing: -.015em; line-height: 1.04; }
.acc__teaser { color: var(--text-muted); font-size: 1rem; line-height: 1.5; max-width: 42ch; transition: opacity .25s var(--ease); }
.acc__item.open .acc__teaser { opacity: 0; }
.acc__lead { color: var(--text); font-size: 1.08rem; line-height: 1.5; margin: -6px 0 20px; max-width: 48ch; }
.acc__toggle { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--gray-300); position: relative; flex-shrink: 0; transition: background .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease); }
.acc__item:hover .acc__toggle { border-color: var(--red); }
.acc__item.open .acc__toggle { background: var(--red); border-color: var(--red); transform: rotate(180deg); }
.acc__toggle::before, .acc__toggle::after { content:""; position:absolute; background: var(--ink); border-radius:2px; transition: transform .3s var(--ease), opacity .3s var(--ease), background .3s var(--ease); }
.acc__toggle::before { top:23px; left:15px; right:15px; height:2px; }
.acc__toggle::after { left:23px; top:15px; bottom:15px; width:2px; }
.acc__item.open .acc__toggle::before, .acc__item.open .acc__toggle::after { background:#fff; }
.acc__item.open .acc__toggle::after { transform: rotate(90deg); opacity: 0; }
.acc__panel { max-height: 0; overflow: hidden; transition: max-height .45s var(--ease); }
.acc__inner { padding: 4px 38px 40px; display: grid; grid-template-columns: 1.6fr 1fr; gap: 52px; }
.acc__inner h4 { font-size: clamp(1.3rem, 1.8vw, 1.75rem); line-height: 1.12; margin-bottom: 18px; max-width: 24ch; }
.acc__inner p { color: var(--text-muted); margin-bottom: 14px; font-size: .98rem; }
.acc__caps { background: rgba(255,255,255,.6); border: 1px solid rgba(225,29,42,.14); border-radius: 16px; padding: 24px 24px; align-self: start; }
.acc__caps .eyebrow { margin-bottom: 16px; }
.acc__caps ul { display: flex; flex-direction: column; gap: 10px; }
.acc__caps li { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--gray-700); }
.acc__caps li::before { content:""; width:6px; height:6px; border-radius:50%; background: var(--red); margin-top: 8px; flex-shrink: 0; }
.acc__cta { margin-top: 24px; }

@media (max-width: 860px){
  .acc__head { grid-template-columns: 1fr auto; gap: 20px; padding: 28px 26px; }
  .acc__teaser { display: none; }
  .acc__inner { grid-template-columns: 1fr; gap: 24px; padding: 4px 26px 32px; }
}

/* ----------------------------- Contact ----------------------------- */
.contact__grid { display: grid; grid-template-columns: 1.4fr .9fr; gap: 48px; align-items: start; }
.form { display: grid; gap: 22px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: .76rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gray-500); }
.field label .opt { color: var(--gray-400); font-weight: 500; text-transform: none; letter-spacing: 0; }
.field input, .field select, .field textarea {
  font: inherit; font-size: .98rem; color: var(--text);
  padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: #fff; transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
  width: 100%;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft);
}
.form__note { font-size: .82rem; color: var(--gray-400); }
.form__success { display: none; padding: 16px 18px; border-radius: var(--radius-sm); background: var(--red-soft); color: var(--red-dark); font-size: .92rem; font-weight: 500; }
.form__success.show { display: block; }
.form__error { display: none; padding: 16px 18px; border-radius: var(--radius-sm); background: #fff4e6; color: #8a3b00; font-size: .92rem; font-weight: 500; border: 1px solid #f5c89a; }
.form__error.show { display: block; }
.form__error a { color: inherit; text-decoration: underline; }
.field [aria-invalid="true"] { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }

.contact__side { display: flex; flex-direction: column; gap: 18px; }
.contact__box {
  background:
    radial-gradient(125% 145% at 0% 0%, rgba(225,29,42,.11) 0%, rgba(225,29,42,.035) 34%, rgba(255,255,255,0) 64%),
    #fff;
  color: var(--text); border: 1px solid rgba(225,29,42,.22); border-radius: var(--radius); padding: 34px 30px;
}
.contact__box .eyebrow { color: var(--gray-500); margin-bottom: 24px; }
.contact__line { margin-bottom: 22px; }
.contact__line .k { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gray-500); margin-bottom: 6px; }
.contact__line .v { font-family: var(--font-display); font-size: 1.4rem; font-weight: 400; }
.contact__line a:hover { color: var(--red); }
.contact__hint { color: #9A9AA2; font-size: .9rem; line-height: 1.55; padding: 22px 24px; border: 1px solid var(--border); border-radius: var(--radius); }

/* ----------------------------- Footer (Formance-style) ----------------------------- */
.footer {
  position: relative; overflow: hidden;
  color: #C9C9CF; padding: 84px 0 30px;
  background-color: #120607;
  background-image:
    repeating-linear-gradient(90deg,
      rgba(225,29,42,0) 0px, rgba(225,29,42,0) 64px,
      rgba(225,29,42,.09) 64px, rgba(225,29,42,.09) 66px,
      rgba(225,29,42,0) 66px, rgba(225,29,42,0) 130px),
    radial-gradient(150% 130% at 50% 145%, rgba(237,28,36,.62) 0%, rgba(150,14,22,.30) 34%, rgba(18,6,7,1) 70%);
}
.footer > .container { position: relative; z-index: 1; }
.footer__top { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: start; padding-bottom: 60px; }
.footer__about { font-size: 1.05rem; color: #E6D6D7; max-width: 38ch; line-height: 1.55; margin-bottom: 26px; }
.footer__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.footer__col h4 { color: #fff; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; font-family: var(--font-body); font-weight: 600; margin-bottom: 16px; }
.footer__col a { display: block; padding: 7px 0; color: #C5A9AB; font-size: .96rem; transition: color .2s var(--ease); }
.footer__col a:hover { color: #fff; }
.footer__brand { padding: 18px 0 6px; }
.footer__brand-row { display: flex; align-items: center; gap: .12em; font-size: clamp(5rem, 20vw, 17rem); line-height: .82; }
.footer__brand-row .brand__word { font-family: var(--font-brand); font-weight: 800; color: #fff; letter-spacing: -.045em; }
.footer__brand-row .sq { width: .56em; height: .56em; border-radius: .05em; }
.footer__brand-sub {
  font-family: var(--font-brand); font-weight: 700; color: rgba(255,255,255,.55);
  text-transform: none; font-size: clamp(.85rem, 3.1vw, 2.55rem); letter-spacing: .12em;
  margin-top: .4em; white-space: nowrap;
}
.footer__bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 40px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; color: #A98B8D; flex-wrap: wrap; gap: 10px; }

/* ----------------------------- Reveal animation ----------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

/* ----------------------------- Responsive ----------------------------- */
@media (max-width: 1024px){
  .cards { grid-template-columns: repeat(2, 1fr); }
  .prow { grid-template-columns: repeat(3, 1fr); }
  .persp { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px){
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__visual { max-width: 460px; }
  .about__split { grid-template-columns: 1fr; gap: 36px; }
  .about__visual { position: static; aspect-ratio: 16/10; max-height: 340px; }
  .why { grid-template-columns: 1fr; gap: 0; }
  .mv { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 720px){
  .section { padding: 76px 0; }
  .nav .brand { font-size: 1.5rem; }
  .nav__links { display: none; }
  .nav__cta .btn { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav.open .nav__links {
    display: flex; position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--border); padding: 8px 24px 18px;
  }
  .nav.open .nav__links a { padding: 14px 0; border-radius: 0; border-bottom: 1px solid var(--gray-100); }
  .nav.open .nav__links a.active { background: none; color: var(--red); }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .cards { grid-template-columns: 1fr; }
  .prow { grid-template-columns: repeat(2, 1fr); }
  .persp { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
}

/* ----------------------------- Custom cursor (red square) ----------------------------- */
@media (hover: hover) and (pointer: fine){
  body { cursor: none; }
  a, button, input, select, textarea, label, [role="button"], .acc__head, .card, .pstep { cursor: none; }
  .cursor {
    position: fixed; left: 0; top: 0; width: 16px; height: 16px;
    background: var(--red); z-index: 9999; pointer-events: none;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px -1px rgba(225,29,42,.8);
    transition: width .18s var(--ease), height .18s var(--ease), background .18s var(--ease);
    will-change: left, top;
  }
  .cursor--active { width: 34px; height: 34px; background: rgba(225,29,42,.35); }
  .cursor--hidden { opacity: 0; }
}

@media (prefers-reduced-motion: reduce){
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ----------------------------- Intro / page transition ----------------------------- */
.intro {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--black);
  display: flex; align-items: center; justify-content: center;
  transform: translateY(0);
  transition: transform .8s cubic-bezier(.76,0,.24,1);
}
.intro.is-out { transform: translateY(-100%); }
.intro__logo { height: 60px; width: auto; opacity: 0; transform: translateY(12px) scale(.98); transition: opacity .5s ease, transform .5s ease; }
.intro.show-logo .intro__logo { opacity: 1; transform: none; }

/* ----------------------------- Solutions dropzone (physics) ----------------------------- */
.solzone { position: relative; padding-top: 60px; padding-bottom: clamp(320px, 42vh, 520px); }
.solzone .acc-wrap { position: relative; z-index: 1; background: transparent; }
.dropzone { position: absolute; inset: 0; width: 100%; height: auto; overflow: hidden; z-index: 0; }
.chip {
  position: absolute; top: 0; left: 0; will-change: transform;
  padding: 12px 22px; border-radius: 100px;
  font-family: var(--font-body); font-weight: 700;
  font-size: clamp(.85rem, 1.3vw, 1.25rem); white-space: nowrap;
  user-select: none; -webkit-user-select: none; cursor: grab;
  box-shadow: 0 8px 18px -10px rgba(11,11,12,.35);
}
.chip:active { cursor: grabbing; }
.chip--0 { background: var(--red); color: #fff; }
.chip--1 { background: var(--ink); color: #fff; }
.chip--2 { background: #fff; color: var(--ink); border: 1.5px solid var(--gray-200); }
.chip--3 { background: var(--red-soft); color: var(--red-dark); }
@media (max-width: 720px){ .solzone { padding-bottom: clamp(280px, 46vh, 420px); } }

/* dropzone static fallback (reduced motion / no physics) */
.dropzone--static { display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 14px; padding: 0 24px; }
.dropzone--static .chip { position: static; transform: none !important; cursor: default; }

/* ----------------------------- Legal / statement page ----------------------------- */
.legal { max-width: 820px; margin: 0 auto; }
.legal h2 { font-size: clamp(1.45rem, 2.3vw, 2rem); margin: 42px 0 14px; }
.legal h2:first-child { margin-top: 0; }
.legal p { color: var(--text-muted); margin-bottom: 16px; font-size: 1.05rem; line-height: 1.7; }
.legal strong { color: var(--text); font-weight: 700; }
.legal a { color: var(--red-dark); text-decoration: underline; }
.legal ul.bullets { margin: 0 0 18px; display: flex; flex-direction: column; gap: 11px; }
.legal ul.bullets li { display: flex; gap: 11px; align-items: flex-start; color: var(--text-muted); font-size: 1.02rem; line-height: 1.6; }
.legal ul.bullets li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); margin-top: 9px; flex-shrink: 0; }
.footer__bottom a { color: #C5A9AB; text-decoration: underline; }
.footer__bottom a:hover { color: #fff; }
