:root {
  color-scheme: light;
  --bg: #f6f5fb;
  --surface: #ffffff;
  --tint: #ece8fb;
  --tint-2: #e1dbf8;
  --text: #16131f;
  --muted: #5d586b;
  --line: rgba(40, 25, 90, 0.1);
  --accent: #6340e0;
  --on-accent: #ffffff;
  --shadow: 0 24px 60px -28px rgba(70, 45, 160, 0.35);
  --logo-filter: brightness(0.6) saturate(1.5);
  --glass: rgba(255, 255, 255, 0.7);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
    --bg: #0f0d16;
    --surface: #191623;
    --tint: #211c33;
    --tint-2: #2a2442;
    --text: #f1eff7;
    --muted: #aaa4bb;
    --line: rgba(200, 185, 255, 0.12);
    --accent: #a78bfa;
    --on-accent: #120f1b;
    --shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.8);
    --logo-filter: none;
    --glass: rgba(25, 22, 35, 0.7);
  }
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #0f0d16;
  --surface: #191623;
  --tint: #211c33;
  --tint-2: #2a2442;
  --text: #f1eff7;
  --muted: #aaa4bb;
  --line: rgba(200, 185, 255, 0.12);
  --accent: #a78bfa;
  --on-accent: #120f1b;
  --shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.8);
  --logo-filter: none;
  --glass: rgba(25, 22, 35, 0.7);
}
* {
  box-sizing: border-box;
}
html {
  scroll-padding-top: 96px;
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Outfit', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a {
  color: inherit;
}
a,
button {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
h1,
h2,
h3,
p {
  margin: 0;
}
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
  padding-left: max(clamp(16px, 4vw, 40px), env(safe-area-inset-left));
  padding-right: max(clamp(16px, 4vw, 40px), env(safe-area-inset-right));
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
  border: 0;
  cursor: pointer;
  transition:
    transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.25s,
    background 0.2s;
}
.btn:active {
  transform: scale(0.97);
}
.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 10px 10px -12px var(--accent);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 14px -12px var(--accent);
}
.btn-soft {
  background: var(--tint);
  color: var(--text);
}
.btn-soft:hover {
  background: var(--tint-2);
}

@media (max-width: 1023px), (pointer: coarse) {
  .pill {
    min-height: 44px;
    padding: 10px 16px;
    font-size: 14px;
  }
  .app-nav .tab {
    min-height: 44px;
  }
  .app-nav .arrow {
    width: 44px;
    height: 44px;
  }
  .follow {
    min-height: 44px;
  }
  .tick-toggle {
    width: 44px;
    height: 44px;
  }
}

.hero {
  padding-block: clamp(40px, 6vw, 80px) clamp(56px, 7vw, 96px);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero h1 {
  font-size: clamp(34px, 3.4vw, 50px);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.hero h1 span {
  color: var(--accent);
}
.hero-sub {
  margin-top: 22px;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.55;
  color: var(--muted);
  max-width: 40ch;
}
.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 34px;
}

@media (max-width: 480px) {
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .hero-actions .btn {
    justify-content: center;
    min-height: 48px;
  }
}
@media (max-width: 374px) {
  .hero h1 {
    font-size: 30px;
  }
}

.showcase-wrap {
  min-width: 0;
}
.showcase {
  position: relative;
  container-type: inline-size;
  aspect-ratio: 1/1.12;
  max-height: 600px;
  width: 100%;
  --ar: 1.12;
}
.scene {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(0.985);
  transition:
    opacity 0.7s ease,
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0s linear 0.7s;
}
.scene.active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}
.ticker {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
}
.pill {
  position: relative;
  overflow: hidden;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  background: var(--tint);
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  transition: color 0.2s;
}
.pill:hover,
.pill.active {
  color: var(--text);
}
.pill .fill {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--accent) 28%, var(--tint));
  transform: scaleX(0);
  transform-origin: left;
  z-index: 0;
}
.pill.active .fill {
  animation: fill var(--dur, 6s) linear forwards;
}
.pill span {
  position: relative;
  z-index: 1;
}
.paused .pill.active .fill,
.stopped .profile {
  animation-play-state: paused;
}
/* Pause button: icons still pop in and stay visible, only the endless bob stops. */
.stopped .scene.active .rx i {
  animation: pop 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) var(--d) both;
}
.tick-toggle {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: var(--tint);
  color: var(--text);
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s;
}
.tick-toggle:hover {
  background: var(--tint-2);
}
@keyframes fill {
  to {
    transform: scaleX(1);
  }
}

