/* PinkBricks site. Built from the Canva design "pinkbricks.dev", with the menu and sections from the earlier redesign. */
/* Replica of the Canva design "pinkbricks.dev" (DAHAAGqA33s), 1440px artboard.
   Canva fonts: Impact LT Std (display), Poppins (UI/body), a light serif (here Fraunces 300). */
@font-face { font-family: "Anton"; src: url("../fonts/anton-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-300-600.woff2") format("woff2"); font-weight: 300 600; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --navy: #0d1326;
  --navy-2: #1a233f;
  --pink: #de1e87;
  --plum: #53264b;
  --green: #19c309;
  --green-light: #6bdc3e;
  --yellow: #fecb35;
  --gold-line: #c9a227;
  --card-grey: #e6e6e6;
  --shadow-slate: #2a3552;
  --display: Impact, "Impact LT Std", "Anton", "Haettenschweiler", sans-serif;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Poppins", "Segoe UI", sans-serif;
  --pink-300: #ff5fae;
  --rule-dark: rgba(255,255,255,.28);
  --ease-out: cubic-bezier(.16,1,.3,1);
  --header-h: 84px;
  --gutter: clamp(20px, 5.5vw, 80px);
  --maxw: 1360px;
  --radius-lg: 24px;
  --ink-muted-dark: #a9b1cc;
  /* 1px of the 1440 artboard, never smaller than 0.55px on phones */
  --u: clamp(0.55px, calc(100vw / 1440), 1.15px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--navy); color: #fff; font-family: var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--yellow); color: var(--navy); padding: 10px 16px; z-index: 10; }
.skip:focus { left: 16px; top: 16px; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }

.display { font-family: var(--display); font-weight: 400; text-transform: uppercase; line-height: 0.98; letter-spacing: 0; }
.serif { font-family: var(--serif); font-weight: 300; font-variation-settings: "SOFT" 50, "WONK" 0; }
.stacked { text-shadow: calc(7 * var(--u)) calc(7 * var(--u)) 0 var(--shadow-slate); }

/* ---------- Header + hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; padding: var(--header-h) 0 clamp(16px, 3vh, 36px); background: var(--navy); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(8px, 2.4vh, 28px); }
/* Header + menu */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-inline: var(--gutter); transition: background-color .3s, box-shadow .3s; }
.site-header.is-scrolled { background: var(--navy); box-shadow: 0 1px 0 var(--rule-dark); }
.brand { flex: none; border-radius: 6px; }
.brand img { width: clamp(136px, 13vw, 170px); height: auto; }
.nav { display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 10px; background: var(--navy); border-radius: 999px; }
.nav__list { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav__list a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; color: #fff; text-decoration: none; font-size: .9375rem; font-weight: 500; transition: background-color .2s, color .2s; }
.nav__list a:hover { background: rgba(255,255,255,.1); }
.nav__list a[aria-current="true"] { color: var(--pink-300); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 26px; border: 2px solid transparent; border-radius: 12px; font-family: var(--sans); font-weight: 600; font-size: 1rem; letter-spacing: .01em; text-decoration: none; cursor: pointer; transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), background-color .2s, color .2s; }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: .9375rem; }
.btn--yellow { background: var(--yellow); color: var(--navy); }
.btn--yellow:hover { background: #fff; }
.nav .btn--sm { border-radius: 999px; }
.nav__toggle { display: none; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px 0 18px; border: 0; border-radius: 999px; background: transparent; color: #fff; font: 600 .9375rem/1 var(--sans); cursor: pointer; }
.nav__toggle-icon { display: grid; gap: 5px; width: 20px; }
.nav__toggle-icon span { height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease-out); }
.nav__toggle[aria-expanded="true"] .nav__toggle-icon span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-icon span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.menu { position: fixed; inset: 0; z-index: 40; display: flex; align-items: flex-end; padding: calc(var(--header-h) + 24px) var(--gutter) 48px; background: var(--navy); }
.menu[hidden] { display: none; }
.menu__list { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.menu__list a { font-family: var(--display); text-transform: uppercase; text-decoration: none; font-size: clamp(2.75rem, 13vw, 4.5rem); line-height: 1.05; color: #fff; }
.menu__list a:hover, .menu__list li:last-child a { color: var(--pink-300); }
body.menu-open { overflow: hidden; }
@media (max-width: 960px) { .nav__list { display: none; } .nav__toggle { display: inline-flex; } .nav { padding: 4px; gap: 2px; } }
@media (max-width: 520px) {
  .brand img { width: 118px; }
  .nav .btn--sm { padding: 0 14px; font-size: .875rem; white-space: nowrap; }
  .nav__toggle { padding: 0 14px; }
  .nav__toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (max-width: 360px) { .brand img { width: 92px; } .nav .btn--sm { padding: 0 10px; font-size: .8125rem; } .nav__toggle { padding: 0 10px; } .site-header { gap: 8px; } }

.hero h1 { color: var(--pink); text-align: center; font-size: clamp(3.4rem, min(18vw, 19vh), 11.5rem); line-height: .98; letter-spacing: .004em; }
.hero h1 span { display: block; }
.hero h1 .l3 { word-spacing: 0.08em; }

/* ---------- Gap + asset classes (one long gradient) ---------- */
.gradient {
  background: linear-gradient(180deg,
    var(--navy) 0, var(--navy-2) 10.6%, #6f3a58 21.8%, #a12d6d 27.4%, var(--pink) 33%,
    #d82386 38.6%, #c72d81 49.8%, #b8387e 61%, #ab427c 70%, #823565 78%,
    var(--plum) 86%, #2d1b37 94%, var(--navy) 100%);

  padding: calc(96 * var(--u)) 0 calc(112 * var(--u));
  text-align: center;
}
/* Crane: starts once the headline words have landed */
.crane { display: block; flex: none; height: clamp(96px, 24vh, 270px); width: auto; aspect-ratio: 260 / 240; margin: 0 auto; color: var(--pink); }
.crane__brick { fill: #fff; stroke: var(--navy); stroke-width: 2.5; }
.crane__stud { fill: #fff; stroke: var(--navy); stroke-width: 2; }
.crane__cable { transform-box: fill-box; transform-origin: top; }
@media (prefers-reduced-motion: no-preference) {
  .crane__lines path { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .crane__load { transform: translateY(-96px); }
  .crane__cable { transform: scaleY(.2); }
  .crane:not(.in) .crane__cable, .crane:not(.in) .crane__load { visibility: hidden; }
  .crane.in .crane__lines path { animation: draw 1.3s var(--ease-out) forwards; }
  .crane.in .crane__lines path:nth-child(2) { animation-delay: .15s; }
  .crane.in .crane__lines path:nth-child(3) { animation-delay: .3s; }
  .crane.in .crane__lines path:nth-child(4) { animation-delay: .45s; }
  .crane.in .crane__lines path:nth-child(5) { animation-delay: .55s; }
  .crane.in .crane__lines path:nth-child(6) { animation-delay: .65s; }
  .crane.in .crane__lines path:nth-child(7) { animation-delay: .75s; }
  .crane.in .crane__lines path:nth-child(8) { animation-delay: .85s; }
  .crane.in .crane__lines path:nth-child(9) { animation-delay: .5s; }
  .crane.in .crane__cable { animation: cable 1.6s var(--ease-out) 1.5s both; }
  .crane.in .crane__load { animation: lower 1.6s var(--ease-out) 1.5s both; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes lower { from { transform: translateY(-96px); } to { transform: translateY(0); } }
@keyframes cable { from { transform: scaleY(.2); } to { transform: scaleY(1); } }
.gap-lead { font-size: calc(34 * var(--u)); line-height: 1.22; margin: 0 auto; max-width: calc(860 * var(--u)); text-shadow: 0 2px 6px rgba(0,0,0,.35); }
.chevron { display: block; width: calc(40 * var(--u)); margin: calc(120 * var(--u)) auto 0; color: var(--yellow); animation: nudge 2.2s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(6px); } }

.h2 { font-size: calc(66 * var(--u)); line-height: calc(62 * var(--u)); scale: .91 1; }
h2#asset-classes { color: var(--navy); margin-top: calc(150 * var(--u)); }
.asset-lead { color: #1a1430; font-size: calc(34 * var(--u)); line-height: 1.24; margin: calc(72 * var(--u)) auto 0; max-width: calc(860 * var(--u)); text-shadow: 0 1px 4px rgba(255,255,255,.18); }

.cards { display: grid; grid-template-columns: repeat(3, calc(393 * var(--u))); justify-content: center; column-gap: calc(22 * var(--u)); row-gap: calc(34 * var(--u)); margin-top: calc(86 * var(--u)); }
.card { position: relative; height: calc(428 * var(--u)); border-radius: calc(42 * var(--u)); overflow: hidden; background: var(--card-grey); border: calc(3 * var(--u)) solid #fff; border-top-width: calc(2 * var(--u)); box-shadow: 0 10px 30px rgba(20,8,30,.18); transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s; }
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(20,8,30,.28); }
.card img { width: 100%; height: calc(238 * var(--u)); object-fit: cover; }
.card h3 { position: relative; margin-top: calc(-2 * var(--u)); background: rgba(255,255,255,.93); color: var(--navy); font-family: var(--display); font-weight: 400; font-size: calc(30 * var(--u)); line-height: calc(54 * var(--u)); height: calc(60 * var(--u)); border-radius: 0 0 calc(34 * var(--u)) calc(34 * var(--u)); box-shadow: 0 calc(4 * var(--u)) 0 rgba(255,255,255,.55); }
.card p { color: #111; font-size: calc(19 * var(--u)); line-height: 1.24; padding: 0 calc(46 * var(--u)); height: calc(124 * var(--u)); display: flex; align-items: center; justify-content: center; }

/* ---------- Pipeline ---------- */
.pipeline { background: var(--navy); text-align: center; padding: calc(74 * var(--u)) 0 clamp(20px, 2.6vw, 40px); }
.pipeline .h2 { font-size: calc(68 * var(--u)); }
.pipe-lead { font-size: calc(34 * var(--u)); line-height: 1.18; margin: calc(98 * var(--u)) auto 0; max-width: calc(1140 * var(--u)); }


/* Yellow pipeline stripe */
.stripe { background: var(--yellow); color: var(--navy); overflow: hidden; padding: 0; }
/* Yellow strip: every city is one column, photo on a navy band above its name on yellow.
   The photo runs from brick to brick (name + the space either side of it, less a small gap). One clock in site.js
   moves the whole row, so photo, name and brick always move together.
   The navy band and the two lines are one static background on the strip, so there are no seams while it moves.
   --g = yellow gap, --p = space between a line and the names; the names sit exactly midway between the lines. */
.marquee {
  --g: .1em; --p: .07em; --t: 0em;
  --row: calc(var(--p) * 2 + 1.12em + 4px);                    /* both lines + the names between them */
  --rest: calc(var(--g) * 2 + var(--row));                      /* yellow gaps above and below + the row */
  overflow: hidden; font-size: clamp(3.6rem, 11vw, 10rem); line-height: 1.12; padding-bottom: var(--g);
  background:
    linear-gradient(var(--navy), var(--navy)) 0 0 / 100% calc(100% - var(--rest)) no-repeat,                          /* photo band */
    linear-gradient(var(--navy), var(--navy)) 0 calc(100% - var(--row) - var(--g) + 2px) / 100% 2px no-repeat,                     /* line above the names */
    linear-gradient(var(--navy), var(--navy)) 0 calc(100% - var(--g)) / 100% 2px no-repeat,                                      /* line below the names */
    var(--yellow);
}
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__group { display: flex; flex: none; margin: 0; padding: 0; list-style: none; }
.marquee__group li { display: flex; align-items: stretch; font-family: var(--display); text-transform: uppercase; white-space: nowrap; }
.city { display: flex; flex-direction: column; }
.city__pic { display: block; margin-bottom: var(--g); background: var(--navy); padding: clamp(16px, 2.4vw, 36px) .1em; }
.city img { display: block; width: 100%; height: clamp(150px, 24vw, 380px); object-fit: cover; border-radius: calc(30 * var(--u)); }
.city__name { display: block; padding: calc(var(--p) + 2px + var(--t)) .42em calc(var(--p) + 2px - var(--t)); }
/* the brick between two cities, centred between the two lines */
.marquee__group li::after { content: ""; flex: none; width: .36em; background: url("../logo/pinkbricks-brick-navy.svg") center calc(100% - var(--p) - 2px - .38em) / .36em .36em no-repeat; }
/* where each photo is cropped when the frame is wider or narrower than the picture */
.city-bilbao img { object-position: 50% 35%; }
.city-sevilla img { object-position: 40% 45%; }
.city-valencia img { object-position: 45% 50%; }
.city-barcelona img { object-position: 50% 40%; }
@media (prefers-reduced-motion: reduce) {
  .marquee__track { width: auto; }
  .marquee__group { flex-wrap: wrap; justify-content: center; padding: 8px var(--gutter); }
  .marquee__group[aria-hidden="true"] { display: none; }
  .marquee { font-size: clamp(2.6rem, 7vw, 5rem); background: var(--yellow); }
}

/* ---------- Approach ---------- */

/* Approach section */
.approach { background: var(--navy); color: #fff; padding-block: clamp(88px, 11vw, 160px); }
.container { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.approach .display { font-family: var(--display); font-weight: 400; text-transform: uppercase; line-height: .9; letter-spacing: .005em; text-wrap: balance; font-size: clamp(2.4rem, 10.6vw, 6.75rem); max-width: 12em; margin-bottom: 28px; }
.nowrap { white-space: nowrap; }
.approach .lead { font-family: var(--serif); font-weight: 350; font-size: clamp(1.25rem, 1.9vw, 1.625rem); line-height: 1.35; max-width: 36ch; text-wrap: pretty; color: var(--ink-muted-dark); margin-bottom: clamp(48px, 6vw, 80px); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.step { display: flex; flex-direction: column; gap: 14px; padding: 28px 26px 32px; border: 1px solid var(--rule-dark); border-radius: var(--radius-lg); transition: border-color .3s, background-color .3s; }
.step:hover { border-color: var(--pink-300); background: rgba(255,95,174,.05); }
.step__num { font-family: var(--display); font-size: 2.75rem; line-height: 1; color: var(--pink-300); }
.step__title { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(1.6rem, 2vw, 1.9rem); line-height: 1; letter-spacing: .01em; margin: auto 0 0; padding-top: 28px; text-wrap: balance; }
.step p { font-size: 1rem; line-height: 1.6; color: var(--ink-muted-dark); text-wrap: pretty; }
.pillars-text { margin-top: 16px; padding: clamp(28px, 3.4vw, 44px) 24px; border: 1px solid var(--rule-dark); border-radius: var(--radius-lg); display: flex; flex-wrap: wrap; justify-content: center; gap: 0 .45em; font-family: var(--display); text-transform: uppercase; text-align: center; font-size: clamp(1.6rem, 3vw, 2.6rem); line-height: 1.05; }
.pillars-text span:nth-child(2) { color: var(--yellow); }
@media (max-width: 1100px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } .step__title { padding-top: 12px; } }
@media (max-width: 380px) { .approach .display { font-size: 2.1rem; } }

/* ---------- Barcelona + about ---------- */
.barcelona { width: 100%; height: calc(920 * var(--u)); object-fit: cover; object-position: center 40%; }
.about { background: #fff; color: var(--navy); display: grid; grid-template-columns: calc(620 * var(--u)) 1fr; padding: calc(84 * var(--u)) calc(88 * var(--u)) calc(84 * var(--u)) calc(82 * var(--u)); }
.about .logo-navy { width: calc(304 * var(--u)); }
.about h2 { font-family: var(--display); font-weight: 400; font-size: calc(64 * var(--u)); scale: .93 1; transform-origin: left; line-height: calc(68 * var(--u)); margin-top: calc(32 * var(--u)); }
.about-copy { padding-top: calc(222 * var(--u)); color: #111; }
.about-copy h3 { font-family: var(--serif); font-weight: 300; font-size: calc(34 * var(--u)); line-height: 1.02; color: var(--navy); }
.about-copy p { font-size: calc(18.5 * var(--u)); line-height: 1.5; margin-top: calc(28 * var(--u)); }
.about-copy p + p { margin-top: calc(12 * var(--u)); }
.about-copy p:last-child { margin-top: calc(22 * var(--u)); }

.strategy { background: var(--green); color: #111; text-align: center; padding: calc(84 * var(--u)) 0 calc(88 * var(--u)); }
.strategy .kicker { font-size: calc(28 * var(--u)); }
.strategy p.serif { font-size: calc(37 * var(--u)); line-height: 1; margin: calc(18 * var(--u)) auto 0; max-width: calc(900 * var(--u)); }

.barriers { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(12px, 3vh, 36px); padding: clamp(40px, 8vh, 96px) 0; }
.barriers > img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(.95) brightness(1.05); }
.barriers .brick { position: relative; width: clamp(64px, 11vh, 120px); height: auto; }
/* same headline as the hero: size, line spacing, shadow and slow word-by-word rise */
.barriers h2 { position: relative; color: var(--pink); text-align: center; font-size: clamp(3.4rem, min(18vw, 19vh), 11.5rem); line-height: .98; letter-spacing: .004em; }
.barriers h2 > span { display: block; }
/* typewriter: letters are laid out from the start (so nothing jumps) and revealed one by one */
.barriers h2 .tw { visibility: hidden; }
.barriers h2 .tw.on { visibility: visible; }
.barriers h2 .caret { display: inline-block; width: .06em; height: .8em; margin-left: .04em; background: var(--pink); vertical-align: baseline; animation: caret .6s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .barriers h2 .tw { visibility: visible; } .barriers h2 .caret { display: none; } }

/* ---------- Footer ---------- */
.footer { background: var(--navy); text-align: center; padding: calc(62 * var(--u)) 0 calc(60 * var(--u)); }
.footer .logo { width: calc(364 * var(--u)); margin: 0 auto; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: calc(28 * var(--u)); margin-top: calc(24 * var(--u)); }
.footer-nav a { color: #fff; text-decoration: none; font-size: calc(20 * var(--u)); line-height: 1.4; transition: color .2s; }
.footer-nav a:first-child { margin-right: calc(12 * var(--u)); }
.footer-nav a:hover { color: var(--yellow); }
.cta { display: inline-block; margin-top: calc(28 * var(--u)); padding: calc(14 * var(--u)) calc(38 * var(--u)); border: 1px solid #2e3446; border-radius: calc(20 * var(--u)); color: var(--yellow); text-decoration: none; font-weight: 600; font-size: calc(21 * var(--u)); letter-spacing: 0.16em; transition: background .25s, color .25s; }
.cta:hover { background: var(--yellow); color: var(--navy); }
.mail { display: grid; place-items: center; width: calc(50 * var(--u)); height: calc(50 * var(--u)); margin: calc(10 * var(--u)) auto 0; border-radius: 50%; background: var(--yellow); transition: transform .25s; }
.mail:hover { transform: rotate(-8deg) scale(1.08); }
.mail svg { width: 64%; }

/* ---------- Entrance animation ----------
   Follows the intro on viraltribe.co.uk, but the logo's own cube is what grows:
   0-0.5 s   logo (pink) fades in; a copy of its cube, same size and spot, sits on top of it
   0.7-1.0 s the wordmark fades away, leaving the cube
   0.7-1.2 s the cube glides to the centre and grows to 4x
   1.2-2.0 s it keeps growing, accelerating, until the screen is pink (no pause)
   2.0-2.4 s the overlay lifts and the page shows */
.intro-overlay { display: none; }
html.intro .intro-overlay { --lw: clamp(240px, 26vw, 440px); display: block; position: fixed; inset: 0; z-index: 100; background: var(--navy); overflow: hidden; animation: introOverlay 2.4s linear forwards; }
html.intro body { overflow: hidden; }
html.intro.intro-done body { overflow: auto; }
.intro-logo { position: absolute; left: 50%; top: 50%; width: var(--lw); height: auto; translate: -50% -50%; opacity: 0; animation: introLogo 1s linear forwards; }
/* the cube sits over the logo's own cube: 789 of the logo's 4713 units wide, centre 0.4163 logo-widths left of centre */
.intro-brick { position: absolute; left: 50%; top: 50%; width: calc(var(--lw) * .1674); height: auto; margin: calc(var(--lw) * -.0837) 0 0 calc(var(--lw) * -.0837); opacity: 0; transform: translate(calc(var(--lw) * -.4163), calc(var(--lw) * .0046)); will-change: transform; animation: introBrick 2s linear forwards; }
@keyframes introLogo { 0% { opacity: 0; animation-timing-function: cubic-bezier(.33,0,.67,1); } 50%, 70% { opacity: 1; animation-timing-function: cubic-bezier(.33,0,.67,1); } 100% { opacity: 0; } }
@keyframes introBrick {
  0%, 24.9% { opacity: 0; transform: translate(calc(var(--lw) * -.4163), calc(var(--lw) * .0046)) scale(1); }
  25%, 35% { opacity: 1; transform: translate(calc(var(--lw) * -.4163), calc(var(--lw) * .0046)) scale(1); animation-timing-function: cubic-bezier(.45,0,.3,1); }
  60% { opacity: 1; transform: translate(0, 0) scale(4); animation-timing-function: cubic-bezier(.9,0,.98,1); }
  100% { opacity: 1; transform: translate(var(--fx), var(--fy)) scale(var(--S)); }
}
@keyframes introOverlay { 0%, 83.3% { opacity: 1; visibility: visible; } 99.9% { opacity: 0; visibility: visible; } 100% { opacity: 0; visibility: hidden; } }
/* the headline waits for the overlay to lift */
html.intro { --intro: 1.95s; }
.hero h1 span { animation-delay: var(--intro, 0s); }
.hero h1 span:nth-child(2) { animation-delay: calc(var(--intro, 0s) + .35s); }
.hero h1 span:nth-child(3) { animation-delay: calc(var(--intro, 0s) + .7s); }

/* ---------- Load + scroll reveals ---------- */
.hero h1 span { animation: rise 1.6s cubic-bezier(.2,.75,.2,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(40px); } }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.75,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Small screens: stack the artboard ---------- */
@media (max-width: 760px) {
  :root { --u: 0.62px; }
  .footer-nav a { font-size: 15px; }
  .gap-lead, .asset-lead, .pipe-lead { font-size: 22px; padding: 0 20px; max-width: none; }
  .h2, .pipeline .h2 { font-size: 42px; line-height: 40px; padding: 0 16px; }
  .cards { grid-template-columns: minmax(0, 340px); }
  .card { height: auto; border-radius: 30px; }
  .card img { height: 200px; }
  .card h3 { font-size: 24px; line-height: 46px; height: 50px; }
  .card p { font-size: 16px; height: auto; padding: 18px 28px 24px; }
  .barcelona { height: 300px; }
  .about { grid-template-columns: 1fr; padding: 44px 22px; }
  .about .logo-navy { width: 220px; }
  .about h2 { font-size: 42px; line-height: 44px; }
  .about-copy { padding-top: 36px; }
  .about-copy h3 { font-size: 26px; }
  .about-copy p { font-size: 15.5px; }
  .strategy { padding: 52px 22px; }
  .strategy .kicker { font-size: 19px; }
  .strategy p.serif { font-size: 25px; line-height: 1.12; }
  .footer .logo { width: 240px; }
  .footer-nav { gap: 14px; padding: 0 16px; }
  .cta { font-size: 16px; padding: 12px 28px; }
  .mail { width: 44px; height: 44px; }
}

.hero > .gap-lead { text-align: center; }
