/* =========================================================
   Nextrack — style.css
   Colours from the brief:
   main purple #7a2eff · dark purple #5924b6 · white #ffffff
   light purple = #7a2eff at 10% on white (#f2eaff)
   ========================================================= */

@font-face { font-family: "Poppins"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/poppins-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: italic; font-weight: 300; font-display: swap; src: url("../fonts/poppins-latin-300-italic.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/poppins-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Mono"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/dm-mono-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/dm-mono-latin-400-normal.woff2") format("woff2"); }

:root {
  --purple: #7a2eff;
  --purple-dark: #5924b6;
  --lilac: #f2eaff;          /* #7a2eff @ 10% */
  --white: #ffffff;
  --ink: #0b0b0f;
  --muted: #6d6a78;
  --line: #e4e1ec;
  --header-h: 72px;
  --wrap: 1200px;
  --text: 1070px;
  --gutter: 24px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --t: 160ms;
  /* Type scale from the V2 mockup (computer, in pt). Phones use the same numbers in px (see mobile block). */
  --fs-x: 30pt;   /* special: "You ❤️ Nextrack" */
  --fs-1: 23pt;   /* level 1: main titles */
  --fs-2: 20pt;   /* level 2: questions, sub-titles, intro of Let's Talk */
  --fs-3: 16pt;   /* level 3: body text, buttons */
  --fs-4: 12pt;   /* footer quote */
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--fs-3); line-height: 1.5; font-weight: 400;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
u { text-decoration-thickness: 1px; text-underline-offset: 4px; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--white); padding: 8px 14px; border-radius: 6px; }
.skip:focus { top: 12px; }
.arr { display: inline; position: relative; left: 0; transition: left var(--t) var(--ease); }
a:hover .arr, button:hover .arr { left: 3px; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: var(--purple); color: var(--white); }
.header__inner {
  height: var(--header-h); max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
}
.nav { display: flex; gap: 36px; }
.nav a { text-decoration: none; font-size: var(--fs-3); font-weight: 300; position: relative; padding: 4px 0; white-space: nowrap; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform var(--t) var(--ease);
}
.nav a:hover::after { transform: scaleX(1); }
.header__logo { color: var(--white); width: 164px; }
.header__logo svg { width: 100%; height: auto; }
.lang { justify-self: end; display: flex; align-items: center; gap: 12px; }
.lang__label { font-size: var(--fs-3); font-weight: 300; white-space: nowrap; }
.switch { display: flex; background: var(--purple-dark); border-radius: 999px; padding: 3px; list-style: none; margin: 0; }
.switch a {
  display: block; text-decoration: none; font-size: 12px; font-weight: 500; letter-spacing: .02em;
  padding: 5px 9px; border-radius: 999px; line-height: 1.2; transition: background-color var(--t);
}
.switch a:hover { background: rgba(255, 255, 255, .14); }
.switch a[aria-current="true"] { background: var(--purple); }
.burger { display: none; }
.mobile-menu { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; max-width: var(--wrap); margin: 0 auto; height: clamp(300px, 29vw, 400px);
  border-radius: 0 0 56px 56px; overflow: hidden; background: #1b1830;
}
.hero picture, .hero__img { width: 100%; height: 100%; }
.hero__img { object-fit: cover; object-position: 50% 87%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(10, 8, 30, .72), rgba(10, 8, 30, .45) 30%, rgba(10, 8, 30, .25) 60%, rgba(10, 8, 30, .25)); pointer-events: none; }
.hero__title {
  position: absolute; z-index: 1; top: 16%; left: 0; right: 0; padding: 0 48px; text-align: center;
  color: var(--white); font-size: clamp(22px, 2.35vw, var(--fs-1)); font-weight: 700; line-height: 1.3; letter-spacing: -.005em;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .25);
}
.hero__tag {
  position: absolute; z-index: 1; right: 46px; bottom: 30px; color: rgba(255, 255, 255, .88);
  font-size: 11px; font-weight: 400; letter-spacing: .01em;
}
.hero__tag a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Intro ---------- */
.intro { max-width: var(--text); margin: 84px auto 78px; padding: 0 var(--gutter); text-align: center; font-size: var(--fs-3); }

