  :root {
    color-scheme: dark;
    --bg: #0E0F12;
    --ink: #F2F2F0;
    --ink-soft: #9BA0A8;
    --line: #26282D;
    --accent: #6E85FF;
    --card-bg: #17191E;
    --card-ink: #FBFBFA;
    --radius: 14px;
    --max: 880px;
  }

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

  html { scroll-behavior: smooth; }

  body {
    font-family: 'Space Grotesk', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }

  a { color: inherit; }
  a:focus-visible, button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
  }

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

  /* ---------- Nav ---------- */
  nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px 0;
    font-size: 14px;
  }
  nav .mark { font-weight: 700; letter-spacing: -0.02em; }
  nav .links { display: flex; gap: 28px; }
  nav .links a {
    text-decoration: none;
    color: var(--ink-soft);
    transition: color .2s;
  }
  nav .links a:hover { color: var(--ink); }

  /* ---------- Hero: the card ---------- */
  header { padding: 56px 0 88px; }

  .card-stage { perspective: 1200px; }

  .card {
    background: var(--card-bg);
    color: var(--card-ink);
    border-radius: var(--radius);
    aspect-ratio: 7 / 4;
    max-height: 440px;
    width: 100%;
    padding: clamp(28px, 5vw, 56px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform .35s ease, box-shadow .35s ease;
    transform-style: preserve-3d;
    box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .6);
    border: 1px solid rgba(251, 251, 250, .08);
    position: relative;
    overflow: hidden;
  }
  .card::after {
    /* subtle sheen, like card stock catching light */
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.06) 50%, transparent 60%);
    pointer-events: none;
  }

  .card .eyebrow {
    font-size: 13px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(251,251,250,.55);
    font-weight: 500;
  }

  .card .name-row {
    display: flex;
    align-items: center;
    gap: clamp(16px, 3vw, 28px);
  }
  .card .logo-badge {
    width: clamp(56px, 9vw, 88px);
    height: clamp(56px, 9vw, 88px);
    aspect-ratio: 1 / 1;
    background: #FFFFFF;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(0,0,0,.3);
    overflow: hidden;
  }
  .card .logo-badge img {
    width: 84%;
    height: 84%;
    object-fit: contain;
    display: block;
  }

  .card h1 {
    font-size: clamp(34px, 7vw, 72px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.05;
  }
  .card h1 .dot { color: var(--accent); }

  .card .card-foot {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    font-size: 14px;
    color: rgba(251,251,250,.7);
    flex-wrap: wrap;
  }
  .card .card-foot a { text-decoration: none; }
  .card .card-foot a:hover { color: var(--card-ink); }

  /* ---------- Sections ---------- */
  section { padding: 72px 0; border-top: 1px solid var(--line); }

  .label {
    font-size: 13px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 28px;
  }

  .about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: clamp(28px, 5vw, 56px);
    align-items: center;
  }
  .about-text {
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 300;
    line-height: 1.5;
    letter-spacing: -0.01em;
    max-width: 720px;
  }
  .about-text strong { font-weight: 500; color: var(--accent); }
  .stack {
    position: relative;
    aspect-ratio: 3 / 2;
    /* room on the right for the peeking cards */
    margin-right: 6%;
  }
  .stack-card {
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .55);
    cursor: pointer;
    transition: transform .5s cubic-bezier(.22, .8, .3, 1), opacity .5s ease, filter .5s ease;
    will-change: transform;
    user-select: none;
    -webkit-user-drag: none;
  }
  .stack-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
  }
  .stack-card[data-pos="0"] { transform: none; z-index: 4; filter: none; }
  .stack-card[data-pos="1"] { transform: translateX(6%) scale(.93); z-index: 3; filter: brightness(.55); }
  .stack-card[data-pos="2"] { transform: translateX(12%) scale(.86); z-index: 2; filter: brightness(.35); }
  .stack-card[data-pos="deep"] { transform: translateX(12%) scale(.86); z-index: 1; filter: brightness(.35); opacity: 0; pointer-events: none; }
  .stack-card.leaving {
    transform: translateX(-55%) rotate(-5deg);
    opacity: 0;
    z-index: 5;
  }
  .stack-card.no-transition { transition: none; }
  .carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
  }
  .carousel-dots button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: var(--line);
    cursor: pointer;
    transition: background .2s, transform .2s;
  }
  .carousel-dots button.active {
    background: var(--accent);
    transform: scale(1.25);
  }

  /* Services */
  .services { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
  .service {
    background: var(--bg);
    padding: 32px;
    transition: background .2s;
  }
  .service:hover { background: #1C1F24; }
  .service h3 { font-size: 18px; font-weight: 500; margin-bottom: 8px; letter-spacing: -0.01em; }
  .service p { font-size: 15px; color: var(--ink-soft); }

  /* Flagship project */
  .flagship {
    --photo-shift: 30%; /* higher = trophy closer to the right edge */
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(251, 251, 250, .08);
    background: var(--card-bg);
    color: var(--card-ink);
    border-radius: var(--radius);
    padding: clamp(32px, 5vw, 56px);
  }
  .flagship::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--photo-shift);
    right: calc(-1 * var(--photo-shift));
    background:
      linear-gradient(100deg,
        var(--card-bg) 0%,
        rgba(23, 25, 30, .80) 30%,
        rgba(23, 25, 30, .28) 100%),
      url("images/trophy-bg.jpg") center 22% / cover no-repeat;
    pointer-events: none;
  }
  .flagship > * { position: relative; z-index: 1; }
  .flagship .label { color: #7A8CFF; }
  .flagship .rsl-logo {
    display: block;
    height: clamp(110px, 18vw, 180px);
    width: auto;
    max-width: 100%;
    margin-bottom: 40px;
  }
  .flagship p.desc {
    color: rgba(251,251,250,.72);
    font-size: 16px;
    max-width: 620px;
    margin-bottom: 32px;
  }
  .cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
  .cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 14px 24px;
    border-radius: 999px;
    transition: transform .2s, opacity .2s;
  }
  .cta:hover { transform: translateY(-2px); opacity: .92; }
  .cta.patreon { background: #FFFFFF; color: #0E0F12; }
  .cta.ghost { background: transparent; color: var(--card-ink); border: 1px solid rgba(251,251,250,.35); }
  .cta.ghost:hover { border-color: rgba(251,251,250,.7); }
  .cta svg { width: 18px; height: 18px; flex-shrink: 0; }

  /* Contact */
  .contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: start;
  }
  .contact-block a.big {
    display: block;
    font-size: clamp(18px, 2.5vw, 24px);
    font-weight: 500;
    letter-spacing: -0.01em;
    text-decoration: none;
    margin-bottom: 4px;
    width: fit-content;
    border-bottom: 2px solid transparent;
    transition: border-color .2s;
  }
  .contact-block a.big:hover { border-color: var(--accent); }
  .contact-block p { color: var(--ink-soft); font-size: 15px; }

  footer {
    border-top: 1px solid var(--line);
    padding: 32px 0 48px;
    font-size: 13px;
    color: var(--ink-soft);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
  }

  @media (max-width: 640px) {
    nav { font-size: 12px; }
    nav .links { gap: 14px; }
    .about-grid { grid-template-columns: 1fr; gap: 28px; }
    .flagship::before {
      left: 0;
      right: 0;
      background:
        linear-gradient(rgba(23, 25, 30, .82), rgba(23, 25, 30, .82)),
        url("images/trophy-bg.jpg") 80% 22% / cover no-repeat;
    }
    .services { grid-template-columns: 1fr; }
    section { padding: 56px 0; }
  }

  .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .7s ease, transform .7s ease;
  }
  .reveal.visible {
    opacity: 1;
    transform: none;
  }

  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .card, .socials a { transition: none !important; transform: none !important; }
  }

/* Learn-more CTA and clickable logo on the flagship card */
.cta.learn { background: var(--accent); color: #0E0F12; }
