/* =========================================================
   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;
  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: 19px; 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-block; transition: transform var(--t) var(--ease); }
a:hover .arr, button:hover .arr { transform: translateX(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: 20px; font-weight: 300; position: relative; padding: 4px 0; }
.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: 20px; 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% 24%; }
.hero::after { content: ""; position: absolute; inset: 0 0 auto; height: 55%; background: linear-gradient(rgba(10, 8, 30, .35), rgba(10, 8, 30, 0)); 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, 31px); 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;
}

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

/* ---------- Survey ---------- */
.survey { max-width: calc(1036px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.survey__title { text-align: center; font-size: clamp(24px, 2.35vw, 31px); 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: 26px; 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: 19px; 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__long {
  display: block; margin-top: 48px; background: var(--purple-dark); color: var(--white); text-decoration: none; text-align: center;
  font-weight: 600; font-size: 19px; line-height: 1.35; padding: 10px 20px; transition: background-color var(--t);
}
.survey__long:hover { background: var(--purple); }

/* ---------- Let's Talk ---------- */
.talk { margin-top: 124px; background: var(--purple); color: var(--white); text-align: center; padding: 86px var(--gutter) 72px; }
.talk__kicker { font-size: 20px; 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: clamp(24px, 2.35vw, 31px); font-weight: 700; line-height: 1.3; }
.talk__text { max-width: 1080px; margin: 0 auto; font-size: clamp(19px, 1.9vw, 25px); font-weight: 300; line-height: 1.45; }
.talk__cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 390px; margin-top: 70px; padding: 14px 32px;
  background: var(--white); color: var(--ink); text-decoration: none; font-size: 25px; 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(1040px + 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 { scroll-snap-align: start; aspect-ratio: 9 / 16; background: #555; overflow: hidden; }
.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: 68px; height: 68px; }
.videos__arrow--prev { left: -96px; }
.videos__arrow--next { right: -96px; }
.videos__arrow svg { width: 100%; height: 100%; }
.videos__arrow circle { fill: #e6e6e6; transition: fill var(--t); }
.videos__arrow path { fill: none; stroke: #fff; stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; }
.videos__arrow:not(:disabled):hover circle { fill: var(--purple); }
.videos__arrow:disabled { cursor: default; opacity: .55; }

/* ---------- LinkedIn / YouTube band ---------- */
.social-band { background: var(--purple); display: flex; justify-content: center; gap: clamp(24px, 8vw, 110px); padding: 36px var(--gutter); flex-wrap: wrap; }
.social-band__btn {
  flex: 0 1 520px; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 6px 16px;
  background: var(--white); color: var(--ink); text-decoration: none; font-size: 19px; text-align: center;
  transition: background-color var(--t), color var(--t);
}
.social-band__btn:hover { background: var(--lilac); color: var(--purple-dark); }
.social-band__btn:focus-visible { outline-color: var(--white); }

/* ---------- Project blocks ---------- */
.project { margin-top: 40px; }
.block { padding: 40px var(--gutter) 46px; text-align: center; }
.block > * { max-width: var(--text); margin-left: auto; margin-right: auto; }
.block h2 { font-size: 26px; font-weight: 700; line-height: 1.3; margin-bottom: 6px; }
.block p { font-size: 20px; line-height: 1.55; }
.block--b { background: var(--lilac); }

/* ---------- 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;
}
.contact__photo { flex: 0 0 auto; width: 280px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: #ddd; }
.contact__photo img { width: 100%; height: 100%; object-fit: cover; }
.contact__body { min-width: 0; padding: 4px 0; }
.contact__name { font-size: 31px; font-weight: 700; line-height: 1.2; }
.contact__role { font-size: 25px; font-weight: 300; text-transform: uppercase; line-height: 1.3; margin-top: 6px; }
.contact__text { font-size: 19px; 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: 19px; 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); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--ink); padding: 44px var(--gutter) 40px; }
.footer__box { max-width: 1100px; margin: 0 auto; background: #faf9fe; padding: 14px 0 22px; }
.footer__row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.footer__quote { max-width: 340px; }
.footer__quote blockquote { font-style: italic; font-weight: 300; font-size: 15px; line-height: 1.75; color: #3a3845; }
.footer__quote figcaption { margin-top: 10px; font-family: "DM Mono", ui-monospace, monospace; font-weight: 300; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.footer__logo { width: 80px; 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: 44px; text-align: center; font-family: "DM Mono", ui-monospace, monospace; font-weight: 300; font-size: 13px; color: #8d8a98; letter-spacing: .02em; }
.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); }

/* =========================================================
   Tablet
   ========================================================= */
@media (max-width: 1320px) {
  .videos { padding: 0 104px; max-width: calc(1040px + 208px); }
  .videos__arrow--prev { left: 20px; }
  .videos__arrow--next { right: 20px; }
}
@media (max-width: 1100px) {
  .nav { gap: 22px; }
  .nav a, .lang__label { font-size: 17px; }
  .survey__grid { gap: 14px 24px; }
  .survey__box { padding: 24px 32px 30px; border-radius: 40px; }
  .contact__card { gap: 32px; }
  .contact__photo { width: 230px; }
  .contact__role { font-size: 21px; }
}

/* =========================================================
   Mobile (matches the vertical mockup)
   ========================================================= */
@media (max-width: 860px) {
  :root { --header-h: 60px; --gutter: 20px; }
  body { font-size: 17px; }
  .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: 28px; font-weight: 700; padding: 4px 0; transition: color var(--t); }
  .mobile-menu nav a:hover { color: var(--purple); }
  .mobile-menu__lang { font-size: 28px; 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; }

  .hero { height: auto; aspect-ratio: 3 / 2; border-radius: 0 0 28px 28px; }
  .hero__title { top: 7%; padding: 0 20px; font-size: clamp(18px, 5vw, 26px); }
  .hero__tag { right: 22px; bottom: 12px; font-size: 10px; }

  .intro { margin: 44px auto 40px; font-size: 17px; }
  .survey__title { margin-bottom: 26px; font-size: clamp(20px, 5.4vw, 26px); }
  .survey__title span { display: block; }
  .survey__box { border-radius: 12px; padding: 18px 16px 18px; }
  .survey__box:focus-visible { border-radius: 12px; }
  .survey__q { font-size: 17px; margin-bottom: 18px; }
  .survey__grid { grid-template-columns: 1fr 1fr; gap: 10px 14px; }
  .opt, .survey__go { font-size: 14px; min-height: 42px; padding: 6px 8px; }
  .survey__long { margin-top: 26px; font-size: 16px; padding: 8px 12px; }

  .talk { margin-top: 32px; padding: 44px var(--gutter) 46px; }
  .talk__kicker { font-size: 16px; }
  .talk__title { margin: 20px auto 20px; font-size: clamp(21px, 5.6vw, 28px); }
  .talk__text { font-size: 17px; }
  .talk__cta { min-width: 0; width: min(100%, 300px); margin-top: 30px; font-size: 18px; padding: 11px 20px; }

  /* 2 x 2 grid, no arrows */
  .videos { padding: 0 var(--gutter); margin: 0 auto; background: var(--white); }
  .videos { margin-top: 24px; max-width: none; }
  .videos__track { grid-auto-flow: row; grid-template-columns: 1fr 1fr; grid-auto-columns: auto; gap: 16px; overflow: visible; max-width: 480px; margin: 0 auto; }
  .videos__arrow { display: none; }

  .social-band { background: transparent; flex-direction: column; align-items: center; gap: 14px; padding: 18px var(--gutter) 10px; }
  .social-band__btn { flex: none; width: 100%; max-width: 480px; background: var(--purple); color: var(--white); font-size: 15px; min-height: 44px; }
  .social-band__btn:hover { background: var(--purple-dark); color: var(--white); }
  .social-band__btn:focus-visible { outline-color: var(--purple); }
  .social-band__btn--yt { order: -1; }

  .project { margin-top: 26px; }
  .block { padding: 26px var(--gutter) 30px; }
  .block h2 { font-size: 21px; }
  .block p { font-size: 17px; }
  .block--a { background: var(--lilac); }
  .block--b { background: transparent; }

  .contact { margin: 36px auto 40px; padding: 0 var(--gutter); max-width: 520px; }
  .contact__card { flex-direction: column; align-items: stretch; gap: 0; border-radius: 0; padding: 0 22px 24px; margin-top: 70px; }
  .contact__photo { width: 150px; margin: -70px auto 0; border: 8px solid var(--purple); box-sizing: content-box; }
  .contact__body { padding-top: 20px; }
  .contact__name { font-size: 22px; }
  .contact__role { font-size: 16px; }
  .contact__text { font-size: 14px; margin-top: 16px; }
  .contact__reach { font-size: 14px; gap: 8px 10px; margin-top: 14px; }
  .contact__icon { width: 38px; height: 38px; }

  .footer { padding: 26px 12px 30px; }
  .footer__row { grid-template-columns: 1fr auto; gap: 18px 12px; }
  .footer__quote { grid-column: 1 / -1; max-width: none; text-align: center; }
  .footer__quote blockquote { font-size: 14px; }
  .footer__logo { width: 76px; }
  .footer__social { gap: 8px; }
  .footer__social a { width: 38px; height: 38px; }
  .footer__copy { margin-top: 26px; font-size: 11px; padding: 0 8px; line-height: 1.8; }
  .legal__inner { padding: 28px 22px 24px; }
}
@media (max-width: 380px) {
  .opt, .survey__go { font-size: 13px; }
  .contact__reach { font-size: 13px; }
}

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