/* ---------- Survey ---------- */
.survey { max-width: calc(1036px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.survey__title { text-align: center; font-size: var(--fs-1); font-weight: 700; line-height: 1.3; margin-bottom: 44px; letter-spacing: -.005em; }
.survey__box {
  display: block; width: 100%; text-align: center; background: var(--lilac); border-radius: 56px;
  padding: 26px 60px 34px; transition: background-color var(--t);
}
.survey__box:hover { background: #ece0ff; }
.survey__box:focus-visible { outline-offset: 4px; border-radius: 56px; }
.survey__q { display: block; font-size: var(--fs-2); font-weight: 400; line-height: 1.35; margin-bottom: 24px; }
.survey__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 58px; }
.opt, .survey__go {
  display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 6px 14px;
  font-size: var(--fs-3); line-height: 1.25; transition: background-color var(--t), color var(--t), border-color var(--t);
}
.opt { border: 2px solid var(--purple); background: transparent; }
.opt:hover { background: var(--purple); color: var(--white); }
.survey__go { background: var(--purple); color: var(--white); font-weight: 600; border-radius: 999px; gap: 6px; }
.survey__go:hover { background: var(--purple-dark); }
.survey__go { grid-column: 2; margin-top: 8px; }
/* Long survey: lilac block with a question + a purple button. Gap above = gap under the "Got 4 minutes?" title */
.survey__more { max-width: 680px; margin: 37px auto 0; padding: 24px 40px 34px; background: var(--lilac); border-radius: 48px; text-align: center; }
.survey__more-q { font-size: var(--fs-2); font-weight: 400; line-height: 1.35; margin-bottom: 20px; }
.survey__long {
  display: inline-flex; align-items: center; justify-content: center; min-height: 43px; padding: 8px 28px; background: var(--purple); color: var(--white);
  text-decoration: none; font-weight: 600; font-size: var(--fs-3); line-height: 1.25; border-radius: 999px; transition: background-color var(--t);
}
.survey__long:hover { background: var(--purple-dark); }

/* ---------- Optional email sign-up (under the 10-minute survey bar) ---------- */
.signup { margin-top: 44px; text-align: center; }
.signup__title { font-size: var(--fs-2); font-weight: 700; line-height: 1.3; }
.signup__lead { max-width: 760px; margin: 6px auto 18px; font-size: var(--fs-3); }
.signup__form {
  display: flex; gap: 6px; max-width: 640px; margin: 0 auto; padding: 6px; border-radius: 999px; background: var(--lilac);
  transition: box-shadow var(--t);
}
.signup__form:focus-within { box-shadow: 0 0 0 4px rgba(122, 46, 255, .18); }
.signup__input {
  flex: 1; min-width: 0; height: 58px; padding: 0 22px; border: 2px solid transparent; border-radius: 999px; background: transparent;
  font: 400 var(--fs-3) "Poppins", system-ui, sans-serif; color: var(--ink); outline: none;
}
.signup__input::placeholder { color: #8f8a9e; }
.signup.is-invalid .signup__input { border-color: #d93025; }
.signup__btn {
  flex: none; height: 58px; padding: 0 28px; border: 0; border-radius: 999px; background: var(--purple); color: var(--white);
  font: 600 var(--fs-3) "Poppins", system-ui, sans-serif; cursor: pointer; white-space: nowrap; transition: background-color var(--t);
}
.signup__btn:hover { background: var(--purple-dark); }
.signup__btn .arr { display: inline; position: relative; left: 0; transition: left var(--t) var(--ease); }
.signup__btn:hover .arr { left: 3px; }
.signup.is-sending .signup__btn { opacity: .7; cursor: progress; }
.signup__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.signup__note { max-width: 760px; margin: 10px auto 0; font-size: var(--fs-4); line-height: 1.5; color: var(--muted); }
.signup__nw { white-space: nowrap; }
.signup__link { padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 2px; transition: color var(--t); }
.signup__link:hover { color: var(--purple); }
.signup__err { margin: 8px 0 0; font-size: var(--fs-4); color: #d93025; }
.signup__ok { margin: 14px auto 0; max-width: 640px; padding: 16px 22px; border-radius: 999px; background: var(--lilac); color: var(--purple-dark); font-size: var(--fs-3); font-weight: 600; }
.signup [hidden] { display: none; }

/* ---------- Let's Talk ---------- */
.talk { margin-top: 70px; background: var(--purple); color: var(--white); text-align: center; padding: 86px var(--gutter) 72px; }
.talk__kicker { font-size: var(--fs-3); font-weight: 300; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; letter-spacing: .01em; }
.talk__title { max-width: 1000px; margin: 34px auto 40px; font-size: var(--fs-1); font-weight: 700; line-height: 1.3; }
.talk__text { max-width: 1080px; margin: 0 auto; font-size: var(--fs-2); font-weight: 300; line-height: 1.45; }
.talk__cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 345px; min-height: 58px; margin-top: 70px; padding: 12px 32px;
  background: var(--white); color: var(--ink); text-decoration: none; font-size: var(--fs-3); font-weight: 600; border-radius: 999px;
  transition: background-color var(--t), color var(--t);
}
.talk__cta:hover { background: var(--lilac); color: var(--purple-dark); }
.talk__cta:focus-visible { outline-color: var(--white); }

/* ---------- Videos ---------- */
.videos { position: relative; max-width: calc(1036px + 2 * var(--gutter)); margin: 32px auto 32px; padding: 0 var(--gutter); }
.videos__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 38px) / 4); gap: 38px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
}
.videos__track::-webkit-scrollbar { display: none; }
.video { aspect-ratio: 9 / 16; background: #555; overflow: hidden; }
.video:nth-child(4n+1) { scroll-snap-align: start; }
.videos__track.is-gliding { scroll-snap-type: none; }
.video img, .video video, .video iframe { width: 100%; height: 100%; object-fit: cover; border: 0; }
.videos__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); width: 56px; height: 56px; display: grid; place-items: center;
  border-radius: 50%; background: var(--white); color: var(--purple); border: 1.5px solid #e2dcf0;
  box-shadow: 0 6px 18px rgba(60, 20, 140, .10);
  transition: background-color var(--t), color var(--t), border-color var(--t), box-shadow var(--t), opacity var(--t);
}
.videos__arrow--prev { left: -88px; }
.videos__arrow--next { right: -88px; }
.videos__arrow svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--t) var(--ease); }
.videos__arrow:not(:disabled):hover { background: var(--purple); border-color: var(--purple); color: var(--white); box-shadow: 0 8px 22px rgba(122, 46, 255, .28); }
.videos__arrow--prev:not(:disabled):hover svg { transform: translateX(-2px); }
.videos__arrow--next:not(:disabled):hover svg { transform: translateX(2px); }
.videos__arrow:disabled { cursor: default; opacity: .35; box-shadow: none; }

