:root {
  --bg:         #171717;
  --bg-dark:    #0f0f0f;
  --rule:       rgba(239, 239, 239, 0.125); /* decorative separator          exempt            */
  --text-hi:    rgba(239, 239, 239, 0.90);  /* primary    90–95%  ~14:1    WCAG AAA           */
  --text-mid:   rgba(239, 239, 239, 0.65);  /* body       65–75%   ~7:1    WCAG AAA           */
  --text-lo:    rgba(239, 239, 239, 0.48);  /* supporting 48–60%  ~4.5:1   WCAG AA            */
  --text-muted: rgba(239, 239, 239, 0.20);  /* decorative 20–35%   <3:1    exempt             */
  --accent:     rgba(239, 239, 239, 0.08);  /* subtle surface                                  */
  --border-hi:  rgba(239, 239, 239, 0.35);  /* interactive boundary 35%+   3:1  WCAG AA (1.4.11) */
  --border-lo:  rgba(239, 239, 239, 0.125); /* decorative card border       exempt             */
}

/* #region CSS Reset */

* {
  position: relative;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  &::before,
  &::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  &:focus-visible {
    outline: 2px solid var(--border-hi);
    outline-offset: 2px;
  }
}


html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--bg);
  color: var(--text-hi);
  font-family: 'Manrope', sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ── Skip link ───────────────────────────────────────────────────── */
.skip_link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 100;
  font-family: 'Roboto Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-hi);
  background: var(--bg-dark);
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  text-decoration: none;

  &:focus {
    top: 16px;
  }
}

/* ── Fixed site header ───────────────────────────────────────────── */
.site_header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  flex-direction: row;
  padding: 60px 20px 20px 20px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

  &::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40px;
    border-bottom: 1px solid var(--rule);
    pointer-events: none;

  }

  .header__brand {
    height: 20px;
    flex: 1;
  }

  @media (min-width: 600px) {
    padding: 80px 40px 40px 40px;
  }
}

/* ── Animation pause/play button ─────────────────────────────────── */
.anim-btn {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: none;
  border-radius: 4px;
  padding: 2px;
  cursor: pointer;
  color: var(--text-lo);
  display: flex;
  align-items: center;
  overflow: hidden;
  transition: color 0.2s;

  &::before {
    content: '';
    position: absolute;
    inset: 0;
    background: currentColor;
    opacity: 0;
    border-radius: inherit;
    pointer-events: none;
    transition: opacity 0.2s;
  }

  &:hover                 { color: var(--text-mid); }
  &:hover::before         { opacity: 0.08; }
  &:focus-visible::before { opacity: 0.12; }
  &:active::before        { opacity: 0.12; }

  .anim-btn__icon {
    display: block;
    width: 18px;
    height: 18px;
    background-color: currentColor;
    -webkit-mask-image: url('../img/pause_24dp_E3E3E3_FILL1_wght400_GRAD0_opsz24.svg');
    mask-image: url('../img/pause_24dp_E3E3E3_FILL1_wght400_GRAD0_opsz24.svg');
    -webkit-mask-size: 18px 18px;
    mask-size: 18px 18px;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
  }
}

/* ── Brand wordmark ──────────────────────────────────────────────── */
.brand {
  font-family: 'Manrope', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

/* ── Header links — icon reveal on hover via CSS mask ────────────── */
.header__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: inherit;

  /*
  &::after {
    content: '';
    display: inline-block;
    width: 24px;
    max-width: 0;
    height: 24px;
    flex-shrink: 0;
    overflow: hidden;
    background-color: currentColor;
    -webkit-mask-image: url('../img/arrow_forward_ios_24dp_FFFFFF_FILL0_wght400_GRAD0_opsz24.svg');
    mask-image: url('../img/arrow_forward_ios_24dp_FFFFFF_FILL0_wght400_GRAD0_opsz24.svg');
    -webkit-mask-size: 24px 24px;
    mask-size: 24px 24px;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: left center;
    mask-position: left center;
    transform: translateX(8px);
    transition: max-width 0.2s ease, transform 0.2s ease;
  }

  &:hover::after {
    max-width: 24px;
    transform: translateX(0);
  }
  */

  .link__text {
    letter-spacing: 0.12em;
  }
}

/* ── Fog overlay ─────────────────────────────────────────────────── */
.fog-svg {
  position: fixed;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.2;
  transition: opacity 0.4s ease;
  animation: fog-drift 40s ease-in-out infinite;
}

@keyframes fog-drift {
  0% {
    transform: translate(0%, 0%);
  }

  25% {
    transform: translate(4%, -3%);
  }

  50% {
    transform: translate(6%, 2%);
  }

  75% {
    transform: translate(2%, 4%);
  }

  100% {
    transform: translate(0%, 0%);
  }
}


/* ── Canvas fixed behind everything ─────────────────────────────── */
canvas {
  position: fixed !important;
  top: 0;
  left: 0;
  z-index: 0;
}

/* ── Hero: two-column flex ───────────────────────────────────────── */
/*
 * ≤ 1024px    : single column, canvas hidden
 * 1025–1366px : col_text 50vw              | canvas flex: 1
 * > 1366px    : col_text min(100vh, 683px) | canvas flex: 1
 */
