/* BBI Company. Tokens come from the live site's own :root. */
:root {
  --orange: #FF6735;
  --magenta: #E67BF7;
  --cyan: #9FF1FF;
  --bg: #050506;
  --bg-2: #0b0b0f;
  --bg-3: #101017;
  --line: rgba(255, 255, 255, .14);
  --txt: #f6f6f9;
  --muted: #a6a6b3;
  --grad: linear-gradient(115deg, #FF6735 0%, #E67BF7 50%, #9FF1FF 100%);
  --grad-btn: linear-gradient(120deg, #FF6735 0%, #E67BF7 100%);
  --radius: 22px;
  --radius-btn: 14px;
  --display: "PP Mori", "Helvetica Neue", Arial, sans-serif;
  --text: Inter, system-ui, sans-serif;
  --gut: clamp(20px, 3.9vw, 56px);
  --sec: clamp(88px, 11vw, 168px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --nav: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--txt); font: 400 17px/1.55 var(--text); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg { display: block; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--magenta); color: #000; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--display); }
h2 { font-weight: 600; font-size: clamp(40px, 6.4vw, 104px); line-height: 1; letter-spacing: -.035em; text-wrap: balance; }
.grad-text { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .1em; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 30; background: #fff; color: #000; padding: 8px 12px; border-radius: 8px; }

/* buttons */
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 28px; border-radius: var(--radius-btn); border: 0; font: 600 17px/1 var(--display); letter-spacing: -.005em; white-space: nowrap; transition: transform 140ms var(--ease), filter 140ms var(--ease), background-color 140ms var(--ease); }
.btn svg { width: 16px; height: 16px; transition: transform 140ms var(--ease); }
.btn--grad { background: var(--grad-btn); color: #000; }
.btn--line { background: none; color: var(--txt); box-shadow: inset 0 0 0 2px var(--txt); }
.btn:active { transform: translateY(1px) scale(.985); }
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); }
  .btn--grad:hover { filter: brightness(1.08); }
  .btn--line:hover { background: var(--txt); color: #000; }
  .btn:hover svg { transform: translate(2px, -2px); }
}

/* nav */
.nav { position: sticky; top: 0; z-index: 20; height: var(--nav); display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-inline: var(--gut); background: var(--bg); border-bottom: 1px solid var(--line); }
.nav__logo .logo-svg { height: 24px; width: auto; }
.nav__links { display: flex; gap: 32px; font: 600 16px/1 var(--display); }
.nav__links a { padding-block: 10px; background: linear-gradient(var(--txt), var(--txt)) left bottom / 0 2px no-repeat; transition: background-size 200ms var(--ease); }
.nav__end { display: flex; align-items: center; gap: 8px; }
.nav__cta { min-height: 48px; padding-inline: 22px; font-size: 16px; }
.lang { min-width: 44px; min-height: 44px; background: none; border: 0; font: 600 15px/1 var(--display); }
.burger { display: none; width: 44px; height: 44px; background: none; border: 0; padding: 0 10px; position: relative; }
.burger span { display: block; height: 2px; background: var(--txt); margin-block: 6px; transition: transform 200ms var(--ease); }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
@media (hover: hover) { .nav__links a:hover { background-size: 100% 2px; } }

/* hero */
.hero { min-height: calc(100svh - var(--nav)); display: flex; flex-direction: column; gap: clamp(24px, 3vw, 44px); padding: clamp(28px, 3.4vw, 56px) var(--gut) var(--gut); }
.hero h1 { font-weight: 600; font-size: clamp(50px, 8.15vw, 164px); line-height: 1; letter-spacing: -.045em; }
.hero h1 em { display: block; padding-bottom: .14em; margin-bottom: -.14em; }
.hero__pitch { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px 48px; }
.hero__pitch p { flex: 1 1 28em; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.4; max-width: 40em; }
.hero__proof { flex: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; min-height: 260px; color: #000; }
.hero__proof a { position: relative; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; padding: clamp(16px, 1.8vw, 28px); border-radius: var(--radius); overflow: hidden; transition: transform 180ms var(--ease); }
.hero__proof li:nth-child(1) a { background: var(--orange); }
.hero__proof li:nth-child(2) a { background: var(--magenta); }
.hero__proof li:nth-child(3) a { background: var(--cyan); }
.hero__proof img { position: absolute; top: clamp(16px, 1.8vw, 28px); left: clamp(16px, 1.8vw, 28px); width: 40px; height: 40px; object-fit: contain; background: #fff; border-radius: 10px; padding: 5px; }
.hero__proof .from { position: absolute; top: clamp(16px, 1.8vw, 28px); right: clamp(16px, 1.8vw, 28px); font: 600 clamp(20px, 2vw, 32px)/1.2 var(--display); letter-spacing: -.02em; text-decoration: line-through; text-decoration-thickness: 3px; }
.hero__proof b { font: 600 clamp(44px, 7.2vw, 136px)/.95 var(--display); letter-spacing: -.05em; }
.hero__proof small { font: 600 clamp(15px, 1.3vw, 20px)/1.25 var(--display); margin-top: 6px; }
@media (hover: hover) { .hero__proof a:hover { transform: translateY(-4px); } }

/* who */
.who { padding: var(--sec) var(--gut); border-top: 1px solid var(--line); }
.label { font: 600 clamp(17px, 1.4vw, 20px)/1.3 var(--display); letter-spacing: 0; color: var(--muted); margin-bottom: 28px; }
.who__list { font: 600 clamp(34px, 5.6vw, 92px)/1.08 var(--display); letter-spacing: -.035em; }
.who__list span:nth-child(3n + 1) { color: var(--orange); }
.who__list span:nth-child(3n + 2) { color: var(--txt); }
.who__list span:nth-child(3n) { color: var(--magenta); }
.who__list span:not(:last-child)::after { content: "\00a0/"; color: rgba(255, 255, 255, .28); }

/* section heads */
.head { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 32px clamp(32px, 5vw, 80px); align-items: end; margin-bottom: clamp(40px, 5vw, 80px); }
.head p { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.4; }

/* services: a row fills with a brand colour under the pointer */
.services { padding: var(--sec) var(--gut); background: var(--bg-2); overflow-x: clip; }
.svc li { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 12px clamp(32px, 5vw, 80px); align-items: center; padding-block: clamp(20px, 2vw, 30px); border-top: 1px solid var(--line); transition: color 180ms var(--ease); }
.svc li:last-child { border-bottom: 1px solid var(--line); }
.svc li::before { content: ""; position: absolute; inset: 0 calc(var(--gut) * -1); z-index: -1; background: var(--c, var(--orange)); transform: scaleY(0); transform-origin: bottom; transition: transform 260ms var(--ease); } /* scale, not clip-path: Safari leaves clipped pseudo-elements visible past the row edges */
.svc li:nth-child(3n + 2) { --c: var(--magenta); }
.svc li:nth-child(3n) { --c: var(--cyan); }
.svc h3 { font-weight: 600; font-size: clamp(28px, 4vw, 64px); line-height: 1.05; letter-spacing: -.03em; }
.svc p { font-size: 17px; line-height: 1.45; }
@media (hover: hover) {
  .svc li:hover { color: #000; }
  .svc li:hover::before { transform: none; }
}

/* cases: three flat colour posters taken from the brand gradient */
.cases { padding-top: var(--sec); }
.head--cases { padding-inline: var(--gut); }
.case { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: center; padding: clamp(48px, 6vw, 96px) var(--gut); color: #000; scroll-margin-top: var(--nav); }
.case--orange { background: var(--orange); }
.case--magenta { background: var(--magenta); }
.case--cyan { background: var(--cyan); }
.case__who { display: flex; align-items: center; gap: 12px; font: 600 clamp(22px, 2.2vw, 34px)/1 var(--display); letter-spacing: -.02em; }
.case__who img { width: 32px; height: 32px; object-fit: contain; background: #fff; border-radius: 8px; padding: 4px; }
.case__num { font: 600 clamp(96px, 21vw, 340px)/.9 var(--display); letter-spacing: -.055em; margin: clamp(20px, 2.5vw, 40px) 0 8px -.03em; font-variant-numeric: tabular-nums; transition: opacity 120ms linear; }
.case__num.is-swap { opacity: .15; }
.case__unit { font: 600 clamp(24px, 2.8vw, 44px)/1.1 var(--display); letter-spacing: -.02em; margin-bottom: 20px; }
.case__note { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.45; max-width: 32em; font-weight: 500; }
.case__phone { justify-self: end; width: min(100%, 420px); display: grid; gap: 14px; }
.phone { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 32px; border: 8px solid #000; background: #000; }
.phone img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phone img[hidden] { display: none; }
.ba { display: grid; grid-template-columns: 1fr 1fr; background: #000; padding: 4px; border-radius: var(--radius-btn); }
.ba button { min-height: 48px; border: 0; border-radius: 10px; background: none; color: #fff; font: 600 16px/1 var(--display); transition: background-color 140ms var(--ease), color 140ms var(--ease); }
.ba button[aria-pressed="true"] { background: #fff; color: #000; }
.fine { padding: 20px var(--gut) 0; color: var(--muted); font-size: 15px; }

/* numbers: the one full gradient on the page */
.numbers { margin-top: var(--sec); padding: var(--sec) var(--gut); background: var(--grad); color: #000; }
.numbers h2 { max-width: 13em; margin-bottom: clamp(48px, 6vw, 96px); }
.numbers dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 4vw, 64px) clamp(16px, 3vw, 48px); }
.numbers div { border-top: 3px solid #000; padding-top: 16px; }
.numbers dt { font: 600 clamp(52px, 8.2vw, 136px)/1 var(--display); letter-spacing: -.045em; }
.numbers dd { font-size: clamp(16px, 1.4vw, 20px); font-weight: 500; line-height: 1.3; margin-top: 6px; }

/* film */
.film { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 96px); align-items: center; padding: var(--sec) var(--gut); }
.film__text > p { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.45; margin-top: 28px; max-width: 30em; }
.film__text .film__ai { color: var(--muted); font-size: 17px; margin: 16px 0 32px; }
.reel { position: relative; justify-self: end; width: min(100%, 460px); aspect-ratio: 9 / 16; max-height: 820px; padding: 0; border: 0; overflow: hidden; border-radius: var(--radius); background: #000; }
.reel img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.reel__play { position: absolute; right: 20px; bottom: 20px; width: 88px; height: 88px; display: grid; place-items: center; border-radius: 50%; background: var(--grad-btn); color: #000; transition: transform 180ms var(--ease); }
.reel__play svg { width: 30px; height: 30px; margin-left: 4px; }
@media (hover: hover) { .reel:hover img { transform: scale(1.03); } .reel:hover .reel__play { transform: scale(1.08); } }
.film iframe { justify-self: end; width: min(100%, 460px); aspect-ratio: 9 / 16; border: 0; border-radius: var(--radius); background: #000; }

/* process: the path from zero to scale drawn as a rising chart */
.process { padding: 0 var(--gut) var(--sec); }
.stairs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; align-items: end; color: #000; }
.stairs li { padding: clamp(16px, 1.6vw, 24px); border-radius: var(--radius) var(--radius) 0 0; background: var(--grad); background-size: 500% 100%; }
.stairs li:nth-child(1) { min-height: 300px; background-position: 0% 0; }
.stairs li:nth-child(2) { min-height: 370px; background-position: 25% 0; }
.stairs li:nth-child(3) { min-height: 440px; background-position: 50% 0; }
.stairs li:nth-child(4) { min-height: 510px; background-position: 75% 0; }
.stairs li:nth-child(5) { min-height: 580px; background-position: 100% 0; }
.stairs h3 { font-weight: 600; font-size: clamp(22px, 2.5vw, 40px); line-height: 1.05; letter-spacing: -.025em; margin-bottom: 10px; }
.stairs p { font-size: 16px; line-height: 1.4; font-weight: 500; }
.js-rise .stairs li { clip-path: inset(100% 0 0 0); }
.js-rise .stairs li.is-in { clip-path: inset(0); transition: clip-path 800ms var(--ease); }
.js-rise .stairs li.is-in:nth-child(2) { transition-delay: 90ms; }
.js-rise .stairs li.is-in:nth-child(3) { transition-delay: 180ms; }
.js-rise .stairs li.is-in:nth-child(4) { transition-delay: 270ms; }
.js-rise .stairs li.is-in:nth-child(5) { transition-delay: 360ms; }

/* quotes */
.quotes { padding: var(--sec) var(--gut); background: var(--bg-2); }
.quotes h2 { max-width: 12em; margin-bottom: clamp(40px, 5vw, 80px); }
.quotes__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.quote { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; padding: clamp(20px, 2vw, 32px); border-radius: var(--radius); background: var(--bg-3); }
.quote blockquote { font-size: 18px; line-height: 1.45; }
.quote--big { grid-column: span 2; grid-row: span 2; background: var(--orange); color: #000; }
.quote--big blockquote { font: 600 clamp(30px, 3.6vw, 60px)/1.08 var(--display); letter-spacing: -.03em; }
.quote figcaption { display: flex; align-items: center; gap: 12px; font-size: 15px; line-height: 1.35; }
.quote figcaption img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.quote figcaption b { display: block; font: 600 16px/1.3 var(--display); }

/* faq */
.faq { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px clamp(32px, 5vw, 80px); padding: var(--sec) var(--gut); }
.faq h2 { font-size: clamp(40px, 5vw, 80px); }
.faq__list > div { padding-block: 28px; border-top: 1px solid var(--line); }
.faq__list > div:first-child { border-top: 0; padding-top: 0; }
.faq__list h3 { font-weight: 600; font-size: clamp(22px, 2vw, 30px); line-height: 1.15; letter-spacing: -.02em; margin-bottom: 10px; }

/* contact */
.contact { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 48px clamp(32px, 5vw, 80px); padding: var(--sec) var(--gut); background: var(--bg-2); }
.contact h2 { font-weight: 600; font-size: clamp(64px, 11vw, 184px); line-height: .92; letter-spacing: -.05em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .08em; }
.contact__text > p { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.45; margin-top: 24px; max-width: 30em; }
.contact ul { margin-top: 32px; }
.contact li a { display: flex; align-items: center; gap: 14px; min-height: 56px; border-top: 1px solid var(--line); font: 600 17px/1.2 var(--display); overflow-wrap: anywhere; }
.contact li img { width: 24px; height: 24px; object-fit: contain; }
.contact form { align-self: start; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-content: start; padding: clamp(20px, 2.5vw, 40px); border-radius: var(--radius); background: var(--bg-3); }
.contact label { display: grid; gap: 8px; font: 600 15px/1.2 var(--display); }
.contact input, .contact textarea { width: 100%; min-height: 56px; padding: 14px 16px; border-radius: var(--radius-btn); border: 2px solid var(--line); background: var(--bg); font: 400 17px/1.4 var(--text); transition: border-color 140ms var(--ease); }
.contact textarea { resize: vertical; }
.contact input:focus, .contact textarea:focus { outline: 0; border-color: var(--magenta); }
.wide { grid-column: 1 / -1; }
.form-status { font-size: 15px; line-height: 1.4; color: var(--muted); }
.form-status:empty { display: none; }
.form-status a { color: var(--txt); text-decoration: underline; text-underline-offset: 3px; }

/* footer: the logo at full width */
.footer { padding: clamp(48px, 6vw, 96px) var(--gut) 28px; }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; margin-bottom: clamp(40px, 6vw, 96px); }
.footer__lede { font: 600 clamp(18px, 1.6vw, 24px)/1.3 var(--display); max-width: 24em; }
.footer__top nav { display: grid; grid-template-columns: repeat(2, auto); gap: 0 48px; align-content: start; font: 600 16px/1 var(--display); }
.footer__top nav a { padding-block: 14px; }
.footer__logo { display: block; color: var(--txt); }
.footer__logo .logo-svg { width: 100%; height: auto; }
.footer__legal { margin-top: 24px; font-size: 14px; color: var(--muted); }

@media (max-width: 1023px) {
  .head { grid-template-columns: 1fr; }
  .svc li { grid-template-columns: 1fr; }
  .case { grid-template-columns: minmax(0, 1fr) minmax(0, 300px); }
  .film { grid-template-columns: minmax(0, 1fr) minmax(0, 300px); }
  .stairs li:nth-child(1) { min-height: 240px; }
  .stairs li:nth-child(2) { min-height: 300px; }
  .stairs li:nth-child(3) { min-height: 360px; }
  .stairs li:nth-child(4) { min-height: 420px; }
  .stairs li:nth-child(5) { min-height: 480px; }
  .faq, .contact { grid-template-columns: 1fr; }
  .numbers dt { font-size: 7vw; }
  .case__num { font-size: 16vw; }
  .hero { min-height: 0; }
  .hero__proof { flex: none; min-height: 300px; }
}
@media (max-width: 820px) {
  :root { --nav: 64px; }
  .burger { display: block; }
  .nav__cta { display: none; }
  .nav__links { position: absolute; top: var(--nav); left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px var(--gut) 24px; background: var(--bg); border-bottom: 1px solid var(--line); font-size: 24px; display: none; }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding-block: 16px; }
  .stairs { grid-template-columns: 1fr; gap: 6px; }
  .stairs li { min-height: 0 !important; border-radius: 0 var(--radius) var(--radius) 0; background-size: 100% 500%; background-image: linear-gradient(180deg, #FF6735 0%, #E67BF7 50%, #9FF1FF 100%); }
  .stairs li:nth-child(1) { width: 72%; background-position: 0 0; }
  .stairs li:nth-child(2) { width: 79%; background-position: 0 25%; }
  .stairs li:nth-child(3) { width: 86%; background-position: 0 50%; }
  .stairs li:nth-child(4) { width: 93%; background-position: 0 75%; }
  .stairs li:nth-child(5) { width: 100%; background-position: 0 100%; }
  .js-rise .stairs li { clip-path: inset(0 100% 0 0); }
  .quotes__grid { grid-template-columns: 1fr; }
  .quote--big { grid-column: auto; grid-row: auto; }
}
@media (max-width: 639px) {
  .hero__proof { grid-template-columns: 1fr; min-height: 0; }
  .hero__proof { min-height: 0; }
  .hero__proof a { min-height: 168px; }
  .hero__proof img { width: 32px; height: 32px; }
  .hero__proof b { font-size: 56px; }
  .btns .btn { flex: 1 1 100%; }
  .case { grid-template-columns: 1fr; }
  .case__phone { justify-self: stretch; width: 100%; }
  .case__num { font-size: 25vw; }
  .film { grid-template-columns: 1fr; }
  .reel, .film iframe { justify-self: stretch; width: 100%; max-height: 72svh; }
  .numbers dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .numbers dt { font-size: 10vw; }
  .contact form { grid-template-columns: 1fr; }
}

/* the Spanish headline is longer: keep it on two lines */
html[lang="es"] .hero h1 { font-size: clamp(44px, 6.75vw, 136px); }

@media (min-width: 640px) { .who__list span { white-space: nowrap; } }