/* ---------- LinkedIn / YouTube band ---------- */
.social-band { max-width: calc(1036px + 2 * var(--gutter)); margin: 0 auto; display: flex; align-items: stretch; justify-content: space-between; gap: 24px; padding: 14px var(--gutter) 0; }
.social-band__btn {
  flex: 0 1 490px; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 58px; padding: 8px 18px;
  background: var(--purple); color: var(--white); text-decoration: none; font-size: var(--fs-3); font-weight: 600; text-align: center; border-radius: 999px;
  transition: background-color var(--t), transform var(--t) var(--ease);
}
.social-band__btn:hover { background: var(--purple-dark); }
.social-band__btn .lbl-m { display: none; } /* shorter LinkedIn label, phones only */
.videos__dots { flex: none; align-self: center; display: flex; gap: 4px; justify-content: center; }
.videos__dot { width: 22px; height: 22px; display: grid; place-items: center; }
.videos__dot::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #d4d2da; transition: background-color var(--t), transform var(--t) var(--ease); }
.videos__dot:hover::before { background: #a9a5b5; }
.videos__dot[aria-selected="true"]::before { background: #7c7888; transform: scale(1.15); }

/* ---------- You ❤️ Nextrack (two rows of bubbles drifting in opposite directions) ---------- */
.love { margin-top: 92px; overflow: hidden; }
.love__row { overflow: hidden; }
.love__track { display: flex; width: max-content; animation: love-left 130s linear infinite; }
.love__row--right .love__track { animation-name: love-right; }
/* When JS runs, main.js drives the rows (constant speed) instead of the CSS animation */
.love.is-js .love__track { animation: none; will-change: transform; }
@keyframes love-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes love-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.bubble {
  flex: none; width: 506px; min-height: 228px; margin-right: 46px; padding: 26px 30px; border-radius: 64px; background: var(--lilac);
  display: flex; flex-direction: column; justify-content: center; text-align: center; font-size: var(--fs-3); line-height: 1.5;
}
.bubble strong { font-weight: 500; }
.bubble small { display: block; margin-top: 8px; font-size: var(--fs-4); color: var(--muted); letter-spacing: .01em; }
.love__row--left .love__track { margin-left: -250px; }
.love__title { margin: 46px var(--gutter) 50px; text-align: center; color: var(--purple); font-size: var(--fs-x); font-weight: 700; line-height: 1.2; }
.love__heart { display: inline-block; margin: 0 .12em; }
.love__intro { margin: 0 var(--gutter) 96px; text-align: center; font-size: var(--fs-3); line-height: 1.55; } /* "What people told us before launch": same type as .published. Top gap = .love margin-top. Bottom gap = .published margin-top (gap between the bubbles and .published). */
.love__intro span { color: var(--purple); font-weight: 600; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.published { max-width: var(--text); margin: 96px auto 90px; padding: 0 var(--gutter); text-align: center; font-size: var(--fs-3); line-height: 1.55; }
.published u { text-underline-offset: 3px; text-decoration-thickness: 1px; }
.published strong { color: var(--purple); font-weight: 600; }

/* ---------- Project blocks ---------- */
.project { margin-top: 0; }
.block { padding: 40px var(--gutter) 46px; text-align: center; }
.block > * { max-width: var(--text); margin-left: auto; margin-right: auto; }
.block h2 { font-size: var(--fs-2); font-weight: 700; line-height: 1.3; margin-bottom: 6px; }
.block p { font-size: var(--fs-3); line-height: 1.55; }
.block--b { background: var(--lilac); }
/* Question / topic ideas: lilac card under "What we do", same look as the 10-minute survey card + sign-up form */
.idea { max-width: 680px; margin: 37px auto 0; padding: 24px 40px 30px; background: var(--lilac); border-radius: 48px; }
.idea__title { font-size: var(--fs-2); font-weight: 400; line-height: 1.35; }
.block .idea__lead { margin: 5px auto 18px; font-size: var(--fs-3); line-height: 1.5; }
.idea__form {
  display: flex; gap: 5px; max-width: 544px; margin: 0 auto; padding: 5px; border-radius: 999px; background: var(--white);
  transition: box-shadow var(--t);
}
.idea__form:focus-within { box-shadow: 0 0 0 4px rgba(122, 46, 255, .18); }
.idea__input {
  flex: 1; min-width: 0; height: 43px; padding: 0 19px; border: 2px solid transparent; border-radius: 999px; background: transparent;
  font: 400 var(--fs-3) "Poppins", system-ui, sans-serif; color: var(--ink); outline: none;
}
.idea__input::placeholder { color: #8f8a9e; }
.idea.is-invalid .idea__input { border-color: #d93025; }
.idea__btn {
  flex: none; height: 43px; padding: 0 28px; border: 0; border-radius: 999px; background: var(--purple); color: var(--white);
  font: 600 var(--fs-3) "Poppins", system-ui, sans-serif; line-height: 1.25; cursor: pointer; white-space: nowrap; transition: background-color var(--t);
}
.idea__btn:hover { background: var(--purple-dark); }
.idea__btn:hover .arr { left: 3px; }
.idea.is-sending .idea__btn { opacity: .7; cursor: progress; }
.block .idea__note { max-width: 544px; margin: 10px auto 0; font-size: var(--fs-4); line-height: 1.5; color: var(--muted); }
.block .idea__err { margin: 8px 0 0; font-size: var(--fs-4); line-height: 1.5; color: #d93025; }
.block .idea__ok { margin: 14px auto 0; color: var(--purple-dark); font-size: var(--fs-3); font-weight: 600; }
.idea [hidden] { display: none; }

/* ---------- Contact card ---------- */
.contact { max-width: calc(1100px + 2 * var(--gutter)); margin: 88px auto 90px; padding: 0 var(--gutter); }
.contact__card {
  --li-ink: var(--purple);
  display: flex; align-items: center; gap: 56px; background: var(--purple); color: var(--white);
  border-radius: 999px 0 0 999px; padding: 18px 48px 18px 20px;
}
/* Photo: always a perfect circle, never stretched (fixed equal width/height + object-fit: cover) */
.contact__photo { --photo: 280px; flex: 0 0 var(--photo); width: var(--photo); height: var(--photo); min-width: var(--photo); min-height: var(--photo); aspect-ratio: 1 / 1; align-self: center; border-radius: 50%; overflow: hidden; background: #ddd; }
.contact__photo img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 30%; border-radius: 50%; }
.contact__body { min-width: 0; padding: 4px 0; }
.contact__name { font-size: var(--fs-1); font-weight: 700; line-height: 1.2; }
.contact__role { font-size: var(--fs-2); font-weight: 300; text-transform: uppercase; line-height: 1.3; margin-top: 6px; }
.contact__text { font-size: var(--fs-3); font-weight: 300; margin-top: 28px; line-height: 1.5; }
.contact__reach { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 18px; font-size: var(--fs-3); font-weight: 300; }
.contact__mail { font-weight: 600; text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-size: 0 1.5px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size var(--t) var(--ease); }
.contact__mail:hover { background-size: 100% 1.5px; }
.contact__icon { width: 54px; height: 54px; color: var(--white); transition: opacity var(--t), transform var(--t) var(--ease); }
.contact__icon svg { width: 100%; height: 100%; }
.contact__icon:hover { opacity: .8; transform: translateY(-2px); }
.contact__icon:focus-visible { outline-color: var(--white); }

/* ---------- Team: the 3 other committee members ----------
   Computer: lilac "tree" from the "Who's behind it" block to the card, then to the 3 bubbles.
   Phone: slim lilac rows under the card, tap a name to open it (main.js). */
.contact { position: relative; }
.contact::before { content: ""; position: absolute; left: 50%; bottom: 100%; width: 44px; height: 88px; transform: translateX(-50%); background: var(--lilac); } /* height = .contact top margin */
.team__tree { position: relative; height: 70px; background: linear-gradient(var(--lilac), var(--lilac)) 50% 0 / 44px 40px no-repeat; } /* upper part: as wide as the stem above the card */
.team__tree::after {
  content: ""; position: absolute; top: 28px; bottom: 0; left: calc(100% / 3 - 14px); right: calc(100% / 3 - 14px);
  border: 12px solid var(--lilac); border-bottom: 0; border-radius: 34px 34px 0 0;
}
.team__title { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } /* visible on phones only */
.team__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px; width: calc((100% - 96px) * 2 / 3 + 48px); margin: 0 auto; padding: 0; list-style: none; }
.member { padding: 26px 24px 30px; border-radius: 48px; background: var(--lilac); text-align: center; }
.member__head { display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: inherit; pointer-events: none; }
.member__name { display: block; font-size: var(--fs-2); font-weight: 700; line-height: 1.3; }
.member__tag, .member__chev { display: none; }
.member__bg { margin-top: 4px; font-size: var(--fs-4); line-height: 1.5; color: var(--muted); }
.member__role { margin-top: 12px; font-size: var(--fs-3); line-height: 1.5; }
.member__why { margin-top: 12px; font-size: var(--fs-4); line-height: 1.5; font-weight: 600; color: var(--purple); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--ink); padding: 44px var(--gutter) 40px; }
.footer__box { max-width: 1260px; margin: 0 auto; padding: 14px 0 22px; }
.footer__row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.footer__quote { max-width: 500px; text-align: center; font-size: var(--fs-4); line-height: 1.5; color: #6f6c7a; }
.footer__quote blockquote { font-weight: 400; }
.footer__quote figcaption { font-weight: 400; }
.footer__logo { justify-self: start; width: 268px; color: var(--purple); transition: color var(--t); }
.footer__logo:hover { color: var(--purple-dark); }
.footer__logo svg { width: 100%; height: auto; }
.footer__social { justify-self: end; display: flex; gap: 12px; list-style: none; margin: 0; padding: 0; }
.footer__social a {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid #d9d6e2; background: #fff; color: #222;
  transition: background-color var(--t), border-color var(--t), color var(--t);
}
.footer__social svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.footer__social .dot, .footer__social .fill { fill: currentColor; }
.footer__social a:hover { background: var(--purple); border-color: var(--purple); color: #fff; }
.footer__copy { margin-top: 56px; text-align: center; font-size: var(--fs-4); font-weight: 400; color: #9a97a4; }
.footer__legal { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; color: #8d8a98; transition: color var(--t); }
.footer__legal:hover { color: var(--purple); }

/* ---------- Legal dialog ---------- */
.legal { width: min(680px, calc(100% - 32px)); max-height: min(86vh, 900px); padding: 0; border: 0; border-radius: 18px; color: var(--ink); box-shadow: 0 20px 60px rgba(30, 10, 70, .25); }
.legal::backdrop { background: rgba(22, 12, 48, .55); }
.legal__inner { position: relative; padding: 36px 36px 30px; font-size: 15px; line-height: 1.6; }
.legal h2 { font-size: 24px; font-weight: 700; margin: 0 40px 16px 0; }
.legal h3 { font-size: 15px; font-weight: 600; color: var(--purple-dark); margin: 22px 0 4px; }
.legal p + p { margin-top: 8px; }
.legal a { color: var(--purple-dark); }
.legal__close { position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; transition: background-color var(--t); }
.legal__close:hover { background: var(--lilac); }
.legal__close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.legal__reveal { color: var(--purple-dark); text-decoration: underline; text-underline-offset: 3px; font-size: 15px; }
.legal__reveal:hover { color: var(--purple); }

/* =========================================================
   Computer: everything 15% smaller (type, widths, spacing).
   Tablet and phone rules below still apply on top of this.
   ========================================================= */
@media (min-width: 861px) {
  :root { --header-h: 61px; --wrap: 1020px; --text: 910px; --fs-x: 25.5pt; --fs-1: 19.5pt; --fs-2: 17pt; --fs-3: 13.6pt; --fs-4: 10.2pt; }
  .nav { gap: 31px; }
  .header__logo { width: 140px; }
  .lang { gap: 10px; }
  .switch a { font-size: 11px; padding: 4px 8px; }
  .hero { height: auto; aspect-ratio: 3 / 1; border-radius: 0 0 48px 48px; }
  .hero__title { padding: 0 41px; font-size: clamp(19px, 2vw, var(--fs-1)); }
  .hero__tag { right: 39px; bottom: 26px; font-size: 10px; }
  .intro { margin: 71px auto 66px; }
  .survey { max-width: calc(880px + 2 * var(--gutter)); }
  .survey__title { margin-bottom: 37px; }
  .survey__box { border-radius: 48px; padding: 22px 51px 29px; }
  .survey__box:focus-visible { border-radius: 48px; }
  .survey__q { margin-bottom: 20px; }
  .survey__grid { gap: 15px 49px; }
  .opt, .survey__go { min-height: 39px; padding: 5px 12px; }
  .survey__go { margin-top: 7px; }
  .signup { margin-top: 66px; } /* same gap as between the intro text and the "Got 4 minutes?" title */
  .signup__lead { max-width: 646px; margin: 5px auto 15px; }
  .signup__form { max-width: 544px; gap: 5px; padding: 5px; }
  .signup__input { height: 43px; padding: 0 19px; }
  .signup__btn { height: 43px; padding: 0 28px; line-height: 1.25; } /* same as the 10-minute survey button */
  .signup__note { max-width: 646px; }
  .signup__ok { max-width: 544px; padding: 14px 19px; }
  .talk { margin-top: 60px; padding: 73px var(--gutter) 61px; }
  .talk__title { max-width: 850px; margin: 29px auto 34px; }
  .talk__text { max-width: 918px; }
  .talk__cta { min-width: 293px; min-height: 49px; margin-top: 60px; padding: 10px 27px; }
  .videos { max-width: calc(880px + 2 * var(--gutter)); margin: 39px auto 27px; } /* top gap = gap between videos and buttons (27 + 12) */
  .videos__track { grid-auto-columns: calc((100% - 3 * 32px) / 4); gap: 32px; }
  .videos__arrow { width: 48px; height: 48px; }
  .videos__arrow--prev { left: -75px; }
  .videos__arrow--next { right: -75px; }
  .videos__arrow svg { width: 20px; height: 20px; }
  .social-band { max-width: calc(880px + 2 * var(--gutter)); gap: 20px; padding-top: 12px; }
  .social-band__btn { flex-basis: 416px; min-height: 49px; padding: 7px 15px; }
  .videos__dot { width: 19px; height: 19px; }
  .videos__dot::before { width: 9px; height: 9px; }
  .love { margin-top: 78px; }
  .bubble { width: 430px; min-height: 194px; margin-right: 39px; padding: 22px 26px; border-radius: 54px; }
  .love__row--left .love__track { margin-left: -213px; }
  .love__title { margin: 39px var(--gutter) 43px; }
  .love__intro { margin-bottom: 82px; }
  .published { margin: 82px auto 77px; }
  .block { padding: 34px var(--gutter) 39px; }
  .idea { max-width: var(--text); margin-bottom: 6px; } /* as wide as the "What we do" paragraph; +6px below so the gap looks the same as under a text paragraph */
  .block .idea__lead { white-space: nowrap; font-size: min(var(--fs-3), calc((min(100vw, 1000px) - 145px) * .0212)); } /* always one line */
  .contact { max-width: calc(935px + 2 * var(--gutter)); margin: 75px auto 77px; }
  .contact__card { gap: 36px; padding: 15px 36px 15px 17px; } /* role stays on one line at full width */
  .contact__photo { --photo: 238px; }
  .contact__text { margin-top: 24px; }
  .contact__reach { gap: 7px 14px; margin-top: 15px; }
  .contact__icon { width: 46px; height: 46px; }
  .contact { max-width: calc(var(--text) + 2 * var(--gutter)); } /* card as wide as the text above */
  .contact::before { height: 75px; }
  html[lang="de"] .contact__mail { margin-right: 100%; } /* German "follow" line is longer: email alone, then "oder folgen Sie ihm auf" + icons */
  .footer { padding: 37px var(--gutter) 34px; }
  .footer__box { max-width: 1071px; padding: 12px 0 19px; }
  .footer__quote { max-width: 425px; }
  .footer__logo { width: 225px; }
  .footer__social { gap: 10px; }
  .footer__social a { width: 37px; height: 37px; }
  .footer__social svg { width: 15px; height: 15px; }
  .footer__copy { margin-top: 48px; }
}

/* =========================================================
   Tablet
   ========================================================= */
/* Videos + buttons keep the same width as the survey block; when there is no room
   left for the arrows outside, they sit on the edge of the first/last video */
@media (max-width: 1280px) {
  .videos__arrow--prev { left: calc(var(--gutter) - 22px); }
  .videos__arrow--next { right: calc(var(--gutter) - 22px); }
  .videos__arrow:disabled { opacity: 0; pointer-events: none; }
}
@media (min-width: 1101px) and (max-width: 1280px) {
  .videos__arrow--prev { left: -75px; }
  .videos__arrow--next { right: -75px; }
  .videos__arrow:disabled { opacity: .35; pointer-events: auto; }
}
@media (max-width: 1100px) {
  .nav { gap: 22px; }
  .nav a, .lang__label { font-size: 16px; } /* tablets: keeps the menu on one line */
  .survey__grid { gap: 14px 24px; }
  .survey__box { padding: 24px 32px 30px; border-radius: 40px; }
  .contact__card { gap: 32px; }
  .contact__photo { --photo: 230px; }
}

/* =========================================================
   Mobile (matches the vertical mockup)
   ========================================================= */
@media (max-width: 860px) {
  :root { --header-h: 60px; --gutter: 20px; --fs-x: 30px; --fs-1: 23px; --fs-2: 20px; --fs-3: 16px; --fs-4: 13px; }
  .header__inner { grid-template-columns: 1fr auto; }
  .nav, .lang { display: none; }
  .header__logo { width: 122px; }
  .burger { display: grid; gap: 6px; width: 44px; height: 44px; place-content: center; margin-right: -8px; }
  .burger span { display: block; width: 30px; height: 3px; background: var(--white); border-radius: 1px; transition: transform var(--t) var(--ease), opacity var(--t); }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
  .mobile-menu {
    display: block; position: fixed; inset: var(--header-h) 0 0 0; background: var(--white); color: var(--ink);
    padding: 26px 24px 40px; overflow-y: auto;
  }
  .mobile-menu[hidden] { display: none; }
  .mobile-menu nav { display: flex; flex-direction: column; gap: 6px; }
  .mobile-menu nav a { text-decoration: none; font-size: var(--fs-1); font-weight: 700; padding: 4px 0; transition: color var(--t); }
  .mobile-menu nav a:hover { color: var(--purple); }
  .mobile-menu__lang { font-size: var(--fs-1); font-weight: 700; margin: 48px 0 16px; }
  .mobile-menu .switch { display: inline-flex; padding: 4px; }
  .mobile-menu .switch a { font-size: 18px; font-weight: 400; padding: 8px 16px; color: var(--white); }
  body.menu-open { overflow: hidden; }

  /* Mobile only: wide crop that keeps sky + train and cuts most of the rails (as in the vertical mockup) */
  .hero { height: auto; aspect-ratio: 2 / 1; border-radius: 0 0 28px 28px; }
  .hero picture { position: absolute; inset: 0; }
  /* full width, no side crop: keeps the whole train (nose at the bottom, far end of the train at the top) */
  .hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-position: 50% 74%; }
  .hero__title { top: 8%; padding: 0 18px; font-size: clamp(15px, 4.6vw, 19px); }
  .hero__tag { right: 22px; bottom: 12px; font-size: 10px; }

  .intro { margin: 52px auto 48px; }
  .survey__title { margin-bottom: 26px; }
  .survey__title span { display: block; }
  .survey__box { border-radius: 12px; padding: 18px 16px 18px; }
  .survey__box:focus-visible { border-radius: 12px; }
  .survey__q { margin-bottom: 18px; }
  .survey__grid { grid-template-columns: 1fr 1fr; gap: 10px 14px; }
  .opt, .survey__go { min-height: 44px; padding: 6px 8px; }
  .survey__go { grid-column: 1 / -1; margin-top: 4px; }
  .survey__more { margin-top: 26px; padding: 18px 16px 18px; border-radius: 12px; }
  .survey__more-q { margin-bottom: 18px; }
  .survey__long { display: flex; width: 100%; min-height: 44px; padding: 8px 16px; }
  .signup { margin-top: 48px; }
  .signup__form { flex-direction: column; border-radius: 28px; }
  .signup__input { flex: none; height: 44px; }
  .signup__btn { width: 100%; height: 44px; padding: 0 16px; line-height: 1.25; white-space: normal; } /* same as the survey buttons */
  .signup__ok { border-radius: 24px; }

  .talk { margin-top: 48px; padding: 48px var(--gutter) 50px; }
  .talk__title { margin: 20px auto 20px; }
  .talk__cta { min-width: 0; min-height: 48px; width: min(100%, 300px); margin-top: 30px; padding: 10px 20px; }

  /* 2 videos per page, swipe or tap the dots; no arrows */
  .videos { padding: 0 var(--gutter); margin: 48px auto 0; max-width: 520px; } /* top gap = gap between videos and the first button */
  .videos__track { grid-auto-columns: calc((100% - 16px) / 2); gap: 16px; }
  .video:nth-child(2n+1) { scroll-snap-align: start; }
  .videos__arrow { display: none; }

  .social-band { flex-direction: column; align-items: center; gap: 14px; padding: 12px var(--gutter) 0; max-width: 520px; }
  .social-band__btn { flex: none; width: 100%; min-height: 48px; padding: 8px 16px; }
  .social-band__btn .lbl-d { display: none; }
  .social-band__btn .lbl-m { display: inline; }
  .videos__dots { order: -1; }
  .social-band__btn--yt { order: 1; }

  .love { margin-top: 68px; }
  .bubble { width: 280px; min-height: 150px; margin-right: 16px; padding: 18px 20px; border-radius: 36px; }
  .love__row--left .love__track { margin-left: -140px; }
  .love__track { animation-duration: 75s; }
  .love__title { margin: 26px var(--gutter) 28px; }
  .love__intro { margin-bottom: 60px; }
  .published { margin: 60px auto 56px; }

  .project { margin-top: 36px; }
  .block { padding: 26px var(--gutter) 30px; }
  .idea { margin-top: 26px; padding: 18px 16px 18px; border-radius: 12px; }
  .idea__form { flex-direction: column; border-radius: 28px; }
  .idea__input { flex: none; height: 44px; }
  .idea__btn { width: 100%; height: 44px; padding: 0 16px; white-space: normal; } /* same as the survey buttons */

  .contact { margin: 128px auto 64px; padding: 0 var(--gutter); max-width: 520px; } /* the photo sticks out 70px above the card: leaves ~58px of air above it */
  .contact__card { flex-direction: column; align-items: stretch; gap: 0; border-radius: 0; padding: 0 22px 24px; margin-top: 70px; }
  .contact__photo { --photo: 150px; margin: -70px auto 0; border: 8px solid var(--purple); box-sizing: content-box; }
  .contact__body { padding-top: 20px; }
  .contact__text { margin-top: 16px; }
  .contact__reach { gap: 14px 10px; margin-top: 14px; }
  .contact__mail { margin-right: 100%; } /* "or follow on" + icons start on their own line */
  .contact__icon { width: 38px; height: 38px; }
  .contact::before, .team__tree { display: none; }
  .team { margin-top: 26px; }
  .team__title { position: static; width: auto; height: auto; margin: 0 0 12px; overflow: visible; clip: auto; white-space: normal; text-align: center; font-size: var(--fs-3); font-weight: 700; line-height: 1.3; }
  .team__list { grid-template-columns: 1fr; gap: 10px; width: auto; margin: 0; }
  .member { padding: 0; border-radius: 24px; text-align: left; }
  .member__head { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 16px 10px 20px; pointer-events: auto; cursor: pointer; border-radius: 24px; }
  .member__name { flex: none; font-size: var(--fs-3); }
  .member__tag { display: block; flex: 1; min-width: 0; font-size: var(--fs-4); line-height: 1.35; color: var(--muted); }
  .member__chev { display: block; flex: none; width: 22px; height: 22px; fill: none; stroke: var(--purple); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--t) var(--ease); }
  .member.is-open .member__chev { transform: rotate(180deg); }
  .member__body { display: none; padding: 0 20px 16px; }
  .member.is-open .member__body { display: block; }
  .member__bg { margin-top: 0; }
  .member__role { margin-top: 8px; }
  .member__why { margin-top: 8px; }

  .footer { padding: 26px 12px 30px; }
  .footer__row { grid-template-columns: 1fr auto; gap: 20px 12px; }
  .footer__quote { grid-column: 1 / -1; grid-row: 2; max-width: none; }
  .footer__logo { width: min(214px, calc(100vw - 260px)); }
  .footer__social { gap: 6px; }
  .footer__social a { width: 38px; height: 38px; }
  .footer__copy { margin-top: 26px; padding: 0 8px; line-height: 1.7; }
  .legal__inner { padding: 28px 22px 24px; }
}
@media (max-width: 380px) {
  .opt, .survey__go { font-size: 15px; }
}
/* Header (computer + tablet): the menu (Survey, Let's Talk, Project) is spread over exactly the same
   width as "Language ⟶" + the language buttons (widths measured per language). Italian words are longer:
   its menu text is a little smaller on large screens so it fits the same width. */
@media (min-width: 861px) {
  .nav { justify-self: start; justify-content: space-between; gap: 0; }
}
@media (min-width: 1101px) {
  html[lang="en"] .nav { width: 315px; }
  html[lang="fr"] .nav { width: 289px; }
  html[lang="de"] .nav { width: 297px; }
  html[lang="nl"] .nav { width: 261px; }
  html[lang="es"] .nav { width: 284px; }
  html[lang="it"] .nav { width: 281px; }
  html[lang="it"] .nav a { font-size: 16.3px; }
}
@media (min-width: 861px) and (max-width: 1100px) {
  html[lang="en"] .nav { width: 297px; }
  html[lang="fr"] .nav { width: 275px; }
  html[lang="de"] .nav { width: 283px; }
  html[lang="nl"] .nav { width: 251px; }
  html[lang="es"] .nav { width: 271px; }
  html[lang="it"] .nav { width: 268px; }
}
/* Computer: the title over the image always stays on one line (size adapted to each language) */
@media (min-width: 861px) {
  html[lang="en"] .hero__title { white-space: nowrap; font-size: min(var(--fs-1), calc((min(100vw, 1020px) - 100px) * 0.02776)); }
  html[lang="fr"] .hero__title { white-space: nowrap; font-size: min(var(--fs-1), calc((min(100vw, 1020px) - 100px) * 0.02287)); }
  html[lang="de"] .hero__title { white-space: nowrap; font-size: min(var(--fs-1), calc((min(100vw, 1020px) - 100px) * 0.02451)); }
  html[lang="nl"] .hero__title { white-space: nowrap; font-size: min(var(--fs-1), calc((min(100vw, 1020px) - 100px) * 0.02606)); }
  html[lang="es"] .hero__title { white-space: nowrap; font-size: min(var(--fs-1), calc((min(100vw, 1020px) - 100px) * 0.02314)); }
  html[lang="it"] .hero__title { white-space: nowrap; font-size: min(var(--fs-1), calc((min(100vw, 1020px) - 100px) * 0.0245)); }
}
/* Phones: hero title max 2 lines, "You ❤️ Nextrack" title on 1 line, LinkedIn button on 1 line.
   Sizes are measured per language (longer languages get a slightly smaller title). */
@media (max-width: 860px) {
  html[lang="en"] .hero__title { font-size: min(19px, calc(5.79vw - 4.9px)); }
  html[lang="fr"] .hero__title { font-size: min(19px, calc(5.24vw - 5.4px)); }
  html[lang="de"] .hero__title { font-size: min(19px, calc(4.9vw - 3.7px)); }
  html[lang="nl"] .hero__title { font-size: min(19px, calc(6.15vw - 6.3px)); }
  html[lang="es"] .hero__title { font-size: min(19px, calc(4.96vw - 5px)); }
  html[lang="it"] .hero__title { font-size: min(19px, calc(5.56vw - 5px)); }
  html[lang="en"] .love__title { font-size: min(30px, calc((100vw - 40px) * 0.063)); }
  html[lang="fr"] .love__title { font-size: min(30px, calc((100vw - 40px) * 0.0727)); }
  html[lang="de"] .love__title { font-size: min(30px, calc((100vw - 40px) * 0.0743)); }
  html[lang="nl"] .love__title { font-size: min(30px, calc((100vw - 40px) * 0.0624)); }
  html[lang="es"] .love__title { font-size: min(30px, calc((100vw - 40px) * 0.069)); }
  html[lang="it"] .love__title { font-size: min(30px, calc((100vw - 40px) * 0.0757)); }
  html[lang="en"] .social-band__btn--li, html[lang="fr"] .social-band__btn--li { font-size: min(16px, calc((100vw - 72px) * .0502)); }
  html[lang="it"] .social-band__btn--li { font-size: min(16px, calc((100vw - 72px) * .06)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .love__row { overflow-x: auto; scrollbar-width: none; }
  .love__row--left .love__track { margin-left: 0; }
}
@media (max-width: 860px) { .legal h2 { font-size: 20px; } }

/* ---------- Privacy policy (inside the legal dialog) ---------- */
.legal__sep { border: 0; border-top: 1px solid var(--line); margin: 28px 0 8px; }
.legal h4 { font-size: 14px; font-weight: 600; margin: 18px 0 4px; }
.legal ul { margin: 6px 0 8px; padding-left: 20px; }
.legal li { margin: 3px 0; }
.legal code { font-family: "DM Mono", ui-monospace, monospace; font-size: 13px; background: var(--lilac); padding: 1px 5px; border-radius: 4px; }
.legal__meta { color: var(--muted); font-size: 13px; }
.optout { margin: 12px 0 14px; padding: 14px 16px; border-radius: 12px; background: var(--lilac); display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; justify-content: space-between; }
.optout__status { margin: 0 !important; font-weight: 500; }
.optout__btn { padding: 8px 16px; border-radius: 999px; background: var(--purple); color: var(--white); font-size: 14px; font-weight: 600; transition: background-color var(--t); }
.optout__btn:hover { background: var(--purple-dark); }
.optout.is-off .optout__btn { background: var(--white); color: var(--purple-dark); box-shadow: inset 0 0 0 1.5px var(--purple); }