#hero {
  position: relative;
  min-height: 100svh;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;

  @media (min-width: 1025px) {
    flex-direction: row;
    justify-content: normal;
    min-height: 100vh;
  }

  .col_canvas {
    display: none;

    @media (min-width: 1025px) {
      display: block;
      flex: 1;
    }
  }
}

/* ── Left column ─────────────────────────────────────────────────── */
.col_text {
  flex: 1 1 auto;
  min-height: auto;
  display: flex;
  flex-direction: column;
  overflow-y: visible;
  border-top: 1px solid var(--rule);
  padding: 20px;

  @media (min-width: 600px) {
    padding: 40px;
  }

  @media (min-width: 1025px) {
    flex: 0 0 50vw;
    border-top: none;
    min-height: 100vh;
    overflow-y: auto;
    padding: 0;
  }

  @media (min-width: 1367px) {
    flex-basis: min(100vh, 683px);
  }
}

/* ── Hero content ────────────────────────────────────────────────── */
.hero__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: end;
  gap: 20px;
  padding-top: 100px;
  
  @media (min-width: 600px) {
    gap: 40px;
    padding: 40px;
    padding-top: 180px;
    justify-content: center;
  }

  .hero__section {
    display: flex;
    flex-direction: column;
  }
}

/* ── Typography ──────────────────────────────────────────────────── */
h1 {
  font-family: 'Manrope', sans-serif;
  font-size: 2.25rem;
  /* Display Small  — 36px */
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.05em;
  color: var(--text-hi);

  @media (min-width: 600px) {
    font-size: 2.8125rem;
    /* Display Medium — 45px */
  }
}

.subhead {
  font-family: 'Manrope', sans-serif;
  font-size: 1.375rem;
  /* Title Large — 22px */
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: 0.05em;
  color: var(--text-mid);
  max-width: 50ch;

  @media (min-width: 600px) {
    max-width: 65ch;
  }
}

/* ── Featured cards ──────────────────────────────────────────────── */
.cards {
  padding: 0 40px 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;

  .cards__item {
    display: flex;
    flex-direction: column;
  }
}

.featured {
  border: 1px solid var(--border-lo);
  border-radius: 4px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: auto;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  text-align: left;
  width: 100%;
  overflow: hidden;
  transition: border-color 0.2s;

  &::before {
    content: '';
    position: absolute;
    inset: 0;
    background: currentColor;
    opacity: 0;
    border-radius: inherit;
    pointer-events: none;
    transition: opacity 0.2s;
  }

  &:hover                 { border-color: var(--border-hi); }
  &:hover::before         { opacity: 0.08; }
  &:focus-visible::before { opacity: 0.12; }
  &:active::before        { opacity: 0.12; }

  .featured__label {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.75rem;
    /* Label Medium — 12px */
    font-weight: 400;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-lo);
  }

  .featured__title {
    font-family: 'Manrope', sans-serif;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-hi);
    line-height: 1.3;
  }

  .featured__cta {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.875rem;
    /* Label Large — 14px */
    font-weight: 400;
    color: var(--text-mid);
    letter-spacing: 0.04em;
    margin-top: 4px;
  }
}

/* ── CTA ─────────────────────────────────────────────────────────── */
.cta_wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.disclaimer {
  font-family: 'Roboto Mono', monospace;
  font-size: 0.75rem;
  /* Body Small — 12px */
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  line-height: 1.6;
  max-width: 50ch;

  @media (min-width: 600px) {
    max-width: 65ch;
  }
}

.cta_btn {
  align-self: stretch;
  text-align: center;
  font-family: 'Manrope', sans-serif;
  font-size: 0.875rem;
  /* Label Large — 14px */
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  padding: 14px 32px;
  border-radius: 4px;
  border: none;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  pointer-events: auto;
  cursor: pointer;
  overflow: hidden;
  transition: color 0.2s;

  &::before {
    content: '';
    position: absolute;
    inset: 0;
    background: currentColor;
    opacity: 0;
    border-radius: inherit;
    pointer-events: none;
    transition: opacity 0.2s;
  }

  &:hover                 { color: rgba(255, 255, 255, 1); }
  &:hover::before         { opacity: 0.08; }
  &:focus-visible         { color: rgba(255, 255, 255, 1); outline: none; }
  &:focus-visible::before { opacity: 0.12; }
  &:active::before        { opacity: 0.12; }

  @media (min-width: 600px) {
    align-self: flex-start;
    text-align: left;
  }
}

/* ── Site footer ─────────────────────────────────────────────────── */
.site_footer {
  position: relative;
  z-index: 10;
  padding: 40px;

  .footer__inner {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .footer__entity {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.75rem;
    /* Label Medium — 12px */
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.28);
  }

  .footer__contact {
    font-family: 'Manrope', sans-serif;
    font-size: 0.82rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    transition: color 0.2s;

    &:hover {
      color: rgba(255, 255, 255, 0.75);
    }
  }

  .footer__legal {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.75rem;
    /* Body Small — 12px */
    font-weight: 300;
    color: var(--text-muted);
    letter-spacing: 0.03em;
    line-height: 1.7;
    margin-top: 4px;
    max-width: 65ch;
  }

  .footer__copy {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.75rem;
    /* Label Medium — 12px */
    font-weight: 300;
    color: var(--text-muted);
    letter-spacing: 0.06em;

    a {
      color: inherit;
      text-decoration: underline;
      text-decoration-color: rgba(255, 255, 255, 0.15);
      text-underline-offset: 3px;
    }
  }
}