/* ============================================================
   tyler wells — one-page creator site
   v4 "sleek + vibrant" · Anybody / Alan Sans
   clean white field · sunset-gradient accents · lowercase
   ============================================================ */

:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-soft: #f6f6f8;
  --ink: #16161a;
  --muted: #6e6e7a;
  --line: #e8e8ee;
  --coral: #ff4d2e;
  --amber: #ff9d00;
  --pink: #ff3d8a;
  --violet: #8a3dff;
  /* deepened variants for small accent text — same hues, AA contrast on white */
  --coral-text: #cf3a12;
  --pink-text: #c9186b;
  --display: 'Anybody', sans-serif;
  --body: 'Alan Sans', sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.05;
  text-wrap: balance;
}

p { text-wrap: pretty; }

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

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

::selection { background: var(--pink); color: #fff; }

/* solid accent helpers — sunset palette, big display text only */
.accent-a { color: var(--coral); }
.accent-b { color: var(--pink); }
.accent-c { color: var(--violet); }

/* ---------- skip link ---------- */

.skip-link {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 999px;
  transform: translateY(-220%);
  transition: transform 0.3s var(--ease);
}
.skip-link:focus-visible { transform: none; }

/* ---------- nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px
    max(clamp(20px, 5vw, 56px), env(safe-area-inset-right))
    14px
    max(clamp(20px, 5vw, 56px), env(safe-area-inset-left));
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s;
}
.nav.scrolled { border-color: var(--line); }

.nav-logo {
  font-family: var(--display);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.02em;
  padding: 8px 0;
}
.nav-logo .dot { color: var(--coral); }

.nav-links { display: flex; gap: clamp(16px, 3vw, 36px); }

.nav-links a {
  font-family: var(--display);
  font-size: 15px;
  padding: 10px 0;
  font-variation-settings: 'wdth' 100, 'wght' 500;
  transition: font-variation-settings 0.35s var(--ease);
}
.nav-links a:hover,
.nav-links a:focus-visible {
  font-variation-settings: 'wdth' 122, 'wght' 800;
}
.nav-links a.active {
  color: var(--coral-text);
  font-variation-settings: 'wdth' 100, 'wght' 800;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  pointer-events: none;
  will-change: transform, translate;
  animation: drift 16s ease-in-out infinite alternate;
}
.blob-a {
  width: 55vmax; height: 55vmax;
  right: -18vmax; top: -18vmax;
  background: radial-gradient(circle at 35% 35%, var(--amber), var(--coral) 55%, transparent 75%);
}
.blob-b {
  width: 48vmax; height: 48vmax;
  left: -16vmax; bottom: -20vmax;
  background: radial-gradient(circle at 60% 40%, var(--pink), var(--violet) 60%, transparent 78%);
  animation-delay: -8s;
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-4vmax, 3vmax, 0) scale(1.12); }
}

.hero-inner { position: relative; padding: 0 20px; }

.hero-kicker {
  font-family: var(--display);
  font-size: clamp(13px, 1.4vw, 16px);
  font-weight: 600;
  letter-spacing: 0.28em;
  color: var(--muted);
  margin-bottom: 18px;
}

.hero-name {
  font-size: clamp(72px, 17vw, 220px);
  font-weight: 900;
  font-variation-settings: 'wdth' 92;
  letter-spacing: -0.03em;
  line-height: 0.92;
  color: var(--ink);
}

.hero-sub {
  margin-top: 26px;
  font-family: var(--display);
  font-size: clamp(19px, 2.4vw, 26px);
  font-weight: 700;
  color: var(--coral);
}

.scroll-hint {
  position: absolute;
  bottom: max(26px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--muted);
  animation: bob 2.2s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* ---------- statement (word fill on scroll) ---------- */

/* tall scroll stage only when JS is driving it */
.js .statement-wrap { height: 260vh; position: relative; }

.statement-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(20px, 8vw, 120px);
}

.statement {
  font-family: var(--display);
  font-size: clamp(30px, 5.2vw, 64px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.015em;
  max-width: 1100px;
}

.statement .w {
  color: var(--line);
  transition: color 0.25s linear;
}
.statement .w.lit { color: var(--ink); }
.statement .w.lit.hot { color: var(--coral); }

/* ---------- sections ---------- */

.section {
  padding: clamp(90px, 12vw, 160px) clamp(20px, 6vw, 80px);
  max-width: 1240px;
  margin: 0 auto;
}

.section-head { margin-bottom: clamp(40px, 6vw, 72px); }

.section-kicker {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.26em;
  color: var(--coral-text);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(40px, 6.5vw, 84px);
  font-weight: 900;
  font-variation-settings: 'wdth' 95;
  letter-spacing: -0.025em;
}

/* ---------- story chapters ---------- */

.chapters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(28px, 4vw, 56px);
}

.chapter-num {
  font-family: var(--display);
  font-size: clamp(56px, 7vw, 96px);
  font-weight: 900;
  display: block;
  line-height: 1;
  margin-bottom: 18px;
}

.chapter h3 { font-size: clamp(22px, 2.4vw, 30px); margin-bottom: 12px; }
.chapter p { color: var(--muted); max-width: 42ch; }

/* ---------- stats ---------- */

.stats-section { padding-top: 0; }

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(24px, 4vw, 48px);
  text-align: center;
  background: var(--bg-soft);
  border-radius: 32px;
  padding: clamp(40px, 6vw, 72px) clamp(20px, 4vw, 56px);
}

.stat-num {
  font-family: var(--display);
  /* must fit its grid column: overflowing ink is unpainted under background-clip: text */
  font-size: clamp(46px, 5.6vw, 82px);
  font-variation-settings: 'wdth' 90, 'wght' 900;
  font-variant-numeric: tabular-nums;
  display: block;
  line-height: 1;
}

