/* Loom landing: minimal, black on white, one huge wordmark. Self-contained (dashboard keeps site.css). */
@font-face { font-family: "Bagel Fat One"; src: url("../fonts/bagel-fat-one.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("../fonts/inter-tight.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --ink: #0b0b0b; --paper: #fcfcfa; --mute: #8b8b86; --soft: #5d5d58; --line: #e9e9e4;
  --display: "Bagel Fat One", "Chango", "Arial Rounded MT Bold", system-ui, sans-serif;
  --sans: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gut: clamp(20px, 3.2vw, 48px);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
html.smooth { scroll-behavior: auto; } /* JS smooth scroll is active */
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.55; letter-spacing: -.012em; overflow-x: clip; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 6px; }

/* ---------------- hero ---------------- */
.hero { position: relative; padding-top: 74px; height: 100vh; height: 100svh; min-height: 520px; display: flex; flex-direction: column; }
.nav { position: fixed; z-index: 50; left: 0; right: 0; top: 0; display: flex; align-items: center; justify-content: flex-end; padding: 14px var(--gut); padding-bottom: 26px; background: linear-gradient(to bottom, #fcfcfa 0%, #fcfcfa 62%, rgba(252,252,250,0) 100%); pointer-events: none; }
.nav-r { pointer-events: auto; }
.nav.on-foot { background: linear-gradient(to bottom, #efeeea 0%, #efeeea 62%, rgba(239,238,234,0) 100%); }
.nav-r { display: flex; align-items: center; gap: 26px; font-size: 15px; font-weight: 500; }
.nav-r a { text-decoration: none; }
.nav-r .plain { color: var(--soft); transition: color .2s; }
.nav-r .plain:hover { color: var(--ink); }
.btn-black { display: inline-block; text-decoration: none; background: var(--ink); color: #fff !important; padding: 11px 20px; border-radius: 999px; transition: transform .28s cubic-bezier(.2,.8,.2,1); }
.btn-black:hover { transform: scale(1.05); }
.btn-black:active { transform: scale(.98); }

.stage { position: relative; flex: 1; display: grid; place-items: center; min-height: 0; }
.wm-wrap { position: relative; font-size: var(--fs, 15vw); line-height: 1; --blurk: 1; will-change: transform; }
.wm, .layer { margin: 0; font-family: var(--display); font-weight: 400; font-size: 1em; line-height: .84; letter-spacing: -.014em; white-space: nowrap; font-synthesis: none; }
.ln { display: block; width: max-content; margin: 0 auto; }
.wm { position: relative; z-index: 10; color: var(--ink); }
.layer { position: absolute; left: 0; top: 0; width: 100%; z-index: 1; pointer-events: none; user-select: none; opacity: 0; will-change: transform, opacity; filter: blur(calc(var(--b) * 1em * var(--blurk))); transform-origin: 50% 55%; }

.tagline { position: absolute; left: 0; right: 0; top: calc(100% + clamp(30px, 4.2vw, 62px)); font-weight: 600; z-index: 11; margin: 0; text-align: center; font-family: var(--sans); font-weight: 500; font-size: clamp(.95rem, .075em, 1.9rem); letter-spacing: .42em; padding-left: .42em; color: var(--ink); opacity: 0; animation: tagIn 1.4s ease 2.1s forwards; }
@keyframes tagIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.weave { position: absolute; pointer-events: none; overflow: visible; }
.weave.back { z-index: 8; } .weave.front { z-index: 12; }
@media (prefers-reduced-motion: reduce) { .tagline { animation: none; opacity: 1; } }
.foot { position: relative; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 0 var(--gut) 24px; font-size: 13px; color: var(--mute); }
.foot span:nth-child(2) { text-align: center; }
.foot span:last-child { text-align: right; }

/* ---------------- sections ---------------- */
.sec { padding: clamp(80px, 12vw, 160px) var(--gut); border-top: 1px solid var(--line); }
.in { max-width: 1240px; margin: 0 auto; }
.kicker { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); margin: 0 0 22px; }
.h2 { font-family: var(--display); font-weight: 400; font-size: clamp(2.6rem, 6.4vw, 6rem); line-height: 1; letter-spacing: -.01em; margin: 0; }
.lead { letter-spacing: -.02em; font-size: clamp(1.1rem, 1.7vw, 1.4rem); color: var(--soft); max-width: 46ch; margin: 22px 0 0; }

.feat { list-style: none; margin: clamp(48px, 7vw, 96px) 0 0; padding: 0; }
.feat li { display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1.25fr); gap: 20px 32px; padding: 26px 0; border-top: 1px solid var(--line); align-items: baseline; }
.feat li:last-child { border-bottom: 1px solid var(--line); }
.feat .n { color: var(--mute); font-size: 14px; font-variant-numeric: tabular-nums; }
.feat h3 { margin: 0; font-size: clamp(1.15rem, 2vw, 1.55rem); font-weight: 600; letter-spacing: -.01em; }
.feat p { margin: 0; color: var(--soft); }

.buddies { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 3vw, 48px); margin-top: clamp(48px, 7vw, 96px); align-items: end; }
.buddy { text-align: center; }
.buddy img { width: min(100%, 420px); height: auto; aspect-ratio: 1; object-fit: contain; display: block; margin: 0 auto; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.buddy:hover img { transform: translateY(-8px) rotate(-2deg); }
.buddy b { display: block; margin-top: 14px; font-family: var(--display); font-weight: 400; font-size: clamp(1.6rem, 3.4vw, 3rem); line-height: 1; }
.buddy span { display: block; margin-top: 8px; color: var(--soft); font-size: clamp(1rem, 1.6vw, 1.35rem); letter-spacing: -.02em; }

.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 22px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(s, decimal-leading-zero); color: var(--mute); font-size: 14px; padding-top: 4px; }
.steps b { display: block; font-size: 1.15rem; font-weight: 600; }
.steps p { margin: 2px 0 0; color: var(--soft); font-size: .98rem; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: #f0f0eb; border-radius: 6px; padding: 1px 7px; font-size: .86em; }
.dl { margin-top: 34px; }
.dl .btn-black { font-size: 16px; font-weight: 600; padding: 15px 26px; }
.tiny { color: var(--mute); font-size: 13px; margin-top: 14px; }
.why { list-style: none; margin: 0; padding: 0; }
.why li { padding: 20px 0; border-top: 1px solid var(--line); color: var(--soft); }
.why li:last-child { border-bottom: 1px solid var(--line); }
.why b { color: var(--ink); font-weight: 600; }
.note { color: var(--mute); font-size: 14px; margin-top: 22px; }
.bottom { position: relative; background: #efeeea; border-radius: clamp(24px, 3.2vw, 46px) clamp(24px, 3.2vw, 46px) 0 0; padding: clamp(56px, 7vw, 100px) var(--gut) 0; color: var(--ink); }
.fcols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px clamp(20px, 4vw, 60px); }
.fcol { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; font-size: clamp(1.15rem, 1.9vw, 1.7rem); line-height: 1.22; letter-spacing: -.02em; }
.fcol-r { align-items: flex-end; text-align: right; }
.fh { margin: 0 0 clamp(14px, 2vw, 26px); font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: #8b8b86; }
.fcol a { position: relative; color: var(--ink); text-decoration: none; padding: 2px 0; }
.fcol a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.fcol a:hover::after, .fcol a:focus-visible::after { transform: scaleX(1); }
.fsmall { font-size: 13px; letter-spacing: 0; color: #8b8b86; max-width: 22ch; margin-top: 8px; }
.fwm { clip-path: inset(-100vh -10vw 0 -10vw); overflow-y: clip; overflow-x: visible; position: relative; margin-top: clamp(50px, 9vw, 130px); font-size: 38.4vw; line-height: .8; padding-bottom: .27em; text-align: center; user-select: none; }
.foot-wm { display: block; font-family: var(--display); font-size: 1em; line-height: .8; letter-spacing: -.014em; white-space: nowrap; padding-right: 1.2vw; }
.foot-wm { position: relative; z-index: 6; color: var(--ink); }
.fl { position: absolute; left: 0; right: 0; top: 0; z-index: 1; opacity: .9; pointer-events: none; will-change: transform; backface-visibility: hidden; }
.fl i { display: block; font-style: normal; font-family: var(--display); font-size: 1em; line-height: .8; letter-spacing: -.014em; white-space: nowrap; padding-right: 1.2vw; }
.fl1 { z-index: 5; color: #ff2e93; transform: translateY(.055em); } .fl1 i { filter: blur(.02em); }
.fl2 { z-index: 4; color: #5fe0ff; transform: translateY(.105em); } .fl2 i { filter: blur(.035em); }
.fl3 { z-index: 3; color: #6dffa8; transform: translateY(.155em); } .fl3 i { filter: blur(.05em); }
.fl4 { z-index: 2; color: #ffe23d; transform: translateY(.205em); } .fl4 i { filter: blur(.06em); }
.fl5 { z-index: 1; color: #ffa97a; transform: translateY(.255em); } .fl5 i { filter: blur(.075em); }
.fbase { position: absolute; left: var(--gut); right: var(--gut); bottom: 16px; z-index: 7; display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: #55554f; }
@media (max-width: 760px) { .fwm { padding-bottom: .36em; } .fcols { grid-template-columns: 1fr 1fr; } .fcol-r { align-items: flex-start; text-align: left; } .fbase { bottom: 8px; font-size: 12px; } }
@media (prefers-reduced-motion: reduce) { .fcol a::after { transition: none; } }

/* ---------------- mobile ---------------- */
@media (max-width: 760px) {
  .nav { padding-top: 18px; }
  .nav-r { gap: 14px; font-size: 14px; }
  .nav-r .hide-m { display: none; }
  .btn-black { padding: 9px 16px; }
  .wm-wrap { --blurk: .55; }
  .layer[data-i="5"] { display: none; }
  .foot { flex-wrap: wrap; font-size: 12px; }
  .foot span:nth-child(2) { display: none; }
  .feat li { grid-template-columns: 34px 1fr; }
  .feat p { grid-column: 2; }
  .buddies { gap: 8px; }
  .buddy b { font-size: 1.25rem; }
  .buddy span { font-size: .9rem; }
  .split { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn-black, .buddy img { transition: none; } }

/* ---------------- intro: text left, cards right ---------------- */
.intro { position: relative; overflow-x: clip; padding: clamp(80px, 12vw, 170px) var(--gut) clamp(90px, 12vw, 180px); }
.intro-grid { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 110px); align-items: start; }
.intro-l { position: sticky; top: 16vh; }
.intro-l h2 { font-family: var(--display); font-weight: 400; font-size: clamp(2.6rem, 5.5vw, 6.4rem); line-height: .9; letter-spacing: -.02em; margin: 0; }
.intro-l h2 span { display: block; white-space: nowrap; }
.intro-l p { font-size: clamp(1.1rem, 1.7vw, 1.45rem); line-height: 1.5; color: var(--soft); max-width: 30ch; margin: clamp(22px, 3vw, 40px) 0 0; }
.cards { display: grid; gap: 22px; padding-top: 6vh; }
.card { position: relative; border-radius: 34px; padding: clamp(24px, 2.6vw, 38px); min-height: clamp(220px, 24vw, 300px); display: flex; flex-direction: column; justify-content: space-between; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.card:hover { transform: translateY(-6px) rotate(-.6deg); }
.card .n { font-size: 14px; opacity: .5; font-variant-numeric: tabular-nums; }
.card h3 { font-family: var(--display); font-weight: 400; font-size: clamp(1.8rem, 3vw, 2.7rem); line-height: 1; letter-spacing: -.01em; margin: 26px 0 10px; }
.card p { margin: 0; font-size: 1.02rem; line-height: 1.5; max-width: 36ch; color: rgba(11,11,11,.78); }
.c1 { background: #ffd6e8; } .c2 { background: #d0f3ff; } .c3 { background: #d4ffe4; } .c4 { background: #fff0b0; }
.c5 { background: #ffdfcd; } .c6 { background: #e9deff; } .c7 { background: #d0f3ff; } .c8 { background: #ffd6e8; }

/* reveals (only when JS is on, so no-JS visitors still see everything) */
.js .rv { opacity: 0; transform: translate3d(var(--x, 0), var(--y, 0), 0); transition: opacity .9s ease, transform 1.1s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; }
.rv.l { --x: -90px; }
.rv.r { --x: 90px; }

@media (max-width: 900px) {
  .intro-grid { grid-template-columns: 1fr; }
  .intro-l { position: static; }
  .cards { padding-top: 0; }
  .rv.r { --x: 0; --y: 40px; }
}
@media (prefers-reduced-motion: reduce) { .js .rv { opacity: 1; transform: none; transition: none; } .card { transition: none; } }
