:root {
  --bg: #030304;
  --ink: #ecebe7;
  --muted: #86858a;
  --accent: #ff5a36;
  --accent-ink: #160905;
  --pad: clamp(20px, 4.2vw, 64px);
  --font: "Inter Tight", "SF Pro Display", "Helvetica Neue", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.bar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 3;
  padding: 26px var(--pad);
  pointer-events: none;
}

.brand {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.brand svg {
  width: 26px;
  height: 26px;
  color: var(--accent);
}

.brand:focus-visible,
.cta:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
  border-radius: 999px;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: 120px var(--pad) 72px;
  overflow: hidden;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

/* A faint warm bloom where the hand stands, falling off into black. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(42% 58% at 70% 52%, rgba(255, 90, 54, 0.055), transparent 70%),
    radial-gradient(70% 80% at 70% 50%, rgba(120, 130, 160, 0.035), transparent 75%);
}

.hand {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: manipulation;
}

.hand.is-off { display: none; }

.copy {
  animation: rise 1.1s 0.35s cubic-bezier(0.2, 0.7, 0.1, 1) both;
}

/* Always exactly two lines. The longer line is 8.4x the font size wide, so 6vw
   keeps it on the left half, clear of the hand. */
h1 {
  margin: 0 0 max(28px, 0.6em);
  font-size: clamp(32px, 6vw, 104px);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.048em;
}

h1 span,
h1 em {
  display: block;
  white-space: nowrap;
}

h1 em {
  font-style: normal;
  color: var(--accent);
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 24px 0 28px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: background-color 0.25s ease;
}

.cta svg {
  width: 20px;
  height: 20px;
  transition: transform 0.35s ease;
}

.cta:hover { background: #ff6d4d; }

.cta:hover svg { transform: translateX(3px); }

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

/* Phones and portrait tablets: the hand stands above, the words sit below. */
@media (max-aspect-ratio: 9/10) {
  .hero {
    align-items: end;
    padding-bottom: max(40px, env(safe-area-inset-bottom));
  }

  .hero::before {
    background: radial-gradient(70% 40% at 50% 34%, rgba(255, 90, 54, 0.06), transparent 70%);
  }

  /* Fade the wrist out above the canvas so the words stay readable. */
  .hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(to top, var(--bg) 30%, transparent 62%);
  }

  .copy {
    position: relative;
    z-index: 1;
  }

  /* The full screen width minus padding fits the longer line at 10.2vw. */
  h1 { font-size: min(10.2vw, 64px); }
}

@media (prefers-reduced-motion: reduce) {
  .copy { animation: none; }
  .cta, .cta svg { transition: none; }
}
