:root {
  --green: #04B77B;
  --orange: #FF8811;
  /* DataOne accent — CTAs + active topic tab */
  --orange-dk: #E5730A;
  --green-dk: #039A67;
  --bg: #171C24;
  --card: #232830;
  --card-hover: #282E37;
  --header: #1A1F27;
  --line: rgba(255, 255, 255, .07);
  --muted: #9AA3AE;
  --muted-2: #6E7783;
  --head: 'Titillium Web', system-ui, sans-serif;
  --body: 'Sora', system-ui, sans-serif;
  --maxw: 900px;

  /* ---------------------------------------------------------------
     HERO BACKGROUND — the aerial / site photo. Set to `none` and it
     falls back to a clean dark field.
     --------------------------------------------------------------- */
  --hero-img: url('assets/background.webp');
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

html {
  scroll-behavior: smooth
}

body {
  background: var(--bg);
  color: var(--muted);
  font-family: var(--body);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* rail scrolls internally, never the page */
  overflow-anchor: none;
  /* we correct scroll ourselves — don't let the browser also try */
}

h1,
h2,
.pill,
.btn,
.q-text,
.cat-title,
.count,
.brand .name,
.loc,
.tag,
.eyebrow,
.explore,
.mail,
.cookie button {
  font-family: var(--head);
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px
}

a {
  color: var(--green);
  text-decoration: none
}

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 6px
}

/* progress bar */
#progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: var(--green);
  z-index: 100
}

/* header */
header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--header);
  border-bottom: 1px solid var(--line)
}

.hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 32px
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 20px
}

.brand {
  display: flex;
  align-items: center
}

.logo-hdr {
  height: 34px;
  width: auto;
  display: block
}

.logo-hero {
  height: 74px;
  width: auto;
  max-width: 100%;
  margin: 0 auto 30px;
  display: block
}

.logo-foot {
  height: 40px;
  width: auto;
  max-width: 100%;
  margin: 0 auto 16px;
  display: block;
  opacity: .9
}

.loc {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #C9D0D8;
  padding-left: 20px;
  border-left: 1px solid var(--line)
}

.loc .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  flex: none
}

.btn {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 13px 26px;
  border-radius: 100px;
  background: var(--orange);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: .2s
}

.btn:hover {
  background: var(--orange-dk);
  transform: translateY(-1px)
}

/* hero — fills the first screen, so the topic bar sits below the fold */
.hero {
  position: relative;
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: center;
  justify-content: center;
  /* content centred */
  text-align: center;
  padding: 40px 0;
  overflow: hidden;
  background: var(--hero-img, none) center/cover no-repeat, #10141B;
}

.hero::before {
  /* readability scrim */
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 26, 33, .55) 0%, rgba(20, 26, 33, .62) 55%, rgba(23, 28, 36, .92) 100%),
    radial-gradient(120% 90% at 50% 45%, rgba(4, 183, 123, .06) 0%, rgba(0, 0, 0, .35) 100%);
}

.hero .wrap {
  position: relative;
  z-index: 1
}

.logo-hero {
  height: 46px;
  width: auto;
  max-width: 100%;
  margin: 0 auto 26px;
  display: block
}

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 18px
}

.hero h1 {
  font-weight: 700;
  color: #fff;
  font-size: clamp(36px, 5vw, 54px);
  line-height: 1.12;
  margin-bottom: 22px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .45)
}

.hero h1 .accent {
  color: var(--green)
}

.hero p {
  max-width: 620px;
  margin: 0 auto 46px;
  font-size: 16px;
  color: #C6CCD4;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .5)
}

/* explore — thin bouncing chevron, no button chrome */
.explore {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #9AA3AE;
  transition: color .2s
}

.explore:hover {
  color: #fff
}

.explore svg {
  width: 30px;
  height: 18px;
  stroke: #fff;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: bounce 2s infinite;
  opacity: .85
}

.explore:hover svg {
  stroke: var(--green);
  opacity: 1
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0)
  }

  40% {
    transform: translateY(8px)
  }

  60% {
    transform: translateY(4px)
  }
}

/* filters */
.filters {
  position: sticky;
  top: 76px;
  z-index: 55;
  background: var(--header);
  border-bottom: 1px solid var(--line);
  padding: 14px 0
}

/* Edge fades hint that the rail scrolls. They're applied ONLY on a side that
   actually has tabs hidden — otherwise the fade would wash out the first/last
   pill for no reason. */
.rail {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  --fl: 0px;
  --fr: 0px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--fl), #000 calc(100% - var(--fr)), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 var(--fl), #000 calc(100% - var(--fr)), transparent 100%);
}

.rail.fade-l {
  --fl: 40px
}

.rail.fade-r {
  --fr: 40px
}

.pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-behavior: smooth;
  padding: 2px 0;
}

.pills::-webkit-scrollbar {
  display: none
}

.pill {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  padding: 9px 20px;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: var(--card);
  color: #C9D0D8;
  cursor: pointer;
  transition: .2s
}

.pill:hover {
  border-color: rgba(255, 136, 17, .55);
  color: #fff
}

.pill.active {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff
}

/* faq */
.faq {
  padding: 72px 0 48px
}

.cat {
  margin-bottom: 64px;
  scroll-margin-top: 150px
}

.cat.hide {
  display: none
}

.cat-head {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line)
}

.icon {
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 12px;
  background: rgba(4, 183, 123, .12);
  border: 1px solid rgba(4, 183, 123, .25);
  display: flex;
  align-items: center;
  justify-content: center
}

.icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--green);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round
}

.cat-title {
  font-size: 27px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2
}

