.tt-build-hero {
  --bg: #05060a;
  --ink: #f6f7fb;
  --muted: #9aa3b5;
  --faint: #6f788a;
  --line: rgba(255, 255, 255, 0.12);
  --cyan: #00c2fd;
  --blue: #6287fd;
  --violet: #b37bfc;
  --mint: #51ffbe;
  --sky: #75e7ee;
  --sans: 'Tribe Sans', 'Avenir Next', ui-sans-serif, system-ui, sans-serif;
  --serif: Georgia, 'Times New Roman', serif;
  --composition-width: 1640px;
  --intro-bottom: clamp(44px, 8vh, 84px);
  --gut: max(
    clamp(16px, 4.2vw, 64px),
    calc((100% - var(--composition-width)) / 2)
  );
  color-scheme: dark;
  .pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 44px;
    padding: 0 20px;
    border-radius: 999px;
    background: var(--ink);
    color: #07090e;
    font-weight: 500;
    font-size: 14px;
    white-space: nowrap;
  }
  .pill svg {
    width: 15px;
    height: 15px;
  }
  .ghost {
    display: inline-flex;
    align-items: center;
    height: 52px;
    padding: 0 24px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: var(--ink);
    font-size: 15px;
    backdrop-filter: blur(6px);
    white-space: nowrap;
  }
  /* hero */
  & {
    position: relative;
    height: 290svh;
  }
  .stage {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100svh;
    overflow: hidden;
    isolation: isolate;
  }
  .bloom {
    position: absolute;
    inset: -20%;
    pointer-events: none;
    z-index: 0;
    background:
      radial-gradient(
        38% 34% at var(--bx, 68%) var(--by, 40%),
        rgba(98, 135, 253, 0.2),
        transparent 70%
      ),
      radial-gradient(
        30% 26% at calc(var(--bx, 68%) + 12%) calc(var(--by, 40%) + 12%),
        rgba(179, 123, 252, 0.16),
        transparent 70%
      ),
      radial-gradient(
        26% 22% at calc(var(--bx, 68%) - 14%) calc(var(--by, 40%) - 6%),
        rgba(0, 194, 253, 0.12),
        transparent 70%
      );
  }
  #gl {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: block;
  }
  .grain {
    position: absolute;
    inset: 0;
    z-index: 30;
    pointer-events: none;
    opacity: 0.07;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  }
  .scrim {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    background: linear-gradient(
      to top,
      rgba(5, 6, 10, 0.82),
      rgba(5, 6, 10, 0.35) 38%,
      transparent 62%
    );
  }
  .vignette {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: radial-gradient(
      120% 90% at 50% 45%,
      transparent 55%,
      rgba(0, 0, 0, 0.65)
    );
  }
  .scene {
    position: absolute;
    inset: 0;
    z-index: 3;
    perspective: var(--persp, 1600px);
    perspective-origin: 50% 50%;
    pointer-events: none;
  }
  .card {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 1;
    width: var(--cw, 800px);
    height: var(--ch, 500px);
    will-change: transform, opacity;
    opacity: 0;
  }
  #cMain {
    z-index: 2;
  }
  .card .chrome {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100%;
    height: 34px;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 13px;
    border-radius: 14px 14px 0 0;
    background: rgba(18, 22, 32, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-bottom: 0;
    font-size: 11px;
    color: #9aa3b5;
  }
  .card .chrome i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #3a445a;
    flex: none;
  }
  .card .chrome .url {
    margin-left: 10px;
    flex: 1;
    height: 20px;
    border-radius: 6px;
    background: rgba(8, 10, 16, 0.8);
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 9px;
    white-space: nowrap;
    overflow: hidden;
  }
  .card .chrome .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #6f788a;
    flex: none;
    transition: background 0.4s;
  }
  .card.live .chrome .dot {
    background: var(--mint);
    box-shadow: 0 0 8px var(--mint);
  }
  .card .frame {
    position: absolute;
    inset: 0;
    border-radius: 0 0 14px 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow:
      0 60px 120px rgba(0, 0, 0, 0.6),
      0 0 0 1px rgba(98, 135, 253, 0.08);
  }
  .card .frame > img,
  .preview-render > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  .preview-render {
    position: absolute;
    inset: 0;
    overflow: hidden;
  }
  .preview-render .nh-ted-page {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: none;
    aspect-ratio: auto;
    pointer-events: none;
  }
  .hero-routes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
  }
  .hero-routes a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    font-size: 12px;
    color: var(--sky);
    text-decoration: underline;
    text-underline-offset: 5px;
  }
  .intro .side .hero-offer {
    font-size: 13px;
    color: #bac6d4;
    max-width: 44ch;
  }
  .ted-touch-hint {
    display: none;
  }
  @media (hover: none), (pointer: coarse) {
    .hero-routes a {
      min-height: 44px;
    }
    .ted-pointer-hint {
      display: none;
    }
    .ted-touch-hint {
      display: inline;
    }
  }
  .card .scan {
    position: absolute;
    left: -2%;
    right: -2%;
    height: 2px;
    top: 0;
    opacity: 0;
    background: linear-gradient(
      90deg,
      transparent,
      var(--mint) 20%,
      #fff 50%,
      var(--mint) 80%,
      transparent
    );
    box-shadow: 0 0 22px 5px rgba(81, 255, 190, 0.55);
  }
  .revision-example {
    display: grid;
    gap: 10px;
    margin-top: 22px;
  }
  .pin {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    opacity: 0;
    transform: scale(0.6);
    transform-origin: 12px 12px;
    transition:
      opacity 0.35s,
      transform 0.45s cubic-bezier(0.2, 1.4, 0.4, 1);
  }
  .pin.on {
    opacity: 1;
    transform: none;
  }
  .pin b {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font: 600 12px/1 var(--sans);
    color: #07090e;
    flex: none;
  }
  .pin span {
    background: #f6f7fb;
    color: #0b0e14;
    font-size: 12px;
    line-height: 1.35;
    padding: 8px 11px;
    border-radius: 10px;
    max-width: 240px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
  }
  .chip {
    position: relative;
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 13px 16px;
    border-radius: 14px;
    background: rgba(14, 18, 27, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
    opacity: 0;
    transform: translateY(16px);
    transition:
      opacity 0.4s,
      transform 0.5s cubic-bezier(0.2, 1, 0.3, 1);
  }
  .chip.on {
    opacity: 1;
    transform: none;
  }
  .chip .ic {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(81, 255, 190, 0.12);
    color: var(--mint);
    display: grid;
    place-items: center;
    flex: none;
  }
  .chip strong {
    display: block;
    font-weight: 500;
    font-size: 13px;
  }
  .chip small {
    display: block;
    font-size: 11.5px;
    color: #9aa3b5;
  }

  /* copy layers */
  .layer {
    position: absolute;
    z-index: 10;
    will-change: opacity, transform;
  }
  .intro {
    left: var(--gut);
    right: var(--gut);
    bottom: var(--intro-bottom);
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: 40px;
    align-items: end;
  }
  .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 32px;
    padding: 0 13px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #b6bdcb;
    background: rgba(5, 6, 10, 0.4);
    backdrop-filter: blur(6px);
    margin-bottom: 22px;
  }
  .eyebrow i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--mint);
    box-shadow: 0 0 0 0 rgba(81, 255, 190, 0.6);
    animation: tt-build-pulse 2.4s ease-in-out infinite;
  }
  .hero-title {
    margin: 0;
    font-weight: 500;
    font-size: clamp(46px, 5.2vw, 90px);
    line-height: 0.93;
    letter-spacing: -0.058em;
    text-wrap: balance;
  }
  .grad {
    background: linear-gradient(
      100deg,
      var(--cyan),
      var(--blue) 30%,
      var(--violet) 55%,
      var(--mint) 78%,
      var(--cyan)
    );
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: tt-build-sheen 9s linear infinite;
  }
  .intro .side {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-bottom: 6px;
  }
  .intro .side p {
    margin: 0;
    font-size: clamp(16px, 1.25vw, 19px);
    line-height: 1.55;
    color: #b8bfcc;
    max-width: 40ch;
  }
  .intro .side p strong {
    color: var(--ink);
    font-weight: 500;
  }
  .usd-prices-link {
    align-self: flex-start;
    margin-top: -8px;
    padding: 6px 13px;
    border: 1px solid var(--line);
    border-radius: 99px;
    color: var(--sky);
    font-size: 13px;
  }
  .usd-prices-link:hover {
    border-color: var(--sky);
  }
  .ctas {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
  }
  .ctas .pill {
    height: 52px;
    padding: 0 24px;
    font-size: 15px;
  }
  .ticks {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
    font-size: 13.5px;
    color: #c6ccd8;
  }
  .ticks li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
  }
  .ticks svg {
    width: 16px;
    height: 16px;
    flex: none;
    margin-top: 2px;
    color: var(--mint);
  }
  .cue {
    right: var(--gut);
    bottom: 14px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    font-size: 10.5px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #7d8699;
  }
  .cue span {
    display: block;
    width: 34px;
    height: 1px;
    background: linear-gradient(90deg, var(--mint), transparent);
    animation: tt-build-drip 2s ease-in-out infinite;
  }

  .cap {
    left: var(--gut);
    top: 50%;
    width: min(28vw, 420px);
    transform: translateY(-50%);
    opacity: 0;
    pointer-events: none;
  }
  .cap[aria-hidden='false'] {
    pointer-events: auto;
  }
  .cap .k {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--mint);
    margin-bottom: 18px;
  }
  .cap .k b {
    font: 500 12px/1 var(--sans);
    color: #07090e;
    background: var(--mint);
    border-radius: 6px;
    padding: 5px 7px;
    letter-spacing: 0.06em;
  }
  .cap h2 {
    margin: 0;
    font-weight: 500;
    font-size: clamp(34px, 3.9vw, 64px);
    line-height: 1;
    letter-spacing: -0.05em;
    text-wrap: balance;
  }
  .cap h2 em {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 400;
    letter-spacing: -0.02em;
    color: var(--sky);
  }
  .cap p {
    margin: 18px 0 0;
    font-size: 15px;
    line-height: 1.6;
    color: #aeb6c6;
    max-width: 34ch;
  }

  .fin {
    left: var(--gut);
    right: var(--gut);
    bottom: clamp(28px, 6vh, 64px);
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 40px;
    align-items: end;
    opacity: 0;
    pointer-events: none;
  }
  .fin.on {
    pointer-events: auto;
  }
  .fin h2 {
    margin: 0;
    font-weight: 500;
    font-size: clamp(42px, 5.6vw, 100px);
    line-height: 0.94;
    letter-spacing: -0.058em;
    text-wrap: balance;
  }
  .fin .side {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }
  .fin .side p {
    margin: 0;
    color: #b8bfcc;
    font-size: clamp(15px, 1.15vw, 18px);
    line-height: 1.55;
    max-width: 38ch;
  }
  .fin small {
    font-size: 11px;
    color: #6f788a;
  }
  .intro.off {
    pointer-events: none;
  }
  .hero-title .l1 {
    display: inline-block;
    animation: tt-build-rise 1.4s cubic-bezier(0.2, 0.9, 0.2, 1) both;
  }
  .hero-title .grad {
    display: inline-block;
    animation:
      tt-build-rise 1.4s 0.12s cubic-bezier(0.2, 0.9, 0.2, 1) both,
      tt-build-sheen 9s linear infinite;
  }
  .core {
    position: absolute;
    z-index: 1;
    left: var(--gx, 70%);
    top: var(--gy, 42%);
    width: 42vmin;
    height: 42vmin;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(
      closest-side,
      rgba(220, 235, 255, 0.55),
      rgba(120, 150, 255, 0.22) 22%,
      rgba(98, 135, 253, 0.08) 48%,
      transparent 72%
    );
    mix-blend-mode: screen;
  }

  .steps {
    right: var(--gut);
    bottom: clamp(24px, 5vh, 48px);
    display: flex;
    gap: 18px;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #5d6678;
    opacity: 0;
  }
  .steps li {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.4s;
  }
  .steps li::before {
    content: '';
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition:
      width 0.4s,
      background 0.4s;
  }
  .steps li.on {
    color: var(--ink);
  }
  .steps li.on::before {
    width: 30px;
    background: var(--mint);
  }
  .steps ol {
    margin: 0;
    padding: 0;
    display: flex;
    gap: 18px;
  }

  @media (min-width: 981px) {
    & {
      --intro-bottom: max(64px, calc((100% - 1000px) / 2));
    }
    .intro,
    .fin {
      bottom: max(64px, calc((100% - 1000px) / 2));
      grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
      gap: clamp(32px, 4vw, 80px);
    }
    .fin .side p,
    .intro .side p {
      font-size: clamp(17px, 1.25vw, 20px);
    }
  }

  @media (max-width: 980px) {
    .intro {
      grid-template-columns: 1fr;
      gap: 22px;
    }
    .fin {
      grid-template-columns: 1fr;
      gap: 18px;
    }
  }
  @media (max-width: 760px) {
    & {
      height: 310svh;
      --intro-bottom: 22px;
    }
    .menu {
      display: inline-flex;
    }
    .intro {
      bottom: 22px;
    }
    .eyebrow {
      margin-bottom: 16px;
    }
    .hero-title {
      font-size: clamp(40px, 12.4vw, 64px);
    }
    .ctas {
      flex-direction: column;
    }
    .ctas .pill,
    .ctas .ghost {
      justify-content: center;
      height: 52px;
    }
    /* Keep both buying and preview routes reachable on phones. */
    .intro .ctas .ghost {
      display: inline-flex;
      min-height: 44px;
      height: 44px;
    }
    .intro .ticks li + li {
      display: none;
    }
    .cue {
      display: none;
    }
    .hide-m {
      display: none;
    }
    .cap {
      top: auto;
      bottom: clamp(28px, 6vh, 56px);
      width: auto;
      right: var(--gut);
      transform: none;
    }
    .cap h2 {
      font-size: clamp(28px, 8.6vw, 40px);
    }
    .cap p {
      font-size: 14px;
      margin-top: 12px;
    }
    .cap .k {
      margin-bottom: 12px;
    }
    .fin h2 {
      font-size: clamp(36px, 10.8vw, 54px);
    }
    .fin {
      bottom: 22px;
    }
    .steps {
      display: none;
    }
    .chip {
      padding: 10px 12px;
    }
    .revision-example {
      gap: 8px;
      margin-top: 16px;
    }
    #pin2 {
      display: none;
    }
    .pin span {
      font-size: 12px;
      max-width: 240px;
      padding: 6px 9px;
    }
    .pin b {
      width: 22px;
      height: 22px;
      font-size: 11px;
    }
  }
  @media (prefers-reduced-motion: reduce) {
    & {
      height: auto;
    }
    .stage {
      position: relative;
      height: auto;
      min-height: 100svh;
    }
    .grad,
    .eyebrow i,
    .cue span,
    .hero-title .l1,
    .hero-title .grad {
      animation: none;
    }
  }

  .hero-motion {
    position: absolute;
    right: var(--gut);
    top: 88px;
    z-index: 35;
    border: 1px solid var(--line);
    color: #c6ccd8;
    background: #090c13bd;
    border-radius: 99px;
    min-height: 44px;
    padding: 0 16px;
    font-size: 12px;
  }
  .hero-motion svg {
    display: none;
    width: 18px;
    height: 18px;
  }
  /* A complete visual first screen also works without JavaScript or WebGL. */
  &.is-static {
    height: auto;
  }
  &.is-static .stage {
    position: relative;
    min-height: 0;
    height: auto;
    padding: 140px var(--gut) 64px;
    display: flex;
    flex-direction: column;
    gap: 40px;
  }
  &.is-static .scene {
    position: relative;
    height: clamp(240px, 27vw, 380px);
    flex: none;
    --cw: min(56vw, 800px);
    --ch: min(35vw, 500px);
  }
  &.is-static .card {
    opacity: 1;
  }
  &.is-static #cMain {
    transform: translate(-50%, -50%) scale(0.68);
  }
  &.is-static #cA {
    transform: translate(calc(-50% - 33vw), -50%) translateZ(-340px)
      rotateY(26deg) scale(0.45);
  }
  &.is-static #cB {
    transform: translate(calc(-50% + 33vw), -50%) translateZ(-340px)
      rotateY(-26deg) scale(0.45);
  }
  &.is-static .intro {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
  &.is-static .fin,
  &.is-static .cap,
  &.is-static .cue,
  &.is-static .steps,
  &.is-static .bp,
  &.is-static .scan,
  &.is-static .hero-motion {
    display: none;
  }
  &.is-paused *,
  &.is-paused *::before,
  &.is-paused *::after,
  &.is-static *,
  &.is-static *::before,
  &.is-static *::after {
    animation: none !important;
    transition: none !important;
  }
  .fin small {
    color: #a4adbf;
  }
  @media (max-width: 760px) {
    &.is-static .stage {
      min-height: 0;
      padding: 116px var(--gut) 44px;
      gap: 24px;
    }
    &.is-static .scene {
      height: 210px;
      --cw: 86vw;
      --ch: 53.75vw;
    }
    &.is-static #cMain {
      transform: translate(-50%, -50%) scale(0.9);
    }
    .hero-motion {
      top: 76px;
      display: grid;
      place-items: center;
      width: 44px;
      padding: 0;
    }
    .hero-motion svg {
      display: block;
    }
    .hero-motion span {
      display: none;
    }
    .eyebrow {
      font-size: 9px;
      letter-spacing: 0.1em;
    }
    .intro .side {
      gap: 14px;
    }
    .intro {
      gap: 14px;
    }
    .ticks {
      font-size: 12px;
    }
    .hero-title {
      font-size: clamp(38px, 11vw, 64px);
    }
    .grad {
      line-height: 1.04;
    }
  }
  @media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
      animation: none !important;
      transition: none !important;
    }
    .hero-motion {
      display: none;
    }
  }

  /* Reserve the opening composition before hydration. The finished fallback
     must never flash before the particles. With scripting disabled (or reduced
     motion), the complete static preview above remains available immediately. */
  @media (scripting: enabled) and (prefers-reduced-motion: no-preference) and (min-height: 651px),
    (scripting: enabled) and (prefers-reduced-motion: no-preference) and (min-width: 1101px) {
    &.is-static:not([data-enhanced]) {
      height: 290svh;
    }
    &.is-static:not([data-enhanced]) .stage {
      position: sticky;
      height: 100svh;
      padding: 0;
      display: block;
    }
    &.is-static:not([data-enhanced]) .scene {
      position: absolute;
      height: auto;
      visibility: hidden;
    }
    &.is-static:not([data-enhanced]) .intro {
      position: absolute;
      left: var(--gut);
      right: var(--gut);
      bottom: var(--intro-bottom);
    }
    @media (max-width: 760px) {
      &.is-static:not([data-enhanced]) {
        height: 310svh;
      }
    }
  }

  /* Keep the sales message within the visual composition on tall portrait
     windows, rather than anchoring it below a screenful of empty atmosphere. */
  @media (min-width: 761px) and (min-height: 1100px) and (max-aspect-ratio: 1/1) {
    & {
      --intro-bottom: max(64px, calc((100% - 1100px) / 2));
    }
    .intro {
      bottom: var(--intro-bottom);
    }
  }

  &[data-particle-failure] #gl {
    display: none;
  }
}
@keyframes tt-build-sheen {
  to {
    background-position: -220% 0;
  }
}
@keyframes tt-build-rise {
  from {
    transform: translateY(22px);
    letter-spacing: -0.03em;
  }
  to {
    transform: none;
  }
}
@keyframes tt-build-pulse {
  50% {
    box-shadow: 0 0 0 8px rgba(81, 255, 190, 0);
  }
}
@keyframes tt-build-drip {
  0% {
    transform: scaleX(0);
    transform-origin: left;
  }
  50% {
    transform: scaleX(1);
    transform-origin: left;
  }
  51% {
    transform-origin: right;
  }
  100% {
    transform: scaleX(0);
    transform-origin: right;
  }
}

@media (max-width: 760px) and (max-height: 650px) {
  .tt-build-hero .eyebrow {
    display: none;
  }
  .tt-build-hero .intro .side p {
    font-size: 14px;
  }
  .tt-build-hero .intro .side {
    gap: 12px;
  }
  .tt-build-hero .ticks {
    font-size: 11px;
  }
  .tt-build-hero .intro {
    gap: 18px;
  }
}
