/*
  rdylt09 About page styles
  Fonts: Inter and Inter Display, bundled in assets/fonts (SIL Open Font License, see OFL.txt)
*/

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/Inter-Regular.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/Inter-Medium.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/Inter-SemiBold.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/Inter-Bold.woff2") format("woff2");
}

@font-face {
  font-family: "Inter Display";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/InterDisplay-SemiBold.woff2") format("woff2");
}

:root {
  --bg: #ffffff;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #86868b;
  --line: #d2d2d7;
  --fill: #f5f5f7;
  --fill-2: #e8e8ed;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --container: 980px;
  --gutter: 20px;
  --side: max(var(--gutter), calc((100% - var(--container)) / 2));
  --nav-h: 48px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-display: "Inter Display", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --surface: #ffffff;
  --ink-strong: #000000;
  --hover-fill: #dcdce1;
  --nav-bg: rgba(255, 255, 255, 0.72);
  --nav-line: rgba(0, 0, 0, 0.08);
  --footer-link: #424245;
  --device: #1d1d1f;
  --stage-top: #ffffff;
  --ring: rgba(0, 0, 0, 0.06);
  color-scheme: light;
}

/* Dark mode: switched on with the button in the top bar (data-theme on <html>) */

:root[data-theme="dark"] {
  --bg: #000000;
  --text: #f5f5f7;
  --text-2: #a1a1a6;
  --text-3: #6e6e73;
  --line: #38383a;
  --fill: #161617;
  --fill-2: #2c2c2e;
  --surface: #232325;
  --ink-strong: #ffffff;
  --hover-fill: #3a3a3c;
  --nav-bg: rgba(22, 22, 23, 0.72);
  --nav-line: rgba(255, 255, 255, 0.1);
  --footer-link: #d2d2d7;
  --device: #3a3a3c;
  --stage-top: #3a3a3c;
  --ring: rgba(255, 255, 255, 0.1);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scrollbar-gutter: stable;
}

html.lock {
  overflow: hidden;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: fixed;
  top: -64px;
  left: 12px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: 980px;
  background: var(--text);
  color: var(--bg);
  font-size: 14px;
  font-weight: 500;
}

.skip:focus {
  top: 12px;
}

.wrap {
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Navigation ---------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--nav-h);
}

.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.nav.is-scrolled::before {
  border-bottom-color: var(--nav-line);
}

.nav.menu-open::before {
  background: var(--bg);
}