.collage {
  position: absolute;
  inset: 0;
}
.collage .ph1 {
  position: absolute;
  right: 0;
  top: 0;
  width: 72%;
  aspect-ratio: 4/5;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.collage .ph2 {
  position: absolute;
  left: 0;
  bottom: 6%;
  width: 46%;
  aspect-ratio: 1;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 6px solid var(--bg);
}
.collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.notes {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 0 clamp(4px, 3cqi, 20px);
}
.note {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 22px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px -18px rgba(10, 6, 25, 0.6);
}
.note .app {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: #1d1830;
  display: grid;
  place-items: center;
}
.note .app img {
  width: 20px;
}
.note .meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.note b {
  display: block;
  font-size: 15px;
  font-weight: 600;
  margin-top: 2px;
}
.note p {
  font-size: 14px;
  line-height: 1.35;
  color: var(--text);
  margin-top: 1px;
}
.note .th {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  overflow: hidden;
}
.note .th.round {
  border-radius: 999px;
}
.note .th img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.scene .note {
  opacity: 0;
  transform: translateY(-14px) scale(0.97);
}
.scene.active .note {
  animation: noteIn 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc(0.35s + var(--i) * 0.7s);
}
@keyframes noteIn {
  to {
    opacity: 1;
    transform: none;
  }
}
.rx {
  position: absolute;
  z-index: 0;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  --sz: calc(clamp(30px, 11cqi, 54px) * var(--m, 1));
  width: var(--sz);
  height: var(--sz);
  margin: calc(var(--sz) / -2) 0 0 calc(var(--sz) / -2);
  pointer-events: none;
}
.rx i {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  font-size: calc(var(--sz) * 0.5);
  background: var(--surface);
  color: var(--accent);
  border: 1px solid var(--line);
  box-shadow: 0 12px 28px -14px rgba(60, 35, 150, 0.55);
  opacity: 0;
}
.rx.hot i {
  background: var(--accent);
  color: var(--on-accent);
  border-color: transparent;
}
.scene.active .rx i {
  animation:
    pop 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) var(--d) both,
    bob 4.5s ease-in-out calc(var(--d) + 0.9s) infinite;
}
@keyframes pop {
  0% {
    opacity: 0;
    transform: translate(calc((50 - var(--x)) * 1cqi), calc((50 - var(--y)) * var(--ar) * 1cqi)) scale(0.2)
      rotate(0deg);
  }
  55% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: translate(0, 0) scale(1) rotate(var(--r));
  }
}
@keyframes bob {
  0%,
  100% {
    opacity: 1;
    transform: rotate(var(--r)) translateY(0);
  }
  50% {
    opacity: 1;
    transform: rotate(var(--r)) translateY(-7px);
  }
}
@media (max-width: 420px) {
  .note {
    grid-template-columns: auto 1fr;
    padding: 10px 12px;
  }
  .note .th {
    display: none;
  }
  .note p {
    font-size: 13px;
  }
}