.stat-label {
  display: block;
  margin-top: 10px;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--muted);
}

/* ---------- work cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(18px, 2.5vw, 28px);
}

.card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--bg);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s;
}
.card:active { transform: translateY(-2px) scale(0.995); transition-duration: 0.15s; }

.card-tag {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.22em;
}
/* small type: use the deepened variants (violet already passes) */
.card-tag.accent-a { color: var(--coral-text); }
.card-tag.accent-b { color: var(--pink-text); }

.card h3 { font-size: clamp(20px, 2vw, 26px); }
.card p { color: var(--muted); font-size: 15.5px; flex-grow: 1; }

.card-cta {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
  color: var(--coral-text);
}
.card-cta::after {
  content: '→';
  display: inline-block;
  margin-left: 7px;
  transition: transform 0.35s var(--ease);
}

/* ---------- press ---------- */

.press-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(18px, 2.5vw, 28px);
}

.press-item {
  padding: clamp(24px, 3vw, 36px);
  border-radius: 24px;
  background: var(--bg-soft);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
a.press-item:active { transform: translateY(-2px); transition-duration: 0.15s; }

.press-item h3 { font-size: clamp(20px, 2vw, 26px); }
.press-item p { color: var(--muted); font-size: 15.5px; flex-grow: 1; }

/* ---------- what's next ---------- */

.next-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
}

.next-pill {
  font-family: var(--display);
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 800;
  padding: 12px 26px;
  border-radius: 999px;
  color: #fff;
}
.next-pill:nth-child(1) { background: var(--coral); }
.next-pill:nth-child(2) { background: var(--pink); }
.next-pill:nth-child(3) { background: var(--violet); }

.next-note { color: var(--muted); font-size: 16px; }

/* ---------- connect ---------- */

.social-rows { border-top: 1px solid var(--line); }

.social-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(18px, 2.6vw, 30px) 4px;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.4s var(--ease);
}

.social-name {
  font-family: var(--display);
  font-size: clamp(30px, 5vw, 60px);
  font-variation-settings: 'wdth' 95, 'wght' 900;
  letter-spacing: -0.02em;
  transition: font-variation-settings 0.4s var(--ease);
}

.social-row:focus-visible .social-name { color: var(--coral); }

.social-handle {
  font-family: var(--display);
  font-size: clamp(13px, 1.6vw, 17px);
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}

.contact-block {
  margin-top: clamp(36px, 5vw, 56px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 20px;
}

.btn {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 800;
  padding: 15px 32px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.btn:active { transform: translateY(0) scale(0.97); transition-duration: 0.15s; }

.btn-primary {
  border: none;
  color: #fff;
  background: var(--coral-text);
}

.support-links {
  display: flex;
  gap: 8px;
  align-items: baseline;
  color: var(--muted);
  font-size: 15px;
}
.support-links a {
  font-weight: 700;
  color: var(--ink);
  padding: 6px 0;
  border-bottom: 2px solid var(--pink);
}

/* ---------- footer ---------- */

.footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 32px
    max(clamp(20px, 6vw, 80px), env(safe-area-inset-right))
    max(44px, env(safe-area-inset-bottom))
    max(clamp(20px, 6vw, 80px), env(safe-area-inset-left));
  max-width: 1240px;
  margin: 0 auto;
  color: var(--muted);
  font-family: var(--display);
  font-size: 14px;
  font-weight: 500;
}
.footer a { padding: 6px 0; border-bottom: 1px solid var(--line); }
.footer a:hover, .footer a:focus-visible { color: var(--ink); }

/* ---------- hover effects (pointer devices only, so taps don't stick) ---------- */

@media (hover: hover) {
  .card:hover {
    transform: translateY(-6px) scale(1.015);
    border-color: transparent;
    box-shadow: 0 24px 60px -24px rgba(255, 61, 138, 0.35), 0 8px 28px -12px rgba(255, 157, 0, 0.25);
  }
  .card:hover .card-cta::after { transform: translateX(4px); }

  a.press-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px -24px rgba(138, 61, 255, 0.3);
  }

  .social-row:hover { padding-left: 18px; }
  .social-row:hover .social-name {
    font-variation-settings: 'wdth' 118, 'wght' 900;
    color: var(--coral);
  }

  .btn:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -14px rgba(22, 22, 26, 0.4); }
  .btn-primary:hover { box-shadow: 0 14px 34px -12px rgba(207, 58, 18, 0.55); }
}

/* ---------- reveal-on-scroll ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(30px) scale(0.985);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.js .reveal.in { opacity: 1; transform: none; }

/* stagger siblings a touch */
.js .reveal.in:nth-child(2) { transition-delay: 0.08s; }
.js .reveal.in:nth-child(3) { transition-delay: 0.16s; }
.js .reveal.in:nth-child(4) { transition-delay: 0.24s; }
.js .reveal.in:nth-child(5) { transition-delay: 0.32s; }
.js .reveal.in:nth-child(6) { transition-delay: 0.4s; }

/* ---------- small screens ---------- */

@media (max-width: 560px) {
  .nav-links { gap: 14px; }
  .social-row { flex-direction: column; align-items: flex-start; gap: 2px; }
  .js .statement-wrap { height: 200vh; }
  .blob { filter: blur(60px); }
}

/* ---------- reduced motion (last, so it wins every earlier rule) ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .blob, .scroll-hint { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js .statement-wrap { height: auto; }
  .statement-sticky { height: auto; padding-top: 90px; padding-bottom: 90px; }
  .statement .w { color: var(--ink); }
}