.count {
  font-family: var(--body);
  font-size: 13px;
  font-weight: 300;
  color: var(--muted-2);
  margin-left: auto;
  white-space: nowrap;
  flex: none
}

.item {
  background: var(--card);
  border: 1px solid transparent;
  border-radius: 12px;
  margin-bottom: 12px;
  transition: border-color .25s, background .25s
}

.item:hover {
  background: var(--card-hover)
}

.item.open {
  background: rgba(4, 183, 123, .05);
  border-color: var(--green)
}

.q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  padding: 22px
}

.q-text {
  font-size: 16.5px;
  font-weight: 700;
  color: #fff;
  line-height: 1.45;
  transition: color .2s
}

.item.open .q-text {
  color: var(--green)
}

.toggle {
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, .07);
  color: #C9D0D8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  line-height: 1;
  transition: .25s
}

.item.open .toggle {
  background: var(--green);
  color: #fff
}

.a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .38s cubic-bezier(.4, 0, .2, 1)
}

.a.instant {
  transition: none
}

/* used when compensating scroll, avoids jank */
.a-inner {
  padding: 0 22px 24px;
  font-size: 15.5px;
  color: var(--muted)
}

.a-inner p {
  margin-bottom: 14px
}

.a-inner p:last-child {
  margin-bottom: 0
}

.a-inner ul {
  margin: 0 0 14px 18px
}

.a-inner li {
  margin-bottom: 9px
}

.a-inner li::marker {
  color: var(--green)
}

.hl {
  color: var(--green);
  font-weight: 400
}

/* ---------- REVEAL ANIMATIONS ----------
   Only opacity + transform are animated — neither affects layout, so nothing
   reflows and the scrolling stays as stable as it is now. */
.rise {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.16, 1, .3, 1);
}

.rise.in {
  opacity: 1;
  transform: none
}

/* hero: staggered fade-up on load */
.hero .rise:nth-child(1) {
  transition-delay: .10s
}

.hero .rise:nth-child(2) {
  transition-delay: .22s
}

.hero .rise:nth-child(3) {
  transition-delay: .34s
}

.hero .rise:nth-child(4) {
  transition-delay: .46s
}

.hero .rise:nth-child(5) {
  transition-delay: .60s
}

/* questions: a touch quicker, gently staggered inside each category */
.item.rise {
  transition-duration: .6s;
  transform: translateY(20px)
}

.item.rise.in {
  transform: none
}

@media (prefers-reduced-motion:reduce) {
  .rise {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important
  }
}

/* back to top — appears once you're past the hero */
#toTop {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 70;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: var(--green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .3s ease, transform .3s ease, background .2s, visibility .3s;
}

#toTop.show {
  opacity: 1;
  visibility: visible;
  transform: none
}

#toTop:hover {
  background: var(--green-dk);
  transform: translateY(-2px)
}

#toTop svg {
  width: 19px;
  height: 11px;
  stroke: #fff;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round
}

/* contact */
.contact {
  text-align: center;
  padding: 80px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 96px
}

.contact h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px
}

.contact p {
  max-width: 560px;
  margin: 0 auto 32px;
  color: var(--muted)
}

.mail {
  display: inline-block;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .06em;
  background: var(--orange);
  color: #fff;
  padding: 15px 34px;
  border-radius: 100px;
  transition: .2s
}

.mail:hover {
  background: var(--orange-dk);
  transform: translateY(-1px)
}

.contact .site {
  margin-top: 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted)
}

/* footer */
footer {
  background: var(--header);
  border-top: 1px solid var(--line);
  padding: 48px 0;
  text-align: center;
  color: var(--muted-2);
  font-size: 14px
}

.tag {
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 8px
}

.foot-mail {
  margin-top: 8px
}

/* cookie */
.cookie {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  background: var(--card);
  border-top: 1px solid var(--line);
  padding: 16px 24px;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap
}

.cookie p {
  font-size: 13.5px;
  max-width: 620px;
  color: var(--muted)
}

.cookie button {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 10px 22px;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: transparent;
  color: #C9D0D8;
  transition: .2s
}

.cookie button.accept {
  background: var(--green);
  border-color: var(--green);
  color: #fff
}

.cookie button.accept:hover {
  background: var(--green-dk)
}

.cookie button.decline:hover {
  background: rgba(255, 255, 255, .07);
  color: #fff
}

.cookie-actions {
  display: flex;
  gap: 10px
}

.cookie.hidden {
  display: none
}

@media (max-width:760px) {
  .hdr {
    height: 64px;
    padding: 0 16px;
    gap: 10px
  }

  .brand-wrap {
    gap: 10px;
    min-width: 0
  }

  .logo-hdr {
    height: 26px
  }

  .logo-hero {
    height: 36px;
    width: auto;
    margin: 0 auto 22px
  }

  .hero {
    min-height: calc(100vh - 64px);
    padding: 32px 0
  }

  .loc {
    display: none
  }

  /* hero already states the location; avoids collision */
  .loc {
    font-size: 10px;
    letter-spacing: .06em;
    padding-left: 10px;
    gap: 6px;
    white-space: nowrap
  }

  .btn {
    padding: 9px 14px;
    font-size: 10px;
    letter-spacing: .05em;
    flex: none
  }

  .filters {
    top: 64px;
    padding: 12px 0
  }

  .rail {
    padding: 0 16px
  }

  .hero {
    padding: 64px 0 56px
  }

  .cat-title {
    font-size: 22px
  }

  .q {
    padding: 18px 16px
  }

  .a-inner {
    padding: 0 16px 20px
  }
}

@media (prefers-reduced-motion:reduce) {
  * {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important
  }
}