.rig {
  --pw: min(41cqi, 250px);
  --edge: calc(var(--pw) * 0.06);
  --corner: min(6.5cqi, 38px);
  --tilt: 9deg;
  position: absolute;
  inset: 0 0 52px;
  perspective: 1400px;
  /* Camera sits below the phones' centre so their underside shows. */
  perspective-origin: 50% 82%;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  outline: none;
}
.rig.dragging {
  cursor: grabbing;
}
.rig:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 28px;
}
.track {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}
.phone {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--pw);
  padding: 1.6cqi;
  border-radius: var(--corner);
  transform-style: preserve-3d;
  background: #0c0a12;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  transform: translate(-50%, -50%) scale(0.82);
  opacity: 0;
  /* Fading in waits a beat so the phone leaving the other side is gone first (see .gone). */
  transition:
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.3s ease 0.15s;
}
.phone img {
  width: 100%;
  height: auto;
  image-rendering: high-quality;
  border-radius: min(5cqi, 30px);
  pointer-events: none;
  -webkit-user-drag: none;
  filter: brightness(var(--dim, 1));
  transition: filter 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
/* Body thickness: stacked copies of the phone outline behind the screen (added by script.js)
   form the frame's sides and underside, rounded corners included. */
.phone .slab {
  position: absolute;
  inset: -1px;
  border-radius: var(--corner);
  background: linear-gradient(90deg, #5a5174, #2b2540 18% 82%, #5a5174);
  transform: translateZ(calc(var(--edge) * var(--k) * -1));
  pointer-events: none;
}
.phone .slab:last-child {
  background: #1a1626;
  box-shadow: 0 40px 70px -30px rgba(20, 10, 50, 0.65);
}
.phone[data-pos='1'],
.phone[data-pos='-1'] {
  cursor: pointer;
}
/* Front phone faces the viewer; neighbours sit behind it, smaller, angled in towards the centre. */
.scene.active .phone {
  transform: translate(-50%, -50%)
    translate3d(calc(var(--pw) * var(--x, 0)), 0, calc(var(--pw) * var(--z, 0))) rotateY(var(--a, 0deg))
    rotateX(var(--tilt)) scale(var(--s, 1));
  opacity: var(--o, 1);
}
/* Fully faded phones (set by script.js): hide after the fade so neither the frame nor its
   slabs linger, and so they can't catch taps. */
.phone.gone {
  visibility: hidden;
  pointer-events: none;
  transition:
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.3s ease,
    visibility 0s linear 0.3s;
}
.rig.dragging .phone,
.phone.jump {
  transition: none;
}
.app-nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
}
.app-nav button {
  font-family: inherit;
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
  border-radius: 999px;
}
.app-nav .tab {
  font-size: clamp(12px, 3.3cqi, 14px);
  font-weight: 600;
  padding: 8px clamp(8px, 2.4cqi, 12px);
  white-space: nowrap;
}
.app-nav .tab[aria-pressed='true'] {
  color: var(--accent);
  background: var(--tint);
}
.app-nav .arrow {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  font-size: 17px;
  color: var(--text);
}
.app-nav .arrow:hover,
.app-nav .tab:hover {
  background: var(--tint);
}
@media (max-width: 440px) {
  .app-nav .arrow {
    display: none;
  }
}
@media (max-width: 1023px), (pointer: coarse) {
  .app-nav .arrow {
    width: 44px;
    height: 44px;
  }
  .pill {
    font-size: 14px;
    padding: 10px 16px;
  }
}
@media (max-width: 374px) {
  .ticker {
    gap: 6px;
  }
  .pill {
    padding: 10px 12px;
    white-space: nowrap;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .profile {
    animation: float 6s ease-in-out infinite;
  }
}
@media (prefers-reduced-motion: reduce) {
  .scene,
  .phone {
    transition: opacity 0.4s ease;
  }
  .phone.gone {
    transition:
      opacity 0.4s ease,
      visibility 0s linear 0.4s;
  }
  .scene {
    transform: none;
  }
  .scene .note {
    transform: none;
  }
  .scene.active .note {
    animation-name: fadeIn;
  }
  .scene.active .rx i,
  .stopped .scene.active .rx i {
    animation: fadeIn 0.5s ease var(--d) both;
    transform: rotate(var(--r));
  }
}
@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.profile {
  position: absolute;
  right: 6%;
  bottom: -8px;
  width: min(300px, 78%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 16px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 14px;
  align-items: center;
}
.profile .av {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  overflow: hidden;
}
.profile .av img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile b {
  font-size: 17px;
  font-weight: 600;
  display: block;
}
.profile small {
  color: var(--muted);
  font-size: 13.5px;
}
.chips {
  grid-column: 1/-1;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.chip {
  font-size: 13px;
  font-weight: 500;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--tint);
  color: var(--text);
}
.follow {
  grid-column: 1/-1;
  justify-content: center;
  padding: 11px 16px;
  font-size: 15px;
}
.follow[aria-pressed='true'] {
  background: var(--tint);
  color: var(--text);
  box-shadow: none;
}
.from {
  position: absolute;
  left: 0;
  top: 8px;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
@keyframes float {
  50% {
    transform: translateY(-8px);
  }
}
@media (max-width: 899px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .showcase-wrap {
    max-width: 560px;
    width: 100%;
    margin-inline: auto;
  }
}
@media (min-width: 600px) and (max-width: 899px) {
  .hero h1 {
    font-size: clamp(40px, 5.6vw, 50px);
  }
  .showcase-wrap {
    max-width: none;
  }
  .showcase {
    aspect-ratio: 4/3;
    max-height: none;
    container-type: size;
    --ar: 0.75;
  }
  .rig {
    --pw: min(30cqw, 250px, 38cqh);
  }
  .collage .ph1 {
    width: 52%;
    right: 6%;
  }
  .collage .ph2 {
    width: 34%;
    left: 6%;
  }
  .profile {
    right: 14%;
  }
  .notes {
    padding: 0 10cqw;
  }
}
@media (min-width: 900px) and (max-width: 1199px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .hero h1 {
    font-size: clamp(36px, 3.8vw, 46px);
  }
}
@media (max-width: 520px) {
  .collage .ph1 {
    width: 80%;
  }
  .collage .ph2 {
    width: 52%;
  }
  .from {
    display: none;
  }
  .profile {
    padding: 12px;
    gap: 10px 12px;
  }
  .profile .av {
    width: 44px;
    height: 44px;
  }
}

.status {
  margin-top: 40px;
}
.status .inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 18px 24px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  text-align: center;
}
.status i {
  flex-shrink: 0;
  font-size: 22px;
  color: var(--accent);
}
@media (max-width: 600px) {
  .status .inner {
    border-radius: 24px;
    padding: 16px 18px;
  }
}
.status p {
  font-size: 16.5px;
}

section {
  padding-block: clamp(72px, 10vw, 128px);
}
.h2 {
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 700;
  max-width: 18ch;
  text-wrap: balance;
}
.lede {
  margin-top: 18px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 54ch;
}
.center {
  text-align: center;
  margin-inline: auto;
}
@media (max-width: 767px) {
  .center {
    text-align: left;
  }
  .center:not(.wrap) {
    margin-inline: 0;
  }
}

.seg {
  display: inline-flex;
  margin-top: 40px;
  padding: 6px;
  border-radius: 999px;
  background: var(--tint);
  gap: 4px;
  position: relative;
}
.seg button {
  position: relative;
  z-index: 1;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  border: 0;
  background: none;
  color: var(--muted);
  padding: 12px 22px;
  min-height: 44px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  transition: color 0.25s;
}
@media (hover: hover) {
  .seg button[aria-selected='false']:hover {
    color: var(--text);
  }
}
.seg button[aria-selected='true'] {
  color: var(--on-accent);
}
.seg .thumb {
  position: absolute;
  z-index: 0;
  top: 6px;
  bottom: 6px;
  border-radius: 999px;
  background: var(--accent);
  transition:
    left 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    width 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.who {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 16px;
  box-shadow: var(--shadow);
  text-align: left;
}
.who[hidden] {
  display: none;
}
.who .img {
  border-radius: 20px;
  overflow: hidden;
  min-height: 340px;
}
.who .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.who .txt {
  padding: clamp(16px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.who h3 {
  font-size: 32px;
  text-wrap: balance;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.who p {
  margin-top: 16px;
  font-size: 17.5px;
  line-height: 1.65;
  color: var(--muted);
}
@media (prefers-reduced-motion: no-preference) {
  .who:not([hidden]) {
    animation: swap 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  }
}
@keyframes swap {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}
@media (min-width: 640px) and (max-width: 1023px) {
  .who .img {
    min-height: 300px;
    max-height: 420px;
  }
}
@media (max-width: 639px) {
  .who {
    grid-template-columns: 1fr;
  }
  .who .img {
    min-height: 0;
    aspect-ratio: 4/3;
  }
}
@media (max-width: 420px) {
  .seg {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }
  .seg button {
    justify-content: center;
    padding: 12px 10px;
    font-size: 15px;
    white-space: nowrap;
  }
}

.stack-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.stack-head {
  position: sticky;
  top: 120px;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
  --top: 104px;
  --step: 64px;
}
.card {
  position: sticky;
  top: calc(var(--top) + var(--n) * var(--step));
  height: var(--card-h, auto);
  border-radius: 28px;
  padding: 20px clamp(22px, 3vw, 40px) clamp(24px, 3vw, 40px);
  border: 1px solid var(--line);
  box-shadow:
    0 -10px 40px -24px rgba(40, 25, 90, 0.35),
    var(--shadow);
}
.card:nth-child(1) {
  --n: 0;
  background: var(--accent);
  color: var(--on-accent);
}
.card:nth-child(2) {
  --n: 1;
  background: var(--surface);
}
.card:nth-child(3) {
  --n: 2;
  background: var(--tint);
}
.card .when {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--tint);
  color: var(--text);
}
.card:nth-child(1) .when {
  background: rgba(255, 255, 255, 0.2);
  color: inherit;
}
.card:nth-child(3) .when {
  background: var(--surface);
}
.card h3 {
  margin-top: 22px;
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-wrap: balance;
}
.card p {
  margin-top: 14px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
}
.card:nth-child(1) p {
  color: inherit;
  opacity: 0.88;
}
.card p + p {
  margin-top: 10px;
}
@media (max-width: 900px) {
  .stack-grid {
    grid-template-columns: 1fr;
  }
  .stack-head {
    position: static;
  }
  .stack {
    --top: 88px;
    --step: 56px;
  }
}
@media (max-width: 520px) {
  .card {
    padding: 18px 20px 22px;
  }
  .card h3 {
    margin-top: 14px;
    font-size: 22px;
  }
  .card p {
    font-size: 16px;
    margin-top: 10px;
    line-height: 1.6;
  }
}
@media (max-width: 767px) and (max-height: 700px) {
  .stack {
    --top: 80px;
    --step: 44px;
  }
}

.f-top {
  margin-top: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.statement {
  font-size: clamp(22px, 2.4vw, 31px);
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--text);
  max-width: 32ch;
  text-wrap: pretty;
}
.statement em {
  font-style: normal;
  color: var(--accent);
}
.more {
  margin-top: 22px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 60ch;
}
.byline .f-photo {
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4/3;
}
.byline .f-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 56% 6%;
}
.byline p {
  margin-top: 12px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--muted);
}
.byline p b {
  color: var(--text);
  font-weight: 600;
}
.f-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  margin-top: 52px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}
.f-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 36px;
}
.bio h3 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.bio .role {
  display: inline-block;
  margin-top: 8px;
  font-size: 13.5px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--tint);
  color: var(--accent);
}
.bio p {
  margin-top: 14px;
  line-height: 1.65;
  color: var(--muted);
}
.bio p + p {
  margin-top: 10px;
}
@media (max-width: 1023px) {
  .f-top {
    grid-template-columns: minmax(0, 1fr) 240px;
  }
}
@media (max-width: 820px) {
  .f-top {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .byline {
    order: -1;
    display: grid;
    grid-template-columns: clamp(132px, 30vw, 220px) 1fr;
    gap: 16px;
    align-items: center;
  }
  .byline p {
    margin-top: 0;
  }
  .f-cols {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
@media (max-width: 420px) {
  .byline .f-photo {
    aspect-ratio: 1;
  }
}
@media (max-width: 420px) {
  .f-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .f-actions .btn {
    justify-content: center;
    padding-inline: 16px;
    font-size: 14px;
    white-space: normal;
    text-align: center;
    min-height: 48px;
  }
}

.cta {
  border-radius: 28px;
  padding: clamp(40px, 7vw, 96px) clamp(24px, 6vw, 80px);
  background: radial-gradient(120% 140% at 100% 0%, var(--tint-2), transparent 60%), var(--tint);
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 32px;
  align-items: center;
  overflow: hidden;
}
.cta p {
  margin-top: 18px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 44ch;
}
.cta .btn {
  margin-top: 30px;
}
.cta-logo {
  width: clamp(110px, 16vw, 200px);
  justify-self: center;
  filter: var(--logo-filter);
}
@media (prefers-reduced-motion: no-preference) {
  .cta-logo {
    animation: float 7s ease-in-out infinite;
  }
}
@media (max-width: 820px) {
  .cta {
    grid-template-columns: 1fr;
    position: relative;
  }
  .cta-logo {
    position: absolute;
    right: clamp(20px, 5vw, 40px);
    bottom: clamp(22px, 5vw, 40px);
    width: clamp(48px, 12vw, 84px);
  }
}
@media (max-width: 420px) {
  .cta {
    padding-bottom: calc(clamp(22px, 5vw, 40px) + 64px);
  }
  .cta-logo {
    width: 52px;
  }
}

.rv {
  opacity: 0;
  transform: translateY(22px) scale(0.99);
  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.rv.in {
  opacity: 1;
  transform: none;
}
.d1 {
  transition-delay: 0.1s;
}
.d2 {
  transition-delay: 0.2s;
}
@media (prefers-reduced-motion: reduce) {
  .rv {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .seg .thumb {
    transition: none;
  }
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