.nav-inner {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.nav-links {
  display: none;
  gap: 36px;
  font-size: 13px;
}

.nav-links a {
  padding: 6px 0;
  color: var(--text-2);
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a[aria-current] {
  color: var(--text);
}

.nav-cta {
  display: none;
  align-items: center;
  padding: 5px 14px;
  border-radius: 980px;
  background: var(--text);
  color: var(--bg);
  font-size: 13px;
  font-weight: 500;
  transition: background 0.2s ease;
}

.nav-cta:hover {
  background: var(--ink-strong);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s ease;
}

.theme-toggle:hover {
  background: var(--fill-2);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

.theme-toggle .i-sun,
:root[data-theme="dark"] .theme-toggle .i-moon {
  display: none;
}

:root[data-theme="dark"] .theme-toggle .i-sun {
  display: block;
}

.nav-toggle {
  position: relative;
  width: 44px;
  height: 44px;
  margin-right: -12px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  position: absolute;
  top: calc(50% - 0.75px);
  left: 14px;
  right: 14px;
  height: 1.5px;
  border-radius: 1px;
  background: var(--text);
  transition: transform 0.35s var(--ease);
}

.nav-toggle span:first-child {
  transform: translateY(-4px);
}

.nav-toggle span:last-child {
  transform: translateY(4px);
}

.menu-open .nav-toggle span:first-child {
  transform: rotate(45deg);
}

.menu-open .nav-toggle span:last-child {
  transform: rotate(-45deg);
}

.menu {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  bottom: 0;
  overflow: auto;
  padding: 16px var(--gutter) 40px;
  background: var(--bg);
}

.menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu li {
  animation: fade-up 0.5s var(--ease) both;
  animation-delay: calc(var(--i) * 45ms);
}

.menu a {
  display: block;
  padding: 10px 0;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.menu .btn {
  display: inline-flex;
  margin-top: 24px;
  padding: 0 22px;
  font-size: 17px;
  letter-spacing: -0.01em;
}

@media (min-width: 834px) {
  .nav-links {
    display: flex;
  }

  .nav-cta {
    display: inline-flex;
  }

  .nav-toggle,
  .menu {
    display: none;
  }
}

/* ---------- Buttons and links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 980px;
  background: var(--text);
  color: var(--bg);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s var(--ease);
}

.btn:hover {
  background: var(--ink-strong);
}

.btn:active {
  transform: scale(0.97);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--text);
}

.btn-ghost:hover {
  background: var(--text);
  color: var(--bg);
}

.link-chev {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 17px;
  font-weight: 500;
}

.link-chev svg {
  width: 9px;
  height: 9px;
  transition: transform 0.25s var(--ease);
}

.link-chev:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.link-chev:hover svg {
  transform: translateX(3px);
}

/* ---------- Hero ---------- */

.hero {
  padding: calc(var(--nav-h) + 88px) 0 24px;
  text-align: center;
}

@media (min-width: 834px) {
  .hero {
    padding: calc(var(--nav-h) + 140px) 0 40px;
  }
}

.hero-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-id {
  position: relative;
  order: -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 36px;
}

.avatar {
  position: relative;
  display: block;
  width: 152px;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
  background: var(--fill-2);
  box-shadow: 0 0 0 1px var(--ring), 0 24px 60px -24px rgba(0, 0, 0, 0.45);
}

.avatar-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--text-2);
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 600;
}

.avatar-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-handle {
  position: relative;
  z-index: 1;
  margin-top: -18px;
  padding: 7px 16px;
  border-radius: 980px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--ring), 0 10px 24px -12px rgba(0, 0, 0, 0.4);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.hero-title {
  max-width: 14ch;
  margin: 0 auto;
  font-size: clamp(48px, 9vw, 96px);
  line-height: 1.04;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.word {
  display: inline-block;
  animation: word-in 1.1s var(--ease) both;
  animation-delay: calc(var(--i) * 70ms + 80ms);
}

.hero-sub {
  max-width: 34ch;
  margin: 24px auto 0;
  color: var(--text-2);
  font-size: clamp(19px, 2.3vw, 24px);
  line-height: 1.35;
  letter-spacing: -0.015em;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px 28px;
  margin-top: 32px;
}

@media (min-width: 834px) {
  .hero {
    text-align: left;
  }

  .hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    align-items: center;
    gap: 40px;
  }

  .hero-id {
    order: 0;
    margin-bottom: 0;
  }

  .avatar {
    width: clamp(240px, 27vw, 320px);
    box-shadow: 0 0 0 1px var(--ring), 0 40px 90px -36px rgba(0, 0, 0, 0.5);
  }

  .avatar-fallback {
    font-size: 120px;
  }

  .hero-handle {
    margin-top: -24px;
    padding: 9px 20px;
    font-size: 17px;
  }

  .hero-title {
    margin: 0;
    font-size: clamp(56px, 7.2vw, 88px);
  }

  .hero-sub {
    margin-left: 0;
  }

  .hero-cta {
    justify-content: flex-start;
  }
}

.rise {
  animation: fade-up 1s var(--ease) both;
  animation-delay: var(--d, 0s);
}

@keyframes word-in {
  from {
    opacity: 0;
    transform: translateY(0.3em);
    filter: blur(14px);
  }

  to {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Sections ---------- */

.section {
  padding: 96px 0;
  scroll-margin-top: var(--nav-h);
}

.section-title {
  margin: 0;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.06;
  font-weight: 600;
  letter-spacing: -0.028em;
}

.section-sub {
  margin: 16px 0 0;
  color: var(--text-2);
  font-size: clamp(19px, 2.2vw, 24px);
  line-height: 1.35;
  letter-spacing: -0.015em;
}

.center {
  text-align: center;
}

@media (min-width: 834px) {
  .section {
    padding: 144px 0;
  }
}

html.js .reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}

html.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- About ---------- */

.statement {
  max-width: 22em;
  margin: 0;
  font-size: clamp(30px, 4.6vw, 52px);
  line-height: 1.14;
  font-weight: 600;
  letter-spacing: -0.022em;
}

html.js .statement .w {
  color: var(--text-3);
  transition: color 0.35s ease;
}

html.js .statement .w.on {
  color: var(--text);
}

.features {
  display: grid;
  gap: 32px;
  margin-top: 72px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.features p {
  max-width: 44ch;
  margin: 0;
  color: var(--text-2);
  font-size: 19px;
  line-height: 1.5;
}

.features strong {
  color: var(--text);
  font-weight: 600;
}

@media (min-width: 834px) {
  .features {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}

/* ---------- Work carousel ---------- */

.work {
  background: var(--fill);
}

.scroller {
  margin-top: 48px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--side);
  scrollbar-width: none;
}

.scroller::-webkit-scrollbar {
  display: none;
}

.scroller:focus-visible {
  outline-offset: -2px;
}

.cards {
  display: flex;
  gap: 20px;
  width: max-content;
  list-style: none;
  margin: 0;
  padding: 8px var(--side) 28px;
}

.card {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  width: min(380px, calc(100vw - 2 * var(--gutter) - 24px));
  height: 520px;
  padding: 32px 32px 88px;
  border-radius: 28px;
  background: var(--surface);
  scroll-snap-align: start;
  cursor: pointer;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.card-kicker {
  margin: 0;
  color: var(--text-2);
  font-size: 17px;
  font-weight: 600;
}

.card-title {
  margin: 6px 0 0;
  font-size: 28px;
  line-height: 1.14;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.card-visual {
  margin-top: auto;
}

.card-plus {
  position: absolute;
  right: 20px;
  bottom: 20px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg);
  cursor: pointer;
  transition: transform 0.3s var(--ease), background 0.2s ease;
}

.card-plus svg {
  width: 14px;
  height: 14px;
}

@media (hover: hover) {
  .card:hover {
    transform: scale(1.015);
    box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.2);
  }

  .card:hover .card-plus {
    transform: scale(1.1);
    background: var(--ink-strong);
  }
}

.lessons {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.lessons li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--fill);
  font-size: 15px;
  font-weight: 500;
}

.lesson-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg);
}

.lesson-icon svg {
  width: 10px;
  height: 10px;
  margin-left: 2px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chips span {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 980px;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.chips span:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.phone-wrap {
  display: flex;
  justify-content: center;
}

.phone {
  position: relative;
  display: grid;
  place-items: center;
  width: 124px;
  height: 230px;
  overflow: hidden;
  border: 5px solid var(--device);
  border-radius: 26px;
  background: #000;
}

.phone-word {
  color: #fff;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
  animation: punch 2.4s var(--ease) infinite;
}

.phone-bar {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 14px;
  height: 3px;
  overflow: hidden;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.25);
}

.phone-bar i {
  display: block;
  height: 100%;
  background: #fff;
  transform-origin: left center;
  animation: progress 2.4s linear infinite;
}

@keyframes punch {
  0%,
  55% {
    transform: scale(1);
    filter: blur(0);
  }

  62% {
    transform: scale(1.22) rotate(-3deg);
    filter: blur(1px);
  }

  72% {
    transform: scale(0.96) rotate(1deg);
    filter: blur(0);
  }

  82%,
  100% {
    transform: scale(1);
  }
}

@keyframes progress {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

.big-num {
  margin: 0;
  font-size: 96px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}

.big-cap {
  margin: 10px 0 0;
  color: var(--text-2);
  font-size: 17px;
}

.carousel-nav {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 4px;
}

.circle-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--fill-2);
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.circle-btn:hover:not(:disabled) {
  background: var(--hover-fill);
}

.circle-btn:disabled {
  opacity: 0.38;
  cursor: default;
}

.circle-btn svg {
  width: 14px;
  height: 14px;
}

@media (max-width: 600px) {
  .card {
    height: 480px;
    padding: 28px 28px 84px;
  }

  .card-title {
    font-size: 26px;
  }

  .big-num {
    font-size: 80px;
  }
}

/* ---------- Dialogs ---------- */

.dlg {
  width: min(720px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100dvh - 48px);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 28px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 40px 120px -20px rgba(0, 0, 0, 0.35);
}

.dlg::backdrop {
  background: rgba(0, 0, 0, 0.35);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  backdrop-filter: blur(20px) saturate(1.2);
}

.dlg[open] {
  animation: dlg-in 0.45s var(--ease);
}

.dlg[open]::backdrop {
  animation: fade-in 0.45s ease;
}

.dlg.closing {
  animation: dlg-out 0.3s ease forwards;
}

.dlg.closing::backdrop {
  animation: fade-out 0.3s ease forwards;
}

@keyframes dlg-in {
  from {
    opacity: 0;
    transform: translateY(32px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes dlg-out {
  to {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
}

@keyframes fade-out {
  to {
    opacity: 0;
  }
}

.dlg-body {
  max-height: calc(100dvh - 48px);
  overflow: auto;
  padding: 64px 56px 56px;
}

.dlg-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--fill-2);
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s ease;
}

.dlg-close:hover {
  background: var(--hover-fill);
}

.dlg-close svg {
  width: 12px;
  height: 12px;
}

.dlg-kicker {
  margin: 0;
  color: var(--text-2);
  font-size: 17px;
  font-weight: 600;
}

.dlg-title {
  margin: 8px 0 24px;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.028em;
}

.dlg-body p {
  margin: 0 0 16px;
  font-size: 19px;
  line-height: 1.5;
}

.dlg-list {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.dlg-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 17px;
  font-weight: 500;
}

.dlg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

@media (max-width: 600px) {
  .dlg {
    border-radius: 24px;
  }

  .dlg-body {
    padding: 64px 24px 32px;
  }

  .dlg-body p {
    font-size: 17px;
  }
}

/* ---------- Connect ---------- */

.tiles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 56px;
}

.tile {
  display: flex;
  flex-direction: column;
  padding: 10px;
  border-radius: 30px;
  background: var(--fill);
  transition: background 0.3s ease;
}

.cover {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 22px;
  container-type: inline-size;
  isolation: isolate;
}

.tile-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 14px 10px;
}

.tile-text {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Service logos: official files dropped into assets/img/logos show on a white chip,
   so they read in light and dark mode. A slot stays hidden until its file loads. */

.tile-logo {
  flex: none;
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 9px;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 0 0 1px var(--ring), 0 6px 16px -10px rgba(0, 0, 0, 0.35);
}

.tile-logo.is-loaded {
  display: flex;
}

.tile-logo img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.tile-name {
  font-size: 28px;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.tile-handle {
  margin-top: 4px;
  color: var(--text-2);
  font-size: 17px;
}

.tile-go {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface);
  transition: transform 0.35s var(--ease), background 0.25s ease, color 0.25s ease;
}

.tile-go svg {
  width: 12px;
  height: 12px;
}

/* YouTube cover: the channel banner */

.cover-yt {
  background: radial-gradient(120% 90% at 50% 40%, #8e8e93 0%, #48484a 55%, #1d1d1f 100%);
}

.cover-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 7cqi;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}

.yt-shade {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.4s ease;
}

.yt-play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 15cqi;
  height: 15cqi;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #1d1d1f;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.6);
  transition: opacity 0.35s ease, transform 0.55s var(--ease);
}

.yt-play svg {
  width: 36%;
  height: 36%;
  margin-left: 8%;
}

.glass-row {
  position: absolute;
  left: 3.4cqi;
  bottom: 3.4cqi;
  display: flex;
  flex-wrap: wrap;
  gap: 1.6cqi;
}

.glass {
  padding: 0.5em 0.95em;
  border-radius: 980px;
  background: rgba(255, 255, 255, 0.74);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  color: #1d1d1f;
  font-size: clamp(11px, 2.7cqi, 14px);
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* TikTok cover: a vertical feed */

.cover-tt {
  background: radial-gradient(90% 80% at 50% 25%, #3a3a3c 0%, #111 60%, #000 100%);
}

.tt-phone,
.tt-ghost {
  position: absolute;
  top: 6cqi;
  left: 50%;
  width: 27cqi;
  height: 58cqi;
  overflow: hidden;
  border: 1.2cqi solid #2c2c2e;
  border-radius: 5cqi;
  background: #000;
  transition: transform 0.8s var(--ease);
}

.tt-phone {
  z-index: 2;
  transform: translateX(-50%);
  box-shadow: 0 3cqi 8cqi rgba(0, 0, 0, 0.6);
}

.tt-ghost {
  z-index: 1;
  opacity: 0.55;
  background: linear-gradient(160deg, #3a3a3c, #0b0b0b);
}

.tt-left {
  transform: translateX(-122%) translateY(3cqi) rotate(-9deg) scale(0.88);
}

.tt-right {
  transform: translateX(22%) translateY(3cqi) rotate(9deg) scale(0.88);
}

.tt-ghost em {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 4.6cqi;
  font-style: normal;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.tt-feed {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  height: 500%;
  animation: tt-feed 8s var(--ease) infinite;
}

.tt-feed span {
  flex: 0 0 20%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 5.4cqi;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.tt-feed .tt-glow {
  text-shadow: 0 0 0.3em rgba(255, 255, 255, 0.8), 0 0 0.9em rgba(255, 255, 255, 0.4);
}

@keyframes tt-feed {
  0%,
  20% {
    transform: translateY(0);
  }

  25%,
  45% {
    transform: translateY(-20%);
  }

  50%,
  70% {
    transform: translateY(-40%);
  }

  75%,
  95% {
    transform: translateY(-60%);
  }

  100% {
    transform: translateY(-80%);
  }
}

.tt-actions {
  position: absolute;
  right: 1.6cqi;
  bottom: 10cqi;
  z-index: 1;
  display: grid;
  gap: 1.8cqi;
}

.tt-actions i {
  display: block;
  width: 3.4cqi;
  height: 3.4cqi;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
}

.tt-caption {
  position: absolute;
  left: 2cqi;
  right: 7cqi;
  bottom: 3.4cqi;
  z-index: 1;
  display: grid;
  gap: 1cqi;
}

.tt-caption b {
  color: #fff;
  font-size: clamp(9px, 2.3cqi, 12px);
  font-weight: 600;
}

.tt-caption i {
  display: block;
  width: 80%;
  height: 0.9cqi;
  border-radius: 1cqi;
  background: rgba(255, 255, 255, 0.35);
}

.tt-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  height: 0.6cqi;
  background: rgba(255, 255, 255, 0.2);
}

.tt-progress i {
  display: block;
  height: 100%;
  background: #fff;
  transform-origin: left center;
  animation: progress 2s linear infinite;
}

/* Instagram cover: a profile grid */

.cover-ig {
  background: var(--surface);
}

.ig-grid {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 1.2cqi;
  width: 54cqi;
  height: 54cqi;
  transform: translate(-50%, -50%);
}

.ig-grid span {
  display: grid;
  place-items: center;
  border-radius: 1.6cqi;
  font-size: clamp(9px, 2.7cqi, 14px);
  font-weight: 600;
  letter-spacing: -0.02em;
  transition: background 0.5s ease, color 0.5s ease, transform 0.6s var(--ease);
  transition-delay: calc(var(--d) * 70ms);
}

.ig-grid .ig-k {
  background: var(--text);
  color: var(--bg);
}

.ig-grid .ig-l {
  background: var(--fill);
  color: var(--text);
}

.ig-grid .ig-me {
  font-size: clamp(10px, 3.1cqi, 16px);
  font-weight: 700;
}

/* Store cover: the preset packs */

.cover-store {
  background: linear-gradient(180deg, var(--stage-top) 0%, var(--fill-2) 100%);
  perspective: 140cqi;
  perspective-origin: 50% 30%;
}

.box-floor {
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 5.5cqi;
  height: 6cqi;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0));
}

.box {
  position: absolute;
  bottom: 8cqi;
  left: 50%;
  width: 21cqi;
  height: 30cqi;
  margin-left: -10.5cqi;
  transform-style: preserve-3d;
  transition: transform 0.9s var(--ease);
}

.box-face {
  position: absolute;
  backface-visibility: hidden;
}

.box-front {
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.8cqi 1.6cqi;
  border-radius: 0.6cqi;
  background: linear-gradient(155deg, #48484a 0%, #1d1d1f 45%, #000 100%);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transform: translateZ(4cqi);
}

.box-front small {
  font-size: clamp(6px, 1.5cqi, 9px);
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0.7;
}

.box-front b {
  font-size: clamp(9px, 2.7cqi, 15px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.box-front b::before {
  content: "";
  display: block;
  width: 3cqi;
  height: 2px;
  margin-bottom: 1cqi;
  background: #fff;
}

.box-side {
  top: 0;
  bottom: 0;
  left: calc(50% - 4cqi);
  width: 8cqi;
  border-radius: 0.4cqi;
  background: linear-gradient(90deg, #48484a, #6e6e73);
  transform: rotateY(90deg) translateZ(10.5cqi);
}

.box-top {
  top: calc(50% - 4cqi);
  left: 0;
  right: 0;
  height: 8cqi;
  border-radius: 0.4cqi;
  background: linear-gradient(0deg, #8e8e93, #aeaeb2);
  transform: rotateX(90deg) translateZ(15cqi);
}

.box-l {
  transform: translateX(-24cqi) translateZ(-8cqi) rotateY(-28deg);
}

.box-r {
  transform: translateX(24cqi) translateZ(-8cqi) rotateY(-28deg);
}

.box-c {
  transform: translateZ(3cqi) rotateY(-28deg);
}

/* Hover and keyboard focus on the tiles */

@media (hover: hover) {
  .tile:hover {
    background: var(--fill-2);
  }

  .tile:is(:hover, :focus-visible) .tile-go {
    background: var(--text);
    color: var(--bg);
    transform: translate(2px, -2px);
  }

  .tile:is(:hover, :focus-visible) .cover-img {
    transform: scale(1.05);
  }

  .tile:is(:hover, :focus-visible) .yt-shade {
    background: rgba(0, 0, 0, 0.18);
  }

  .tile:is(:hover, :focus-visible) .yt-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }

  .tile:is(:hover, :focus-visible) .tt-left {
    transform: translateX(-140%) translateY(2cqi) rotate(-13deg) scale(0.9);
  }

  .tile:is(:hover, :focus-visible) .tt-right {
    transform: translateX(40%) translateY(2cqi) rotate(13deg) scale(0.9);
  }

  .tile:is(:hover, :focus-visible) .ig-grid .ig-k {
    background: var(--fill);
    color: var(--text);
  }

  .tile:is(:hover, :focus-visible) .ig-grid .ig-l {
    background: var(--text);
    color: var(--bg);
  }

  .tile:is(:hover, :focus-visible) .ig-grid span {
    transform: scale(0.94);
  }

  .tile:is(:hover, :focus-visible) .box-l {
    transform: translateX(-28cqi) translateZ(-8cqi) rotateY(-36deg);
  }

  .tile:is(:hover, :focus-visible) .box-r {
    transform: translateX(28cqi) translateZ(-8cqi) rotateY(-20deg);
  }

  .tile:is(:hover, :focus-visible) .box-c {
    transform: translateY(-2.5cqi) translateZ(8cqi) rotateY(-18deg);
  }
}

@media (min-width: 640px) {
  .tiles {
    grid-template-columns: 1fr 1fr;
  }
}

/* Twitch banner: top clips playing muted */

.tile-twitch {
  position: relative;
}

.tile-stretch::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  border-radius: 30px;
}

.tile-stretch:focus-visible {
  outline: none;
}

.tile-stretch:focus-visible::after {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

.cover-twitch {
  aspect-ratio: 16 / 9;
  background: radial-gradient(120% 90% at 50% 35%, #3a3a3c 0%, #111 60%, #000 100%);
}

.tw-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.tw-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.9s ease, transform 7s linear;
}

.tw-poster.is-on {
  opacity: 1;
  transform: scale(1.08);
}

.tw-poster.is-broken {
  visibility: hidden;
}

.tw-frame {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
  background: transparent;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(1.14);
  transition: opacity 0.6s ease;
}

.tw-stage.is-playing .tw-frame {
  opacity: 1;
}

.tw-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0) 38%);
  pointer-events: none;
}

.cover-twitch .glass-row {
  z-index: 2;
}

.tw-count {
  font-variant-numeric: tabular-nums;
}

.tw-count:empty {
  display: none;
}

.tile-twitch:not(.has-clips) .glass-row,
.tile-twitch:not(.has-clips) .tw-progress {
  display: none;
}

.tw-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  height: 3px;
  background: rgba(255, 255, 255, 0.22);
}

.tw-progress i {
  display: block;
  height: 100%;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left center;
}

@media (min-width: 640px) {
  .tile-wide {
    grid-column: 1 / -1;
  }

  .tile-wide .cover {
    aspect-ratio: 21 / 9;
  }

  .cover-twitch .glass-row {
    left: 24px;
    bottom: 22px;
  }
}

@media (hover: hover) {
  .tile-twitch:hover .tile-go {
    background: var(--text);
    color: var(--bg);
    transform: translate(2px, -2px);
  }
}

/* ---------- Footer ---------- */

.footer {
  background: var(--fill);
  color: var(--text-2);
  font-size: 12px;
  line-height: 1.4;
}

.footer .wrap {
  padding-top: 20px;
  padding-bottom: 28px;
}

.footer-note {
  margin: 0 0 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}

.footer-row p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
}

.footer-links a {
  padding: 0 10px;
  border-left: 1px solid var(--line);
  color: var(--footer-link);
}

.footer-links a:first-child {
  padding-left: 0;
  border-left: 0;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html.js .reveal {
    transform: none;
  }
}
  

/* ---------- Display face for large type ---------- */

.hero-title,
.section-title,
.statement,
.card-title,
.dlg-title,
.tile-name,
.big-num {
  font-family: var(--font-display);
}
