/* ScoutHub holding site.
   Look taken from the Luminos template the user bought (blue #3534FF, Aeonik headings, big white sections,
   a full-screen sailing video). Written lean on purpose: no frameworks, no blur over the video,
   no parallax, so the page stays smooth. */

@font-face {
  font-family: "Aeonik";
  src: url("../fonts/aeonik-medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #3534ff;
  --blue-deep: #2827d4;
  --night: #0b0a33;
  --ink: #17172e;
  --muted: #56576f;
  --tint: #f4f4ff;
  --line: #ddd8f9;
  --white: #fff;
  --head: "Aeonik", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --bar: 4.5rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--bar); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
}
img, video { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-family: var(--head); font-weight: 500; line-height: 1.1; letter-spacing: -0.015em; text-wrap: balance; }
p { margin: 0; }
a { color: var(--blue-deep); text-underline-offset: 0.2em; }
a:hover { color: var(--blue); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 3px; }

.wrap { width: 100%; max-width: 76rem; margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: 0.6rem 1rem; background: var(--white); color: var(--ink); border-radius: 6px; }
.skip:focus { top: 1rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.95rem 1.6rem; border: 2px solid var(--blue); border-radius: 6px;
  background: var(--blue); color: var(--white);
  font-family: var(--head); font-size: 1.05rem; line-height: 1.2; text-decoration: none;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.btn:hover { background: var(--blue-deep); border-color: var(--blue-deep); color: var(--white); }
.btn--small { padding: 0.6rem 1.1rem; font-size: 0.95rem; }
.btn--ghost { background: transparent; border-color: rgba(255, 255, 255, 0.7); }
.btn--ghost:hover { background: var(--white); border-color: var(--white); color: var(--night); }
.btn--light { background: var(--white); border-color: var(--white); color: var(--blue-deep); }
.btn--light:hover { background: var(--night); border-color: var(--night); color: var(--white); }

/* ---------- header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--bar); transition: background-color 0.25s, box-shadow 0.25s; }
.bar { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--white); text-decoration: none; }
.brand:hover { color: var(--white); }
.brand__mark { height: 2.1rem; width: auto; }
.brand__mark--dark { display: none; }
.brand__name { font-family: var(--head); font-size: 1.45rem; letter-spacing: -0.01em; }

.site-nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2rem); }
.site-nav a:not(.btn) { color: var(--white); text-decoration: none; font-family: var(--head); font-size: 1.02rem; }
.site-nav a:not(.btn):hover { text-decoration: underline; text-underline-offset: 0.3em; }
.nav-toggle { display: none; padding: 0.55rem 1rem; border: 1px solid rgba(255, 255, 255, 0.6); border-radius: 6px; background: transparent; color: var(--white); font: inherit; font-family: var(--head); cursor: pointer; }

.site-header.is-solid { background: var(--white); box-shadow: 0 1px 0 var(--line), 0 8px 24px rgba(11, 10, 51, 0.06); }
.site-header.is-solid .brand, .site-header.is-solid .site-nav a:not(.btn) { color: var(--ink); }
.site-header.is-solid .brand__mark--light { display: none; }
.site-header.is-solid .brand__mark--dark { display: block; }
.site-header.is-solid .nav-toggle { color: var(--ink); border-color: var(--line); }

/* LinkedIn: white "in" over the video, LinkedIn blue once the header turns white */
.li-icon { flex: none; display: block; }
.nav-linkedin { display: inline-flex; align-items: center; gap: 0.5rem; }
.nav-linkedin:hover { opacity: 0.8; }
.nav-linkedin__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.site-header.is-solid .site-nav a.nav-linkedin { color: #0a66c2; }
.li-link { display: inline-flex; align-items: center; gap: 0.55rem; color: inherit; text-decoration: none; font-family: var(--head); }
.li-link:hover { color: inherit; text-decoration: underline; text-underline-offset: 0.25em; }

/* ---------- hero ---------- */
.hero {
  position: relative; display: flex; align-items: center;
  min-height: 100vh; min-height: 100svh; padding-block: calc(var(--bar) + 2rem) 3rem;
  background: var(--night) url("../img/poster.jpg") center / cover no-repeat;
  overflow: hidden; isolation: isolate;
}
.hero__video { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.9s ease; }
.hero__video.is-playing { opacity: 1; }
.hero__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(5, 8, 35, 0.15) 0%, rgba(5, 8, 35, 0.55) 100%); }
.hero__inner { display: flex; justify-content: flex-end; }
.hero__panel {
  width: min(100%, 36rem); padding: clamp(1.5rem, 3.4vw, 2.75rem);
  border-radius: 20px; background: rgba(11, 10, 51, 0.74); color: var(--white);
}
.hero h1 { font-size: clamp(2.4rem, 4.6vw, 3.9rem); margin-block: 1rem 1.25rem; }
.hero h1 span { color: #8c8bff; }
.lead { color: rgba(255, 255, 255, 0.9); font-size: clamp(1.02rem, 1.6vw, 1.2rem); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.pill {
  display: inline-block; padding: 0.3rem 0.9rem; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 999px;
  font-size: 0.9rem; color: rgba(255, 255, 255, 0.92); letter-spacing: 0.02em;
}

/* ---------- facts ---------- */
.facts { background: var(--white); border-bottom: 1px solid var(--line); }
.facts__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 0; }
.facts__grid > div { padding: clamp(1.5rem, 4vw, 2.5rem) 1.5rem clamp(1.5rem, 4vw, 2.5rem) 0; }
.facts__big { font-family: var(--head); font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; color: var(--blue); }
.facts__grid p:last-child { color: var(--muted); margin-top: 0.35rem; }

/* ---------- sections ---------- */
.section { padding-block: clamp(3.5rem, 9vw, 7rem); }
.section--tint { background: var(--tint); }
.section--night { background: var(--night); color: var(--white); }
.section__head { max-width: 46rem; margin-bottom: clamp(2rem, 6vw, 4rem); }
.section__head h2, .who h2, .faq h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.section__lead, .who__lead { margin-top: 1.1rem; color: var(--muted); font-size: 1.15rem; }
.eyebrow { margin-bottom: 0.9rem; font-family: var(--head); font-size: 0.95rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); }
.section--night .eyebrow { color: #8c8bff; }

/* pilot */
.pilot { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.pilot h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.pilot__date { margin-top: 1.5rem; font-family: var(--head); font-size: clamp(1.6rem, 3.4vw, 2.4rem); line-height: 1.15; }
.pilot__times { margin-top: 0.5rem; font-size: 1.2rem; color: rgba(255, 255, 255, 0.9); }
.pilot__times strong { font-family: var(--head); font-weight: 500; color: #a9a8ff; }
.pilot__times abbr { text-decoration: none; cursor: help; }
.pilot__local { margin-top: 0.5rem; font-size: 0.95rem; color: rgba(255, 255, 255, 0.65); }
.pilot__lead { margin-block: 1.5rem 1.75rem; max-width: 32rem; color: rgba(255, 255, 255, 0.85); }
.countdown { display: none; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; }
.countdown.is-ready { display: grid; }
.countdown > div { padding: 1.25rem 0.5rem; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 14px; text-align: center; background: rgba(255, 255, 255, 0.04); }
.countdown span { display: block; font-family: var(--head); font-size: clamp(1.8rem, 4.4vw, 3.1rem); line-height: 1; font-variant-numeric: tabular-nums; }
.countdown small { display: block; margin-top: 0.5rem; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.65); }
.countdown.is-live { grid-template-columns: 1fr; }
.countdown.is-live > div { display: none; }
.countdown.is-live::after { content: "The pilot project has launched."; padding: 1.5rem; font-family: var(--head); font-size: 1.5rem; text-align: center; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 14px; }

/* tools */
.tool { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; padding-block: clamp(2rem, 5vw, 3.5rem); }
.tool + .tool { border-top: 1px solid var(--line); }
.tool:nth-of-type(odd) .tool__media { order: 2; }
.tool__no { font-family: var(--head); font-size: 1.25rem; color: var(--blue); margin-bottom: 0.6rem; }
.tool h3 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 1rem; }
.tool__text > p:not(.tool__no) { color: var(--muted); font-size: 1.1rem; }
.tool__media img { width: 100%; height: auto; max-width: 32rem; aspect-ratio: 1; object-fit: cover; border-radius: 14px; }
.tool:nth-of-type(odd) .tool__media img { margin-left: auto; }
.ticks { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 0.7rem; }
.ticks li { position: relative; padding-left: 1.9rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.42em; width: 1.05rem; height: 0.55rem; border-left: 2.5px solid var(--blue); border-bottom: 2.5px solid var(--blue); transform: rotate(-45deg) scale(0.9); }

/* who */
.who { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.roles { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.roles li { padding: 0.7rem 1.2rem; border: 1px solid var(--line); border-radius: 999px; background: var(--white); font-family: var(--head); font-size: 1.1rem; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.25rem; }
.card { padding: 1.75rem; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.card h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.card p { color: var(--muted); }

/* faq */
.faq { display: grid; grid-template-columns: 1fr 1.7fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.faq__intro p:last-child { margin-top: 1rem; color: var(--muted); }
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list details:first-child { border-top: 1px solid var(--line); }
.faq__list summary { position: relative; padding: 1.25rem 2.5rem 1.25rem 0; font-family: var(--head); font-size: 1.2rem; cursor: pointer; list-style: none; }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after { content: "+"; position: absolute; right: 0.25rem; top: 50%; transform: translateY(-50%); font-size: 1.6rem; color: var(--blue); }
.faq__list details[open] summary::after { content: "\2212"; }
.faq__list details p { padding: 0 0 1.4rem; color: var(--muted); max-width: 42rem; }

/* cta + footer */
.cta { padding-block: clamp(3.5rem, 8vw, 6rem); background: var(--blue); color: var(--white); text-align: center; }
.cta h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); max-width: 36rem; margin-inline: auto; }
.cta p { margin-block: 1rem 2rem; font-size: 1.2rem; color: rgba(255, 255, 255, 0.9); }
.cta .cta__follow { margin-block: 1.5rem 0; font-size: 1.05rem; }
.site-footer { background: var(--night); color: rgba(255, 255, 255, 0.75); padding-block: 3rem; }
.footer__inner { display: grid; gap: 0.9rem; }
.footer__small { font-size: 0.9rem; color: rgba(255, 255, 255, 0.55); }

/* reveal on scroll: only applied by the script, and only to blocks below the first screen */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .nav-toggle { display: inline-block; }
  .site-nav {
    position: absolute; inset: var(--bar) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: 0.5rem clamp(1rem, 4vw, 2rem) 1.25rem; background: var(--white); box-shadow: 0 16px 24px rgba(11, 10, 51, 0.12);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) { color: var(--ink); padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin-top: 1rem; }
  .site-nav a.nav-linkedin { color: #0a66c2; }
  .nav-linkedin__text { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .site-header.is-open { background: var(--white); }
  .site-header.is-open .brand { color: var(--ink); }
  .site-header.is-open .brand__mark--light { display: none; }
  .site-header.is-open .brand__mark--dark { display: block; }
  .site-header.is-open .nav-toggle { color: var(--ink); border-color: var(--line); }
  .hero { align-items: flex-end; }
  .hero__shade { background: linear-gradient(180deg, rgba(5, 8, 35, 0.1) 0%, rgba(5, 8, 35, 0.6) 100%); }
  .hero__inner { justify-content: stretch; }
  .hero__panel { width: 100%; }
  .pilot, .who, .faq, .tool { grid-template-columns: 1fr; }
  .tool:nth-of-type(odd) .tool__media { order: 0; }
  .tool:nth-of-type(odd) .tool__media img { margin-left: 0; }
  .tool__media img { max-width: 100%; aspect-ratio: 4 / 3; }
}
@media (max-width: 480px) {
  .countdown { gap: 0.5rem; }
  .countdown > div { padding: 1rem 0.25rem; }
  .btn { width: 100%; }
  .actions { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .hero__video, .btn, .site-header { transition: none; }
}
